Skip to content
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

RebootHandler.py syntax error #5

Closed
ulph opened this issue Jun 9, 2017 · 4 comments
Closed

RebootHandler.py syntax error #5

ulph opened this issue Jun 9, 2017 · 4 comments
Labels

Comments

@ulph
Copy link

ulph commented Jun 9, 2017

10:27:15 zynthian zynthian_webconf.sh[298]: File "/zynthian/zynthian-webconf/lib/RebootHandler.py", line 17, in get
Jun 09 10:27:15 zynthian zynthian_webconf.sh[298]: check_output("(sleep 1 & reboot)&", shell=True)

forgot subprocess. ?

@mheidt
Copy link
Contributor

mheidt commented Jun 9, 2017

Could you elaborate?
I thought this is what the ampersand is doing...creating a new process in the background.
Is anything not working?
There is a timer, that is trying to reload the page...in Js. Maybe we need to change sth on that site.

@ulph
Copy link
Author

ulph commented Jun 10, 2017

Sorry, I was in a rush. Title should be "webconf reboot option does not work", the rest is guessing after glancing log/code.

...

Problem was that webconf reboot option did not work as in system does not reboot.

Checking the logs I was lead to believe the check_call line failed.

@mheidt
Copy link
Contributor

mheidt commented Jun 10, 2017

Yes, I can confirm. It just doesn't reboot.
from subprocess import check_output

is missing

Only tested the correct refresh webconf-behaviour after refactoring into different classes. (everything was in one single controller class before)
And locally testing, you don't want your dev-machine to reboot, so that I commented that line out :)

mheidt pushed a commit that referenced this issue Jun 10, 2017
@mheidt
Copy link
Contributor

mheidt commented Jun 10, 2017

i cannot create a pull request for this feature only. we need to wait until Fernando has time to implement the ALSA Audio and Snaphot handling. Or he might change it in the master directly.

@mheidt mheidt closed this as completed Aug 17, 2017
@jofemodo jofemodo added the bug label Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants