Access denied while the device is accessible

Bug #294104 reported by Vincenzo Di Somma
2
Affects Status Importance Assigned to Milestone
sbackup
Status tracked in Trunk
0.10
Fix Committed
High
Unassigned
Trunk
Invalid
Undecided
Unassigned

Bug Description

Sometimes I get the following traceback while the device is accessible, in fact I just need to save the preferences again and it works perfectly. I suspect this is more related to gnomevfs than sbackup but I'm not an expert of this stuff.

GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Not running within active session)
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-24_13.00.10.299165.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-23_13.00.06.196072.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-22_13.00.26.585660.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxxr@192.168.1.114/vds/backup/2008-10-21_13.00.02.707627.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-20_13.00.03.914581.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-17_13.00.03.047864.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-16_13.00.03.060554.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-10-08_16.26.34.254666.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-09-25_10.09.43.778417.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading ftp://vds:xxx@192.168.1.114/vds/backup/2008-09-24_23.19.17.024288.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
Traceback (most recent call last):
  File "/usr/sbin/sbackupd", line 433, in <module>
    upgrader.upgrade_target( target, purge )
  File "/usr/share/sbackup/upgrade_backups.py", line 63, in upgrade_target
    self.purge( target, listing, purge )
  File "/usr/share/sbackup/upgrade_backups.py", line 253, in purge
    self.delete( target+"/"+adir )
  File "/usr/share/sbackup/upgrade_backups.py", line 278, in delete
    gnomevfs.unlink( uri+"/"+f.name )
gnomevfs.AccessDeniedError: Access denied

Revision history for this message
Martin Schaaf (mascha) wrote :

What sbackup version are you using?

Revision history for this message
Vincenzo Di Somma (vds) wrote : Re: [Bug 294104] Re: Access denied while the device is accessible

Default Intrepid package 0.10.5ubuntu2

On Thu, 2008-11-06 at 19:07 +0000, Martin Schaaf wrote:
> What sbackup version are you using?
>

Revision history for this message
Martin Schaaf (mascha) wrote :

Is your home directory on an NFS filesystem?

Revision history for this message
Vincenzo Di Somma (vds) wrote :

No it's local filesystem.

Martin Schaaf (mascha)
Changed in sbackup:
status: New → In Progress
Revision history for this message
Martin Schaaf (mascha) wrote :

I linked to my 0.10.5 branch. In revision 22 the exception will be catched and a error message will be printed. Can you send me this message. Please remove any passwords or sensitive data from this message. To install this version please checkout revision 22 or higher from the linked branch and replace all files ending in '.py 'in your local directory ' /usr/share/sbackup/' with the version from the branch. Thank you for your help.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

I get this:

/usr/sbin/simple-backup-config:92: GtkWarning: GtkSpinButton: setting an
adjustment with non-zero page size is deprecated
  self.widgets = gtk.glade.XML(self.conf.get("places", "prefix") +
"/share/sbackup/simple-backup-config.glade")
Traceback (most recent call last):
  File "/usr/sbin/simple-backup-config", line 1039, in <module>
    i = SBConf()
  File "/usr/sbin/simple-backup-config", line 157, in __init__
    good = self.parse_conf()
  File "/usr/sbin/simple-backup-config", line 372, in parse_conf

self.widgets.get_widget("max_archive_size_button").set_value( int(self.conf.get("general", "max_archive_size")))
AttributeError: 'NoneType' object has no attribute 'set_value'

Revision history for this message
Martin Schaaf (mascha) wrote :

Sorry there changed more in this branch then only the .py files. Can you please replace the other files too mainly the *.glade files.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

Running "backup now" works but I get that from cron

GConf Error: Failed to contact configuration server; some possible
causes are that you need to enable TCP/IP networking for ORBit, or you
have stale NFS locks due to a system crash. See
http://www.gnome.org/projects/gconf/ for information. (Details - 1: Not
running within active session)
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-11-13_17.18.42.991936.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-11-13_17.17.26.246631.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-11-13_17.15.13.340119.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-24_13.00.10.299165.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-23_13.00.06.196072.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-22_13.00.26.585660.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-21_13.00.02.707627.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-20_13.00.03.914581.blackrain.ful/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-17_13.00.03.047864.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
W: Error reading
ftp://vds:xxx@192.168.1.114/backup/blackrain//2008-10-16_13.00.03.060554.blackrain.inc/ver ! Ignoring incomplete or non-backup directory.
gnomevfs.CancelledError: Operation cancelled
gnomevfs.CancelledError: Operation cancelled

Revision history for this message
Martin Schaaf (mascha) wrote :

This looks like another error.

Revision history for this message
Martin Schaaf (mascha) wrote :

What happens if you run it on the console with 'sudo sbackupd'?

Revision history for this message
Vincenzo Di Somma (vds) wrote :

You're right it looks like it's a different error.
BTW it seems the backup has been done correctly.
I got rid of the old backups and now I get just this:

gnomevfs.CancelledError: Operation cancelled
gnomevfs.CancelledError: Operation cancelled

But I don't understand why I have now 4 backups, one of which is marked
as full, and they are all of about the same size (1.9Gb).

Revision history for this message
Vincenzo Di Somma (vds) wrote :

This is what I get from cron:
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Not running within active session)
gnomevfs.CancelledError: Operation cancelled
gnomevfs.CancelledError: Operation cancelled

Trying to recover a file from the backup of yesterday, instead of getting the usual list of files I get ehat you can see in the screenshot attached.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

What I reported in the previous post doesn't happen if I run "sudo
simple-restore-gnome".

Revision history for this message
Martin Schaaf (mascha) wrote :

Do you enabled your root account? This is the case when you can login to your system as root.

Revision history for this message
Martin Schaaf (mascha) wrote :

The restore command is called in the following way from the menu:

su-to-root -X -c /usr/sbin/simple-restore-gnome

With sudo you run programms as the user you logged in with but with root privileges and with the su-to-root command you run programms as root.

It seems that some preferences of your root account are wrong or incompatible to your other user accounts.
You can try on the console:
su-to-root -c /bin/bash
set | grep LANG

to see what your root accounts language is and compare with your users account.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

My root account is enabled, I can login as root.

Revision history for this message
Vincenzo Di Somma (vds) wrote :

root:
LANG=en_US.UTF-8

my user:
GDM_LANG=en_US.UTF-8
LANG=en_US.UTF-8

Revision history for this message
Martin Schaaf (mascha) wrote :
Changed in sbackup:
importance: Undecided → High
assignee: nobody → Martin Schaaf (mascha)
Revision history for this message
Martin Schaaf (mascha) wrote :

Fix is in revisions 28 and 29 in the related branch.

Changed in sbackup:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.