Page 1 of 1
No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sat May 14, 2016 9:51 pm
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?
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sat May 14, 2016 11:52 pm
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.
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sun May 15, 2016 5:28 am
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 (336.59 KiB) Viewed 19607 times
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sun May 15, 2016 12:51 pm
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.
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sun May 15, 2016 1:50 pm
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?
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sun May 15, 2016 2:23 pm
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.
Re: No Server ID or Name specified in config. Not using Multi-Server Mode.
Posted: Sun May 15, 2016 4:28 pm
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