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

    Kopano-search fails to start

    Kopano Groupware Core
    2
    6
    309
    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.
    • Morta
      Morta last edited by fbartels

      Aug 26 20:17:17 5erver kopano-search[919443]: 2021-08-26T20:17:17.123: [WARNING ] search - index_attachements: unknown config option
      Aug 26 20:17:17 5erver kopano-search[919443]: 2021-08-26T20:17:17.123: [WARNING ] search - allow_send_to_everyone: unknown config option
      Aug 26 20:17:17 5erver kopano-search[919443]: 2021-08-26T20:17:17.124: [ERROR   ] search - Traceback (most recent call last):
      Aug 26 20:17:17 5erver kopano-search[919443]:   File "/usr/lib/python3.9/site-packages/kopano/service.py", line 160, in start
      Aug 26 20:17:17 5erver kopano-search[919443]:     _daemonize(self.main, options=self.options, log=self.log,
      Aug 26 20:17:17 5erver kopano-search[919443]:   File "/usr/lib/python3.9/site-packages/kopano/service.py", line 68, in _daemonize
      Aug 26 20:17:17 5erver kopano-search[919443]:     with daemon.DaemonContext(
      Aug 26 20:17:17 5erver kopano-search[919443]: NameError: name 'daemon' is not defined
      Aug 26 20:17:17 5erver systemd[1]: kopano-search.service: Main process exited, code=exited, status=1/FAILURE
      Aug 26 20:17:17 5erver systemd[1]: kopano-search.service: Failed with result 'exit-code'.
      

      Wath is wrong?

      ### Editing /etc/systemd/system/kopano-search.service.d/override.conf
      ### Anything between here and the comment below will become the new contents of the file
      
      [Unit]
      After=network-online.target mysql.service mariadb.service
      Wants=network-online.target
      
      ### Lines below this comment will be discarded
      
      ### /usr/lib/systemd/system/kopano-search.service
      # [Unit]
      # Description=Kopano Groupware Core Search Daemon
      # Documentation=man:kopano-search(8) man:kopano-search.cfg(5)
      #
      # [Service]
      # Type=simple
      # Environment=LC_CTYPE=en_US.UTF-8
      # EnvironmentFile=-/etc/sysconfig/kopano
      # EnvironmentFile=-/etc/default/kopano
      # ExecStart=/usr/sbin/kopano-search -F
      # ExecReload=/bin/kill -HUP $MAINPID
      #
      # [Install]
      # WantedBy=multi-user.target
      
      thctlo 1 Reply Last reply Reply Quote 0
      • thctlo
        thctlo @Morta last edited by thctlo

        @morta looks like there is an setting in search.cfg or server.cfg thats obsolete.

        This option : allow_send_to_everyone

        grep allow_send_to_everyone /etc/kopano/*

        If you edit systemd files, always use : systemctl edit name-service
        It keeps the supplied version as is.
        if you want to edit the full version, use systemctl edit --full name-server

        And of that override, i would use:

        [Unit]
        After=network-online.target mysql.service mariadb.service kopano-server.service
        Wants=network-online.target kopano-server.service 
        

        That makes sure kopano-server is started before kopano-search

        Morta 1 Reply Last reply Reply Quote 0
        • Morta
          Morta @thctlo last edited by Morta

          @thctlo Thanks!

           EnvironmentFile=-/etc/sysconfig/kopano
           EnvironmentFile=-/etc/default/kopano
          

          What means the - before /etc/
          And why this two folder? Can they be everywhere?

          Can i for the first steps deactivate kopano-search or is necessary for the first lunch?

          thctlo 1 Reply Last reply Reply Quote 0
          • thctlo
            thctlo @Morta last edited by thctlo

            @morta
            this meanse :
            EnvironmentFile=-/etc/sysconfig/kopano

            Read /etc/sysconfig/kopano
            where, as far i know, these defaults are use for; /etc/sysconfig/kopano is for RH bases systems and /etc/default/kopano debian/ubuntu systems.

            The ‘–‘ character at the start of the EnvironmentFile value is to let systemd ignore errors if the file does not exist.

            You dont need to deactiveate anything, just change the boot order a bit.

            Morta 1 Reply Last reply Reply Quote 0
            • Morta
              Morta @thctlo last edited by

              @thctlo
              If i has mariadb instead of mysql i can delete mysql.service in this line?!

              After=network-online.target mysql.service mariadb.service kopano-server.service

              thctlo 1 Reply Last reply Reply Quote 0
              • thctlo
                thctlo @Morta last edited by

                @morta No, its not needed to change anything in that line.

                If mysql is installed i used it and it skips services not installed.
                This way, if you change from mysql to mariadb ,you dont need to change you start upservices.

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