openproject-deploy icon indicating copy to clipboard operation
openproject-deploy copied to clipboard

Compose: First login on fresh install fails due to wrong file permissions in mounted assets folder.

Open CybotTM opened this issue 1 year ago • 3 comments

First login after starting the composer stack fails with:

"Invalid user or password or the account is blocked due to multiple failed login attempts. If so, it will be unblocked automatically in a short time."

Due to wrong permissions in mounted volumes:

seeder-1    |  ↳ OverviewSeeder
seeder-1    | *** Seeding Overview
seeder-1    |    -Creating overview for Demo project
seeder-1    | rake aborted!
seeder-1    | Errno::EACCES: Permission denied @ dir_s_mkdir - /var/openproject/assets/files (Errno::EACCES)
seeder-1    | /app/lib/open_project/patches/fog_file.rb:12:in `mkdir!'

This error is hard to catch, maybe it should be more prominent or prevent successful container starting at all. Or it should be mentioned in the documentation how to create this folder.

CybotTM avatar Jun 10 '24 12:06 CybotTM

Is there any workaround?

my dirty solution is:


docker exec -u root -it compose_web_1 chmod a+rwx /var/openproject -R

twkrol avatar Jun 10 '24 20:06 twkrol

Definitely as show stopper for new users.

For the Copy-n-Paste trouble shooters, My solution based on @twkrol is

docker exec -u root -it compose-web-1 chmod a+rwx /var/openproject -R

I had to replace the underscores with dashes

itnavigate avatar Jun 12 '24 01:06 itnavigate

I had the same problem!After finish installing, Its wrong,Cant login, I think it is a serious problems for this project!Do they publish without verifying it often?

zhongsdjn avatar Jul 08 '24 01:07 zhongsdjn

Seams to be the same issue as #80

tiroessler avatar Oct 11 '24 07:10 tiroessler