/scripts/cpbackup : write failed, user block limit reached.

eagle

Well-Known Member
Jan 17, 2003
139
0
166
Running cpbackup manually over ftp, I get
write failed, user block limit reached.
while copying homedirectories for some users. The partition is /home where the write failes.

I hope this doesn't mean that the homepartition of each individual user has to be (e.g.) twice the size of the homedirectory, because of the fact that the copy is also written in that directory.

I think that because of this my backup is incomplete. I never had this problem on another server, with a backup on a second internal hdd. The partitions scheme was more or less the same as this one, and it had the same accounts/packages.

Anyone got an idea?
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
*bump*

Am I missing something when I look at this? Is the scripts trying to write to a /cpbackuptmp (which is in /home) that is too small?

If I'm half blind, I would appreciate someone to point me in the right direction. If not, I'd like a hint on how to get a complete backup and not a half. The homedirectories are not copied.

Thanks
 
Last edited:

HendrikM

Active Member
Jun 26, 2004
39
0
156
cpbackup + quotas = broken backups!!!

:eek: I think this is a bug - I am too getting this...

A users quota is set to say 100MB, and currently he is currently using say 95MB.

cpbackup creates a subdir under /home called /cpbackuptmp where all the relevant data for the user is copied to and is then compressed. The compressed file will be copied to the FTP server.

While the user's files and data is being copied into the temp directory the user's quota is exceeded, as his used space is now nearly double - 95MB+95MB=190MB=exceeding his quota, and you end up with an incomplete backup for this user.

cPanel support - PLEASE HELP!!! :confused:
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
I think /cpbackuptemp is also used for local backups, since the data needs to be tarred and the original data will be left untouched. So it makes no difference what you use, local or ftp?

I submitted a ticket.
 

HendrikM

Active Member
Jun 26, 2004
39
0
156
This is crazy!

So we should double-up on all quotas (so the backups will work) and the user thinks he is in heaven, uses the space and backups break again!

Wow! :mad:
 

FWC

Well-Known Member
May 13, 2002
354
0
316
Ontario, Canada
HendrikM said:
This is crazy!

So we should double-up on all quotas (so the backups will work) and the user thinks he is in heaven, uses the space and backups break again!

Wow! :mad:
Settle down.

9.9.8 (build 53)

update to the new pkgacct script which prevents empty homedir backups when a user has reached their
quota, and backups are on the same disk.
 

FWC

Well-Known Member
May 13, 2002
354
0
316
Ontario, Canada
HendrikM said:
And how do I go about upgrading this script? :confused:
I don't know for sure, but I suspect /scripts/updatenow would do the trick. If not, you would need to upgrade CPanel to the latest Edge.
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
FWC said:
Settle down.
I don't know for the others, but that is not the problem I stated.

I don't have users over their limits and I don't have empty home directory backups. Even with accounts with double the space in their homedir, I have a problem.

I don't have a respons on the ticket either....
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
Update CPanel ticket:

We are aware of this issue and it has been previously reported in the following bug entry:

http://bugzilla.cpanel.net/show_bug.cgi?id=1501

This issue should be resolved shortly as we are currently in the process of rewriting the backup system backend scripts.

Let me know if you have any additional questions.
I have to look into what I earlier said, that it also happens with accounts that have more available than double the originale used space. Judging this answer, that would not be the case.