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
sendWakeup: invalid argument (Bad file descriptor) #566
Comments
Looks like issue #557 turned out to be more of a problem then we thought. I'm going to close that other issue because this one has more details. Approximately how long was postgrest running before this happened? |
Hard to say. I start and stop PostgREST all the time. Less than ½ hour and more than 5 minutes I guess. Haven't experienced this issue before though, but will keep you posted if I see it again. |
Perhaps timestamps in the log would make things easier? |
Possible causes
Debugging suggestionMake a custom Docker image that builds off strace -ff -e trace=file -p <postgrest-pid> This will show us the files it is trying to access. |
While installing strace i noticed that
When I pinged PostgREST i got a response, and this was logged:
The following requests got rejected with
After restarting, ps aux had no [sleep] and PostgREST worked as expected. |
Since PostgREST is always given pid 1 in the docker container I assume the strace command should be
The error I'm getting as root is:
|
please try the 4.3 relaase in docker |
Had to restart PostgREST because of this error:
postgrest: c_poll: permission denied (Operation not permitted)
postgrest: sendWakeup: invalid argument (Bad file descriptor)
172.19.0.1 - - [18/Apr/2016:11:11:23 +0000] "GET / HTTP/1.1" 200 - "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
Control.AutoUpdate.mkAutoUpdate: worker thread exited with exception: sendWakeup: invalid argument (Bad file descriptor)
Control.AutoUpdate.mkAutoUpdate: worker thread exited with exception: sendWakeup: invalid argument (Bad file descriptor)
Control.AutoUpdate.mkAutoUpdate: worker thread exited with exception: sendWakeup: invalid argument (Bad file descriptor)
I'm using Docker (begriffs/postgrest)
The text was updated successfully, but these errors were encountered: