ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Forum for questions and support relating to the 1.29.x releases only.
Locked
asanti
Posts: 6
Joined: Sat Mar 03, 2012 5:47 pm

ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by asanti »

I got this srror after upgrading from 1.28 to 1.129. I did not keep my origan conf file. Big mistake. Any help with this would be greatly appreciated!


ZM_SERVER_HOST set to localhost in config, but not found in Servers table.


Date/Time
Component
Server
PID
Level
Message
File
Line
2016-02-12 22:07:37.131596
web_php

4462
ERR
ZM_SERVER_HOST set to localhost in config, but not found in Servers table.
/usr/share/zoneminder/www/includes/config.php
183
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by PacoLM »

Run "zmupdate.pl -f"

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
asanti
Posts: 6
Joined: Sat Mar 03, 2012 5:47 pm

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by asanti »

Thank you very much for your help. I ran the command, it seemed to work. However, when try to stream an on-board web cam. I get the following errors. I must have something configured incorrectly. I'll keep trying to fix it. If you have any other ideas, I'll give them a shot and report back in case anyone else is having the same issues..

command:
sudo zmupdate.pl -f

result:
Freshening configuration in database
Loading config from DB
Saving config to DB
command:
sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [ OK ]


2016-02-14 14:46:42.552454 web_php 13575 ERR socket_sendto( /var/run/zm/zms-988694s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-14 14:46:38.345481 zmc_dvideo0 13665 INF Monitor-1: 1000 - Capturing at 29.41 fps zm_monitor.cpp 3131
2016-02-14 14:46:30.543979 web_js 13575 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-988694s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-14 14:46:30.483511 web_php 13575 ERR socket_sendto( /var/run/zm/zms-988694s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-14 14:46:18.470335 web_js 13575 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-988694s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-14 14:46:18.412799 web_php 13575 ERR socket_sendto( /var/run/zm/zms-988694s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-14 14:46:08.112201 web_js 13612 WAR Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by asker »

Which OS are you running? A big change from 1.28 to 1.29 is the PATH_ZMS has changed. You need to change it. There are instructions for every OS. For example Step 7 here for Ubuntu http://zoneminder.readthedocs.org/en/st ... buntu-15-x
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
asanti
Posts: 6
Joined: Sat Mar 03, 2012 5:47 pm

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by asanti »

I'm using Linux mint 17.3 "Rosa" I had it working, upgraded to 1.29 from 1.28. I did not keep my default configuration. I purged everthing and re installed. I got it to work, well, at least open up. When I try to stream. I get the errors posted.

2016-02-14 15:17:31.868832 web_js 2776 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-410529s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2016-02-14 15:17:31.810915 web_php 2776 ERR socket_sendto( /var/run/zm/zms-410529s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
2016-02-14 15:17:19.757360 web_js 3069 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-410529s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
asanti
Posts: 6
Joined: Sat Mar 03, 2012 5:47 pm

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by asanti »

well, it looks like I have to dump it and reinstall. I cant seem to find out why so many errors keep coming up. One thing I've learned is, once you install zm and it gets corrupted. it never really seems to works after that. There's always some file that gets left behind that seems to reappear. zm is good when it's working, but it can be very painful when it decides to act up. in any case, it keeps me challenged and I learn something new all the time. Thanks to all who've given advise. Much appreciated.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by SteveGilvarry »

Those socket_sendto errors are just telling you streaming is not working, zms_path most common culprit
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
linforpros
Posts: 39
Joined: Fri Jan 29, 2016 6:12 pm

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by linforpros »

asanti wrote:
ZM_SERVER_HOST set to localhost in config, but not found in Servers table.
Hi,
Same thing in my setup. When I remove localhost from the config file the cameras can be seen in web interface. With local host in the config file cameras failed to stream.
best regards
LinforPros
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Post by knight-of-ni »

This thread appears to be a duplicate of this:
viewtopic.php?f=34&t=24310
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked