Page 1 of 1
error: zoneminder:5 unknown user 'http'
Posted: Tue Mar 01, 2016 9:27 am
by neuronetv
I'm running zm1.29 on a centos 6.7 server and every day I'm getting an email from the server that says:
subject: Anacron job 'cron.daily' on centos.svr
/etc/cron.daily/logrotate:
error: zoneminder:5 unknown user 'http'
error: found error in /var/log/zoneminder/*log
, skipping
is this a bug with zm1.29? is there a solution?
Re: error: zoneminder:5 unknown user 'http'
Posted: Tue Mar 01, 2016 1:31 pm
by knight-of-ni
Please state how you installed ZoneMinder onto your system
Re: error: zoneminder:5 unknown user 'http'
Posted: Tue Mar 01, 2016 5:16 pm
by neuronetv
yum install zoneminder
Re: error: zoneminder:5 unknown user 'http'
Posted: Wed Mar 02, 2016 12:56 pm
by knight-of-ni
What I meant was whether or not you installed ZoneMinder through zmrepo. I've learned I can no longer assume these things.
If you are indeed using one of our packages from zmrepo, then this does look like an issue with the package.
I am tied up working on the next version of ZoneMinder, but you can try to fix this yourself.
Try using the logrotate script for CentOS 7:
https://github.com/ZoneMinder/ZoneMinde ... grotate.in
Naturally, you need to manually expand the make macros (and remove the ".in" extension) with values appropriate to your system.
Let me know if it works and I'll use that for CentOS 6 as well.
Re: error: zoneminder:5 unknown user 'http'
Posted: Wed Mar 02, 2016 1:32 pm
by neuronetv
yes it was zmrepo, I didn't know there were other repos's that installed zoneminder. I'll take a look at what you've suggested but I'm not sure I'm advanced enough to do that.
Re: error: zoneminder:5 unknown user 'http'
Posted: Sun Jul 31, 2016 11:45 am
by jterry
Hello
I found this problem today (installed yesterday in a new box) and found the problem.
The file
/etc/logrotate.d/zoneminder contains this:
Code: Select all
/var/log/zoneminder/*log
{
weekly
notifempty
missingok
create 660 http http
}
The problem is that the Apache user/group in CentOS is apache, not http, so i changed the create line http with apache (user and group)
Re: error: zoneminder:5 unknown user 'http'
Posted: Sun Jul 31, 2016 12:30 pm
by knight-of-ni