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

service 'web' failed error when running Dockerfile #221

Open
nuljon opened this issue Jul 21, 2018 · 1 comment
Open

service 'web' failed error when running Dockerfile #221

nuljon opened this issue Jul 21, 2018 · 1 comment

Comments

@nuljon
Copy link

nuljon commented Jul 21, 2018

Hi, I tried to install the Docker container per the Readme instructions.

It fails with the following error:

Step 30/38 : RUN rm /app/src//settings/local.py && find . -na
elete && python -mcompileall -q / && manage.py compilemess
anage.py collectstatic --noinput --link && manage.py migrate &&
y loaddata example_data.json && mkdir -p /app/web/media /app/we
E && chown -R app:app /app/web/media/ /app/web/static/CACHE /tm
chmod -R go+rw /app/web/media/ /app/web/static/CACHE /tmp/demo.
---> Running in 138fec6aa2a9
/usr/bin/env: `python\r': No such file or directory
ERROR: Service 'web' failed to build: The command '/bin/sh -c rm /a
ings/local.py
&& find . -name '*.pyc' -delete && python -m
*/ && manage.py compilemessages && manage.py collectstatic
link && manage.py migrate && manage.py loaddata example_dat
mkdir -p /app/web/media /app/web/static/CACHE && chown -R app:
media/ /app/web/static/CACHE /tmp/demo.db && chmod -R go+rw /ap
/app/web/static/CACHE /tmp/demo.db' returned a non-zero code: 127

@nuljon
Copy link
Author

nuljon commented Jul 23, 2018

Although I did not edit anything first, I am on a windows machine. So, I added dos2unix against the manage.py file in the Docker file, which was my guess for the source of the 'python\r' issue. However, despite successfully installing and running dos2unix command during the docker sequence, the same error remains. Maybe I didn't do something right? I do not see where else the 'python\r' could be coming from.

Step 30/39 : RUN dos2unix /app/src/manage.py
---> Running in b86f4efdd5ff
dos2unix: converting file /app/src/manage.py to Unix format...
Removing intermediate container b86f4efdd5ff
---> 8d73ef5d1bdd
Step 31/39 : RUN rm /app/src/
/settings/local.py* && find . -name '.pyc' -delet
e && python -mcompileall -q / && manage.py compilemessages && manage.py
collectstatic --noinput --link && manage.py migrate && manage.py loaddata e
xample_data.json && mkdir -p /app/web/media /app/web/static/CACHE && chown -
R app:app /app/web/media/ /app/web/static/CACHE /tmp/demo.db && chmod -R go+rw /
app/web/media/ /app/web/static/CACHE /tmp/demo.db
---> Running in 618ebd84a1f1
/usr/bin/env: python\r: No such file or directory
The command '/bin/sh -c rm /app/src/
/settings/local.py
&& find . -name '*.pyc'
-delete && python -mcompileall -q */ && manage.py compilemessages && ma
nage.py collectstatic --noinput --link && manage.py migrate && manage.py loa
ddata example_data.json && mkdir -p /app/web/media /app/web/static/CACHE &&
chown -R app:app /app/web/media/ /app/web/static/CACHE /tmp/demo.db && chmod -R
go+rw /app/web/media/ /app/web/static/CACHE /tmp/demo.db' returned a non-zero code:
127

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

1 participant