Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup and install slow due to chown #52

Open
askvortsov1 opened this issue Apr 7, 2020 · 7 comments
Open

Startup and install slow due to chown #52

askvortsov1 opened this issue Apr 7, 2020 · 7 comments

Comments

@askvortsov1
Copy link
Contributor

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.

@Magicalex
Copy link
Member

I can suggest an environment variable to disable chown?

@Magicalex
Copy link
Member

@askvortsov1 fixed in this commit 2c9e124

@antl3x
Copy link

antl3x commented Nov 18, 2021

The [flarum] [INFO] Setting folder permissions step is taking more than 8 minutes on my machine.

@Marty
Copy link
Contributor

Marty commented Mar 2, 2022

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

@antl3x
Copy link

antl3x commented Apr 24, 2022

@Magicalex
Copy link
Member

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.

@Magicalex Magicalex reopened this Apr 27, 2022
@LoneDev6
Copy link

LoneDev6 commented Dec 2, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants