Current time: 04-25-2024, 05:26 PM Hello There, Guest! (LoginRegister)


Post Reply 
Backup is failing
Author Message
marcorr Offline


Posts: 2
Joined: Sep 2008
Reputation: 0
Post: #1
Backup is failing
Hi,

I have a problem with the ispcp-backup-all scripts.

When it's running is it stops after a few minutes with this message:

Can't use string ("") as an ARRAY ref while "strict refs" in use at /var/www/ispcp/engine/backup/ispcp-backup-all line 324.

version rc6 running on debian testing

Can anyone helps me out with this?

Thank's

MarcoRR
(This post was last modified: 09-27-2008 09:11 PM by marcorr.)
09-27-2008 07:51 PM
Find all posts by this user Quote this message in a reply
dirkson Offline
Junior Member
*

Posts: 27
Joined: Aug 2008
Reputation: 0
Post: #2
RE: Backup is failing
I'm having this problem now as well.
11-15-2008 01:07 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: Backup is failing
could you check at which domain it is stopping - is there something with the databases (from this domain-user)?
11-15-2008 01:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dirkson Offline
Junior Member
*

Posts: 27
Joined: Aug 2008
Reputation: 0
Post: #4
RE: Backup is failing
After tinkering around with it, it looks like it'll do the first 3-4 domains (it varies), then fail. I can't make out any definining characteristics for the domains is fails on. I can't seem to figure out what is passing it "", or where it's passing it.
11-15-2008 01:57 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Backup is failing
Code:
$sql="SELECT sqld_id, sqld_name FROM sql_database WHERE domain_id=$dmn_id";
                ($rs,my $rdata3) = doSQL($sql);

                foreach(@$rdata3) {
                        my $db_id=@$_[0];
                        my $db_name=@$_[1];

line 324 = the foreach - line...
that's why I think there's something with databases...

/J
11-15-2008 01:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
marcorr Offline


Posts: 2
Joined: Sep 2008
Reputation: 0
Post: #6
RE: Backup is failing
I changed bzip2 in gzip in the script and everything is working fine now.

So or there is a bug in bzip2 or .........
With bzip2 it fails after a big site + 300MB

So or there is a bug in bzip2 or .........

I deleted that big site and it was working again.

I changed bzip2 in gzip in the script and everything is working fine now.
(This post was last modified: 11-15-2008 04:44 AM by marcorr.)
11-15-2008 04:40 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Backup is failing
thanx for this tests!
11-15-2008 07:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dirkson Offline
Junior Member
*

Posts: 27
Joined: Aug 2008
Reputation: 0
Post: #8
RE: Backup is failing
Nope, I'm still getting this exact same error, even after switching to gzip. Now it will do exactly one backup, (~400mb site backup) then fail.

The boss has finally delivered an ultimatum on getting ispcp to ACTUALLY DO BACKUPS (We've been running it for, what, 9 months now? Never been able to get it to do backups.) So I REALLY need your halp, guyz.
03-19-2009 11:29 PM
Find all posts by this user Quote this message in a reply
dirkson Offline
Junior Member
*

Posts: 27
Joined: Aug 2008
Reputation: 0
Post: #9
RE: Backup is failing
Desperation bump. I really don't know what else to try here- The error message is too generic for me to tease much out of it, and my perl skills weren't great to start with.
03-20-2009 08:34 PM
Find all posts by this user Quote this message in a reply
Haeber Offline
Junior Member
*****
Dev Team

Posts: 136
Joined: Nov 2007
Reputation: 7
Post: #10
RE: Backup is failing
Could you try to add the SQL option " LIMIT 1" into the SQL query, like:
Code:
$sql = "SELECT sqld_id, sqld_name FROM sql_database WHERE domain_id=$dmn_id LIMIT 1";

Best Regards
Haeber
(This post was last modified: 03-20-2009 10:00 PM by Haeber.)
03-20-2009 09:56 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)