Page 1 of 1

error: nginx:8 unknown user 'nginx'

Posted: Mon Feb 22, 2016 6:57 am
by Konstantinus
Добрый день!
Мой веб-сервер мне каждый день присылает письмо:

Code: Select all

/etc/cron.daily/logrotate:
error: nginx:8 unknown user 'nginx'
error: found error in /var/log/nginx/*log /var/log/nginx/domains/*log , skipping
Подскажите пожалуйста, что он хочет сказать?

Re: error: nginx:8 unknown user 'nginx'

Posted: Wed Feb 24, 2016 3:34 pm
by imperio
Здравствуйте, можно вывод команды?

Code: Select all

/usr/sbin/logrotate /etc/logrotate.conf -d

Re: error: nginx:8 unknown user 'nginx'

Posted: Wed Feb 24, 2016 6:10 pm
by Konstantinus

Code: Select all

login as:admin
[email protected]'s password:
Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-27-generic x86_64)

admin@konstantinus:~$ /usr/sbin/logrotate /etc/logrotate.conf -d
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apport
reading config file apt
reading config file aptitude
reading config file clamav-daemon
reading config file clamav-freshclam
reading config file dpkg
reading config file exim4-base
reading config file exim4-paniclog
reading config file fail2ban
Ignoring httpd-prerotate because it's not a regular file.
reading config file mysql-server
reading config file nginx
error: nginx:8 unknown user 'nginx'
error: found error in /var/log/nginx/*log /var/log/nginx/domains/*log , skipping
removing last 1 log configs
reading config file php5-fpm
reading config file ppp
reading config file proftpd-basic
reading config file roundcube-core
reading config file rsyslog
reading config file ufw
reading config file unattended-upgrades
reading config file vesta

Handling 24 logs

rotating pattern: /var/log/apport.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/apt/term.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/apt/history.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/aptitude  monthly (6 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/clamav/clamav.log  weekly (12 rotations)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/clamav/freshclam.log  weekly (12 rotations)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/dpkg.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/alternatives.log  monthly (12 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/exim4/mainlog /var/log/exim4/rejectlog  after 1 days                                                                      (10 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/exim4/paniclog  10485760 bytes (10 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/fail2ban.log  weekly (4 rotations)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/mysql.log /var/log/mysql/*log  after 1 days (7 rotati                                                                     ons)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/php5-fpm.log  weekly (12 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/ppp-connect-errors  weekly (4 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/proftpd/proftpd.log
/var/log/proftpd/controls.log
 weekly (7 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/proftpd/xferlog
/var/log/proftpd/xferreport
 monthly (7 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/roundcube/errors
/var/log/roundcube/sendmail
/var/log/roundcube/session
/var/log/roundcube/userlogins
 weekly (52 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/syslog
 after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
 weekly (4 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/ufw.log
 weekly (4 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/unattended-upgrades/unattended-upgrades.log
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
 monthly (6 rotations)
empty log files are not rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /usr/local/vesta/log/*.log  yearly (4 rotations)
empty log files are not rotated, old logs are removed
No logs found. Rotation not needed.

rotating pattern: /var/log/wtmp  monthly (1 rotations)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted

rotating pattern: /var/log/btmp  monthly (1 rotations)
empty log files are rotated, old logs are removed
switching euid to 0 and egid to 109
error: error switching euid to 0 and egid to 109: Operation not permitted
admin@konstantinus:~$