Home > parent directory > error error running postrotate script for /var/log/syslog

Error Error Running Postrotate Script For /var/log/syslog

Contents

Forums Hosting Security and Technology error running postrotate script, all details included If this is your first visit, be sure to check out the FAQ by clicking the link above. You may logrotate parent directory has insecure permissions have to register before you can post: click the register link above to proceed. ubuntu logrotate because parent directory has insecure permissions To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 su root syslog Thread: error running postrotate script, all details included Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 02-05-2006,02:44

Logrotate Log Does Not Need Rotating

PM #1 cyx View Profile View Forum Posts View Forum Threads Newbie Join Date Sep 2003 Posts 27 error running postrotate script, all details included I have a problem with my logrotate, everytime it tries to rotate the logs, it sends me this email: /etc/cron.daily/logrotate: error: error running postrotate script error: error running postrotate script error: error running postrotate script error: error running postrotate script error: error running postrotate script logrotate su option error: error running shared postrotate script for /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron This is how my /etc/logrotate.d/syslog looks like: Code: /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript } This is how my /etc/logrotate.conf looks like: Code: weekly rotate 4 create include /etc/logrotate.d /var/log/wtmp { monthly create 0664 root utmp rotate 1 } This is how my /etc/cron.daily/logrotate looks like: Code: #!/bin/sh /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit 0 Everything looks fine, right? Then what's the prob? All my log files are in /var/log/ and most of them DONT get rotated. Here is a look into some of the files in /var/log/ (WHAT IS THAT strange wtmp thing?) ... [cut] ... -rw------- 1 root root 0 Feb 5 04:02 maillog -rw------- 1 root root 0 Jan 29 04:02 maillog.1 -rw------- 1 root root 0 Jan 22 04:02 maillog.2 -rw------- 1 root root 0 Jan 15 04:02 maillog.3 -rw------- 1 root root 2199284 Feb 5 13:33 maillog.4 -rw------- 1 root root 0 Feb 5 04:02 messages -rw------- 1 root root 0 Jan 29 04:02 messages.1 -rw------- 1 root root 0 Jan 22 04:02 messages

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super http://www.webhostingtalk.com/showthread.php?t=484243 User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How can logrotate http://superuser.com/questions/1028498/how-can-logrotate-execution-result-in-service-not-found execution result in “service: not found”? up vote 0 down vote favorite I am trying to understand the output of my logrotate script execution: error: error running shared postrotate script for '/var/log/nginx/*.log ' logrotate_script: 2: logrotate_script: service: not found error: error running non-shared postrotate script for /var/log/syslog of '/var/log/syslog ' logrotate_script: 2: logrotate_script: service: not found error: error running shared postrotate script for '/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 ' As far as I understand, logrotate encounters an error while running the postrotate scripts for nginx and syslog, respectively service nginx rotate >/dev/null and service rsyslog rotate > /dev/null. Logrotate script (/etc/logrotate.d/nginx) /var/log/nginx/*.log { daily missingok rotate 365 compress delaycompress notifempty create 0640 www-data www-data olddir /var/log/archives/nginx sharedscripts prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ run-parts /etc/logrotate.d/httpd-prerotate; \ fi \ endscript postrotate invoke-rc.d nginx rotate >/dev/null 2>&

communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you http://askubuntu.com/questions/572971/ubuntu-14-04-logrotate-does-not-rotate-var-log-rsyslog-config might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting https://ubuntuforums.org/archive/index.php/t-1441929.html ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; parent directory it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Ubuntu 14.04 - logrotate does not rotate /var/log/* (rsyslog config) up vote 3 down vote favorite I have a bunch of Ubuntu 14.04 servers I manage parent directory has where logrotate is not rotating anything under /var/log/*. I'm going to assume its an issue with the /etc/logrotate.d/rsyslog as I see other entries in /etc/logrotate.d/ rotating logs properly. These servers are deployed using CHEF. However I don't see anything in the recipes, etc. that are referencing any functional changes to logrotate. There are a few scripts added to /etc/logrotate.d and those scripts do run every day as expected. Is it possible that one script under /etc/logrotate.d could affect another (I wouldn't think so)? Similar servers using the same CHEF recipes are configured on Ubuntu 12.04 boxes do not have this symptom of logs not rotating under /var/log/*. Running /usr/sbin/logrotate -d /etc/logrotate.conf, I get the following (omitting anything not rsyslog related): 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 104 considering log /var/log/syslog log does not need rotating switching euid to 0 and egid to 0 rotating pattern: /var/log/mail.info /var/

2010, 03:59 PMI can't get my apache2 log files to rotate on an Ubuntu 8.04 64-bit server install. Does anybody know of logrotate creates an error log somewhere by default? Here's my /etc/logrotate.d/apache2 file if someone has any insight if I am doing something wrong. Thanks. /var/log/apache2/*.log /var/log/apache2/portal/*.log { weekly missingok rotate 52 nocompress notifempty create 640 root adm sharedscripts postrotate if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then /etc/init.d/apache2 reload > /dev/null fi endscript } tr333March 30th, 2010, 12:13 PMI don't know much about logrotate, but the man page says it's run daily via a cronjob at /etc/cron.daily/logrotate. It looks like cron outputs logs to /var/log/syslog, so you can check that for errors. zgrep 'CRON' /var/log/syslog* osxMarch 30th, 2010, 04:25 PMI don't know much about logrotate, but the man page says it's run daily via a cronjob at /etc/cron.daily/logrotate. It looks like cron outputs logs to /var/log/syslog, so you can check that for errors. zgrep 'CRON' /var/log/syslog* Thanks. Just tried that and still no luck. There are entries related to cron, and I see lots of them for cron.hourly and some for cron.weekly, but they all relate to php5. None are for apache2. tr333March 31st, 2010, 12:01 AMI just installed apache2 in a VM and looked at the default logrotate file for it. Can't really see anything in your file that would cause it to fail. Check /etc/crontab and see if the line for run-parts on /etc/cron.daily is commented out or missing? That's where the daily crontab files (/etc/cron.daily/*) are run from, alongside the cron.hourly, cron.weekly and cron.monthly files. Also, check the contents of /var/lib/logrotate/status. That shows the current state of rotated logs. If you have edited /etc/logrotate.conf, check if it still has the line "include /etc/logrotate.d" to include all the files in /etc/logrotate.d when do

 

Related content

error 39170

Error table id toc tbody tr td div id toctitle Contents div ul li a href Parent Directory Is World Writable But Not Sticky Bundle Install a li li a href Chmod t a li ul td tr tbody table p Error are caused by misconfigured system files So from my experience If you received a Windows Error message then there relatedl is a chance that your computer has registry problems The brew parent directory is world writable but not sticky Windows Windows Error are easy to repair By downloading and running the registry parent directory is world writable but

error monitoring parent directory

Error Monitoring Parent Directory table id toc tbody tr td div id toctitle Contents div ul li a href Unable To Create Directory Wp-content uploads Wordpress a li li a href Is Its Parent Directory Writable By The Server Xampp a li li a href The Uploaded File Could Not Be Moved To Wp-content uploads a li ul td tr tbody table p p p Defense Large Public Venues Skype for Business Small and Medium Business Mobile Engagement Products Networking Overview Access Points Network Management Controllers relatedl Wi-Fi Analytics Outdoor Mesh Switches Data Center Security unable to create directory wp-content