[SOLVED] proxy loop detected (500)

efyandro

Member
Mar 5, 2020
16
1
8
Hi, i've got the problem after changing hostname. Basically can't access all menu in pmg web gui. After reboot i can somehow access some of the menus except Mail Filter and its submenu (Action, Who, What and When Objects), and also Mail Proxy, Spam Detector, Virus Detector, User Management and Cluster. Note that my pmg installation is standalone and not part of a cluster.

SOLUTION:
My PMG installation recognized as a cluster (as master) with no other node joined the cluster.. and when i changed the hostname, the cluster name stays the same, so i need to change cluster name in /etc/pmg/cluster.conf to the new hostname then reboot.

Thankyou for Stoiko Ivanov for the help
 
Last edited:
  • Like
Reactions: Stoiko Ivanov
Hi, i've got the problem after changing hostname. Basically can't access all menu in pmg web gui.
How did you change the hostname (which files did you edit)?

Make sure that:
* /etc/hostname contains the short hostname (before the first '.')
* /etc/resolv.conf contains the domain name as search domain
* /etc/hosts has a pointer of the configured IP to the hostname and fqdn
* check that `ping -c 3 $(uname -n)` works and pings the configured IP

I hope this helps!
 
How did you change the hostname (which files did you edit)?

Make sure that:
* /etc/hostname contains the short hostname (before the first '.')
* /etc/resolv.conf contains the domain name as search domain
* /etc/hosts has a pointer of the configured IP to the hostname and fqdn
* check that `ping -c 3 $(uname -n)` works and pings the configured IP

I hope this helps!

/etc/hostname contains the current hostname, resolv.conf also contains the full domain name as searchdomain. /etc/hosts is also has a pointer both in localhost and the server IP with the hostname and fqdn... ping -c 3 $(uname -n) also reply with the correct IP..

i still can;t figure out the main cause of this issue.

This PMG server is connected to PBS server before changing hostname, can it be the cause?
 
what's the output of `pmgconfig dump` - regarding the hostnames?

did you reboot the machine after changing the hostname?
 
what's the output of `pmgconfig dump` - regarding the hostnames?

did you reboot the machine after changing the hostname?
i dont know which is right or wrong in this output

composed.wl_bounce_relays = pmg.pmg.domain.com dns.domain = pmg.domain.com dns.fqdn = pmg.pmg.domain.com dns.hostname = pmg

and this is screenshoot from Inspect Element
1630911008887.png
 
Last edited:
dns.fqdn = pmg.pmg.domain.com
unless the fqdn is really pmg.pmg.domain.com - you should edit your /etc/resolv.conf to only contain domain.com in the search line

I hope this helps!
 
unless the fqdn is really pmg.pmg.domain.com - you should edit your /etc/resolv.conf to only contain domain.com in the search line

I hope this helps!
nope, the correct fqdn is pmg.domain.com and the /etc/resolv.conf already chaged with correct domain.com.. reboot but the problem still there..
but only certain menu got the error..
1630981997076.png
 
SOLUTION:
My PMG installation recognized as a cluster (as master) with no other node joined the cluster.. and when i changed the hostname, the cluster name stays the same, so i need to change cluster name in /etc/pmg/cluster.conf to the new hostname then reboot.
Ok - that explains the issue :) - Thanks for coming back and sharing it!

if the node will remain standalone - you could consider removing the cluster config.
 

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!