Highlighted
New Member
Posts: 6
Registered: ‎01-24-2018
Accepted Solution

UCRM does not start after shutdown

Hi, 

 

UCRM, it does not start after turning off the PC, it has happened 2 times. one when switching off the equipment manually and another due to power failure.

 

How can I repair UCRM or start it manually?


Accepted Solutions
Ubiquiti Employee
Posts: 4,155
Registered: ‎12-10-2015
Kudos: 1471
Solutions: 315

Re: UCRM does not start after shutdown

[ Edited ]

Seems the issue has been fixed in the latest docker version 18.0.3.0-ce (2018-03-21)
Please upgrade your docker.

View solution in original post


All Replies
Ubiquiti Employee
Posts: 1,473
Registered: ‎03-21-2016
Kudos: 242
Solutions: 159

Re: UCRM does not start after shutdown

Hello @kaed2010, please take a look at the following topic for possible solutions https://community.ubnt.com/t5/UCRM/UCRM-don-t-start/m-p/2247566/highlight/true#M7278

Also please post the output of the following command "sudo docker info".

Established Member
Posts: 2,044
Registered: ‎07-17-2009
Kudos: 238
Solutions: 6

Re: UCRM does not start after shutdown

@kaed2010  These steps always work for me on Ubuntu 14.04, although it would be nice to know why it happens and a fix found rather than finding out and having to apply the ointment.

 

cd /home/ucrm

sudo docker-compose kill

sudo docker-compose rm -f

sudo docker-compose up -d

sudo service docker restart

 

 

Ubiquiti Employee
Posts: 4,155
Registered: ‎12-10-2015
Kudos: 1471
Solutions: 315

Re: UCRM does not start after shutdown

It seems there is some bug on docker side. The autostart should work normally but recently, there are some cases when the containers are not properly stopped and removed which prevents from the autostart. We hope docker will solve this issue soon, meanwhile when this happens, the containers must be removed manually.
Ubiquiti Employee
Posts: 4,155
Registered: ‎12-10-2015
Kudos: 1471
Solutions: 315

Re: UCRM does not start after shutdown

[ Edited ]

Seems the issue has been fixed in the latest docker version 18.0.3.0-ce (2018-03-21)
Please upgrade your docker.

New Member
Posts: 6
Registered: ‎01-24-2018

Re: UCRM does not start after shutdown

I updated to the latest version of the Docker and the problem was solved.
thanks for your support.

Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

sry, i'm not so familiar with CLI and ubuntu

 

I have UCRM installed on a ubuntu system. The only thing i did was installing ucrm with the how to from ubnt. 

 

Now i needed to restart my VM 8where it is running) and now UCRM don't start. I will try to update Docker first. But what to do. I dont get which version i got :-D 

 

Thanks a lot.

Ubiquiti Employee
Posts: 4,155
Registered: ‎12-10-2015
Kudos: 1471
Solutions: 315

Re: UCRM does not start after shutdown

@MaxNiggemeyer I am happy to help:
use this to upgrade docker:

sudo apt-get update
sudo apt-get upgrade

 

use this to start UCRM up again:

cd /home/ucrm
sudo docker-compose stop
sudo docker-compose rm
sudo docker-compose up -d

From that moment, everything should work including the "autostart after system reboot"

You can check the docker version with "sudo docker -v" command

Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

After the local test (with many problems) we are using UCRM on a own hosted sytem online.

 

it is running without problems for 7 to 8 mounth now. 

 

Today our privider did some work on the energy management and restartet the machine. now the UCRM is not accesible by WebUi anymore. 

 

When i Login with Putty i got following:

(when i use the restart commands):

 

root@XXXXX:/home/ucrm# sudo docker-compose stop
Stopping ucrm_web_app_1 ... done
Stopping ucrm_rabbitmq_1 ... done
Stopping ucrm_elastic_1 ... done
Stopping ucrm_postgresql_1 ... done
root@XXXX:/home/ucrm# sudo docker-compose rm
Going to remove ucrm_web_app_1, ucrm_rabbitmq_1, ucrm_elastic_1, ucrm_postgresql_1
Are you sure? [yN] y
Removing ucrm_web_app_1 ... done
Removing ucrm_rabbitmq_1 ... done
Removing ucrm_elastic_1 ... done
Removing ucrm_postgresql_1 ... done
root@XXXX:/home/ucrm# sudo docker-compose up -d
Creating ucrm_postgresql_1 ...
Creating ucrm_rabbitmq_1 ...
Creating ucrm_elastic_1 ...
Creating ucrm_postgresql_1
Creating ucrm_rabbitmq_1
Creating ucrm_rabbitmq_1 ... done
Creating ucrm_web_app_1 ...
Creating ucrm_web_app_1 ... done

