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

Error while making container #64

Closed
vigilant24 opened this issue Jan 7, 2023 · 3 comments
Closed

Error while making container #64

vigilant24 opened this issue Jan 7, 2023 · 3 comments

Comments

@vigilant24
Copy link

vigilant24 commented Jan 7, 2023

I get this error when making the container:

[ 5/14] RUN chmod +x /usr/local/bin/generate-certs.sh && /usr/local/bin/generate-certs.sh && mkdir --parents /etc/haproxy/ssl/ && mv /certs/proxy.whatsapp.net.pem /etc/haproxy/ssl/proxy.whatsapp.net.pem && chown -R haproxy:haproxy /etc/haproxy/:
#9 3.378 /bin/sh: /usr/local/bin/generate-certs.sh: not found

executor failed running [/bin/sh -c chmod +x /usr/local/bin/generate-certs.sh && /usr/local/bin/generate-certs.sh && mkdir --parents /etc/haproxy/ssl/ && mv /certs/proxy.whatsapp.net.pem /etc/haproxy/ssl/proxy.whatsapp.net.pem && chown -R haproxy:haproxy /etc/haproxy/]: exit code: 127

Does anyone know a fix for this or what I may have done wrong?

@vigilant24 vigilant24 changed the title Error while making conatainer Error while making container Jan 7, 2023
@pedramfeyz
Copy link

pedramfeyz commented Jan 8, 2023

I get this error when making the container:

[ 5/14] RUN chmod +x /usr/local/bin/generate-certs.sh && /usr/local/bin/generate-certs.sh && mkdir --parents /etc/haproxy/ssl/ && mv /certs/proxy.whatsapp.net.pem /etc/haproxy/ssl/proxy.whatsapp.net.pem && chown -R haproxy:haproxy /etc/haproxy/:

#9 3.378 /bin/sh: /usr/local/bin/generate-certs.sh: not found
executor failed running [/bin/sh -c chmod +x /usr/local/bin/generate-certs.sh && /usr/local/bin/generate-certs.sh && mkdir --parents /etc/haproxy/ssl/ && mv /certs/proxy.whatsapp.net.pem /etc/haproxy/ssl/proxy.whatsapp.net.pem && chown -R haproxy:haproxy /etc/haproxy/]: exit code: 127

Does anyone know a fix for this or what I may have done wrong?

I got the same issue, I'm trying to build the docker image on a windows machine

@nariman-13
Copy link

Im also having the same issue trying to build a docker image on a windows machine. I have also done it on linux OS but the same issue...
anyone know how to fix this?

@sabzipolo705
Copy link

I had the same issue but solved it by changing the end-of-line (EOL) sequence from CRLF (Windows) to LF (Unix) in the generate-certs.sh file. You have to open \proxy\src\generate-certs.sh in a text editor that allows changing the EOL (like notepad++, VS Code, etc.), click on CRLF on the bottom right corner and change it to LF, save the file and run the docker build command again. Hope this helps!

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

4 participants