Bug 2260155

Summary: [abrt] git-cola: _errcheck(): inotify.py:44:_errcheck:PermissionError: [Errno 13] Permission denied
Product: [Fedora] Fedora Reporter: David Fernandez <david.fernandez>
Component: git-colaAssignee: david08741
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: david08741, david.fernandez, davvid, fedora, moceap, oliver
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b10caaedc47290057ca2030f3daa5393f3c7381
Whiteboard: abrt_hash:b3366daa6c820aecb1b4cce66758680054a3e756;VARIANT_ID=workstation;
Fixed In Version: git-cola-4.6.1-1.fc40 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-23 00:32:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: cpuinfo
none
File: open_fds
none
File: os_info
none
File: environ
none
File: mountinfo
none
File: backtrace
none
File: namespaces none

Description David Fernandez 2024-01-24 17:32:00 UTC
Description of problem:
Just when launching the program.

Version-Release number of selected component:
git-cola-4.3.2-1.fc39

Additional info:
reporter:       libreport-2.17.11
executable:     /usr/bin/git-cola
cmdline:        /usr/bin/python3 -sP /usr/bin/git-cola --prompt
type:           Python3
uid:            1000
comment:        Just when launching the program.
exception_type: PermissionError
reason:         inotify.py:44:_errcheck:PermissionError: [Errno 13] Permission denied
package:        git-cola-4.3.2-1.fc39
runlevel:       N 5
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-git\x2dcola-7055.scope
interpreter:    python3-3.12.1-2.fc39.x86_64
kernel:         6.6.11-200.fc39.x86_64
crash_function: _errcheck

Truncated backtrace:
inotify.py:44:_errcheck:PermissionError: [Errno 13] Permission denied

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/cola/fsmonitor.py", line 209, in run
    self.refresh()
  File "/usr/lib/python3.12/site-packages/cola/fsmonitor.py", line 251, in refresh
    self._refresh()
  File "/usr/lib/python3.12/site-packages/cola/fsmonitor.py", line 263, in _refresh
    self._refresh_watches(
  File "/usr/lib/python3.12/site-packages/cola/fsmonitor.py", line 312, in _refresh_watches
    raise e
  File "/usr/lib/python3.12/site-packages/cola/fsmonitor.py", line 299, in _refresh_watches
    wd = inotify.add_watch(
         ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/cola/inotify.py", line 44, in _errcheck
    raise OSError(err, os.strerror(err))
PermissionError: [Errno 13] Permission denied

Local variables in innermost frame:
result: -1
func: <_FuncPtr object at 0x7f1293a56150>
arguments: (28, b'/home/david.fernandez/src_sen/vcpu/NL4T_LinuxForTegra/rootfs/run/sudo', 83887054)
err: 13

Potential duplicate: bug 1979163

Comment 1 David Fernandez 2024-01-24 17:32:04 UTC
Created attachment 2010287 [details]
File: cpuinfo

Comment 2 David Fernandez 2024-01-24 17:32:06 UTC
Created attachment 2010288 [details]
File: open_fds

Comment 3 David Fernandez 2024-01-24 17:32:07 UTC
Created attachment 2010289 [details]
File: os_info

Comment 4 David Fernandez 2024-01-24 17:32:09 UTC
Created attachment 2010290 [details]
File: environ

Comment 5 David Fernandez 2024-01-24 17:32:10 UTC
Created attachment 2010291 [details]
File: mountinfo

Comment 6 David Fernandez 2024-01-24 17:32:11 UTC
Created attachment 2010292 [details]
File: backtrace

Comment 7 David Fernandez 2024-01-24 17:32:13 UTC
Created attachment 2010293 [details]
File: namespaces

Comment 8 David Aguilar 2024-01-25 08:00:09 UTC
I just added a commit that should eliminate the possibility of this happening.

https://github.com/git-cola/git-cola/commit/0f5b3d8088a0210f7e82b0c4e4435b5d3fb327e5

The next release will be tagged in ~2 weeks.

Comment 9 Fedora Update System 2024-03-09 13:51:42 UTC
FEDORA-2024-8bb0335e0a (git-cola-4.6.1-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8bb0335e0a

Comment 10 Fedora Update System 2024-03-10 02:22:35 UTC
FEDORA-2024-8bb0335e0a has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8bb0335e0a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8bb0335e0a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-03-23 00:32:16 UTC
FEDORA-2024-8bb0335e0a (git-cola-4.6.1-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.