http://192.168.1.250:30080 is not found in servers list.

Forum for questions and support relating to the 1.29.x releases only.
Locked
ngauruhoe
Posts: 25
Joined: Sun Jan 03, 2016 5:26 pm

http://192.168.1.250:30080 is not found in servers list.

Post by ngauruhoe »

Hi,

Every second I get such a message in the ZM log:
  • DATE/TIME
    COMPONENT SERVER PID LEVEL MESSAGE FILE LINE
    2016-02-11 20:32:48.328269 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:47.181114 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:46.036268 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:44.890822 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:43.751215 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:42.603329 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:41.465664 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:40.317698 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
    2016-02-11 20:32:38.157946 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
ZoneMinder's functions.php contains the following piece of code:

Code: Select all

function CORSHeaders() {
	if ( isset( $_SERVER['HTTP_ORIGIN'] ) ) {
		# The following is left for future reference/use.
		$valid = false;
		$servers = dbFetchAll( 'SELECT * FROM Servers' );
		if ( sizeof($servers) <= 1 ) {
			# Only need CORSHeaders in the event that there are multiple servers in use.
			return;
		}
		foreach( dbFetchAll( 'SELECT * FROM Servers' ) as $row ) {
			$Server = new Server( $row );
			if ( $_SERVER['HTTP_ORIGIN'] == $Server->Url() ) {
				$valid = true;
				header("Access-Control-Allow-Origin: " . $Server->Url() );
				header("Access-Control-Allow-Headers: x-requested-with,x-request");
			}
		}
		if ( ! $valid ) {
			[b]Warning( $_SERVER['HTTP_ORIGIN'] . " is not found in servers list." );[/b]
		}
	}
}
Apparently some DB table contains a 'list of servers' and also apparently my ip:port combination is not in that table for some reason. I suspect it may have something to do with the port definition change from 80 to 30080 that I made somewhere (can't remember where). Reason being that the physical machine runs 6 VM's of which ZM is one. There's also a 'real' webserver that already uses port 80.

So, can anybody give me a clue how to get my 192.168.1.250:30080 in this DB table?

Thx a bunch!
Locked