Ubiquiti Employee
Posts: 1,473
Registered: ‎03-21-2016
Kudos: 242
Solutions: 159

Re: UCRM does not start after shutdown

Hello @MaxNiggemeyer, please post the output of the following commands:

 

sudo docker ps

and

sudo docker logs ucrm_web_app_1
Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

for 

sudo docker ps
root@XXX:/home/ucrm# sudo docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                                                                              NAMES
00adf08f375d        ubnt/ucrm-billing:2.15.2      "make server"            13 minutes ago      Up 13 minutes       0.0.0.0:80-81->80-81/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:2055->2055/udp, 9000/tcp   ucrm_web_app_1
af049c5bf976        rabbitmq:3                    "docker-entrypoint.s…"   13 minutes ago      Up 13 minutes       4369/tcp, 5671-5672/tcp, 25672/tcp                                                 ucrm_rabbitmq_1
a482e76ca34a        elastic/elasticsearch:6.2.4   "/usr/local/bin/dock…"   13 minutes ago      Up 13 minutes       9200/tcp, 9300/tcp                                                                 ucrm_elastic_1
088638545a59        postgres:9.5                  "docker-entrypoint.s…"   13 minutes ago      Up 13 minutes       5432/tcp                                                                           ucrm_postgresql_1

Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

And this for the second 

 

(thank you for your quick reply)

 

 

