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

    Incident: kopano-search and kopano-presence services not stopping gracefully

    Kopano Groupware Core
    kopano-search stopping init script
    3
    16
    3856
    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.
    • fbartels
      fbartels Kopano @darootler last edited by fbartels

      @darootler thanks for reporting. I created https://jira.kopano.io/browse/KC-522 for this.

      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/

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

        @fbartels

        Thank you!

        Regards
        Richard

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

          Hi @darootler ,

          we just closed https://jira.kopano.io/browse/KC-522 since we are not able to reproduce this error any longer. can you confirm?

          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/

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

            @fbartels

            I am still having this issue. I am using Kopano 8.4.0-125.

            user@host:~$ sudo systemctl stop kopano-presence.service
            user@host:~$ sudo systemctl status kopano-presence.service
            ● kopano-presence.service - Kopano Core Presence Daemon
               Loaded: loaded (/lib/systemd/system/kopano-presence.service; enabled; vendor
               Active: failed (Result: signal) since Tue 2017-03-28 16:54:17 CEST; 6s ago
              Process: 19362 ExecStart=/usr/sbin/kopano-presence -F (code=killed, signal=KIL
             Main PID: 19362 (code=killed, signal=KILL)
            
            Mar 28 16:52:19 host systemd[1]: Started Kopano Core Presence Daemon.
            Mar 28 16:52:19 host kopano-presence[19362]: 2017-03-28 16:52:19,925 - presenc
            Mar 28 16:52:19 host kopano-presence[19362]: 2017-03-28 16:52:19,933 - presenc
            Mar 28 16:52:19 host kopano-presence[19362]:  * Running on http://0.0.0.0:1234
            Mar 28 16:52:47 host systemd[1]: Stopping Kopano Core Presence Daemon...
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: State 'stop-sigterm'
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Main process exited,
            Mar 28 16:54:17 host systemd[1]: Stopped Kopano Core Presence Daemon.
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Unit entered failed
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Failed with result '
            lines 1-16/16 (END)
            ● kopano-presence.service - Kopano Core Presence Daemon
               Loaded: loaded (/lib/systemd/system/kopano-presence.service; enabled; vendor preset: enabled)
               Active: failed (Result: signal) since Tue 2017-03-28 16:54:17 CEST; 6s ago
              Process: 19362 ExecStart=/usr/sbin/kopano-presence -F (code=killed, signal=KILL)
             Main PID: 19362 (code=killed, signal=KILL)
            
            Mar 28 16:52:19 host systemd[1]: Started Kopano Core Presence Daemon.
            Mar 28 16:52:19 host kopano-presence[19362]: 2017-03-28 16:52:19,925 - presence - INFO - starting presence
            Mar 28 16:52:19 host kopano-presence[19362]: 2017-03-28 16:52:19,933 - presence - INFO - spreed: plugin enabled
            Mar 28 16:52:19 host kopano-presence[19362]:  * Running on http://0.0.0.0:1234/ (Press CTRL+C to quit)
            Mar 28 16:52:47 host systemd[1]: Stopping Kopano Core Presence Daemon...
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: State 'stop-sigterm' timed out. Killing.
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Main process exited, code=killed, status=9/KILL
            Mar 28 16:54:17 host systemd[1]: Stopped Kopano Core Presence Daemon.
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Unit entered failed state.
            Mar 28 16:54:17 host systemd[1]: kopano-presence.service: Failed with result 'signal'.
            

            Regards
            Richard

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

              @darootler just did an upgrade to latest master, but still no error.

              [...]
              Setting up kopano-presence (8.4.0~131-37.1) ...
              [...]
              root@felixkc522:~# systemctl status kopano-presence.service 
              ● kopano-presence.service - Kopano Core Presence Daemon
                 Loaded: loaded (/lib/systemd/system/kopano-presence.service; enabled; vendor preset: enabled)
                 Active: active (running) since Tue 2017-03-28 16:39:20 CEST; 16s ago
               Main PID: 3528 (kopano-presence)
                 CGroup: /system.slice/kopano-presence.service
                         └─3528 /usr/bin/python /usr/sbin/kopano-presence -F
              
              Mar 28 16:39:20 felixkc522 systemd[1]: Stopped Kopano Core Presence Daemon.
              Mar 28 16:39:20 felixkc522 systemd[1]: Started Kopano Core Presence Daemon.
              Mar 28 16:39:20 felixkc522 kopano-presence[3528]:  * Running on http://0.0.0.0:1234/ (Press CTRL+C to quit)
              root@felixkc522:~# systemctl stop kopano-presence.service 
              root@felixkc522:~# systemctl status kopano-presence.service 
              ● kopano-presence.service - Kopano Core Presence Daemon
                 Loaded: loaded (/lib/systemd/system/kopano-presence.service; enabled; vendor preset: enabled)
                 Active: inactive (dead) since Tue 2017-03-28 16:39:43 CEST; 1s ago
               Main PID: 3528 (code=exited, status=0/SUCCESS)
              
              Mar 28 16:39:20 felixkc522 systemd[1]: Stopped Kopano Core Presence Daemon.
              Mar 28 16:39:20 felixkc522 systemd[1]: Started Kopano Core Presence Daemon.
              Mar 28 16:39:20 felixkc522 kopano-presence[3528]:  * Running on http://0.0.0.0:1234/ (Press CTRL+C to quit)
              Mar 28 16:39:43 felixkc522 systemd[1]: Stopping Kopano Core Presence Daemon...
              Mar 28 16:39:43 felixkc522 systemd[1]: Stopped Kopano Core Presence Daemon.
              root@felixkc522:~#
              

              PS: please use code blocks instead of screenshots

              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/

              darootler 2 Replies Last reply Reply Quote 0
              • darootler
                darootler @fbartels last edited by darootler

                @fbartels

                I am still having this issue. Any suggestions? Any ideas?

                This is driving me crazing because sometimes Ubuntu won’t shutdown and just hangs during a reboot…

                Regards
                Richard

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

                  I am able to pinn down the problem:

                  kopano-presence and kopano-search is stopping well if “log_method” is set to “file”. If “log_method” is set to “syslog” both services will not stop properly.

                  Can someone confirm this behavior?

                  Regards
                  Richard

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

                    I see the same issue with kopano-search. I have not tried to change my log_method from syslog to file, however.

                    With log_method set to syslog kopano-search also does not stop gracefully for me.

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

                      @fbartels

                      Could you please reopen the related ticket and update it?

                      Thanks
                      Richard

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

                        @darootler I still want to reproduce the error locally so that I have something on hand to give to a developer and verify the fix. Once I had time to do so, I’ll create a new ticket.

                        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/

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

                          @fbartels

                          Sure, thank you.

                          Regards
                          Richard

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

                            ok, with the additional of information that syslog logging has to be enabled for the error to occur I was able to reproduce this isse. https://jira.kopano.io/browse/KC-643 has been created to resolve this issue.

                            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
                            • First post
                              Last post