No Server ID or Name specified in config. Not using Multi-Server Mode.

Forum for questions and support relating to the 1.29.x releases only.
Locked
aristosv
Posts: 8
Joined: Sat May 14, 2016 9:36 pm

No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by aristosv »

Hello,

I am using ZoneMinder v1.29.0 on Debian 8.4.
To access the cameras I am using the latest version of the zmNinja app on my iPhone. I noticed that when I do that, the ZoneMinder logs get flooded with the same message.

Code: Select all

No Server ID or Name specified in config. Not using Multi-Server Mode.
So I googled this message and I found that I had to set the ZM_SERVER_HOST parameter in zm.conf. But when I did that, another message started flooding the logs.

Code: Select all

ZM_SERVER_HOST set to ZoneMinder in config, but not found in Servers table.
So I added the server to the servers table, and now ZoneMinder can't even get the video feed from the cameras.

Anyone know what I'm doing wrong here?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by knight-of-ni »

Yeah, you need to look closer at the log. The first message you referred to is not an error message. It is labelled as an INFO message, which indicates your system was, in fact, working just fine in single server mode. You proceeded to break your system by doing what you did in the latter part of your message.

So to fix it, you need to put it back to the way it was before you started pushing buttons.
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/
aristosv
Posts: 8
Joined: Sat May 14, 2016 9:36 pm

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by aristosv »

Thanks for the clarification.

This informational message is shown every second for each camera, for each device accessing the camera (phone, web etc).
I only have 4 cameras, but if someone has 500 cameras, accessed by 10 people I don't even want to imagine what would be going on in their ZoneMinder's log file.

Why is ZoneMinder reporting that its not using multiserver mode? Every second. For each camera. For each device accessing it?
I know there's filters, but why report it?
Untitled.jpg
Untitled.jpg (336.59 KiB) Viewed 19604 times
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by knight-of-ni »

Everyone gets these reoccurring messages. It is by design. What appears to be different with your system is how often you are receiving them.
Something still does not appear to be right with your system. The component file is listed as "undef" which means the variable holding that value is not defined.

If this only happens when you use zmninja, then we should get asker's opinion on this to see if he has seen this.
It would also be helpful to know if bbunge has seen this with testing on Debian.

Looking at the source code, it looks like asker might indeed know something about this. He changed the source code from INFO to Debug:
https://github.com/ZoneMinder/ZoneMinde ... 1d62ed4b4d

That'll make the message go away under normal circumstances, but we still might want to consider making a further change if zmninja really does make that event appear once every second.
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/
aristosv
Posts: 8
Joined: Sat May 14, 2016 9:36 pm

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by aristosv »

ok I just run another test and it seems that this only happens when zmNinja is accessing the cameras.
When I access the cameras from the Montage link in ZoneMinder, the message appears only once for each camera.
So it seems this is an issue with zmNinja.
ZoneMinder somehow interpreters the zmNinja access as continuous?
aristosv
Posts: 8
Joined: Sat May 14, 2016 9:36 pm

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by aristosv »

Just an FYI, ZmView does not have this effect on the log file, so for now I'm going with that, until zmNinja is fixed.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: No Server ID or Name specified in config. Not using Multi-Server Mode.

Post by asker »

Not a zmNinja issue, but an issue nonetheless.
In version 1.29, this message was an "INFO" log and any operation that resulted in accessing ZM's config object would result in this log. This was subsequently move to "Debug" status, so in the next release of ZM you will not see this log unless you switch on Debug. I'd prefer it be gone, though

https://github.com/ZoneMinder/ZoneMinder/issues/1482
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
Locked