You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Someone let me know if there's a better way of doing this ... but, I am trying to get chiadog on Windows to run on startup (via scheduled task) using my chiadoguser.
What's odd is that, if chiadog runs as a scheduled task, my Swar Plotter VIEW crashes. The Swar manager.py that coordinates everything remains working fine.
If I run chiadog in another cmd window under chiadoguser, swar plotter view is fine. I've also tried called the scheduled task using "cmd /c". I've also tried running swar view as administrator and same error.
Here's the error that swar plotter throws when using view/status and even if it's running, on refresh, it crashes with same error.
`
(venv) C:\Users\john\Downloads\SwarChiaPlotter>python manager.py view
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 780, in cmdline
ret = cext.proc_cmdline(self.pid, use_peb=True)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 679, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 695, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 783, in cmdline
ret = cext.proc_cmdline(self.pid, use_peb=False)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\manager.py", line 37, in
view()
File "C:\Users\john\Downloads\SwarChiaPlotter\plotmanager\library\utilities\commands.py", line 162, in view
jobs, running_work = get_running_plots(jobs=jobs, running_work=running_work,
File "C:\Users\john\Downloads\SwarChiaPlotter\plotmanager\library\utilities\processes.py", line 184, in get_running_plots
if 'plots' not in process.cmdline() or 'create' not in process.cmdline():
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_init_.py", line 677, in cmdline
return self._proc.cmdline()
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 681, in wrapper
raise convert_oserror(err, pid=self.pid, name=self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=6452, name='python.exe')
`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Someone let me know if there's a better way of doing this ... but, I am trying to get chiadog on Windows to run on startup (via scheduled task) using my chiadoguser.
What's odd is that, if chiadog runs as a scheduled task, my Swar Plotter VIEW crashes. The Swar manager.py that coordinates everything remains working fine.
If I run chiadog in another cmd window under chiadoguser, swar plotter view is fine. I've also tried called the scheduled task using "cmd /c". I've also tried running swar view as administrator and same error.
Here's the error that swar plotter throws when using view/status and even if it's running, on refresh, it crashes with same error.
`
(venv) C:\Users\john\Downloads\SwarChiaPlotter>python manager.py view
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 780, in cmdline
ret = cext.proc_cmdline(self.pid, use_peb=True)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 679, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 695, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 783, in cmdline
ret = cext.proc_cmdline(self.pid, use_peb=False)
PermissionError: [WinError 5] Access is denied: '(originated from OpenProcess)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\john\Downloads\SwarChiaPlotter\manager.py", line 37, in
view()
File "C:\Users\john\Downloads\SwarChiaPlotter\plotmanager\library\utilities\commands.py", line 162, in view
jobs, running_work = get_running_plots(jobs=jobs, running_work=running_work,
File "C:\Users\john\Downloads\SwarChiaPlotter\plotmanager\library\utilities\processes.py", line 184, in get_running_plots
if 'plots' not in process.cmdline() or 'create' not in process.cmdline():
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_init_.py", line 677, in cmdline
return self._proc.cmdline()
File "C:\Users\john\Downloads\SwarChiaPlotter\venv\lib\site-packages\psutil_pswindows.py", line 681, in wrapper
raise convert_oserror(err, pid=self.pid, name=self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=6452, name='python.exe')
`
Beta Was this translation helpful? Give feedback.
All reactions