-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Strange error trying to run the daemon through supervisord #861
Comments
Oh by the way this is on xubuntu 14.10 with go 1.4.1 from also, running the daemon from the shell via
|
@darkstar thanks for reporting this! It looks like an empty string is somehow being passed in as an argument to the command... weird |
Might be stdin-- our commands lib is overly aggressive on that, and I think treats it as an arg. I'll look at it closer when I'm back to comp. — On Thu, Mar 5, 2015 at 4:48 PM, Jeromy Johnson notifications@github.com
|
@darkstar could you try changing the command to |
Now it is:
Could reproduce it too. |
If I delete this chunk, the problem becomes reproducible on terminal as well. |
very interesting... @mappum I'll buy you coffee if you know whats going on here! |
By the way, this ugly hack:
gives you:
That's because we use @mitchellh's Here it assumes that So we get |
@kkoroviev Wow! Good analysis. Thanks for the info |
@kkoroviev I'm happy to augment the library to return more accurate results! Please let me know a more resilient test. |
A better way is to parse Does Go have a function to find out the UID of the current user? |
Okay, so this here is now a combined workaround which actually works:
|
I think this issue might have been fixed by merging PR #1263 or PR #1238. |
@chriscool: The stdin test now passes on my box too. I pushed a PR that switches them back to success and also improves error detection in t0060. ( #1297 ) |
Ok, great! I am closing this issue then. |
When I try to run the daemon through supervisord, I keep getting the following error in the log file (stdout/stderr):
which is strange as the config file I'm using to launch the daemon contains just the word "daemon" as argument:
I tried tracing the launch with strace and it also shows that only 1 argument is given:
Then I modified the file
github.com/jbenet/go-ipfs/commands/cli/parse.go
to print the arguments:and recompiled via
go get github.com/jbenet/go-ipfs/cmd/ipfs
(note that I don't know any go language, so I don't know if there's a different/better way to just recompile that binary, but this seemed to work) and I got the following in the log file:At this point I'm out of ideas what goes wrong where. I know that supervisord launches the binary correctly (as shown by the strace output), however, ipfs seems to insist that there's an extra argument being given.
Any ideas?
The text was updated successfully, but these errors were encountered: