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: Unable to access Homarr when Internet is down. #2249

Closed
MrMxyzptlk opened this issue Feb 4, 2025 · 11 comments · Fixed by #2289
Closed

bug: Unable to access Homarr when Internet is down. #2249

MrMxyzptlk opened this issue Feb 4, 2025 · 11 comments · Fixed by #2289
Labels
bug Something isn't working

Comments

@MrMxyzptlk
Copy link

Describe the bug

The Internet was down across the S.E. United States yesterday, and Homarr errored out the whole time.
I have the links to all my apps in Homarr, and should still have been able to access the GUI from my internal network.

Here is what popped up on the main screen; I couldn't access any other parts of Homarr as there was nothing to click on.

Application error: a server-side exception has occurred (see the server logs for more information).
Digest: 1134179539

Steps to reproduce

Disable Internet...

Impact

Cannot open any of my many apps without individually opening them from my browser bookmarks.

Additional information

Thank you

Version

1.4.0

Installation method

Docker Run

Browser

Chrome

@Meierschlumpf
Copy link
Member

Hey @MrMxyzptlk
I tried to reproduce this locally, but when I disabled my internet everything kept working (except of course the loading of certain data that used external sources or the pings. Can you maybe add some more details and the server logs when you are still able to reproduce this? Thank you!

@Jaksa101
Copy link

Jaksa101 commented Feb 9, 2025

Hey @MrMxyzptlk I tried to reproduce this locally, but when I disabled my internet everything kept working (except of course the loading of certain data that used external sources or the pings. Can you maybe add some more details and the server logs when you are still able to reproduce this? Thank you!

I'm experiencing the same issue.

When I block internet access via the firewall, it takes about 10-15 minutes before I also receive an error. I can't access the server right now, but according to the logs, there were errors connecting to GitHub (possibly due to an update check?), but nothing else.
I can provide the exact logs tomorrow if needed.

@Meierschlumpf
Copy link
Member

Yes this is fine when it is showing an error in the logs if it is unable to reach github for the update check / icon updates. But the issue here described would be worse as it would crash the page when loading it. A few errors in the logs are okay

@MrMxyzptlk
Copy link
Author

How do I get to the previous logs? I'm on Windows and Docker.

@Meierschlumpf
Copy link
Member

Not possible to get older logs I think

@Jaksa101
Copy link

Jaksa101 commented Feb 9, 2025

Yes this is fine when it is showing an error in the logs if it is unable to reach github for the update check / icon updates. But the issue here described would be worse as it would crash the page when loading it. A few errors in the logs are okay

I think you misunderstood me.

The page is crashing for me too, and Homarr is no longer working either. However, the only error in the logs is related to GitHub updates. This happens 10 to 15 minutes after blocking internet access.

@MrMxyzptlk
Copy link
Author

If you can't get earlier logs, and you can't access the logs when the internet is down....

@Meierschlumpf
Copy link
Member

With docker it should work I guess, right? Like attaching to the container

@MrMxyzptlk
Copy link
Author

I can try and restart Homarr docker without a network connection and see what happens.
But that brings me to my original question, where are the logs in the docker container?

@Meierschlumpf
Copy link
Member

@Jaksa101
Copy link

Jaksa101 commented Feb 9, 2025

I just created a new Docker Container with Homarr. Then I blocked internet usage via firewall. It needed some time but now I´m getting the error again and I´m not able to use Homarr.

Error when opening Homarr:
Application error: a server-side exception has occurred (see the server logs for more information).
Digest: 687904191

Log:
⨯ Error [TRPCError]: getaddrinfo EAI_AGAIN api.github.com
at (HttpError: getaddrinfo EAI_AGAIN api.github.com)
at F (.next/server/chunks/9392.js:121:35827)
at async eW (.next/server/chunks/9392.js:122:83707)
at async l.doExecute (.next/server/chunks/9392.js:36:314783) {
code: 'INTERNAL_SERVER_ERROR',
digest: '687904191',
[cause]: Error [HttpError]: getaddrinfo EAI_AGAIN api.github.com
at (HttpError: getaddrinfo EAI_AGAIN api.github.com)
at F (.next/server/chunks/9392.js:121:35827)
at async eW (.next/server/chunks/9392.js:122:83707)
at async l.doExecute (.next/server/chunks/9392.js:36:314783) {
status: 500,
request: {
method: 'GET',
url: 'https://api.github.com/repos/homarr-labs/homarr/releases',
headers: [Object],
request: [Object]
},
response: undefined,
[cause]: [TypeError: fetch failed] {
[cause]: [Error: getaddrinfo EAI_AGAIN api.github.com] {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'api.github.com'
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants