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

[Docker] supervisor-exit-event-listener exits with status 127, "not expected" #10231

Closed
2 tasks done
kamakazikamikaze opened this issue Oct 26, 2021 · 4 comments · Fixed by #10257
Closed
2 tasks done
Assignees

Comments

@kamakazikamikaze
Copy link

Debug mode

Describe the bug

Using Docker image with tag v5.3.0, starting the container results in the supervisord eventlistener "exit_on_any_fatal" to immediately fail, regardless if all other services are running properly. This does not cause the container to exit immediately.

The message: INFO exited: exit_on_any_fatal (exit status 127; not expected)

It appears that the issue is python(2) not being available in the Ubuntu image. The script is run directly and tries to invoke python, which does not exist. python3, however, does, and changing #!/usr/bin/env python to #!/usr/bin/env python3 appears to fix the issue.

Reproduction steps

  1. docker pull snipe/snipe-it:v5.3.0
  2. Assuming environment is not already set up (MySQL, mail, etc.), set up services as necessary
  3. docker run ...
    ...

Expected behavior

exit_on_any_fatal should not exit immediately. A successful launch would show:
INFO success: exit_on_any_fatal entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Screenshots

No response

Snipe-IT Version

5.3.0

Operating System

Ubuntu

Web Server

apache

PHP Version

7.x

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Docker, fresh install.

@welcome
Copy link

welcome bot commented Oct 26, 2021

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@uberbrady uberbrady self-assigned this Oct 26, 2021
@uberbrady
Copy link
Collaborator

I'm going to see if I can reproduce this, and then see if the suggested fix seems to fix it.

@Wouter0100
Copy link
Contributor

I had the same issue. The following Dockerfile fixes it.

FROM snipe/snipe-it:v5.3.0

RUN sed -i -e "s/python/python3/" /usr/bin/supervisor-exit-event-listener

@snipe
Copy link
Owner

snipe commented Oct 29, 2021

@Wouter0100 thanks so much for the update!

@snipe snipe closed this as completed Oct 29, 2021
Wouter0100 added a commit to Wouter0100/snipe-it that referenced this issue Nov 1, 2021
This fixes snipe#10231, without creating an own Dockerfile.
Wouter0100 added a commit to Wouter0100/snipe-it that referenced this issue Nov 2, 2021
This fixes snipe#10231, without creating an own Dockerfile.
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

Successfully merging a pull request may close this issue.

4 participants