is this a bug with zm1.29? is there a solution?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
error: zoneminder:5 unknown user 'http'
error: zoneminder:5 unknown user 'http'
I'm running zm1.29 on a centos 6.7 server and every day I'm getting an email from the server that says:
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: error: zoneminder:5 unknown user 'http'
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: error: zoneminder:5 unknown user 'http'
yum install zoneminder
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: error: zoneminder:5 unknown user 'http'
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: error: zoneminder:5 unknown user 'http'
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'
Hello
I found this problem today (installed yesterday in a new box) and found the problem.
The file /etc/logrotate.d/zoneminder contains this:
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)
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
}
Code: Select all
create 660 apache apache
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: error: zoneminder:5 unknown user 'http'
Thanks.
Fixed: https://github.com/ZoneMinder/ZoneMinde ... 0323bc81bb
Fixed: https://github.com/ZoneMinder/ZoneMinde ... 0323bc81bb
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/
All of these can be found at https://zoneminder.blogspot.com/