Domoticz Offline but domoticz.sh service is running

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Neuvidor2307
Posts: 7
Joined: Wednesday 07 March 2018 23:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Domoticz Offline but domoticz.sh service is running

Post by Neuvidor2307 » Saturday 18 August 2018 14:04

Dear everybody,

Version: 4.9700
Platform: RASPBIAN STRETCH LITE June 2018 on Raspberry pi 3 model B
Plugin/Hardware: Virtual switch + RFXCOM
Description: Domoticz server not available by Webserver (Domoticz Offline message) and Android App (empty box)

I checked the domoticz status by SSH and I always get "Domoticz is Running..."

Code: Select all

pi@raspberrypi:~ $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
   Active: active (exited) since Sat 2018-08-18 08:17:11 CEST; 4h 38min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 570 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/domoticz.service
août 18 08:17:10 raspberrypi systemd[1]: Starting LSB: Home Automation System...
août 18 08:17:11 raspberrypi domoticz.sh[570]: 2018-08-18 08:17:11.281  Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
août 18 08:17:11 raspberrypi domoticz.sh[570]: 2018-08-18 08:17:11.290  Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
août 18 08:17:11 raspberrypi domoticz.sh[570]: 2018-08-18 08:17:11.297  Status: Startup Path: /home/pi/domoticz/
août 18 08:17:11 raspberrypi domoticz.sh[570]: domoticz: Domoticz is starting up....
août 18 08:17:11 raspberrypi domoticz[586]: Domoticz is starting up....
août 18 08:17:11 raspberrypi domoticz[590]: Domoticz running...
août 18 08:17:11 raspberrypi systemd[1]: Started LSB: Home Automation System.
If I simply restart the domoticz service, everything works again (webserver + Android App).

Code: Select all

pi@raspberrypi:~ $ sudo service domoticz.sh stop
pi@raspberrypi:~ $ sudo service domoticz.sh start
pi@raspberrypi:~ $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
   Active: active (running) since Sat 2018-08-18 12:56:38 CEST; 6s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5486 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
  Process: 5527 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/domoticz.service
           └─5534 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443
août 18 12:56:38 raspberrypi systemd[1]: Starting LSB: Home Automation System...
août 18 12:56:38 raspberrypi domoticz.sh[5527]: 2018-08-18 12:56:38.324  Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
août 18 12:56:38 raspberrypi domoticz.sh[5527]: 2018-08-18 12:56:38.324  Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
août 18 12:56:38 raspberrypi domoticz.sh[5527]: 2018-08-18 12:56:38.324  Status: Startup Path: /home/pi/domoticz/
août 18 12:56:38 raspberrypi domoticz.sh[5527]: domoticz: Domoticz is starting up....
août 18 12:56:38 raspberrypi domoticz[5534]: Domoticz running...
août 18 12:56:38 raspberrypi systemd[1]: Started LSB: Home Automation System.
I have changed the SD-card by a new one (Sandisk 16Gb Ultra), completly new RASPBIAN STRETCH LITE and Domoticz v4.9700 installation but I get the same behavior.

Do you have any idea about this issue ?

Because the raspberry is located into my mother house, the best way is to solve the issue by SSH.

User avatar
Laulo7
Posts: 4
Joined: Sunday 18 March 2018 15:35
Target OS: Raspberry Pi
Domoticz version: 3.9030
Location: france (vaucluse)
Contact:

Re: Domoticz Offline but domoticz.sh service is running

Post by Laulo7 » Tuesday 28 August 2018 20:16

Good evening,
check the date and time of the Pi.
If Date / Time < DATE / TIME of the DOMTICZ.DB file, set the date / time.
It's a long way to the top..

Neuvidor2307
Posts: 7
Joined: Wednesday 07 March 2018 23:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz Offline but domoticz.sh service is running

Post by Neuvidor2307 » Tuesday 28 August 2018 23:25

Dear,

As you can read above, the main difference when the system is running or not is that I get "exited" message compared to "running" when I request domoticz.sh status.

System NOK :

Code: Select all

Active: active (exited) since Sat 2018-08-18 08:17:11 CEST; 4h 38min ago


System OK :

Code: Select all

Active: active (running) since Sat 2018-08-18 12:56:38 CEST; 6s ago
I have activated the domoticz.txt log file and I have discovered something strange.
Indeed, the "exited" status seems apear when I get "Error: Domoticz received fatal signal 6" message after a lot of "Error: PROXY: Connect failed, reconnecting: Operation canceled".

