Submitted by skelgaard on Sun, 05/04/2014 - 05:13 Pro Licensee
after i did an upgrade from debian 6 to 7.5, i got the following errors for all domains on server.
the awstats seems to not run as it should
Error: Couldn't open file "/home/aieji/domains/aieji.net/awstats/awstats052014.aieji.net.tmp.14540" for write: Permission denied Setup ('/etc/awstats/awstats.aieji.net.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
any help on this ?
Status:
Active
Comments
Submitted by andreychek on Sun, 05/04/2014 - 10:16 Comment #1
Howdy -- what is the output of these two commands:
ls -la /home/aieji/domains/aieji.net/awstats/
mount
Submitted by skelgaard on Sun, 05/04/2014 - 15:01 Pro Licensee Comment #2
# ls -la /home/aieji/domains/aieji.net/awstats/
total 14020
drwxr-xr-x 2 aieji aieji 4096 May 4 08:11 .
drwxr-x--- 10 aieji aieji 4096 May 4 04:04 ..
-rw-r--r-- 1 aieji aieji 155341 Feb 1 2011 awstats012011.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats012011.www.aieji.net.txt -> awstats012011.aieji.net.txt
-rw-r--r-- 1 aieji aieji 326097 Feb 1 2012 awstats012012.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats012012.www.aieji.net.txt -> awstats012012.aieji.net.txt
-rw-r--r-- 1 aieji aieji 517840 Feb 1 2013 awstats012013.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats012013.www.aieji.net.txt -> awstats012013.aieji.net.txt
-rw-r--r-- 1 aieji aieji 443261 Feb 1 08:04 awstats012014.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats012014.www.aieji.net.txt -> awstats012014.aieji.net.txt
-rw-r--r-- 1 aieji aieji 229481 Mar 1 2011 awstats022011.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats022011.www.aieji.net.txt -> awstats022011.aieji.net.txt
-rw-r--r-- 1 aieji aieji 278840 Mar 1 2012 awstats022012.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 21:16 awstats022012.www.aieji.net.txt -> awstats022012.aieji.net.txt
-rw-r--r-- 1 aieji aieji 452703 Mar 1 2013 awstats022013.aieji.net.txt
and alot more
# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=635735,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=509780k,mode=755)
/dev/disk/by-uuid/8ee0b09d-11da-46d5-a9bd-3bf4bff09c2b on / type ext4 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1420340k)
/dev/sdb1 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered,usrquota,grpquota)
Submitted by andreychek on Sun, 05/04/2014 - 22:14 Comment #3
Ah, that's a lot of files -- how about this, what does this command output:
ls -l /home/aieji/domains/aieji.net/awstats/awstats052014*
Submitted by skelgaard on Mon, 05/05/2014 - 01:11 Pro Licensee Comment #4
# ls -l /home/aieji/domains/aieji.net/awstats/awstats052014*
-rw-r--r-- 1 aieji aieji 66478 May 4 08:11 /home/aieji/domains/aieji.net/awstats/awstats052014.aieji.net.txt
lrwxrwxrwx 1 root root 27 May 1 08:08 /home/aieji/domains/aieji.net/awstats/awstats052014.www.aieji.net.txt -> awstats052014.aieji.net.txt
Submitted by skelgaard on Tue, 05/06/2014 - 14:39 Pro Licensee Comment #5
so any suggestions to solve this ?
Submitted by JamieCameron on Tue, 05/06/2014 - 19:53 Comment #6
Coming back to the original error message - when are you seeing this exactly? In the Virtualmin UI, in an email from cron, or elsewhere?
Submitted by andreychek on Tue, 05/06/2014 - 19:59 Comment #7
Try editing
/etc/cron.d/awstats
, and comment out all the lines in it, as they aren't needed.After doing that, does that resolve the problem you're seeing?
Submitted by skelgaard on Wed, 05/07/2014 - 10:55 Pro Licensee Comment #8
ok that was easy... i though that was used by virtualmin so didn't wanna do anything in it ;)
Submitted by andreychek on Wed, 05/07/2014 - 11:25 Comment #9
Virtualmin actually uses different cron jobs for managing Awstats -- that particular one is a generic cron job that isn't needed by Virtual Servers.
I'll review the upgrade documentation we have, and make sure that it's documented in there that this cron job should be commented out if it's not already.