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

-daemon crash #24

Open
AbcSxyZ opened this issue Dec 4, 2021 · 9 comments
Open

-daemon crash #24

AbcSxyZ opened this issue Dec 4, 2021 · 9 comments

Comments

@AbcSxyZ
Copy link
Contributor

AbcSxyZ commented Dec 4, 2021

Option -daemon do not work and is crashing with the following error:

$ docker run -it dogecoin -daemon
2021-12-04 00:35:31 
2021-12-04 00:35:31 Dogecoin version v1.14.4
2021-12-04 00:35:31 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2021-12-04 00:35:31 Assuming ancestors of block 77e3f4a4bcb4a2c15e8015525e3d15b466f6c022f6ca82698f329edef7d9777e have valid signatures.
Dogecoin server starting

Any idea if the daemon fork himself and kill its parent to daemonize ? Which may stop the container.

It's what I'm having in mind as a first thing to inspect. I'm not sure about it, but I suspect buggy behavior related to daemonization.

@AbcSxyZ
Copy link
Contributor Author

AbcSxyZ commented Dec 4, 2021

Tested on ruimarinho/bitcoin-core/, it's crashing too.

@patricklodder
Copy link
Member

-daemon needs a root process e.g. init - so that won't work?

@AbcSxyZ
Copy link
Contributor Author

AbcSxyZ commented Dec 4, 2021

Yeah we are having this kind of issue, without a running process as pid 1, it's stopping. Depend on the behavior of -daemon.

I'm not sure about the purpose of using a daemonized executable in a container, not really meaningful.

@xanimo
Copy link
Member

xanimo commented Dec 4, 2021 via email

@AbcSxyZ
Copy link
Contributor Author

AbcSxyZ commented Dec 4, 2021

It's interesting to notice, but I'm not sure if and how we should handle this case.

@patricklodder
Copy link
Member

The only way to handle it is imho to disable -daemon. Problem is it can still be thrown into a config file. So maybe just document it?

@xanimo
Copy link
Member

xanimo commented Dec 4, 2021

agree with @patricklodder on second thought. i don't think it's necessary since docker itself can run as daemon using -d. my mistake.

@AbcSxyZ
Copy link
Contributor Author

AbcSxyZ commented Dec 6, 2021

I was thinking about it and how we should deal with this error. I had an incredible idea : doing nothing.

Regarding the other bitcoin repo, no one is raising issues related to this problem. We may assume users won't really try to use the -deamon option with images, advanced user who use more complex settings may understand the implication or find this PR, and at worst few people can raise an issue.

We need to hope people won't get stuck with an old dogecoin.conf containing deamon setting, it may definitively be confusing where the error is coming from.

Maybe we can leave it like it is, and if people are raising issues related to this point we can adapt the strategy and eventually add it to the doc ? This PR could be a sufficient documentation about this error.

@patricklodder
Copy link
Member

Yes, I think we should just keep this issue open for now and keep it in the back of our heads that at some point we may need to do something about it. For now, it's easily negated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants