Ubuntu 20.04, fully updated, tried to use one-click to install Laravel 7.x and receive the following error:
Sorry, something went wrong:
Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in call
handler, values = adapter.match()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class/panelPlugin.py", line 2109, in a
return eval(execStr)
File "", line 1, in
File "/www/server/panel/plugin/deployment/deployment_main.py", line 290, in SetupPackage
siteObj.SetSiteRunPath(mobj);
File "class/panelSite.py", line 4686, in SetSiteRunPath
old_run_path = self.GetRunPath(get)
File "class/panelSite.py", line 1482, in GetRunPath
result = self.GetSiteRunPath(get)
File "class/panelSite.py", line 4664, in GetSiteRunPath
for filename in os.listdir(sitePath):
NotADirectoryError: [Errno 20] Not a directory: '/www/wwwroot/api_dev.matice.com'
I uninstalled and reinstalled One-Click add-on but got the same error. I went looking and there is no path for /www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/ There is a path of /www/server/panel/pyenv/lib/python3.7/site-packages/Werkzeug-1.0.1.dist-info/ but there is no routing.py file.
I found the github for https://github.com/pallets/werkzeug, downloaded it and copied the /werkzeug folder to the /www/server/panel/pyenv/lib/python3.7/site-packages/ folder and tried to run again. Error changed to:
Sorry, something went wrong:
Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in call
handler, values = adapter.match()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
.. versionchanged:: 0.8
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "class/panelPlugin.py", line 2109, in a
return eval(execStr)
File "", line 1, in
File "/www/server/panel/plugin/deployment/deployment_main.py", line 290, in SetupPackage
siteObj.SetSiteRunPath(mobj);
File "class/panelSite.py", line 4686, in SetSiteRunPath
old_run_path = self.GetRunPath(get)
File "class/panelSite.py", line 1482, in GetRunPath
result = self.GetSiteRunPath(get)
File "class/panelSite.py", line 4664, in GetSiteRunPath
for filename in os.listdir(sitePath):
NotADirectoryError: [Errno 20] Not a directory: '/www/wwwroot/ap1.sp1.matice.com'
More testing: When this fails, there is a file in the /www/wwwroot folder named after the website and it contains:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
However, there is no folder created for the website.
Please advise