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

bug: TrueNAS App takes ~15 minutes to start after update #2190

Open
daviddreher2 opened this issue Jan 30, 2025 · 6 comments
Open

bug: TrueNAS App takes ~15 minutes to start after update #2190

daviddreher2 opened this issue Jan 30, 2025 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@daviddreher2
Copy link

Describe the bug

Homarr app on TrueNAS takes ~15 minutes to start

Logs show the app stuck as per below before it starts

Image

App worked perfectly before the 1.0.0 update

Steps to reproduce

install and start homarr app on truenas

Impact

frequent updates cause significant downtime, no workaround except for migrating away from TrueNAS

Additional information

TrueNAS version ElectricEel-24.10.1

Version

1.3.1

Installation method

TrueNAS Apps

Browser

Edge (Chromium)

@Meatfucker
Copy link

Im also experiencing this issue since the 1.0 update.

@manuel-rw
Copy link
Member

Hi, this is probably because you set UID & GID.
@Meierschlumpf anything we can do about this?

@daviddreher2
Copy link
Author

Hi, this is probably because you set UID & GID. @Meierschlumpf anything we can do about this?

These are the default settings for the TrueNAS app and appear to be mandatory

@manuel-rw
Copy link
Member

manuel-rw commented Jan 30, 2025

Hi, this is probably because you set UID & GID. @Meierschlumpf anything we can do about this?

These are the default settings for the TrueNAS app and appear to be mandatory

We don't have any control over how TrueNAS implements Homarr. When you use GID and UID, which is what is going on here, there can be a significant waiting time, because the container needs to chown many small files. Ensure that Homarr is running on fast SSDs.
We will check whether we can optimise this further somehow (we already did optimise this step) but there will always be an additional startup time when using these flags.
See https://homarr.dev/docs/advanced/running-as-different-user/

I agree though, 10 minutes is insane and we usually saw about 10-20 seconds on our development machines. So there's definitely something going on that we're not aware of.

It would be interesting to see, whether this issue is TrueNAS exclusive or also happens on other systems when you use a different user. Please comment if you have any insights on this.

@manuel-rw manuel-rw added bug Something isn't working help wanted Extra attention is needed and removed needs triage labels Jan 30, 2025
@Meierschlumpf
Copy link
Member

Hi, this is probably because you set UID & GID. @Meierschlumpf anything we can do about this?

I think we first need more details before we can investigate anything here. Locally it always took about 10 seconds (thats also the reason we write it in the logs). It's really weird that truenas takes so long

@Meatfucker
Copy link

In my own testing its easily reproducible on Electric Eel by installing the homarr app from the Truenas interface and starting it with the default settings. I had the same results on a fresh ixVolume as well as attempting to use my existing hostpath filestructure from my pre 1.0 homarr install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants