Unable to restart Python applications | | Gotmyhost

Unable to restart Python applications.
Logs/commands output:

ERROR in Python Selector WEB:
No such application (or application not configured) "testpythonapp" 
Python

Environment

Solution

Ensure that the  htaccess_cache file within the user’s /home/exampleuser/.cl.selector directory owned by the user. For instance, exampleuser

If, after that, another error pops up:

Virtual environment already exists (/home/USERNAME/virtualenv/APPNAME/3.9). Probably it is used by another application. Please, remove directory if it is no longer needed. 

remove virtualenv/APPNAME/3.9 and .htaccess:

mv /home/USERNAME/virtualenv/APPNAME/3.9 /.../BACKUP_LOCATION

mv /home/USERNAME/app-url.domain.tld/.htaccess /.../BACKUP_LOCATION

Leave a Reply

Your email address will not be published. Required fields are marked *