Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission error when monitoring 'copy' on snap package #8

Open
sidahmed-malaoui opened this issue Jan 6, 2018 · 0 comments
Open

Comments

@sidahmed-malaoui
Copy link
Owner

sidahmed-malaoui commented Jan 6, 2018

This command act -o copy -a nothing --verbose is giving the following error (when act is installed as a snap)

Traceback (most recent call last):
File "/snap/act/1/bin/act", line 11, in
load_entry_point('act==0.3', 'console_scripts', 'act')()
File "/snap/act/1/lib/python3.5/site-packages/act.py", line 125, in main
copy(args.time, args.verbose)
File "/snap/act/1/lib/python3.5/site-packages/act.py", line 23, in copy
bytes_read = psutil.disk_io_counters().read_bytes / (1024*1024)
File "/snap/act/1/lib/python3.5/site-packages/psutil/init.py", line 2051, in disk_io_counters
rawdict = _psplatform.disk_io_counters()
File "/snap/act/1/lib/python3.5/site-packages/psutil/_pslinux.py", line 1015, in disk_io_counters
partitions = get_partitions()
File "/snap/act/1/lib/python3.5/site-packages/psutil/_pslinux.py", line 997, in get_partitions
with open_text("%s/partitions" % get_procfs_path()) as f:
File "/snap/act/1/lib/python3.5/site-packages/psutil/_pslinux.py", line 204, in open_text
return open(fname, "rt", **kwargs)
PermissionError: [Errno 13] Permission denied: '/proc/partitions'

And the script can't run as root.

@sidahmed-malaoui sidahmed-malaoui changed the title permission error when monitoring 'copy' permission error when monitoring 'copy' on snap package Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant