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

[BUG] Access denied in 12hours to local drive? what is it ? #319

Closed
aresstokrat opened this issue May 14, 2021 · 5 comments
Closed

[BUG] Access denied in 12hours to local drive? what is it ? #319

aresstokrat opened this issue May 14, 2021 · 5 comments

Comments

@aresstokrat
Copy link

Traceback (most recent call last):
File "c:\plotmanager\manager.py", line 36, in
view()
File "c:\plotmanager\plotmanager\library\utilities\commands.py", line 106, in view
jobs, running_work = get_running_plots(jobs=jobs, running_work=running_work)
File "c:\plotmanager\plotmanager\library\utilities\processes.py", line 239, in get_running_plots
temp_file_size = get_temp_size(plot_id=plot_id, temporary_directory=temporary_directory,
File "c:\plotmanager\plotmanager\library\utilities\processes.py", line 166, in get_temp_size
temp_size += os.path.getsize(file_path)
File "C:\Program Files\Python39\lib\genericpath.py", line 50, in getsize
return os.stat(filename).st_size
PermissionError: [WinError 5] Access denied: 'e:\plot-k32-2021-05-13-15-21-049261098c455b053f62dbf18f5647da57f196cef8e60a125e2c7930ba8525f6.plot.p2.t3.sort_bucket_121.tmp'

and then i just restart

@aresstokrat
Copy link
Author

restarting "manager.py view"

shows everything zero, but CPU still under load, so i think its plotting... still i don't know what to do next to revive.
screen: http://prntscr.com/12wybgh

@swar
Copy link
Owner

swar commented May 14, 2021

Windows permission issue typically. I have no idea what causes it but high CPU usage has a tendency to do that.

@aresstokrat
Copy link
Author

aresstokrat commented May 15, 2021

I don't this its permissions. Since its working 12hours, made plots, and than this error. Today again:

http://prntscr.com/12yl9xn

"Отказано в доступе" = Access Denied
at screenshot

After error im trying to open this file
File "C:\Users\ares_\AppData\Roaming\Python\Python39\site-packages\psutil_pswindows.py", line 780,

and thats function::

@wrap_exceptions
@retry_error_partial_copy
def cmdline(self):
if cext.WINVER >= cext.WINDOWS_8_1:
# PEB method detects cmdline changes but requires more
# privileges: giampaolo/psutil#1398
try:
ret = cext.proc_cmdline(self.pid, use_peb=True)
except OSError as err:
if is_permission_err(err):
ret = cext.proc_cmdline(self.pid, use_peb=False)
else:
raise
else:
ret = cext.proc_cmdline(self.pid, use_peb=True)
if PY3:
return ret
else:
return [py2_strencode(s) for s in ret]


plus im runing manager.py is admin

@swar
Copy link
Owner

swar commented May 15, 2021

High CPU is also known to deny access

@aresstokrat
Copy link
Author

High CPU is also known to deny access

I dont think so Swar.
I were working in PS with 12parallels 24x7, and suddenly it turnes out that it is overcloading to access denied with 6-8x parallels? Seem unlogical.

@swar swar closed this as completed May 20, 2021
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

2 participants