-
Notifications
You must be signed in to change notification settings - Fork 39
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
Can't stop server #10
Comments
Same for me. |
I haven't touched this because someone had offered to fix this, but I haven't heard from him in a long time. I'll have a look. |
I've also got this problem, however I get it even if no photo has been uploaded. and even if i run the script with init.d. |
hello, i have the same issue but it also stops my ubuntu install from shuting down also. unbuntu 14.10 seems to happen weather a pic is uploaded or not. |
I'm working on it. I tried last night and the only solution I have so far Dave
|
Can anyone test this fix? |
This is the commit: ca62c8e |
Hello, I have aplied the update and although i still get the unexpected error the server does now exit, and allows my pc to shutdown. :) thanks |
What error do you get? Glad it works!
|
Hi, There error was and never exited, either when a picture was sent or not. I just tried it again after a reboot and took a picture, and its not exiting. if i take no photo and stop the server its gives the unexpected error followed with eyefi server stopped. |
No, it's not works for me...
If you try start the server, upload photo and then stop the server it is not works... p.s. i'm also change System info: Ubuntu 14.04.1 (Linux 3.13.0-35-generic #62-Ubuntu x86_64 GNU/Linux) |
Sorry, I guess I'll have to do some more fiddling and actually upload photos. Sorry I can't get to this right away. It's an open source project so anyone is free to help, although I realize not everyone is a coder. Thanks for your help reporting and testing. |
Any progress on this? Seems to still be an issue. Appreciate you working on it! |
Just realized stopEyeFi() is never called, so does do_Quit in turn. Shouldn't be a shutdown() call for BaseHTTPServer instance? |
Any work on this is much appreciated. I spent some time on this on a branch but didn't get it completely fixed. |
I googled for that problem, and found that basehttpserver must be requested from the local host to exit the serve loop. Looks like QUIT method was intended to do so, but never called now. The other method was to invoke a shutdown(). the third issue may be related with the linux double fork used that sometimes result in zombifying the second one. But on the other hand serve_forever is started with tha damon and exits properly if there was not any request served and those do not looks like our case. I tried the first two workaround and it didn't work or I got an exceptios, but I'm not a Python programmer so may did a mistakes. |
I should have provided more detail. I also noticed the QUIT method which On Mon, Oct 27, 2014 at 9:46 PM, dukesrg notifications@github.com wrote:
David Grant |
I also get this error when I stop eyefiserver 20: [: TRUE: unexpected operator and finally I can't stop it I have to kill process "kill -9 pid" and service eyefiserver stop after that. |
If I change line 181 from os.kill(pid, SIGTERM) to os.kill(pid, signal.SIGQUIT) It shuts down fine, and doesn't core dump either. Tested on Mint17, and Fedora 19. |
Looks like that change doesn't allow the server to stop after I upload a pic, so back to the drawing board. |
Thanks for trying. :-)
|
Ok, not nearly as nice, it's just killing it, but that's what I have to do anyways. os.kill(pid, 9) works, even after I upload a picture. It does clean up the pidfile too. |
I can confirm that when running as an instance and doing ctrl-c after uploading a picture with this bug fix branch, it doesn't kill it. |
Got the script running but my computer wont shut down after it started. Have to kill it everytime. Somebody got a solution for this? |
@Sklanfurt My solution was to write my own server. The code is at https://github.com/ryantm/heyefi |
@ryantm in Haskell! 🙌 |
Yeah this bug sucks, I can't even reboot my NAS, I always have to ssh in to it and stop it before doing a reboot otherwise it will never shut down. I spend some time trying to fix it a while back and failed. |
eyefiserver2 can't be stopped using init.d script (needs to be -9'd). This only seems to apply after a photo has been uploaded. If not uploading has occurred then it will shut down.
The text was updated successfully, but these errors were encountered: