wajig.py crashed with PermissionError in finish_log(): [Errno 13] Permission denied: '/home/username/.wajig/hostname/Log'

Bug #1737852 reported by Paul White
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wajig
Invalid
Undecided
Unassigned
wajig (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I ran "wajig purgeremoved" without sudo, I was prompted for my admin password but error message was displayed after password entered:

Traceback (most recent call last):
  File "/usr/share/wajig/wajig.py", line 1087, in <module>
    main()
  File "/usr/share/wajig/wajig.py", line 1083, in main
    result.func(result)
  File "/usr/share/wajig/commands.py", line 704, in purgeremoved
    root=True, log=True)
  File "/usr/share/wajig/perform.py", line 99, in execute
    util.finish_log(temp)
  File "/usr/share/wajig/util.py", line 510, in finish_log
    lf = open(log_file, "a")
PermissionError: [Errno 13] Permission denied: '/home/paul/.wajig/N1642x/Log'

The owner of the log file is root so presumably wajig unable to write to this file.

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: wajig 2.18.1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.8-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Dec 12 23:41:17 2017
ExecutablePath: /usr/share/wajig/wajig.py
InstallationDate: Installed on 2017-11-07 (35 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
InterpreterPath: /usr/bin/python3.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/share/wajig/wajig.py purgeremoved
Python3Details: /usr/bin/python3.6, Python 3.6.4rc1, python3-minimal, 3.6.3-0ubuntu2
PythonArgs: ['/usr/share/wajig/wajig.py', 'purgeremoved']
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-2ubuntu1
SourcePackage: wajig
Title: wajig.py crashed with PermissionError in finish_log(): [Errno 13] Permission denied: '/home/username/.wajig/hostname/Log'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Paul White (paulw2u) wrote :
tags: removed: need-duplicate-check
Changed in wajig (Ubuntu):
importance: Undecided → Medium
Paul White (paulw2u)
description: updated
Paul White (paulw2u)
information type: Private → Public
Revision history for this message
Graham Williams (gjwkayon) wrote :

I have been unable to replicate with current wajig 4.0.3. Is this still an issue?

Changed in wajig (Ubuntu):
status: New → Incomplete
Changed in wajig:
status: New → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

The installation which I used when filing this bug report has long gone. I don't know how wajig's log file came to have root ownership so I have tested by changing the ownership of wajig's log file to 'root'.

Using 4.0.3 in Ubuntu 22.04 and 4.0.12 in Ubuntu 23.10 I see the traceback and the permission denied error but no crash.

What is intriguing me is why my machine name was "N1642x" when "N1642" was always its permanent name. As I don't know what I was doing with that PC back in 2017 and no-one ever confirmed the crash I'll close this as "Invalid".

Changed in wajig:
status: Incomplete → Invalid
Changed in wajig (Ubuntu):
status: Incomplete → Invalid
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.