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

Deployment fails. #86

Open
phildunbar opened this issue Oct 18, 2023 · 3 comments
Open

Deployment fails. #86

phildunbar opened this issue Oct 18, 2023 · 3 comments

Comments

@phildunbar
Copy link

phildunbar commented Oct 18, 2023

The error message is:
/bin/sh: line 1: /opt/ocpp-gateway/run-server.sh: Permission denied

After looking at #44 and #79 made sure the run-server.sh is LF terminated and not CRLF terminated. That did not help.

@phildunbar
Copy link
Author

\ocpp-gateway-container\Dockerfile

Added chmod +x:

ENTRYPOINT /opt/ocpp-gateway/run-server.sh
RUN chmod +x /opt/ocpp-gateway/run-server.sh
CMD /opt/ocpp-gateway/run-server.sh

Solved the problem.

@aritraghosh01
Copy link

ENTRYPOINT /opt/ocpp-gateway/run-server.sh
RUN chmod +x /opt/ocpp-gateway/run-server.sh
CMD /opt/ocpp-gateway/run-server.sh

I have tried this and replace the existing lines but still getting the below error

/bin/sh: line 1: /opt/ocpp-gateway/run-server.sh: cannot execute: required file not found

@phildunbar
Copy link
Author

Can you please attach the log file. Thx.

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

2 participants