mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 07:33:36 +01:00
panic runtime error after host reboot #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DrPulse on GitHub (Sep 6, 2025).
Hi,
First, thank you for this amazing piece of software, it's really intuitive, easy to use and works really well, especially for simple homelabs setup. It's nice to see efforts like this in the reverse proxy space.
I ran this on my NAS since version 0.16.1and it worked flawlessly.
But since version 16.2 or 17.0 I'm not sure, and after rebooting my host machine, I started having the following errors when deploying the compose file, crashing and restarting over and over the container
godoxy-proxy:I used the provided compose and .env files, except I binded the volumes elsewhere and the permissions seems correct, even did a
chown -R 1000:1000on the folder. I tried to delete the stack, folders, everything and remake it, with the same results.The
config.ymlfile is very close to the base one, using cloudflare and dns challenge, which successfully creates the certificates.The docker socket proxy is also working well I think, because in the stack logs all the running containers are added to the http routes.
The errors seem close to the ones in the issue #106 but seem to be related to missing permissions, which in my case don't know where.
To add a bit more context, the stack is running on a QNAP NAS, and was running well before reboots. However, it works perfectly when running in a VM on the said NAS (I switch the DNS and made sure it wasn't the root cause).
I'm not sure what could be causing the crashes, as all env variables are provided, certificates are created and the socket proxy working well
@yusing commented on GitHub (Sep 6, 2025):
That is very weird, GoDoxy does not use the
/.cachedirectory. Could you show me the full log?Found out it could be related to the
swaggo/swagpackage as it's the only thing that needsgolang.org/x/tools, which the error is from. Will remove the dependency and see if the problem is resolved.@yusing commented on GitHub (Sep 6, 2025):
@DrPulse Please check if it's fixed in v0.17.3
@DrPulse commented on GitHub (Sep 6, 2025):
The error related to the
/.cacheis gone with the v0.17.3. For the record, I couldn't find any other information in the logs related to that, even in debug mode.However, I still end up with the panic runtime error. One thing I noticed is that the json files supposed to live in the the
datafolder are not created, even if the logs says they are loaded:On my VM they are created fine, but in my current deployment context the files just don't exist. Maybe this is the cause of the panic error as metrics are icons are trying to be written ?
This might be an issue on my end though, but don't really see where right now
@yusing commented on GitHub (Sep 6, 2025):
Those files will only be saved when the process exits (gracefully). If possible please run the
godoxycontainer with root user once, then when it panics it will print the full error stack.@DrPulse commented on GitHub (Sep 6, 2025):
Here is the full stacktrace when run as root user:
@yusing commented on GitHub (Sep 7, 2025):
Could you show me the full docker compose of the container(s) with idlewatcher enabled (and it's dependencies: all containers in it's
depends_onorproxy.idlewatcher.depends_on)@DrPulse commented on GitHub (Sep 7, 2025):
I wrote here the compose files for the services where idle timeouts are activated.
Upon making it, I noticed that I used
godoxy.exclude=Trueon some dependencies containers (paperless or calibre-download), maybe it's mutually exclusive with the idle timeouts ?For the compose services without dependencies I only wrote one, as they follow the same pattern as the one shown, only having occasionally a different aliases, but no other differences.
@yusing commented on GitHub (Sep 8, 2025):
Fixed. Please update and report back, thanks.
@yusing commented on GitHub (Sep 8, 2025):
It's not, you can exclude dependencies from proxying.
@DrPulse commented on GitHub (Sep 8, 2025):
It now works perfectly. Thank you very much for your reactivity !