Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Bug with kopano-dbadm and server.cfg

    General Discussion
    2
    3
    250
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nickh
      nickh last edited by nickh

      I am trying to update my distro to from 8.4.5 to 8.7.5 and am doing a script for it. In part of the script I call kopano-dbadm usmp to update the database for 4-byte UTF8. I am resetting a load of parameters in the cfg files as 8.7.x now does not specify defaults.

      MySQL (really MariaDB) runs on a non-standard port 3308 and uses a non-standard socket which I specify.

      I am finding that if I do not specify mysql_host, the kopano-dbadm fails, but if I set mysql_host = localhost in server.cfg, then it works. From the man pages the default value is localhost:

         mysql_host
             The hostname of the MySQL server to use.
      
             Default: localhost
      

      Is this a bug or have I misunderstood something.

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @nickh last edited by

        Hi @nickh,

        @nickh said in Bug with kopano-dbadm and server.cfg:

        as 8.7.x now does not specify defaults.

        this is not really true. kopano-server has its built in default and everything that you commented out in the example configuration files already reflects the default values for these options. You can also check the cfg manpages for the services, they list the default values as well.

        @nickh said in Bug with kopano-dbadm and server.cfg:

        runs on a non-standard port 3308 and uses a non-standard

        @nickh said in Bug with kopano-dbadm and server.cfg:

        if I do not specify mysql_host, the kopano-dbadm fails, but if I set mysql_host = localhost in server.cfg, then it works

        The man page about the socket specifies:

           mysql_socket
               The socket of the MySQL server to use. This option can be used to override the default mysql socket. To use the socket, the mysql_host value must be empty or 'localhost'
        
               Default:
        

        Maybe kopano-dbadm does not follow that same logic, but requires localhost to be specified so that you can override it.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • nickh
          nickh last edited by

          I am agreeing that you don’t have to specify defaults any more as they are built in. That is why mine is commented out.

          It just seems strange that kopano-server and kopano-dbadm do not recognise the same set of defaults. I would have thought it was a bug.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post