Proxmox VE and Traefik Reverse Proxy

scherepanov

Active Member
Jul 14, 2017
11
0
41
38
Hi guys!

I configured proxmox with traefik reverse proxy with enabled Lets Encrypt and almost work fine.

But some POST requests (VM start/stop/rest) returns 501 error. In access log of pve-proxy I see only this:

Code:
::ffff:127.0.0.1 - root@pam [14/07/2017:13:28:15 +0200] "GET /api2/json/nodes/dev/qemu/110/status/current HTTP/1.1" 200 248
::ffff:127.0.0.1 - root@pam [14/07/2017:13:28:16 +0200] "GET /api2/json/nodes/dev/qemu/110/pending HTTP/1.1" 200 621
::ffff:127.0.0.1 - - [14/07/2017:13:28:16 +0200] "POST /api2/extjs/nodes/dev/qemu/110/status/start HTTP/1.1" 501 -
::ffff:127.0.0.1 - root@pam [14/07/2017:13:28:16 +0200] "GET /api2/json/nodes/dev/qemu/110/status/current HTTP/1.1" 200 248

If I connected via 8006 port, all works. How I can get more info about the proxy errors?
 
Last edited:
does the journal say anything for this?
 
does the journal say anything for this?
In journalctl I see only traefik debug log

Here is output of journalctl -f
Code:
Jul 14 15:30:04 dev traefik[29473]: time="2017-07-14T15:30:04+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 2.839487ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:07 dev traefik[29473]: time="2017-07-14T15:30:07+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 2.636456ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:08 dev traefik[29473]: time="2017-07-14T15:30:08+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 2.353228ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:10 dev traefik[29473]: time="2017-07-14T15:30:10+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 3.280778ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:14 dev traefik[29473]: time="2017-07-14T15:30:14+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 3.035886ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:17 dev traefik[29473]: time="2017-07-14T15:30:17+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 3.499691ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:25 dev traefik[29473]: time="2017-07-14T15:30:25+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 5.742967ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:37 dev traefik[29473]: time="2017-07-14T15:30:37+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 5.177639ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:40 dev traefik[29473]: time="2017-07-14T15:30:40+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 200, duration: 2.390707ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"
Jul 14 15:30:40 dev traefik[29473]: time="2017-07-14T15:30:40+02:00" level=debug msg="Round trip: https\://localhost:8006, code: 501, duration: 1.023502ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:console.xxx.xxxxx"

PS: Error present in proxmox 4 and still exists after update to version 5.
 
Last edited:
After investigation I came to a conclusion that the problem was on the traefik side, because all works fine on traefik v1.2.3 and broken in the next releases.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!