Current time: 11-25-2024, 09:26 AM Hello There, Guest! (LoginRegister)


Post Reply 
Ticket #203 No daily Backups were made
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #1
Exclamation Ticket #203 No daily Backups were made
I opend this Thread here, because i can´t reply this Text to the Ticket. Always get an Error.
I hope malte will fix it when he is back @ home.


Here is my reply:
___________________________________________________________

Ok, i see there are some wrong characters in the
file "ispcp-backup-all" under /var/www/ispcp/engine/backup.


Code:
#!/usr/bin/perl


Open this File and change it to:

Code:
#!/usr/bin/perl

now it works for me.

The File in the SVN looks good when i "Browsing Source" here on the side.

I had the same Problem, but only on one Server of two that checked out the lastet trunk. On the other Server the file looks good. Both of the running on Debian Etch.

There are more chracters not displayed correct on the Server with this Error:


Code:
ispCP Ï~I (OMEGA)


and the other Server display it correct and there are no wrong characters
in the ispcp-backup-all.


Code:
ispCP Ï (OMEGA)


Could this might be a problem with locales ?
(This post was last modified: 04-20-2007 07:29 PM by BeNe.)
04-20-2007 05:20 PM
Visit this user's website 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: #2
RE: Ticket #203 No daily Backups were made
I can confirm this

the first character in /var/www/ispcp/engine/backup is 0xFEFF (in mcedit you only see it, when moving from the cursor the beginning - in hex-mode you'll see it... - syntax highlighting is disabled in mcedit because of this extra character :-)

The other characters (in this file) seem to be ok...

Seem to be like this since renaming vhcs -> ispCP.
nightly from april 8 is ok, april 14 and april 19 are "broken"

/joximu
04-20-2007 07:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #3
RE: Ticket #203 No daily Backups were made
was malte's fault I've changed it immediately as I saw it.
04-21-2007 08:53 AM
Visit this user's website 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: #4
RE: Ticket #203 No daily Backups were made
But it's still not in SVN (not in the nightly...) - is it?

And: the lock file seems not to be removed when an error happens (unable to connect to SQL server) - I'm searching for the SQL problem, but the lock file should be removed afterwards...)

/joximu
04-21-2007 08:30 PM
Visit this user's website 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: Ticket #203 No daily Backups were made
and something more... :-)

when starting the backup manually:

Argument "" isn't numeric in numeric ne (!=) at /home/_www/ispcp/engine/backup/ispcp-backup-all line 285

(I use /home/_www and not /var/www)

it's a comparison:
($rs,my $rdata2) = doSQL($sql);
...
-> if ($rdata2 != "") {

an array is compared to an empty string...

/joximu
04-21-2007 09:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Ticket #203 No daily Backups were made
@ joximu: Can please Open a Ticket about these problems ?
Is better than here in the Board.
04-23-2007 05:09 PM
Visit this user's website 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: Ticket #203 No daily Backups were made
sure... #207
[edit]
and #208 (the lock file)
[edit]
/joximu
(This post was last modified: 04-23-2007 06:35 PM by joximu.)
04-23-2007 06:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: Ticket #203 No daily Backups were made
Good - thanks!
04-23-2007 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: Ticket #203 No daily Backups were made
I tested to restore some Backups through the GUI under Webtools -> Backup.
Code:
Restore backup

Click Restore button and the system will
restore last daily backup
But no Backup is restore!
I only see this text

Code:
Backup archive scheduled for restoring!

I started "/var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log" manually.
The logfile is empty and no data is restored.

Can somebody confirm that ?
04-24-2007 05:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: Ticket #203 No daily Backups were made
I tested it a second time, installation from Scratch on Debian Etch.
After restoring the Backups - i get this Error in the GUI under Status and no Backup is restored:

Code:
sys_command() | ERROR: External command '/bin/tar --extract --bzip2 --directory=/var/www/virtual/mydomain.tld --file=/var/www/virtual/mydomain.tld/backups/..' returned '2' status !

But it works when i do it by Hand with:

Code:
/bin/tar --extract --bzip2 --directory=/var/www/virtual/mydomain.tld/ --file=/var/www/virtual/mydomain.tld/backups/mydomain.tld-backup-2007.04.24-082457.tar.bz2
04-24-2007 06:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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