root@XXX:/home/ucrm# sudo docker logs ucrm_web_app_1
/usr/src/ucrm/scripts/init_log.sh
/usr/src/ucrm/scripts/dirs.sh
Tue May  7 11:04:06 UTC 2019 --- Creating directories.
Tue May  7 11:04:07 UTC 2019 --- Done creating directories.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic links.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic link for /usr/src/ucrm/app/data.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic link for /usr/src/ucrm/app/EmailQueue.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic link for /usr/src/ucrm/app/logs.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic link for /usr/src/ucrm/app/letsencrypt_logs.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic link for /usr/src/ucrm/web/uploads.
Tue May  7 11:04:07 UTC 2019 --- Creating symbolic links for /data/updates.
Tue May  7 11:04:07 UTC 2019 --- Publishing current /usr/src/ucrm/app/config/version.yml.
Tue May  7 11:04:07 UTC 2019 --- Done creating symbolic links.
/usr/src/ucrm/scripts/parameters.sh
Tue May  7 11:04:07 UTC 2019 --- Replacing configuration parameters.
Tue May  7 11:04:07 UTC 2019 --- Done replacing configuration parameters.
crontab /tmp/crontabs/server
su-exec nginx /usr/src/ucrm/scripts/database_ready.sh
Tue May  7 11:04:07 UTC 2019 --- Waiting for database.
Tue May  7 11:04:07 UTC 2019 --- Database ready.
su-exec nginx /usr/src/ucrm/scripts/database_migrations_ready.sh
Tue May  7 11:04:07 UTC 2019 --- Waiting for migrations.
Tue May  7 11:04:08 UTC 2019 --- Migrations ready.
/usr/src/ucrm/scripts/ssl.sh
Tue May  7 11:04:08 UTC 2019 --- Creating symbolic links for /etc/nginx/ssl.
/usr/src/ucrm/scripts/web.sh
Tue May  7 11:04:08 UTC 2019 --- Preparing server configuration.
UPDATE 1
Tue May  7 11:04:08 UTC 2019 --- Done preparing server configuration.
Tue May  7 11:04:08 UTC 2019 --- Updating environment variables.
Tue May  7 11:04:14 UTC 2019 --- Done updating environment variables.
Tue May  7 11:04:14 UTC 2019 --- Updating UCRM version.
Tue May  7 11:04:14 UTC 2019 --- Done UCRM version.
Tue May  7 11:04:14 UTC 2019 --- Requesting Elasticsearch re-index.
Waiting for RabbitMQ.
Waiting for RabbitMQ.
Setting up the Rabbit MQ fabric
Tue May  7 11:04:28 UTC 2019 --- Generating static suspension page.
Tue May  7 11:04:29 UTC 2019 --- Done generating static suspension page.
Tue May  7 11:04:29 UTC 2019 --- Initiating wizard user.
Tue May  7 11:04:29 UTC 2019 --- Done initiating wizard user.
Tue May  7 11:04:29 UTC 2019 --- Checking for updates.
13:04:35 ERROR     [app] cURL error 6: Could not resolve host: ucrm.ubnt.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
13:04:40 ERROR     [app] cURL error 6: Could not resolve host: ucrm.ubnt.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Tue May  7 11:04:40 UTC 2019 --- Done checking for updates.
Tue May  7 11:04:40 UTC 2019 --- Re/generating plugin symlinks and config files.
Tue May  7 11:04:41 UTC 2019 --- Done re/generating plugin symlinks and config files.
Tue May  7 11:04:41 UTC 2019 --- Configuring supervisor.
Tue May  7 11:04:41 UTC 2019 --- Forcing production mode.
Tue May  7 11:04:41 UTC 2019 --- Configuring pgbouncer.
Tue May  7 11:04:41 UTC 2019 --- Starting supervisor.
2019-05-07 11:04:41,844 INFO Included extra file "/etc/supervisor.d/network.ini" during parsing
2019-05-07 11:04:41,844 INFO Included extra file "/etc/supervisor.d/rabbitmq.ini" during parsing
2019-05-07 11:04:41,844 INFO Included extra file "/etc/supervisor.d/server.ini" during parsing
2019-05-07 11:04:41,844 INFO Set uid to user 0 succeeded
2019-05-07 11:04:41,859 INFO RPC interface 'supervisor' initialized
2019-05-07 11:04:41,859 INFO supervisord started with pid 343
2019-05-07 11:04:42,864 INFO spawned: 'php-fpm' with pid 345
2019-05-07 11:04:42,867 INFO spawned: 'node' with pid 346
2019-05-07 11:04:42,870 INFO spawned: 'pgbouncer' with pid 347
2019-05-07 11:04:42,872 INFO spawned: 'nginx' with pid 348
2019-05-07 11:04:42,876 INFO spawned: 'search' with pid 349
2019-05-07 11:04:42,878 INFO spawned: 'third_party_apis' with pid 350
2019-05-07 11:04:42,880 INFO spawned: 'draft_generation' with pid 351
2019-05-07 11:04:42,882 INFO spawned: 'send_email' with pid 352
2019-05-07 11:04:42,884 INFO spawned: 'payment_plan' with pid 353
2019-05-07 11:04:42,886 INFO spawned: 'webhook_event_request' with pid 354
2019-05-07 11:04:42,888 INFO spawned: 'ping' with pid 355
2019-05-07 11:04:42,891 INFO spawned: 'send_invoice' with pid 356
2019-05-07 11:04:42,894 INFO spawned: 'sync' with pid 357
2019-05-07 11:04:42,897 INFO spawned: 'cron' with pid 358
2019-05-07 11:04:42,900 INFO spawned: 'rare_actions' with pid 363
2019-05-07 11:04:42,902 INFO spawned: 'netflow' with pid 364
2019-05-07 11:04:42,905 INFO spawned: 'delete' with pid 365
2019-05-07 11:04:42,929 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: search entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: third_party_apis entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: draft_generation entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,930 INFO success: send_email entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: payment_plan entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: webhook_event_request entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: ping entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: send_invoice entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: sync entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: cron entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,931 INFO success: rare_actions entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,932 INFO success: netflow entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-07 11:04:42,932 INFO success: delete entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
13:04:44 INFO      [app] 0 devices accessible.
13:04:44 INFO      [app] ping command started
13:04:44 INFO      [app] start ping 0 / 0 devices
13:04:44 INFO      [app] done (0 devices, took 0s)
13:04:44 INFO      [app] 0 service devices accessible.
13:04:44 INFO      [app] 0 service devices out of sync.
13:04:44 INFO      [app] Sleep for 10 seconds.
listening on *:3000
2019-05-07 11:04:47.917 347 LOG file descriptor limit: 1048576 (H:1048576), max_client_conn: 100, max fds possible: 130
2019-05-07 11:04:47.918 347 LOG listening on 0.0.0.0:5432
2019-05-07 11:04:47.918 347 LOG listening on unix:/tmp/.s.PGSQL.5432
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "ocsp.int-x3.letsencrypt.org" in the certificate "/etc/nginx/ssl/letsencrypt/fullchain.pem"
2019-05-07 11:04:47.995 347 LOG process up: pgbouncer 1.9.0, libevent 2.1.8-stable (epoll), adns: c-ares 1.14.0, tls: OpenSSL 1.0.2r  26 Feb 2019
2019-05-07 11:04:53,007 INFO success: pgbouncer entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
13:04:54 INFO      [app] 0 service devices out of sync.
13:04:54 INFO      [app] Sleep for 10 seconds.
unix:///run/supervisord.sock refused connection
13:05:04 INFO      [app] 0 service devices out of sync.
13:05:04 INFO      [app] Sleep for 10 seconds.
13:05:14 INFO      [app] 0 service devices out of sync.
13:05:14 INFO      [app] Sleep for 10 seconds.
13:05:24 INFO      [app] 0 service devices out of sync.
13:05:24 INFO      [app] Sleep for 10 seconds.
13:05:34 INFO      [app] 0 service devices out of sync.
13:05:34 INFO      [app] Sleep for 10 seconds.
13:05:44 INFO      [app] start ping 0 / 0 devices
13:05:44 INFO      [app] done (0 devices, took 0s)
13:05:44 INFO      [app] 0 service devices out of sync.
13:05:44 INFO      [app] Sleep for 10 seconds.
13:05:54 INFO      [app] 0 service devices out of sync.
13:05:54 INFO      [app] Sleep for 10 seconds.
13:06:04 INFO      [app] 0 service devices out of sync.
13:06:04 INFO      [app] Sleep for 10 seconds.
13:06:14 INFO      [app] 0 service devices out of sync.
13:06:14 INFO      [app] Sleep for 10 seconds.
13:06:24 INFO      [app] 0 service devices out of sync.
13:06:24 INFO      [app] Sleep for 10 seconds.
13:06:34 INFO      [app] 0 service devices out of sync.
13:06:34 INFO      [app] Sleep for 10 seconds.
13:06:44 INFO      [app] start ping 0 / 0 devices
13:06:44 INFO      [app] done (0 devices, took 0s)
13:06:44 INFO      [app] 0 service devices out of sync.
13:06:44 INFO      [app] Sleep for 10 seconds.
13:06:54 INFO      [app] 0 service devices out of sync.
13:06:54 INFO      [app] Sleep for 10 seconds.
13:07:04 INFO      [app] 0 service devices out of sync.
13:07:04 INFO      [app] Sleep for 10 seconds.
13:07:14 INFO      [app] 0 service devices out of sync.
13:07:14 INFO      [app] Sleep for 10 seconds.
13:07:24 INFO      [app] 0 service devices out of sync.
13:07:24 INFO      [app] Sleep for 10 seconds.
13:07:34 INFO      [app] 0 service devices out of sync.
13:07:34 INFO      [app] Sleep for 10 seconds.
13:07:44 INFO      [app] start ping 0 / 0 devices
13:07:44 INFO      [app] done (0 devices, took 0s)
13:07:44 INFO      [app] 0 service devices out of sync.
13:07:44 INFO      [app] Sleep for 10 seconds.
13:07:54 INFO      [app] 0 service devices out of sync.
13:07:54 INFO      [app] Sleep for 10 seconds.
13:08:04 INFO      [app] 0 service devices out of sync.
13:08:04 INFO      [app] Sleep for 10 seconds.
13:08:14 INFO      [app] 0 service devices out of sync.
13:08:14 INFO      [app] Sleep for 10 seconds.
13:08:24 INFO      [app] 0 service devices out of sync.
13:08:24 INFO      [app] Sleep for 10 seconds.
13:08:34 INFO      [app] 0 service devices out of sync.
13:08:34 INFO      [app] Sleep for 10 seconds.
13:08:44 INFO      [app] start ping 0 / 0 devices
13:08:44 INFO      [app] done (0 devices, took 0s)
13:08:44 INFO      [app] 0 service devices out of sync.
13:08:44 INFO      [app] Sleep for 10 seconds.
13:08:54 INFO      [app] 0 service devices out of sync.
13:08:54 INFO      [app] Sleep for 10 seconds.
13:09:04 INFO      [app] 0 service devices out of sync.
13:09:04 INFO      [app] Sleep for 10 seconds.
13:09:14 INFO      [app] 0 service devices out of sync.
13:09:14 INFO      [app] Sleep for 10 seconds.
13:09:24 INFO      [app] 0 service devices out of sync.
13:09:24 INFO      [app] Sleep for 10 seconds.
13:09:34 INFO      [app] 0 service devices out of sync.
13:09:34 INFO      [app] Sleep for 10 seconds.
13:09:44 INFO      [app] start ping 0 / 0 devices
13:09:44 INFO      [app] done (0 devices, took 0s)
13:09:44 INFO      [app] 0 service devices out of sync.
13:09:44 INFO      [app] Sleep for 10 seconds.
2019-05-07 11:09:47.916 347 LOG stats: 0 xacts/s, 0 queries/s, in 0 B/s, out 0 B/s, xact 0 us, query 0 us, wait time 0 us
13:09:54 INFO      [app] 0 service devices out of sync.
13:09:54 INFO      [app] Sleep for 10 seconds.
unix:///run/supervisord.sock refused connection
13:10:04 INFO      [app] 0 service devices out of sync.
13:10:04 INFO      [app] Sleep for 10 seconds.
13:10:15 INFO      [app] 0 service devices out of sync.
13:10:15 INFO      [app] Sleep for 10 seconds.
13:10:25 INFO      [app] 0 service devices out of sync.
13:10:25 INFO      [app] Sleep for 10 seconds.
13:10:35 INFO      [app] 0 service devices out of sync.
13:10:35 INFO      [app] Sleep for 10 seconds.
13:10:44 INFO      [app] start ping 0 / 0 devices
13:10:44 INFO      [app] done (0 devices, took 0s)
13:10:45 INFO      [app] 0 service devices out of sync.
13:10:45 INFO      [app] Sleep for 10 seconds.
13:10:55 INFO      [app] 0 service devices out of sync.
13:10:55 INFO      [app] Sleep for 10 seconds.
13:11:05 INFO      [app] 0 service devices out of sync.
13:11:05 INFO      [app] Sleep for 10 seconds.
13:11:15 INFO      [app] 0 service devices out of sync.
13:11:15 INFO      [app] Sleep for 10 seconds.
13:11:25 INFO      [app] 0 service devices out of sync.
13:11:25 INFO      [app] Sleep for 10 seconds.
13:11:35 INFO      [app] 0 service devices out of sync.
13:11:35 INFO      [app] Sleep for 10 seconds.
13:11:44 INFO      [app] start ping 0 / 0 devices
13:11:44 INFO      [app] done (0 devices, took 0s)
13:11:45 INFO      [app] 0 service devices out of sync.
13:11:45 INFO      [app] Sleep for 10 seconds.
13:11:55 INFO      [app] 0 service devices out of sync.
13:11:55 INFO      [app] Sleep for 10 seconds.
13:12:05 INFO      [app] 0 service devices out of sync.
13:12:05 INFO      [app] Sleep for 10 seconds.
13:12:15 INFO      [app] 0 service devices out of sync.
13:12:15 INFO      [app] Sleep for 10 seconds.
13:12:25 INFO      [app] 0 service devices out of sync.
13:12:25 INFO      [app] Sleep for 10 seconds.
13:12:35 INFO      [app] 0 service devices out of sync.
13:12:35 INFO      [app] Sleep for 10 seconds.
13:12:44 INFO      [app] start ping 0 / 0 devices
13:12:44 INFO      [app] done (0 devices, took 0s)
13:12:45 INFO      [app] 0 service devices out of sync.
13:12:45 INFO      [app] Sleep for 10 seconds.
13:12:55 INFO      [app] 0 service devices out of sync.
13:12:55 INFO      [app] Sleep for 10 seconds.
13:13:05 INFO      [app] 0 service devices out of sync.
13:13:05 INFO      [app] Sleep for 10 seconds.
13:13:15 INFO      [app] 0 service devices out of sync.
13:13:15 INFO      [app] Sleep for 10 seconds.
13:13:25 INFO      [app] 0 service devices out of sync.
13:13:25 INFO      [app] Sleep for 10 seconds.
13:13:35 INFO      [app] 0 service devices out of sync.
13:13:35 INFO      [app] Sleep for 10 seconds.
13:13:44 INFO      [app] start ping 0 / 0 devices
13:13:44 INFO      [app] done (0 devices, took 0s)
13:13:45 INFO      [app] 0 service devices out of sync.
13:13:45 INFO      [app] Sleep for 10 seconds.
13:13:55 INFO      [app] 0 service devices out of sync.
13:13:55 INFO      [app] Sleep for 10 seconds.
13:14:05 INFO      [app] 0 service devices out of sync.
13:14:05 INFO      [app] Sleep for 10 seconds.
13:14:15 INFO      [app] 0 service devices out of sync.
13:14:15 INFO      [app] Sleep for 10 seconds.
13:14:25 INFO      [app] 0 service devices out of sync.
13:14:25 INFO      [app] Sleep for 10 seconds.
13:14:35 INFO      [app] 0 service devices out of sync.
13:14:35 INFO      [app] Sleep for 10 seconds.
13:14:44 INFO      [app] start ping 0 / 0 devices
13:14:44 INFO      [app] done (0 devices, took 0s)
13:14:45 INFO      [app] 0 service devices out of sync.
13:14:45 INFO      [app] Sleep for 10 seconds.
2019-05-07 11:14:47.917 347 LOG stats: 0 xacts/s, 0 queries/s, in 0 B/s, out 0 B/s, xact 0 us, query 0 us, wait time 0 us
13:14:55 INFO      [app] 0 service devices out of sync.
13:14:55 INFO      [app] Sleep for 10 seconds.
unix:///run/supervisord.sock refused connection
13:15:05 INFO      [app] 0 service devices out of sync.
13:15:05 INFO      [app] Sleep for 10 seconds.
13:15:15 INFO      [app] 0 service devices out of sync.
13:15:15 INFO      [app] Sleep for 10 seconds.
13:15:25 INFO      [app] 0 service devices out of sync.
13:15:25 INFO      [app] Sleep for 10 seconds.
13:15:35 INFO      [app] 0 service devices out of sync.
13:15:35 INFO      [app] Sleep for 10 seconds.
13:15:44 INFO      [app] start ping 0 / 0 devices
13:15:44 INFO      [app] done (0 devices, took 0s)
13:15:45 INFO      [app] 0 service devices out of sync.
13:15:45 INFO      [app] Sleep for 10 seconds.
13:15:55 INFO      [app] 0 service devices out of sync.
13:15:55 INFO      [app] Sleep for 10 seconds.
13:16:05 INFO      [app] 0 service devices out of sync.
13:16:05 INFO      [app] Sleep for 10 seconds.
13:16:15 INFO      [app] 0 service devices out of sync.
13:16:15 INFO      [app] Sleep for 10 seconds.
13:16:25 INFO      [app] 0 service devices out of sync.
13:16:25 INFO      [app] Sleep for 10 seconds.
13:16:35 INFO      [app] 0 service devices out of sync.
13:16:35 INFO      [app] Sleep for 10 seconds.
13:16:44 INFO      [app] start ping 0 / 0 devices
13:16:44 INFO      [app] done (0 devices, took 0s)
13:16:45 INFO      [app] 0 service devices out of sync.
13:16:45 INFO      [app] Sleep for 10 seconds.
13:16:55 INFO      [app] 0 service devices out of sync.
13:16:55 INFO      [app] Sleep for 10 seconds.
13:17:05 INFO      [app] 0 service devices out of sync.
13:17:05 INFO      [app] Sleep for 10 seconds.
13:17:15 INFO      [app] 0 service devices out of sync.
13:17:15 INFO      [app] Sleep for 10 seconds.
13:17:25 INFO      [app] 0 service devices out of sync.
13:17:25 INFO      [app] Sleep for 10 seconds.
13:17:35 INFO      [app] 0 service devices out of sync.
13:17:35 INFO      [app] Sleep for 10 seconds.
13:17:44 INFO      [app] start ping 0 / 0 devices
13:17:44 INFO      [app] done (0 devices, took 0s)
13:17:45 INFO      [app] 0 service devices out of sync.
13:17:45 INFO      [app] Sleep for 10 seconds.
13:17:55 INFO      [app] 0 service devices out of sync.
13:17:55 INFO      [app] Sleep for 10 seconds.
13:18:05 INFO      [app] 0 service devices out of sync.
13:18:05 INFO      [app] Sleep for 10 seconds.
13:18:15 INFO      [app] 0 service devices out of sync.
13:18:15 INFO      [app] Sleep for 10 seconds.
13:18:25 INFO      [app] 0 service devices out of sync.
13:18:25 INFO      [app] Sleep for 10 seconds.
13:18:35 INFO      [app] 0 service devices out of sync.
13:18:35 INFO      [app] Sleep for 10 seconds.
13:18:44 INFO      [app] start ping 0 / 0 devices
13:18:44 INFO      [app] done (0 devices, took 0s)
13:18:45 INFO      [app] 0 service devices out of sync.
13:18:45 INFO      [app] Sleep for 10 seconds.
13:18:55 INFO      [app] 0 service devices out of sync.
13:18:55 INFO      [app] Sleep for 10 seconds.
13:19:06 INFO      [app] 0 service devices out of sync.
13:19:06 INFO      [app] Sleep for 10 seconds.
13:19:16 INFO      [app] 0 service devices out of sync.
13:19:16 INFO      [app] Sleep for 10 seconds.
13:19:26 INFO      [app] 0 service devices out of sync.
13:19:26 INFO      [app] Sleep for 10 seconds.
13:19:36 INFO      [app] 0 service devices out of sync.
13:19:36 INFO      [app] Sleep for 10 seconds.
13:19:45 INFO      [app] start ping 0 / 0 devices
13:19:45 INFO      [app] done (0 devices, took 0s)
13:19:46 INFO      [app] 0 service devices out of sync.
13:19:46 INFO      [app] Sleep for 10 seconds.
2019-05-07 11:19:48.381 347 LOG stats: 0 xacts/s, 0 queries/s, in 0 B/s, out 0 B/s, xact 0 us, query 0 us, wait time 0 us
root@XXX:/home/ucrm#
Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

