Domoticz gets unaccessible, PI is accessible, what to check ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
zanco
Posts: 15
Joined: Monday 04 January 2016 20:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz gets unaccessible, PI is accessible, what to check ?

Post by zanco »

Hi,

I am running the latest Domoticz on a Rapsbery Pi 2.

It does run great. I have a working smartmeter, and with the RF unit I can control my lights and sunscreen. So far so good.

Every now and then when I call the Domoticz server (either on smartphone or PC) I only get the gray background, nothing else.

I can connect to the Pi with SSH, give it a reboot, and all is well for another couple of days.

What would be the best thing(s) to check before rebooting the Pi ?

Thanks for your time,

Ben
Last edited by zanco on Friday 26 February 2016 11:54, edited 2 times in total.
User avatar
jcjames13009
Posts: 33
Joined: Monday 09 March 2015 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: France / Marseille
Contact:

Re: Domoticz gets unaccessible, PI is accessible, what to check ?

Post by jcjames13009 »

Hi zanco

Maybe your DOmoticz service went "offline". To check if service in running or is stopped use

Code: Select all

sudo service domoticz.sh status
If status return is fail

Code: Select all

"domoticz is not running ... failed!"
than you have to restart Domoticz using

Code: Select all

sudo service domoticz.sh restart
You'll find in the forum some scripts that check Domoticz status and restart it if it's fail automatically.

Hope it'll help

JC
zanco
Posts: 15
Joined: Monday 04 January 2016 20:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz gets unaccessible, PI is accessible, what to check ?

Post by zanco »

Thanks JC !

Domoticz is not running... failed!


But sadly, restarting Domoticz gives domoticzSegmentationFault.

There must be something more went wrong this time, even SSH gives no access.

Edit: Did run fsck on boot, that "fixed some error" but no results for ssh or Domoticx. I viewed the output on boot, and the same message as when trying to run apt-get update appears:

Code: Select all

gssapi_krb5 _2_ mit not found
However, so far, no luck in finding a solution for that.

apt-get install does work, however removing openssh and reinstalling gives still no ssh access.

Edit 2:
sudo apt-get --reinstall install libkrb5support0 seems to have fixed the problem. Both Domoticz and SSH are accessible again.

Edit 3:
This system is making a fool out of me. During testing and re-installing I had the system connected to a monitor and wireless keyboard. After the Edit 2 solution I could connect to SSH and to Domoticz from my smartphone and other PC. I did a nice sudo shutdown and placed the system back near the smartmeter. Now I am back to zero. No SSH, no Domoticz. The PI responds to ping, but has no open ports tells Netscan.

Any help ?



Kind regards,
Ben
zanco
Posts: 15
Joined: Monday 04 January 2016 20:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz gets unaccessible, PI is accessible, what to check ?

Post by zanco »

Hi. If I want to download the image again but want to save my settings from devices, would that be possible ? I hav keyboard and monitor attached and a mounted NAS.

Thanks,

Ben
User avatar
jcjames13009
Posts: 33
Joined: Monday 09 March 2015 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: France / Marseille
Contact:

Re: Domoticz gets unaccessible, PI is accessible, what to check ?

Post by jcjames13009 »

Hi zanco,

Can't help you more but to save your setting there is an option to backup the Domoticz db and then restore it

Go to "Set-up > Setting > Backup/Restore > Backup database" and then once installed again Go to "Set-up > Setting > Backup/Restore > Restore database"

But not sure where the db will be stored in your configuration as I use to do it from my PC.

Hope it'll help

JC
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest