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.

@al3xLvs
Copy link
Member

al3xLvs commented Apr 7, 2020

I can suggest an environment variable to disable chown?

@al3xLvs
Copy link
Member

al3xLvs commented Nov 21, 2020

@askvortsov1 fixed in this commit 2c9e124

@al3xLvs al3xLvs closed this as completed Nov 21, 2020
@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

@al3xLvs
Copy link
Member

al3xLvs commented Apr 27, 2022

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.

@al3xLvs al3xLvs 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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy