Content
Installation of Openproject with Docker in Docker for Windows
Hello,
I am new to Openproject and eager to try everything. I want to run the Docker image of Openproject, but I am having trouble composing, since I am also a little new to Docker.
When I follow the instructions here (one container per process), the process stops at step 25 with this message:
Step 25/49 : RUN /tmp/build-pgloader && rm /tmp/build-pgloader
---> Running in 567bc35b2b44
/bin/sh: 1: /tmp/build-pgloader: not found
ERROR: Service 'worker' failed to build: The command '/bin/sh -c /tmp/build-pgloader && rm /tmp/build-pgloader' returned a non-zero code: 127
When I check the content of /tmp, there is nothing there. So yes, it makes sense that the script cannot continue if there is no file.
In the previous step 24, these files are supposed to be copied and are also present at the source folder, but it seems this is unsuccessful.
Can someone help me with this?
Thank you!
Hello,
almost the same here. I try to install OP 10.3 via Docker, based on Ubuntu18.04 LTS.
I've tried on two different systems (same OS) following this guide. (Quick Start)
But when connecting to port 8080 on my machine the only thing I get is this error message in the browser:
Error ID:
59628063
Details:
Web application could not be started by the Phusion Passenger application server.
Please read the Passenger log file (search for the Error ID) to find the details of the error.
You can also get a detailed report to appear directly on this page, but for security reasons it is only provided if Phusion Passenger is run with environment set to development and/or with the friendly error pages option set to on.
What can I do here? Is that error maybe related to the one above?
Regards
O.
Eric Harder wrote:
When I follow the instructions here (one container per process), the process stops at step 25 with this message:
ERROR: Service 'worker' failed to build: The command '/bin/sh -c /tmp/build-pgloader && rm /tmp/build-pgloader' returned a non-zero code: 127When I check the content of
/tmp, there is nothing there. So yes, it makes sense that the script cannot continue if there is no file.
I too am having this issue with stable/10 when using Docker Desktop on a win10 machine. At first I thought it might be a permissions issue but that doesn't appear to be the case. I also tried stable/9 and received the same error.
I have the same issue, i hope someone can help us.
I was able to bypass this issue in Windows by adding dos2unix to the build script in Dockerfile. I guess it is the case when you install git and select the line endings "wrong". You can try to reinstall the git and change the crlf to lf.
FROM ruby:2.6-stretch AS pgloader
RUN apt-get update -qq && apt-get install -y libsqlite3-dev make curl gawk freetds-dev libzip-dev dos2unix
COPY docker/mysql-to-postgres/bin/build /tmp/build-pgloader
RUN cd /tmp/ && ls /tmp && cat build-pgloader && dos2unix build-pgloader && ./build-pgloader && rm build-pgloader
Juha Viitanen wrote:
I was able to bypass this issue in Windows by adding dos2unix to the build script in Dockerfile. I guess it is the case when you install git and select the line endings "wrong". You can try to reinstall the git and change the crlf to lf.
FROM ruby:2.6-stretch AS pgloader RUN apt-get update -qq && apt-get install -y libsqlite3-dev make curl gawk freetds-dev libzip-dev dos2unix COPY docker/mysql-to-postgres/bin/build /tmp/build-pgloader RUN cd /tmp/ && ls /tmp && cat build-pgloader && dos2unix build-pgloader && ./build-pgloader && rm build-pgloader
@Juha I have no idea how you figured this out, but it's ingenious!
To add to this though, in case you have the same issue, before these edits will work, you'll need to reconfigure git (for Windows) from CRLF to LF, and you can do this by running
git config --global core.autocrlf false
You won't need to reinstall git if you do this first, however, you may need to re-clone the openproject git
Cheers
I develop with Windows 10 and I've bumped in to this issue with some other projects also cause of this crlf/lf thing. Hopefully people can now continue their journey with OpenProject! :D
@Juha Viitanen: I was able to bypass this issue in Windows by adding dos2unix to the build script in Dockerfile Brilliant!
@Kelechi EMENIKE: git config --global core.autocrlf false That works perfectly.
Great work! Everything seems to run as expected with those modifications. Thanks for the help. 😊