Can't start domoticz service. Error domoticz.sh
Moderator: leecollings
-
- Posts: 30
- Joined: Monday 31 July 2017 15:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Pijnacker
- Contact:
Can't start domoticz service. Error domoticz.sh
Hello,
My system:
Rsp3 strech
Latest stable version domoticz
Rfxcom
Yeelight bulbs
Kaku
Milight gateway & led controller
Everything works fine for a coupe of week now. Yesterday i made an image of the sd card on my Macbook for backup. Place the sd card back in de rsp and start the raspberry.
Ow it says Domoticz is offline. When i connect with ssh and send:
"Sudo service domoticz start" i get the following error.
pi@Domoticz:~ $ sudo service domoticz status
● domoticz.service
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-09-13 04:13:01 CEST; 5min a
Docs: man:systemd-sysv-generator(8)
Process: 1488 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=203
Sep 13 04:13:01 Domoticz systemd[1]: Starting domoticz.service...
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Control process exited, c
Sep 13 04:13:01 Domoticz systemd[1]: Failed to start domoticz.service.
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Unit entered failed state
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Failed with result 'exit-
lines 1-11/11 (END)
So it look like there is something with the domoticz.sh file in /etc/init.d
I hope someone can explain this error and can help me to fix this.
My system:
Rsp3 strech
Latest stable version domoticz
Rfxcom
Yeelight bulbs
Kaku
Milight gateway & led controller
Everything works fine for a coupe of week now. Yesterday i made an image of the sd card on my Macbook for backup. Place the sd card back in de rsp and start the raspberry.
Ow it says Domoticz is offline. When i connect with ssh and send:
"Sudo service domoticz start" i get the following error.
pi@Domoticz:~ $ sudo service domoticz status
● domoticz.service
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-09-13 04:13:01 CEST; 5min a
Docs: man:systemd-sysv-generator(8)
Process: 1488 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=203
Sep 13 04:13:01 Domoticz systemd[1]: Starting domoticz.service...
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Control process exited, c
Sep 13 04:13:01 Domoticz systemd[1]: Failed to start domoticz.service.
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Unit entered failed state
Sep 13 04:13:01 Domoticz systemd[1]: domoticz.service: Failed with result 'exit-
lines 1-11/11 (END)
So it look like there is something with the domoticz.sh file in /etc/init.d
I hope someone can explain this error and can help me to fix this.
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
Run a check on the file system, sounds like the SD Card may be corrupt after you imaged it.
That's the first thing that needs to be ruled out.
That's the first thing that needs to be ruled out.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
-
- Posts: 30
- Joined: Monday 31 July 2017 15:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Pijnacker
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
What is the best way to do that?ben53252642 wrote:Run a check on the file system
Edit:
Should the Domoticz.sh file in /etc/init.d/ be the same as the domticz.sh file in the /domoticz directory?
Cause i copied both to my macbook and i see some strange texts in the domoticz.sh file from /etc/init.d/ who are not in the other domoticz.sh file.
-
- Posts: 30
- Joined: Monday 31 July 2017 15:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Pijnacker
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
Does anyone know if the Domoticz.sh file in /etc/init.d/ has to be the same as the domticz.sh file in the /domoticz directory?
Cause i copied both to my macbook and i see some strange texts in the domoticz.sh file from /etc/init.d/ who are not in the other domoticz.sh file.
Cause i copied both to my macbook and i see some strange texts in the domoticz.sh file from /etc/init.d/ who are not in the other domoticz.sh file.
-
- Posts: 27
- Joined: Thursday 23 August 2018 23:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11590
- Location: Delwijnen
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
Depends what you mean by "strange text"... They don't have to be the same, but it does not make sense if one of them does not make sense
Strange text could indicate sd card corruption. My SD card just died without warning the other day and I heard it is definitely not uncommon... So I would consider myself lucky to get this warning, backup as much as you can and try whether you can repair your card.
E.g: https://www.raspberrypi.org/forums/viewtopic.php?t=8451
Strange text could indicate sd card corruption. My SD card just died without warning the other day and I heard it is definitely not uncommon... So I would consider myself lucky to get this warning, backup as much as you can and try whether you can repair your card.
E.g: https://www.raspberrypi.org/forums/viewtopic.php?t=8451
Using Zwave, Philips Hue, Raspberry Pi, Machinon Theme
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
denman091, considering the number of plugins you are using, I'd suggest to consider running Domoticz on an i3 Intel NUC.
If you search the forum, you will find many threads talking about corrupt SD cards, it's a common issue since they can have very limited write endurance compared to an SSD (eg 2.5 inch or M2).
Not saying that's definitely the cause of this particular problem, it may not be but it sounds like you have a considerable size system. Investing in a NUC might be a good idea.
If you search the forum, you will find many threads talking about corrupt SD cards, it's a common issue since they can have very limited write endurance compared to an SSD (eg 2.5 inch or M2).
Not saying that's definitely the cause of this particular problem, it may not be but it sounds like you have a considerable size system. Investing in a NUC might be a good idea.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
-
- Posts: 30
- Joined: Monday 31 July 2017 15:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Pijnacker
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
i copied the domoticz.sh file from the domoticz directory to /etc/init.d/ this seems to work.
now i have one error when start the service.
I run "Sudo service domoticz start" and then "sudo service domoticz status" then i get the following error:
domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: active (exited) since Fri 2018-09-14 22:05:41 CEST; 1min 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 761 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
Process: 771 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Sep 14 22:05:41 Domoticz systemd[1]: Starting LSB: Home Automation System...
Sep 14 22:05:41 Domoticz domoticz.sh[771]: Segmentation fault
Sep 14 22:05:41 Domoticz systemd[1]: Started LSB: Home Automation System.
So it says "segmentation fault", what can i do to fix this?
now i have one error when start the service.
I run "Sudo service domoticz start" and then "sudo service domoticz status" then i get the following error:
domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: active (exited) since Fri 2018-09-14 22:05:41 CEST; 1min 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 761 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
Process: 771 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Sep 14 22:05:41 Domoticz systemd[1]: Starting LSB: Home Automation System...
Sep 14 22:05:41 Domoticz domoticz.sh[771]: Segmentation fault
Sep 14 22:05:41 Domoticz systemd[1]: Started LSB: Home Automation System.
So it says "segmentation fault", what can i do to fix this?
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
Search Google, read through forum threads and see if you can find a solution for the error..
https://www.google.com/search?q=domotic ... tion+fault
Have you done what multiple people have said and checked the file system for errors?
It is sounding like your installation might be corrupt.
https://www.google.com/search?q=domotic ... tion+fault
Have you done what multiple people have said and checked the file system for errors?
It is sounding like your installation might be corrupt.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
-
- Posts: 3
- Joined: Friday 04 January 2019 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
this is a file right issue. If you use root to start the service, it will work. So don't sudo, but actually become root and then start the service.
-
- Posts: 1
- Joined: Friday 16 August 2019 11:09
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Can't start domoticz service. Error domoticz.sh
Thanks for the sharing
Who is online
Users browsing this forum: No registered users and 0 guests