Content
Devlopment with docker
Added by Bernd Hemmer over 3 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)
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 theckeditor
directory on the host, restored it withgit 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!
Thanks for your help, this solved my problem!
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