You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python application fails to write to stdout and stderr when started within a runlevel (exit code 120 with buffered output, ext code 1 with unbuffered output)
#971
Which works alright, but I would be interested in a reliable and clean solution (as clean as it gets anyway...).
I am starting the discussion since I am honestly curious what the reason for the inability to write is. If I start the openrc script manually after boot, without any modification, it works. Unfortunately the stdout and stderr is then emitted on the console, not in the configured logfiles either. Permissions are fully open.
I am only diving into Alpine and OpenRC currently, so excuse the possible lack of basic knowledge about the two.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a python oneshot application that I run with a stacked runlevel:
However, that does not work. The logs are never created. The application fails writing to stdout/stderr and errors out.
My workaround:
Which works alright, but I would be interested in a reliable and clean solution (as clean as it gets anyway...).
I am starting the discussion since I am honestly curious what the reason for the inability to write is. If I start the openrc script manually after boot, without any modification, it works. Unfortunately the stdout and stderr is then emitted on the console, not in the configured logfiles either. Permissions are fully open.
I am only diving into Alpine and OpenRC currently, so excuse the possible lack of basic knowledge about the two.
Beta Was this translation helpful? Give feedback.
All reactions