error: zoneminder:5 unknown user 'http'

Forum for questions and support relating to the 1.29.x releases only.
Locked
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

error: zoneminder:5 unknown user 'http'

Post 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?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: error: zoneminder:5 unknown user 'http'

Post by knight-of-ni »

Please state how you installed ZoneMinder onto your system
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/
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: error: zoneminder:5 unknown user 'http'

Post by neuronetv »

yum install zoneminder
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: error: zoneminder:5 unknown user 'http'

Post 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.
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/
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: error: zoneminder:5 unknown user 'http'

Post 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.
jterry
Posts: 5
Joined: Tue Jul 19, 2016 8:42 am

Re: error: zoneminder:5 unknown user 'http'

Post 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)

Code: Select all

	create 660 apache apache
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: error: zoneminder:5 unknown user 'http'

Post by knight-of-ni »

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/
Locked