Open askvortsov1 opened 4 years ago
I can suggest an environment variable to disable chown?
@askvortsov1 fixed in this commit 2c9e12466085
The [flarum] [INFO] Setting folder permissions
step is taking more than 8 minutes on my machine.
@Magicalex I can confirm that this still takes nearly 10 minutes on a quick machine. The fix does not appear to be working as expected. (Or it took even longer before ...).
Do all files in /etc/s6.d /run/php /var/log /var/lib/nginx
really have to be chowned every time?
Maybe this can be done differently by using groups. The whole php and flarum installation belongs to group flarum
and the $UID
is just added to the group?
I saw that we did something like this at work.
![]()
Do all files in
/etc/s6.d /run/php /var/log /var/lib/nginx
really have to be chowned every time?
No, i'm not sure. I need to dive back into it. I am interested in your solutions.
Issue is still here. A fix is really needed since 2 years passed and each restart of the flarum instance takes ages to load. Is there any solution to this? Why is it necessary to run chown on each start?
Whenever the docker container is started, every folder and file in /flarum is chown'ed to a special user created for running flarum (UID 991 by default). This is extremely slow, and if multiple extensions are installed, can take multiple minutes to complete.