Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Installation of Openproject with Docker in Docker for Windows

Installation of Openproject with Docker in Docker for Windows

Added by Eric Harder over 5 years ago

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!


Replies (7)

RE: Installation of Openproject with Docker in Docker for Windows - Added by Olaf Koester over 5 years ago

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.

RE: Installation of Openproject with Docker in Docker for Windows - Added by Richard L over 5 years ago

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: 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.

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.

RE: Installation of Openproject with Docker in Docker for Windows - Added by Fabian Vargas about 5 years ago

I have the same issue, i hope someone can help us.

RE: Installation of Openproject with Docker in Docker for Windows - Added by Juha Viitanen about 5 years ago

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

RE: Installation of Openproject with Docker in Docker for Windows - Added by Kelechi EMENIKE about 5 years ago

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

RE: Installation of Openproject with Docker in Docker for Windows - Added by Juha Viitanen about 5 years ago

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

RE: Installation of Openproject with Docker in Docker for Windows - Added by Richard L about 5 years ago

@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. 😊

  • (1 - 7/7)
Loading...