Page 1 of 3

amahi dashboard incorrect server status

Posted: Sun Dec 14, 2014 9:57 am
by wvdlee
According to the amahi dashboard under servers my crashplan server and openvpn server have stopped.
But both are functioning, but in the log I see amahi keeps trying to start the crashplan service that is already started. see messages log below.

How do I convince amahi that there is nothing wrong? with crashplan and openvpn?

Dec 14 17:39:24 localhost smbd[869]: [2014/12/14 17:39:24.386972, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
Dec 14 17:39:24 localhost smbd[869]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Dec 14 17:40:06 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:41:36 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:41:54 localhost dnsmasq-dhcp[1166]: DHCPREQUEST(em1) 192.168.178.156 90:e6:ba:c9:e3:ce
Dec 14 17:41:54 localhost dnsmasq-dhcp[1166]: DHCPACK(em1) 192.168.178.156 90:e6:ba:c9:e3:ce mediacenter
Dec 14 17:43:06 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:44:36 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:46:06 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:47:36 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:49:06 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:50:36 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:50:39 localhost nmbd[715]: [2014/12/14 17:50:39.231473, 0] ../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
Dec 14 17:50:39 localhost nmbd[715]: find_domain_master_name_query_fail:
Dec 14 17:50:39 localhost nmbd[715]: Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Dec 14 17:50:39 localhost nmbd[715]: Unable to sync browse lists in this workgroup.
Dec 14 17:52:06 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:52:25 localhost smbd[1255]: [2014/12/14 17:52:25.009910, 0] ../source3/printing/print_cups.c:151(cups_connect)
Dec 14 17:52:25 localhost smbd[1255]: Unable to connect to CUPS server localhost:631 - Overdrachtseindpunt is niet verbonden
Dec 14 17:52:25 localhost smbd[869]: [2014/12/14 17:52:25.010663, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
Dec 14 17:52:25 localhost smbd[869]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Dec 14 17:53:36 localhost systemd[1]: Started LSB: CrashPlan Engine.
Dec 14 17:55:06 localhost systemd[1]: Started LSB: CrashPlan Engine.

Re: amahi dashboard incorrect server status

Posted: Sun Dec 14, 2014 10:05 am
by wvdlee
see what I mean in the picture below. (BTW zoneminder is switched off deliberately)

Re: amahi dashboard incorrect server status

Posted: Sun Dec 14, 2014 12:55 pm
by bigfoot65
Have you tried restarting the services via the dashboard? I have seen this behavior in the past and that usually corrects it.

Re: amahi dashboard incorrect server status

Posted: Sun Dec 14, 2014 4:41 pm
by wvdlee
restarting did work on the crashplan server, it's status is now "active" But the openvpn is still marked "stopped"
I have identical behaviour on a remote amahi server that I use for backup puposes. Also crashplan and openvpn server stopped, and restarting solves the problem for crashplan but not for openvpn. But the server is working normally.

Re: amahi dashboard incorrect server status

Posted: Sun Dec 14, 2014 7:05 pm
by bigfoot65
Try this as root user:

Code: Select all

/usr/bin/systemctl restart openvpn@amahi.service

Re: amahi dashboard incorrect server status

Posted: Mon Dec 15, 2014 2:07 pm
by wvdlee
I did the restart as root, but according to the dashboard the server status is still "stopped"
The service is however functioning normally as openvpn test on the control panel at amahi.org works.

So only the status is wrong, the server is OK.

[ Post made via Android ] Image

Re: amahi dashboard incorrect server status

Posted: Mon Dec 15, 2014 6:36 pm
by bigfoot65
Ok. There are a few things to check. Do the following and post the results:

Code: Select all

cat /etc/monit.d/openvpn\@amahi.conf
Also check the pid file:

Code: Select all

ls -al /var/run/openvpn/amahi.pid
You may need to stop the service, then restart it to get things aligned.

Re: amahi dashboard incorrect server status

Posted: Tue Dec 16, 2014 11:44 am
by wvdlee

Code: Select all

login as: root root@hda's password: Last login: Mon Dec 15 21:52:35 2014 [root@localhost ~]# cat /etc/monit.d/openvpn\@amahi.conf # WARNING - This file was automatically generated on 2014-11-28 16:24:55 +0100 check process openvpn-amahi with pidfile "/var/run/openvpn/amahi.pid" start program = "/usr/bin/systemctl start openvpn@amahi.service" stop program = "/usr/bin/systemctl stop openvpn@amahi.service" [root@localhost ~]# ls -al /var/run/openvpn/amahi.pid -rw-r--r-- 1 root root 6 15 dec 21:53 /var/run/openvpn/amahi.pid [root@localhost ~]# ^C [root@localhost ~]#

Code: Select all

login as: root root@hda's password: Last login: Wed Dec 3 12:37:08 2014 from 192.168.178.219 [root@h113 ~]# cat /etc/monit.d/openvpn\@amahi.conf # WARNING - This file was automatically generated on 2014-11-26 16:26:52 +0100 check process openvpn-amahi with pidfile "/var/run/openvpn/amahi.pid" start program = "/usr/bin/systemctl start openvpn@amahi.service" stop program = "/usr/bin/systemctl stop openvpn@amahi.service" [root@h113 ~]# ls -al /var/run/openvpn/amahi.pid -rw-r--r-- 1 root root 6 15 dec 00:43 /var/run/openvpn/amahi.pid [root@h113 ~]#
these are the results of both my hda's (one at home and one remote for bachup purposes)

Re: amahi dashboard incorrect server status

Posted: Tue Dec 16, 2014 12:08 pm
by bigfoot65
Everything appears as it should. Try this and post the results:

Code: Select all

echo "SELECT pidfile FROM servers WHERE name = 'OpenVPN'" | mysql -uroot -phda hda_production

Re: amahi dashboard incorrect server status

Posted: Tue Dec 16, 2014 1:40 pm
by wvdlee

Code: Select all

login as: willem willem@hda's password: Last login: Mon Dec 15 21:52:14 2014 from android-1eea0fa6ae9cb05b.amahi.net [willem@localhost ~]$ echo "SELECT pidfile FROM servers WHERE name = 'OpenVPN'" | mysql -uroot -phda hda_production [willem@localhost ~]$ su - Wachtwoord: [root@localhost ~]# echo "SELECT pidfile FROM servers WHERE name = 'OpenVPN'" | mysql -uroot -phda hda_production [root@localhost ~]# [root@localhost ~]#
logged in as user and as root, but in both cases no results from the above command. Seems we are getting closer to the answer? what's next?
Oh and BTW, many thanks for helping me out with this problem!