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

    Start order of processes

    Kopano Groupware Core
    4
    5
    347
    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.
    • hooge
      hooge last edited by

      Trying to figure out the correct start order:
      If i start first kopano-server it complains about missing kopano search.
      If i start first kopano-search it complains about missing kopano-server (MAPI errors)
      Both variants are flooding the logs.

      Kind regards,
      Thomas

      Sinux 1 Reply Last reply Reply Quote 0
      • Sinux
        Sinux @hooge last edited by

        @hooge change the debug level?

        search - INFO - starting search
        2022-01-16 11:04:49,621 - search - WARNING - could not connect to server at ‘default:’, retrying in 5 sec
        2022-01-16 11:04:55,087 - search - INFO - found previous server sync state: XXX
        2022-01-16 11:04:55,171 - search - INFO - starting incremental sync
        2022-01-16 11:04:55,197 - query - INFO - listening on socket file:///var/run/kopano/search.sock

        more it is not at each server start on search engine

        my start is
        search and after the
        server

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

          Server first. Server will create the socket for Search to connect to.

          I do it in this order and don’t see much noise filling up my logs, but there also isn’t that much of a delay for getting all the necessary services started. You could perhaps take a page out of some of the work that people do with docker continaners and test port/socket availability before the service starts.

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

            As long all your services are able to start they will connect and get going.

            Not an issue as long your server is truly able to reboot ok.

            It will show in logs it can’t connect, but only for a few seconds, then it connects.

            Personally I would stick to the original way the services are installed through the packages. But who knows if there’s a very good way to sort the order of startup, I’d like to try it in test.

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

              In my opinion this is bad behaviour.
              It’s not only “a few seconds”, loading search folders can be up to 10 minutes with our database size.
              There should be some logic for server (re-)starts.

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