Code: Select all

2018-08-28 21:52:09.425  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 21:52:24.428  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 21:52:25.105  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 21:52:33.287  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 21:52:39.456  Error: PROXY: Handshake failed, reconnecting: Operation canceled
2018-08-28 21:52:39.456  Error: Domoticz received fatal signal 6 !...
2018-08-28 21:52:39.466  Error:   /home/pi/domoticz/domoticz() [0x262154]
2018-08-28 21:52:39.466  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x26220c]
2018-08-28 21:52:39.466  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76ca56b0]
2018-08-28 21:52:39.467  Error:   /lib/arm-linux-gnueabihf/libc.so.6(gsignal+0xa0) [0x76ca445c]
2018-08-28 22:01:41.212  Status: RxQueue: queue worker started...
2018-08-28 22:01:43.213  Status: EventSystem: reset all events...
2018-08-28 22:01:43.214  Status: EventSystem: reset all device statuses...
2018-08-28 22:01:43.248  Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2018-08-28 22:01:43.248  Status: EventSystem: Started
2018-08-28 22:01:43.248  Status: EventSystem: Queue thread started...
2018-08-28 22:01:44.216  Status: RFXCOM: Using serial port: /dev/ttyUSB0
2018-08-28 22:01:44.792
2018-08-28 22:01:44.868  subtype           = Interface Response
Sequence nbr      = 2
response on cmnd  = Get Status
Transceiver type  = 433.92MHz
Firmware version  = 1011
Firmware type     = Ext
Hardware version  = 1.3
Undec             off
X10               enabled
ARC               enabled
AC                enabled
HomeEasy EU       disabled
Another remark, the system still in "Running" mode if I get "Status: PROXY: Authenticate result: success." message.

Code: Select all

2018-08-28 22:06:27.327  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:06:42.355  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:06:43.093  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:06:51.276  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:06:57.358  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:07:04.715  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:07:12.360  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:07:22.103  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:07:27.363  Error: PROXY: Handshake failed, reconnecting: Operation canceled
2018-08-28 22:07:30.269  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:07:42.367  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:07:43.724  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:07:57.395  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:08:01.098  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:08:09.264  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:08:12.399  Error: PROXY: Connect failed, reconnecting: Operation canceled
2018-08-28 22:08:19.619  Error: PROXY: Connect failed, reconnecting: Connection refused
2018-08-28 22:08:22.720  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:08:37.010  Status: PROXY: Authenticate result: success.
2018-08-28 22:08:40.107  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:08:48.274  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:09:01.712  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:09:19.100  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:09:27.267  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:09:40.722  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:09:58.093  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:10:06.276  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:10:19.715  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:10:37.104  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:10:45.270  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:10:58.726  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:11:16.097  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:11:24.265  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:11:37.911  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:11:55.092  (RFXCOM) Temp + Humidity (Sonde Salon)
2018-08-28 22:12:03.274  (RFXCOM) Temp + Humidity (Sonde Chambre 1)
2018-08-28 22:12:16.714  (RFXCOM) Temp (Sonde Extérieur)
2018-08-28 22:12:34.102  (RFXCOM) Temp + Humidity (Sonde Salon)
My questions :
Could you explain me how the proxy works ? Where can I check proxy parameters ?
Is there any link with the android app ? (I'm using android app on both phone)

Neuvidor2307
Posts: 7
Joined: Wednesday 07 March 2018 23:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz Offline but domoticz.sh service is running

Post by Neuvidor2307 » Tuesday 28 August 2018 23:28

Laulo7 wrote:
Tuesday 28 August 2018 20:16
Good evening,
check the date and time of the Pi.
If Date / Time < DATE / TIME of the DOMTICZ.DB file, set the date / time.
Dear Laulo7,

Could you help me, how can I check that ? Which command ?

User avatar
Laulo7
Posts: 4
Joined: Sunday 18 March 2018 15:35
Target OS: Raspberry Pi
Domoticz version: 3.9030
Location: france (vaucluse)
Contact:

Re: Domoticz Offline but domoticz.sh service is running

Post by Laulo7 » Sunday 02 September 2018 21:21

Dear Neuvidor2307 ,

1) date / heure Domoticz.db
~/domoticz $ ls -l domoticz.db
sep 2 21:15 domoticz.db

2) Define Date
sudo date -s 02092018

3) Define Time ( > Time DOMOTICZ.DB)
sudo date -s 21:16

4) Sudo Reboot

Enjoy!
It's a long way to the top..

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests