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

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Devlopment with docker

Devlopment with docker

Added by Bernd Hemmer about 4 years ago

Hello,

i´m trying to get startet with the development via docker. I followed the steps on https://docs.openproject.org/development/development-environment-docker/

Settings thing up and starting worked so far. When I tried to access openproject via the browser i get the following error messages:

vendor.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
polyfills.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
main.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
runtime.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
styles.css:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
(index):465 Uncaught ReferenceError: jQuery is not defined
   at (index):465

The log shows this:

frontend_1       | Build at: 2021-04-07T10:22:15.629Z - Hash: baa71391e546dbb7adb3 - Time: 116465ms
frontend_1       | 
frontend_1       | Error: ./src/app/modules/common/ckeditor/ckeditor-setup.service.ts
frontend_1       | Module not found: Error: Can't resolve 'core-vendor/ckeditor/ckeditor.js' in '/home/dev/openproject/frontend/src/app/modules/common/ckeditor'
frontend_1       | 
frontend_1       | 
frontend_1       | 
frontend_1       | ** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/assets/frontend **

I´m not sure what went wrong do you have any idea?

thanks a lot!


Replies (3)

RE: Devlopment with docker - Added by Graham Cole about 4 years ago

This exact thing just happened to me too. (MacOS, Docker Desktop 2.5.0.1)

Exec-ing into the frontend container, the src/vendor/ckeditor directory appeared empty.

On the host machine, the ckeditor.js file was present though! I removed the ckeditor directory on the host, restored it with git checkout -- ckeditor now everything is working correctly again.

This sounds like Docker/Mac file syncing weirdness - no idea what should trigger it for this specific directory for two different people, though!

RE: Devlopment with docker - Added by Bernd Hemmer about 4 years ago

Thanks for your help, this solved my problem!

RE: Devlopment with docker - Added by Graham Cole almost 4 years ago

Upon further investigation, this problem appears to now be resolved by a recent tweak to the docker-compose.yml - previously it was attempting to mount a missing directory (from outside of the source tree?!) at that location.

Applying this single line change fixed the problem for me:

https://github.com/opf/openproject/blob/7e2e05c88f32cbb5c0b3c6a8ecd3487f42d059d6/docker-compose.yml#L70

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