[apport] sbackupd crashed with GetoptError in long_has_args()

Bug #93632 reported by Andrew Frank
36
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sbackup (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Intrepid by Martin Schaaf

Bug Description

Binary package hint: sbackup

simple backup was did start from the ->system->backup configure menu. it did NOT ask for the password ??? - and then crashed. the screen for the confirguration did not show media that would require root for access.

--
this crash was produced by calling sudo sbackupd --help
to see how it could be started from the command line with root.
no luck.

thank you for looking into this!

ProblemType: Crash
Architecture: i386
Date: Mon Mar 19 09:50:10 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/sbin/sbackupd
InterpreterPath: /usr/bin/python2.5
Package: sbackup 0.10.3-0.1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/sbackupd --help
ProcCwd: /home/frank
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
PythonArgs: ['/usr/sbin/sbackupd', '--help']
SourcePackage: sbackup
Uname: Linux gi27 2.6.20-12-generic #2 SMP Sun Mar 18 03:07:14 UTC 2007 i686 GNU/Linux

Revision history for this message
Andrew Frank (frank-geoinfo) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report.

Changed in sbackup:
assignee: nobody → motu
importance: Undecided → Medium
Revision history for this message
Andrew Frank (frank-geoinfo) wrote :

i found (through accieden) later that this is not a bug in sbackup but has to do with how nautilus (?) which is used to open the backup location shows the root directory initially:
it does show it as empty and only if one clicks in the file system navigation (top) bar on the icon to the left (a narrow rectangle) of the root (rounded square) icon. then root shows its content and one can select eg /media/disk/backup_folder_XX.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

This is reproducible by calling : sudo sbackupd --anyNonValideOption .
This shouldn't raise an exception (even though one isn't supposed to call sbackupd manually.

Changed in sbackup:
status: Unconfirmed → Confirmed
Revision history for this message
Martin Schaaf (mascha) wrote :

Patch that catches this exception and prints a clear error message.

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

I started a branch of sbackup 0.10.5 where I apply all patches for 0.10.5. It is open to use it for packaging.
It is here https://code.edge.launchpad.net/~mascha/sbackup/0.10.5_with_fixes
The branch is initialised with the ubuntu version 0.10.5ubuntu2

Martin Schaaf (mascha)
Changed in sbackup:
status: Confirmed → Fix Committed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Setting status to Confirmed, it seems this patch hasn't been committed upstream yet.

Changed in sbackup:
assignee: motu → nobody
status: Fix Committed → Confirmed
Revision history for this message
Braiam Peguero (braiampe) wrote :

Still in Lucid 0.10.5ubuntu2.1.
braiam@braiam-desktop:~$ sbackupd --4dsaf
Currently backup is only runnable by root
braiam@braiam-desktop:~$ sudo sbackupd --4dsaf
[sudo] password for braiam:
Traceback (most recent call last):
  File "/usr/sbin/sbackupd", line 194, in <module>
    conf.set_valid_options( our_options, parse_commandline = True)
  File "/usr/sbin/sbackupd", line 62, in set_valid_options
    self.parse_commandline()
  File "/usr/sbin/sbackupd", line 85, in parse_commandline
    getopt.getopt(sys.argv[1:], '', argv_parameters)
  File "/usr/lib/python2.6/getopt.py", line 89, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.6/getopt.py", line 153, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib/python2.6/getopt.py", line 170, in long_has_args
    raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --4dsaf not recognized
braiam@braiam-desktop:~$

Revision history for this message
Michael Terry (mterry) wrote :

This appears to be fixed in 10.10 with the addition of sbackup 0.11.3 (sbackupd binary doesn't even exist anymore, but sbackup binary and others handle odd arguments fine).

Changed in sbackup (Ubuntu):
status: Confirmed → Fix Released
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.