FileNotFoundError: [Errno 2] No such file or directory: '/etc/nginx/sites-available/xxx'
Opened this issue · 0 comments
arkOS 0.8.3 Crash Report
Running in prod
System: Linux arkos 4.4.45-1-ARCH #1 SMP Fri Jan 27 18:52:49 MST 2017 armv7l GNU/Linux
Platform: armv7l Unknown
Python version 3.6.0
Config path: settings.json
Loaded applicatons:
basicsite
fs-afp
syncthing
fs-samba
db-mariadb
db-sqlite3
wordpress
cmsjs
grav
xmpp
nextcloud
haste
Request: PUT /api/websites/xxx
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/lib/python3.6/site-packages/flask/views.py", line 84, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/flask/views.py", line 149, in dispatch_request
return meth(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/kraken/auth.py", line 135, in decorator
return func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/kraken/frameworks/websites.py", line 79, in put
site.edit(data.get("new_name"))
File "/usr/lib/python3.6/site-packages/arkos/websites.py", line 517, in edit
self._edit(newname)
File "/usr/lib/python3.6/site-packages/arkos/websites.py", line 522, in _edit
self.id))
File "/usr/lib/python3.6/site-packages/nginx.py", line 488, in loadf
with open(path, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/nginx/sites-available/xxx'