Ok, tried Ui access again. Now it is working.

 

I read somewhere that i took yometime after docker reboot that the UI come back online ?! 

 

Maybe that was the problem ? 

 

for me it is fixed at first. Thank you very much for your instant reply Man Happy 

Ubiquiti Employee
Posts: 1,473
Registered: ‎03-21-2016
Kudos: 242
Solutions: 159

Re: UCRM does not start after shutdown

Hi @MaxNiggemeyer, glad to hear it works now. Yes, it's certainly possible, that you just did not wait enough time after restart.

 

However there is an error regarding supervisor in the log you sent, so just to be safe I would remove the UCRM container completely and let it boot with a clean slate, as the power outage could have broken something (i.e. something did not stop properly).

 

You can do this by running the following commands:

cd /home/ucrm
sudo docker-compose down
sudo docker-compose up -d

The main difference is in using the "down" command instead of "stop", as this actually removes the container and then let's it start completely anew.

Emerging Member
Posts: 67
Registered: ‎05-31-2016
Kudos: 4
Solutions: 1

Re: UCRM does not start after shutdown

I tried this command and was confused cause it asked me tht i will remove the container. But i did it. 

 

Should i do it again ? 

 

I usesd your advice from another post with exact theese commands. 

Ubiquiti Employee
Posts: 1,473
Registered: ‎03-21-2016
Kudos: 242
Solutions: 159

Re: UCRM does not start after shutdown

@MaxNiggemeyer Sorry, I did not read your post properly, the "docker-compose rm" is absolutely fine and enough, the "down" is just shortcut for "stop" and "rm".

In that case everything should be fine, we'll look into the "unix:///run/supervisord.sock refused connection" from the log just to be sure, but you should be good to go.