ONLYOFFICE / Docker-CommunityServer

Collaborative system for managing documents, projects, customer relations and emails in one place
MIT License
501 stars 181 forks source link

ONLYOFFICE MailWatchdog Service failed to start #199

Open ydelattre opened 1 year ago

ydelattre commented 1 year ago

Hello !

Since 12.5 ONLYOFFICE MailWatchdog Service failed to start :

[FAILED] Failed to start ONLYOFFICE MailWatchdog Service.
See 'systemctl status onlyofficeMailWatchdog.service' for details.
● onlyofficeMailWatchdog.service - ONLYOFFICE MailWatchdog Service
     Loaded: loaded (/lib/systemd/system/onlyofficeMailWatchdog.service; enabled; vendor preset: enabled)
     Active: activating (start) since Mon 2023-08-21 17:18:36 CEST; 1min 49s ago
   Main PID: 8452 (dotnet)
      Tasks: 28 (limit: 7342)
     Memory: 65.8M
        CPU: 4.089s
     CGroup: /system.slice/docker-902d266e8e2be25af430e52be948e0b1f9a6f8f2f8f86ca3e51f6c91e2490d27.scope/system.slice/onlyofficeMailWatchdog.service
             └─8452 /usr/bin/dotnet /var/www/onlyoffice/Services/MailWatchdog/ASC.Mail.Watchdog.Service.dll --urls=http://0.0.0.0:5031 --pathToConf=/etc/onlyoffice/communityserver --pathToNlogConf=/etc/onlyoffice/communityserver --log:dir=/var/log/onlyoffice/mail --log:name=mail-watchdog --ENVIRONMENT=production

Aug 21 17:18:36 902d266e8e2b systemd[1]: Starting ONLYOFFICE MailWatchdog Service...
Aug 21 17:18:37 902d266e8e2b dotnet[8452]: StackExchange.Redis.Extensions.Core.Implementations.RedisClientFactory[0] There is no name configured for the Redis configuration. A new one will be created 3bf70a2f-a26e-4e23-b8a0-cc3a9f77cda1
Aug 21 17:18:37 902d266e8e2b dotnet[8452]: StackExchange.Redis.Extensions.Core.Implementations.RedisConnectionPoolManager[0] Redis connection error UnableToConnect StackExchange.Redis.RedisConnectionException: UnableToConnect on localhost:6379/Subscription, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 0s ago, last-write: 0s ago, keep-alive: 60s, state: Connecting, mgr: 8 of 8 available, last-heartbeat: never, last-mbeat: 0s ago, global: 0s ago, v: 2.6.90.64945

We do not use the mail module.

Thanks Yoann.

Carazyda commented 1 year ago

Hello @ydelattre Sorry, but we don't provide instructions for connecting an external Redis server. I think you should edit the config file and change the Redis host to your own.

ydelattre commented 1 year ago

Hello @Carazyda Indeed, i though the otherwise as there is REDIS parameters available in entrypoint. maybe it's something that you could considerate ? Thanks for your quick answer. Regards. Yoann

Carazyda commented 1 year ago

Should be fixed with https://github.com/ONLYOFFICE/Docker-CommunityServer/commit/4cdb7d05d3a25c1335a0a8ab4d2237bc5e698278.

ydelattre commented 1 year ago

Hello @Carazyda Great, thx a lot ! Do you think you can do something about : https://github.com/ONLYOFFICE/Docker-CommunityServer/issues/198 This line : https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/a7dd75ed2854fa82f057d7fa6cccf718f27d6961/run-community-server.sh#L500

Should be :

APP_SERVICES_SOCKET_IO_PATH=${APP_SERVICES_DIR}/ASC.Socket.IO/config/config.UNIX.SERVER.json

Thanks in advance. Regards. Yoann.

Carazyda commented 1 year ago

Yes, you are right. Fixed with https://github.com/ONLYOFFICE/Docker-CommunityServer/commit/415e0739bca7af702e1e63801808a5a526defc6d.