Reseller backup errors

fwpeter

Verified User
Joined
Aug 18, 2006
Messages
103
DA 1.28.0 on Debian Sarge.
Since installation backups from one reseller doesn't finished without errors.

These are the error messages:

First:
Code:
Error writing settings file for user_db1
Error while backing up database user_db1
Error while backing up database user_db1: Cannot find the sql file after backup was run: /home/admin/user_backups/user/backup/user_db1.sql

Second:
Code:
Error Compressing the backup file /home/admin/user_backups/user/backup/home.tar.gz : /bin/tar: /home/admin/user_backups/user/backup/home.tar.gz: Cannot open/bin/tar: .spamassassin/user_spam/[email protected]: Cannot open: Permission denied
/bin/tar: Error is not recoverable: exiting now
: Permission denied
/bin/tar: .spamassassin/user_spam/[email protected]: Cannot open: Permission denied
/bin/tar: .spamassassin/user_spam/[email protected]: Cannot open: Permission denied

... lots of this messages ...

gzip: stdout: Broken pipe
/bin/tar: /home/admin/user_backups/user/backup/home.tar.gz: Wrote only 4096 of 10240 bytes
/bin/tar: Error is not recoverable: exiting now
 
It would be great if somebody from the DA staff can take a look at this, thanks John.
 
It is very easy
I check /var/log/messages - and found inffucient nproc for running backup (I set 64)
Just increase resources by ulimit (man ulimit) and all work.
 
Hello,
Code:
/bin/tar: .spamassassin/user_spam/[email protected]: Cannot open: Permission denied
/bin/tar: .spamassassin/user_spam/[email protected]: Cannot open: Permission denied
Sounds like the /home/username/.spamassassin/user_spam directory doesn't have the correct permisisons. Make sure the user_spam and the .spamassassin directory are both chmod to 771. They should also be chowned to username:mail ... and the spam inboxes within them should be chowned to mail:username and chmod to 660. The spamassassin database files will be chowned to username:usernname

If in doubt, the /usr/local/directadmin/scripts/set_permissions.sh user_homes script should do the trick.

John
 
Back
Top