[Reportbug-maint] Bug#617636: reportbug: Fails to send mail due to failure to rename temporary file

David A. Parker dparker at utica.edu
Thu Mar 10 06:12:15 UTC 2011

Package: reportbug
Version: 4.12.6
Severity: normal

This is on a system with no MTA installed, but with direct access to an SMTP server.  When run as a non-root user, reportbug crashes when it attempts to send the e-mail.  Note that reportbug successfully sends the e-mail if it is run as root.

The following traceback is printed when it crashes (the filename after /var/tmp will change, but everything else is the same):

Unable to rename existing /var/tmp/linux-image-2.6.32-5-amd64.bug as /var/tmp/linux-image-2.6.32-5-amd64.bug~
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2098, in <module>
  File "/usr/bin/reportbug", line 1045, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 2090, in user_interface
  File "/usr/lib/pymodules/python2.6/reportbug/submit.py", line 331, in send_report
AttributeError: 'str' object has no attribute 'as_string'

-- Package-specific info:
** Environment settings:

** /root/.reportbugrc:
reportbug_version "4.12.6"
mode standard
ui text
realname "David A. Parker"
email "dparker at utica.edu"
smtphost "smtp.utica.edu"

-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                    Advanced front-end for dpkg
ii  python                  2.6.6-3+squeeze5 interactive high-level object-orie
ii  python-reportbug        4.12.6           Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                 <none>     (no description available)
pn  debsums                       <none>     (no description available)
pn  dlocate                       <none>     (no description available)
pn  emacs22-bin-common | emacs23- <none>     (no description available)
ii  file                          5.04-5     Determines file type using "magic"
ii  gnupg                         1.4.10-4   GNU privacy guard - a free PGP rep
pn  postfix | exim4 | mail-transp <none>     (no description available)
pn  python-gtk2                   <none>     (no description available)
pn  python-gtkspell               <none>     (no description available)
pn  python-urwid                  <none>     (no description available)
pn  python-vte                    <none>     (no description available)
pn  xdg-utils                     <none>     (no description available)

-- no debconf information

More information about the Reportbug-maint mailing list