Jump to content

"ONLINE but some services are down" after agent upgrade


cfool
 Share

Recommended Posts

Hi.  I upgraded to version 1.0.0-182 from -180 which was my original installation.  This is on an RPi.  The basics are working, but I see an orange banner on the web portal with this message:  "ONLINE but some services are down.  Please restart your local agent."

 

I have restarted the RPi a couple of times now and this banner remains.  I am able to see the individual devices in the web portal but all the options in the "Connect" tab are grayed out for devices where I should be able to connect via RDP or a web portal.

How can I troubleshoot this or could it be a licensing issue?

 

Many thanks

Link to comment
Share on other sites

It's not a licensing issue. It seems like one of the process on your installation is not talking to the Cloud. This is the channel on top of which the agent receives the commands from the cloud.

 

Please execute the following commands:

    ps -ef |grep domotz_listener

you should get the PID of a process.

Send a SIGHUP to that process:

    kill -1 <PID>

 

As soon as you do that, you will get a new log created in folder:

/var/log/domotz

Please zip the content of that folder and send over to support@domotz.com. We will have a look at that.

 

Link to comment
Share on other sites

There is one recognized issue on one of our backend component, which affect users that perform a resume of an Agent configuration on the Hardware. We are fixing it. In the next few hours you shouldn't get this error anymore.

 

Thanks for the patience.

Link to comment
Share on other sites

I'm having the same problem.  My Raspberry Pi had crashed a few weeks back and I finally had time to rebuild it. I have Domotz up and running, but I'm getting the orange banner saying it's online but some services are down.  Anything I can do to fix this?

 

Thanks.

-Chris

Link to comment
Share on other sites

On 2/13/2016 at 8:45 PM, cjohlandt said:

I'm having the same problem.  My Raspberry Pi had crashed a few weeks back and I finally had time to rebuild it. I have Domotz up and running, but I'm getting the orange banner saying it's online but some services are down.  Anything I can do to fix this?

 

Thanks.

-Chris

 

Chris. I'm checking your case personally. Please, keep the Raspberry switched on. I'll inform you as soon as your case is fixed as well.

Link to comment
Share on other sites

I have just come across this exact same problem with mine running on a RasPi as well.

 

Worked perfect last week when testing it, now I've installed in its working location I can't use all the features.

 

I've even set up remote SSH to reboot it hoping that will help, but 5 reboots later and I still get the same message.

Link to comment
Share on other sites

Here's a strange symptom to add to the above:

 

I've got the Domotz app on my phone (Android) and the web app open on my computer.

 

While I still had the orange "Please restart...." banner displaying on my phone, the web app was working fine, giving me access to web UIs etc for connected devices. After about 10 minutes, the web app displayed the orange banner and it simultaneously disappeared from my phone.

 

This then allowed me to access web UIs using my phone for about 10 minutes before the opposite happened, i.e.: the orange banner disappeared from the web app and reappeared on the Android app - almost as if it's playing pong between the two connections.

 

 

Alas, while writing this post the orange banner has appeared on both! It seems to ebb and flow randomly, though very often.

Link to comment
Share on other sites

2 hours ago, Rudicircle said:

I have just come across this exact same problem with mine running on a RasPi as well.

 

Worked perfect last week when testing it, now I've installed in its working location I can't use all the features.

 

I've even set up remote SSH to reboot it hoping that will help, but 5 reboots later and I still get the same message.

 

Your case seems different from the rest in this thread. We are continuing on investigations but i have some preliminary questions:

1) which kind of raspbetty you installed domotz on

2) output of command top -n 1

3) output of command cat /proc/cpuinfo

 

1 minute ago, Rudicircle said:

Here's a strange symptom to add to the above:

 

I've got the Domotz app on my phone (Android) and the web app open on my computer.

 

While I still had the orange "Please restart...." banner displaying on my phone, the web app was working fine, giving me access to web UIs etc for connected devices. After about 10 minutes, the web app displayed the orange banner and it simultaneously disappeared from my phone.

 

