project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

🐞 Bug: PegaProx unreachable after SSL + Port 443 / Reverse Proxy login timeout

Open PhiGi87 opened this issue 10 months ago β€’ 4 comments

Title

PegaProx becomes unreachable after enabling SSL + switching to port 443; behind nginx login triggers timeout to 127.0.0.1:5000


Description

When uploading an SSL certificate in PegaProx and changing the service port to 443, the system becomes unreachable. The service status still indicates it is running, but netstat shows no listening ports afterwards.

As an alternative, I tried keeping PegaProx on its original port and placing an nginx reverse proxy in front. In that setup, the login fails because the frontend times out while trying to reach 127.0.0.1:5000.

I haven’t been able to fully inspect all logs yet, so this might be known behavior.


Environment

  • Product: PegaProx Pre-Made VM (QEMU)
  • PegaProx version: Beta 0.6.1

Case A: Native SSL on Port 443

Steps to Reproduce

  1. Open PegaProx admin/configuration.
  2. Upload an SSL certificate and key.
  3. Change the configured listening port to 443.
  4. Apply/save configuration and restart the service if prompted.

Expected Behavior

  • PegaProx should start listening on TCP/443 and reachable via HTTPS.
  • netstat / ss should show the service listening on 0.0.0.0:443.

Actual Behavior

  • The web UI becomes unreachable.
  • Service status/health indicates it is still running, but netstat shows no open/listening port.
  • The service appears to be β€œalive” but not bound to a port.

Case B: nginx Reverse Proxy in front

Steps to Reproduce

  1. Keep PegaProx on its original port (5000).
  2. Configure nginx as reverse proxy for HTTPS 443 β†’ PegaProx upstream.
  3. Open the public URL and attempt to log in.

Expected Behavior

  • Login should succeed through the proxy.
  • No client-side/internal requests should depend on 127.0.0.1.

Actual Behavior

  • Login fails; frontend hits a timeout trying to connect to 127.0.0.1:5000.

Diagnostics / Evidence

  • After switching to 443 + SSL:
    • netstat shows no listening ports (PegaProx not listening)
  • Behind nginx:
    • Browser/frontend reports a timeout to 127.0.0.1:5000

Thank you for the great work and your help.

PhiGi87 avatar Jan 27 '26 05:01 PhiGi87

Hi @PhiGi87 , Case A: Please note that port 443 is a known limitation on Linux – it's a privileged port that can't be used with the PegaProx service user. https://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-privileged-ports-on-linux

Case B: Thanks for the detailed steps. It looks like there might be a configuration issue with how the frontend resolves the backend URL behind your nginx reverse proxy. Could you send us the following logs to [email protected] so we can investigate further:

PegaProx logs nginx configuration (sites-available) Browser console output (F12 β†’ Console)

Regards, Marcus

mkellermann97 avatar Jan 27 '26 10:01 mkellermann97

I need to rebuild it like that. I'll try to recreate it in the next few days.

PhiGi87 avatar Jan 29 '26 06:01 PhiGi87

Heyha @PhiGi87 ,

please check this out and run this in your VM. Curl -O https://raw.githubusercontent.com/PegaProx/project-pegaprox/refs/heads/main/web/Dev/patch.sh chmod +x patch.sh ./patch.sh

This should fix most / all of the issues that we had with the old VM preview. This shiould also fix the 443 problem. Just to be sure please make a snapshot before I did work with out VM but we are unsure. Best regards, Nico

MrMasterbay avatar Jan 29 '26 22:01 MrMasterbay

Hi @PhiGi87 , Issue closed feel free to reopen it again if the fix didn't work.

Best Regards, Nico

MrMasterbay avatar Feb 01 '26 10:02 MrMasterbay