Skip to content

arkos.system.services.ActionError on creating Samba share #31

@peakwinter

Description

@peakwinter

(Note that this bug should not result in a crash, rather the user should be prompted with a simple error message that the operation could not be completed.)

arkOS 0.8.3 Crash Report

Running in prod
System: Linux arkos 4.9.4-1-ARCH #1 SMP Sun Jan 15 23:08:44 MST 2017 armv7l GNU/Linux

Platform: armv7l Unknown
Python version 3.6.0
Config path: settings.json

Loaded applicatons:
db-mariadb
fs-samba

Request: POST /api/shares

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/sharers.py", line 47, in post
data["valid_users"], data["read_only"]
File "/var/lib/arkos/applications/fs-samba/fileshare.py", line 33, in add_share
s.add()
File "/usr/lib/python3.6/site-packages/arkos/sharers.py", line 74, in add
self.add_share()
File "/var/lib/arkos/applications/fs-samba/fileshare.py", line 137, in add_share
svc.restart()
File "/usr/lib/python3.6/site-packages/arkos/system/services.py", line 176, in restart
"sudo arkosctl svc status {0}".format(self.name))
arkos.system.services.ActionError: ('svc', 'The service failed to restart. Please check sudo arkosctl svc status smbd')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions