ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6.1k stars 279 forks source link

Internal server error when accessing #2167

Open Leo-is-me opened 3 hours ago

Leo-is-me commented 3 hours ago

Environment

Docker

Version

latest

Describe the problem

I saved the container and then later loaded it on the server. i found that the container seems to be using the wrong network. I then changed it to host network and released port 7575. Error when accessing

Logs

hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' } Error: getaddrinfo ENOTFOUND 3b1ba11303aa at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: '3b1ba11303aa' }

Context

Screenshot_20241023_223645_com microsoft emmx canary

Please tick the boxes

github-actions[bot] commented 3 hours ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

Meierschlumpf commented 2 hours ago

Hey, thanks for the report. I think the problem is related to the usage of host network. As we're using HOSTNAME to request authentication stuff internally (inside the container) and host network is configured it no longer can access the hostname, in your example 3b1ba11303aa. I would suggest to not use host network. Either you can create networks between docker things or follow the following stackoverflow post: https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach

Usage of HOSTNAME: https://github.com/ajnart/homarr/blob/5b23f7d13acc9cacc3c85522b3fd9ef01928cb72/scripts/run.sh#L4