Pete French
2019-Oct-31 10:19 UTC
python dameon coredumps when started from boot, but not by hand
> Does it crash if you run it from the command line with 'env -i' in front? > > That clears out the environment and will be a lot closer to the rc.d environment.Interesting idea, but no, that works fine. Annoyingly!> If that doesn't show anything then you will have to try capturing stderr > from the rc.d run as that will hopefully have the reason why Python is > aborting (ie what Py_FatalError is complaining about).So, I naiively tried to do this by simply sticking a '2> /tmp/waagent.stderr' on the end of the rc.d command arguments, but it didnt produce anything (i.e. an empty file was created). Will try some other ways though, as you are right that getting the output from that is how to find the issue. -pete.
O'Connor, Daniel
2019-Oct-31 11:32 UTC
python dameon coredumps when started from boot, but not by hand
> On 31 Oct 2019, at 20:49, Pete French <petefrench at ingresso.co.uk> wrote: > >> Does it crash if you run it from the command line with 'env -i' in front? >> >> That clears out the environment and will be a lot closer to the rc.d environment. > > Interesting idea, but no, that works fine. Annoyingly!Hmm very odd.. Does the tool depend on something else running?>> If that doesn't show anything then you will have to try capturing stderr >> from the rc.d run as that will hopefully have the reason why Python is >> aborting (ie what Py_FatalError is complaining about). > > So, I naiively tried to do this by simply sticking a '2> /tmp/waagent.stderr' > on the end of the rc.d command arguments, but it didnt produce anything (i.e. > an empty file was created). Will try some other ways though, as you are > right that getting the output from that is how to find the issue.What does the rc.d file for it look like? -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum