mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 13:19:07 -05:00
Gateway Timeouts at random intervals #244
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 @OscarsWorldTech on GitHub (Apr 19, 2025).
I first want to say Pangolin has been a game changer with how I handle my websites!
The issue I am encountering is very hard to reproduce and seems to be very inconsistent. It seems to happen mostly at night and I can't find a reason for it. Whenever I try to access a website, will load forever and then throw a HTML page with "Gateway Timeout". What confuses me is that when I access my Pangolin website it loads instantly. It is not a problem with the tunnel and its connect nor is it a problem with the applications. If I wait a couple hours they seem to work perfectly (although when I am away from home/not on my home network, they still do take a minute to load).
Any advice would be appreicated! My leading theory right now is that I may need to switch to a faster VPS. Or could it possibly be that my VPS freezes up because I am also running endlessh + fail2ban + wazuh agent to send the logs to my Wazuh VM
Thank you!
@Lokowitz commented on GitHub (Apr 19, 2025):
Hi @OscarsWorldTech
I had a similar problem. After I added to much services to my vps, the connection was not stable. For me the RAM was the problem. Just 1GB was not enough.
Did you check your RAM usage? Maybe you can try with using swap. But you need enough disk space. My vps had only 1GB RAM and 10 GB disk space so swap was hard to implement. I switched to a bigger VPS with 2 GB RAM and 50GB disk. I also added 2 GB swap and now everything works perfect.
Hope this helps, Marvin.
@OscarsWorldTech commented on GitHub (Apr 19, 2025):
Hello @Lokowitz
I have not tried swap but it does seem like I am going to have to get a bigger VPS.
Thank you for the information!
@NecktiedHummingbird commented on GitHub (Apr 20, 2025):
I had a similar problem with my 1€ VPS with 1Core and 1GB RAM.
I just created a cronjob which restarts my instance twice a week at 3 a.m. and never had a problem since then.
It's a simple solution for the cheap VPS instances 😅
@OscarsWorldTech commented on GitHub (Apr 20, 2025):
I might look into that! Right now my solution is based off @Lokowitz and i created a 10gb swap file as I am not using a lot of the disk space.
@github-actions[bot] commented on GitHub (May 5, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@github-actions[bot] commented on GitHub (May 20, 2025):
This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.