-
Notifications
You must be signed in to change notification settings - Fork 581
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
python app not autostarting, missing file /etc/rc.local #184
Comments
I followed the traceback and the file /etc/rc.local was missing from my install. I created an empty file and now everything is running correctly. |
Dave-DuBois
changed the title
python app not autostarting, error when clicking Auto Start link
python app not autostarting, missing file /etc/rc.local
Jan 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
App shows Auto Start = Open but when I click on Open I get a dialog to confirm and then I get this error:
Sorry, something went wrong:
Traceback (most recent call last):
File "class/panelPlugin.py", line 2142, in a
return eval(execStr)
File "", line 1, in
File "/www/server/panel/plugin/pythonmamager/pythonmamager_main.py", line 553, in edit_auto_start
self.set_auto_start()
File "/www/server/panel/plugin/pythonmamager/pythonmamager_main.py", line 569, in set_auto_start
if not re.search("pythonmamager_main.py",rc_local):
File "/www/server/panel/pyenv/lib/python3.7/re.py", line 185, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
Steps to replicate:
It's a new install and setup:
os: Linux-6.2.0-1017-aws #17~22.04.1-Ubuntu SMP
Apache, UWSGI, Python 3.10, Django
config:
[uwsgi]
master = true
processes = 1
threads = 2
chdir = /www/wwwroot/[redacted]
wsgi-file= /www/wwwroot/[redacted]
http = 0.0.0.0:[redacted]
logto = /www/wwwroot/[redacted]/logs/error.log
chmod-socket = 660
vacuum = true
uid=www
gid=www
max-requests = 1000
The text was updated successfully, but these errors were encountered: