Page 1 of 1

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

Posted: Sat Feb 13, 2016 4:15 am
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

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

Posted: Sat Feb 13, 2016 11:09 pm
by PacoLM
Run "zmupdate.pl -f"

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

Posted: Sun Feb 14, 2016 8:51 pm
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()

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

Posted: Sun Feb 14, 2016 8:54 pm
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

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

Posted: Sun Feb 14, 2016 9:18 pm
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

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

Posted: Sun Feb 14, 2016 10:06 pm
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.

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

Posted: Mon Feb 15, 2016 9:32 am
by SteveGilvarry
Those socket_sendto errors are just telling you streaming is not working, zms_path most common culprit

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

Posted: Wed Feb 17, 2016 3:15 am
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.

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

Posted: Wed Feb 17, 2016 9:01 pm
by knight-of-ni
This thread appears to be a duplicate of this:
viewtopic.php?f=34&t=24310