This then allowed me to access web UIs using my phone for about 10 minutes before the opposite happened, i.e.: the orange banner disappeared from the web app and reappeared on the Android app - almost as if it's playing pong between the two connections.

 

 

Alas, while writing this post the orange banner has appeared on both! It seems to ebb and flow randomly, though very often.

 


As stated above, your case is different from the rest on this thread. It seems your Raspberry Pi is suffering in excessive resource usage, and due to this the Domotz Agent performs continuous restarts (e.g. 1 every 4-5 minutes).

The check from the WebApp and from the Mobile App are not synchronized. So it might happen that when the WebApp checks for the status of the Agent, the mobile App is not, and viceversa. But in case there is the orange bar displayed, there might be an issue on the Domotz Agent.

On the basis of the output requested above, we will provide you with a solution for you to continue working with your Rasbperry

 

Link to comment
Share on other sites

1) which kind of raspbetty you installed domotz on

It is a Raspberry Pi Model B+

 

2) output of command top -n 1

See attached image: raspi_topresponse.png

 

3) output of command cat /proc/cpuinfo

See attached image: raspi_cpuinfo.png

raspi_topresponse.png

raspi_cpuinfo.png

Link to comment
Share on other sites

1 hour ago, Rudicircle said:

1) which kind of raspbetty you installed domotz on

It is a Raspberry Pi Model B+

 

2) output of command top -n 1

See attached image: raspi_topresponse.png

 

3) output of command cat /proc/cpuinfo

See attached image: raspi_cpuinfo.png

raspi_topresponse.png

raspi_cpuinfo.png

 

It seems that your raspberrypi is overload by domotz activity.
With the new version of the Domotz Agent, we have some minor issues on performance, which are particularly critical on old version of Raspberry Pis as your.

 

We can fine-tune our processes to reduce the fingerprint and resource consumption. What I recommend is to perform the following steps on your raspberry:


1. stop the domotz agent:

          /etc/init.d/domotz stop

2. Change configuration to reduce resource usage.

    As a root use on raspberrypi execute the following command:
 

sed -e "s/\"nmap_max_processes\": 10,/\"nmap_max_processes\": 1,/g" -i /opt/domotz/etc/domotz.json
 
sed -e "s/StartPollers=10/StartPollers=1/g" -e "s/# StartTrappers=5/StartTrappers=1/g" -e "s/StartPingers=10/StartPingers=0/g" -e "s/# StartHTTPPollers=1/StartHTTPPollers=0/g" -e "s/# StartDBSyncers=4/StartDBSyncers=1/g" -i /opt/domotz/etc/zabbix_proxy.conf

sed -e "s/# StartAgents=3/StartAgents=1/g" -i /opt/domotz/etc/zabbix_agentd.conf

 

3. Restart the domotz agent:

   

    /etc/init.d/domotz start


After a few minutes orange bar on app should disappear.

Let me know if you experience any other issue.

Link to comment
Share on other sites

I've performed the above tasks (and as an added measure upped the CPU clock using the the built-in overclock feature).

 

It has just come back online so I'll monitor it over the next few hours and report back.

 

Thanks for your help!

Link to comment
Share on other sites

Nearly 24 hours gone and it's still running strong.

 

The above changes has definitely had a positive impact - not once has it gone offline since.

 

I'm unsure whether the CPU clock increase has had any effect, so I'll set it back to normal (700MHz) next week and see how it performs.

Link to comment
Share on other sites

  • 4 months later...

Mmm, this should not happen normally. Something is not working if the problem persists.

 

The cause might be :

- you have some firewall settings that are preventing you from connecting to all of our services

- high resources in the qnap. 

 

Please send me a private message by including the log files. On QNAP they should be here:

 

/share/HDA_DATA/.qpkg/domotz/var/log/domotz

 

or here:

/share/CACHEDEV1_DATA/.qpkg/domotz/var/log/domotz

 

Link to comment
Share on other sites

  • 3 weeks later...

I've started getting the same issue with my PRO box over last few days. If I reboot the PRO then the message clears for a while but then returns again. Is there any way to remotely reboot the box from the client app?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...