Backups Disappearing?

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Backups Disappearing?

Postby gboudreau » Sun Jul 04, 2010 5:43 am

Here's what I understand from that log:

The backup ended on or just before 23:15:31.
The backup was writing to a file named quarkbackup7_3_20101.tib
When the backup completed, that file was renamed (probably by the backup software) to remove the ending 1: quarkbackup7_3_20101.tib > quarkbackup7_3_2010.tib

When GH tried to work on that file, it seems it's not able to read the file size, owner, or permissions (see the errors about the filesize, fileowner, filegroup, fileperms that says 'stat failed').

Execute the following on your HDA (as one command):

Code: Select all

echo '<?php $file="/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib"; var_dump($file); passthru("ls -la " . dirname($file)); passthru("ls -la \"$file\""); var_dump(filesize($file)); var_dump(fileowner($file)); var_dump(filegroup($file)); var_dump(fileperms($file)); ?>' | php
This should check if the file still exists, and try to output it's size, owner and permissions.

Also, please verify the backup file still exists. If it does, make sure the filename really is "quarkbackup7_3_2010.tib"

Also, please execute this, to check what other GH tasks are queued, after the one that can't seem to get executed:

Code: Select all

sqlite3 /var/cache/greyhole.sqlite 'select * from tasks order by id' | fpaste
Thanks.
- Guillaume Boudreau

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Sun Jul 04, 2010 9:09 am

I'm about to follow your instructions, I just want to answer your questions first.

Yes, the backup ended at 23:15 or so.
I don't remember the initial name of the file, but I have seen that extra "1" on the end in previous backups.
The final name of the backup was quarkbackup7_3_2010.tib.

The backup file does not exist in the share anymore: it was deleted promptly at midnight.
the size of the backup when it existed was 49 Gig.

By the way, this happened when I tried other backup software too, not just TrueImage.

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Sun Jul 04, 2010 9:18 am

hi, result of the echo:

[root@AMAHI ~]# echo '<?php $file="/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib"; var_dump($file); passthru("ls -la " . dirname($file)); passthru("ls -la \"$file\""); var_dump(filesize($file)); var_dump(fileowner($file)); var_dump(filegroup($file)); var_dump(fileperms($file)); ?>' | php
string(63) "/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib"
total 8
drwxrwxr-x 2 bbuzzard users 4096 2010-07-04 00:04 .
drwxr-xr-x 9 root root 4096 2010-06-27 00:43 ..
lrwxrwxrwx 1 root root 59 2010-06-28 23:59 AcronisMedia.iso -> /var/hda/files/drives/sdb1/gh/Quark_Backup/AcronisMedia.iso
ls: cannot access /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib: No such file or directory
PHP Warning: filesize(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: fileowner(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: filegroup(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: fileperms(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)

The result of the next command:

[root@AMAHI ~]# sqlite3 /var/cache/greyhole.sqlite 'select * from tasks order by id' | fpaste
No text to send.
[root@AMAHI ~]#

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Backups Disappearing?

Postby gboudreau » Sun Jul 04, 2010 10:12 am

OK, I was expecting the file to still be present, since you didn't manually remove the transaction with ID 0.
Can you please re-do a backup, and re-execute the above commands (both echo ... and sqlite3 ...) once the backup is complete?
Allow just enough time after the backup is complete for Greyhole to try to process it (a minute maybe), then run the commands.
At that point, I think the backup file would still be there, and that's what I want to see: why can't Greyhole correctly work with that file, if it's really there.

Thanks again for your time!
- Guillaume Boudreau

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Sun Jul 04, 2010 10:47 am

hey, no, thank you for your time!...You are adding the value to this process, not me!

I'll run the backup later today or this evening. I'm going on holiday for a week starting tomorrow, so I won't be near my hda until July 10 or so, but I'll keep up to date on the forum.

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Sun Jul 04, 2010 8:59 pm

OK, 1 minute after backup:

root@AMAHI ~]# echo '<?php $file="/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib"; var_dump($file); passthru("ls -la " . dirname($file)); passthru("ls -la \"$file\""); var_dump(filesize($file)); var_dump(fileowner($file)); var_dump(filegroup($file)); var_dump(fileperms($file)); ?>' | php
string(63) "/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib"
total 49373584
drwxrwxr-x 2 bbuzzard users 4096 2010-07-04 23:24 .
drwxr-xr-x 9 root root 4096 2010-06-27 00:43 ..
lrwxrwxrwx 1 root root 59 2010-06-28 23:59 AcronisMedia.iso -> /var/hda/files/drives/sdb1/gh/Quark_Backup/AcronisMedia.iso
-rwxrw-r-- 1 bbuzzard users 50509166592 2010-07-04 23:53 quarkbackup7_4_2010.tib
ls: cannot access /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib: No such file or directory
PHP Warning: filesize(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: fileowner(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: filegroup(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)
PHP Warning: fileperms(): stat failed for /var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_3_2010.tib in - on line 1
bool(false)

and the sqlite3:

http://fpaste.org/WoJO/

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Backups Disappearing?

Postby gboudreau » Mon Jul 05, 2010 3:40 am

Arg! I forgot to tell you to replace the filename in the "echo ..." command with the new filename of your backup file!

Code: Select all

echo '<?php $file="/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_4_2010.tib"; var_dump($file); passthru("ls -la " . dirname($file)); passthru("ls -la \"$file\""); var_dump(filesize($file)); var_dump(fileowner($file)); var_dump(filegroup($file)); var_dump(fileperms($file)); ?>' | php
Or, for today, I'd guess the filename would be:

Code: Select all

echo '<?php $file="/var/hda/files/drives/sdb1/Quark_Backup/quarkbackup7_5_2010.tib"; var_dump($file); passthru("ls -la " . dirname($file)); passthru("ls -la \"$file\""); var_dump(filesize($file)); var_dump(fileowner($file)); var_dump(filegroup($file)); var_dump(fileperms($file)); ?>' | php
- Guillaume Boudreau

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Mon Jul 05, 2010 8:06 am

My bad...I should have known.

I'm going to be away for a while. I'll do it with the right filename asap when I get back.

bbuzzard
Posts: 28
Joined: Thu Jun 24, 2010 10:01 am

Re: Backups Disappearing?

Postby bbuzzard » Tue Jul 13, 2010 9:32 am

Hi, back from vacation...I didn't get a chance to rerun the command with the correct filename. I can't seem to put together 30 uninterrupted minutes on the computer lately.

However, I did a bit of experimenting. I prevented the date from being appended to the backup filename, and I split the file into CD size files. Aside from not having the date in the name and getting 84(!) files due to the split size, the backup survived the night and greyhole is still running without error. That's good news, right?

I'll try to run through it again with a single file and no appended date and see if it survives. When I get time, I will do it with the command you asked for 1 minute after.

Thanks!

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Backups Disappearing?

Postby gboudreau » Tue Jul 13, 2010 10:12 am

I found another user with similar problems (warnings about fileowner / filesize / etc.)

Can you show me the result of this command?

Code: Select all

mount
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 60 guests