PDA

View Full Version : Problem with pleskbackup command line utility


wintech2003
9th December 2006, 10:40 PM
Hello,

I'm having problem with backing up my server using the pleskbackup command line utility.

When I run the command:

/usr/local/psa/bin/pleskbackup -v all /backup/pleskbackup/fullbackup

It starts by collecting information

------------------------------------------------------------------------
Backup started (28 client(s), 48 domain(s))
Start date: Sun Dec 10 03:34:12 2006
------------------------------------------------------------------------
Phase 1/2: collecting information
[client] xxxx
[domain] xxxxx
[client] yyyyy
[domain] yyyyy


and after finishing it gives me the following error:

Phase 2/2: packing data
Runtime error: Can't use an undefined value as a symbol reference at /usr/local/psa/PMM/agents/shared/Storage/Splitter.pm line 75.


gzip: stdout: Broken pipe


Any ideas?

Thanks in advance,
wintech2003

nb__
13th December 2006, 06:22 AM
Check for free space on disk. I observe absolutely the same behavior in case of there is no free space on partition.

DReffects
22nd December 2006, 07:50 AM
have about 50gigs free space and the same error... backup via plesk itself doesnt work either since upgrading to 8.1

:////

nb__
22nd December 2006, 10:47 PM
/me speaks a boring voice

Check filesystem permissions. May be read-only partition or smth. Use your imagination.

DReffects
23rd December 2006, 07:53 AM
problem is with the -split parameter...

if i don't use it the backup works fine. but how useful is one gigantic 47GB backuip file that wont fit on any external media...

nb__
23rd December 2006, 12:41 PM
Wait-wait-wait, stop. You have 50 Gigs of free disk space, right? Then you try to perform full server backup with splitting?
Describe backup process more verbosely in case of splitting. I can not understand you :( How you may fit 47 Gigs on the same disk?

DReffects
23rd December 2006, 01:16 PM
the site i want to backup has ~47GB

i tried "pleskbackup domains mylargedomain.com" with the --split=700M option and without. with the option it results in the error discussed above, without it it creates the gigantic 47gb file...

i have about 100GB fee disk space WITH the 47GB backed up...

nb__
23rd December 2006, 01:21 PM
Oh, damn.. may be this bug will be fixed in next hotfix :mad:

0031
25th December 2006, 02:34 AM
/usr/local/psa/PMM/agents/shared/Storage/Splitter.pm


70 if ($self->{part_name} eq "-") {
71 $self->{part_fh} = \*STDOUT;
72 } else {
73 $self->{part_fh} = IO::File->new($self->{part_name}, "w");
74 }
75 binmode $self->{part_fh};
76 }


It's obvious that pleskbackup can not open destination file for writing for some reason. I may suspect lack of disk space, permissions or even opened file descriptors or SELinux presence. Is there anything in system logs?

skrieg2
24th January 2007, 01:18 PM
hello
Please be sure that the path /backup/pleskbackup/fullbackup is the path to a file, not a folder.

Try something like /backup/pleskbackup/fullbackup/backup_domain.tld.YYYYMMDD.gz

goanet
12th February 2007, 05:55 PM
I had the same problem, but I could solve it doing this.

I have active SELINUX, so i think that was the problem, but in the base rpm pack of psa 8.1.0 you have psa-selinux-8.1.0-centos4.2.build81061129.22.noarch.rpm.

I think this rpm may be isntalled at last of all psa system, i think this rpm configure the SELINUX to work with PSA. So i do an rpm -ivh --force psa-selinux-8.1.0-centos4.2.build81061129.22.noarch.rpm and then I can do the backup without problems. I know you may think this may be a heavy solution but is all ok, i just did it and now is woking good.

I hope my experience be usefull for you.

ZyanKLee
19th February 2007, 08:07 AM
had the same problem .. solution was:

mkdir -p /backup/pleskbackup

nothing more or less ;)

Thanks for your help