nitaish

Well-Known Member
PartnerNOC
Jan 6, 2006
137
3
168
Mulund, India,
We are facing a difficult time after migrating a website from one cPanel server to another. We have a customer who is facing some issues with his current VPS. We offered to migrate his website to another VPS. We migrated the entire cPanel account using the Transfer Tool. After the migration was completed, the website in the original VPS got automatically suspended and the DNS records were modified with the new VPS' IP address. As a result, the website stopped. When we changed the DNS records back to point to the original IP address, we started facing issues with the Proxy Backend. We observed the following

1. The /etc/apache2/conf/httpd.conf file has the lines ProxyPass "http://<Hostname_of_new_VPS"
2. The emails weren't getting delivered and we have to reset the service certificate for Dovecot and Exim to fix the issue.
3. The .htaccess of the websites get modified with the following line appended

RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php5|php6|php3|shtml)$ http://<Hostname_of_vps/cgi-sys/movingpage.cgi
4. The /var/cpanel/users/<user_name> file gets modified with the value of PROXY_BACKEND set to the hostname of the new VPS.
5. If we comment the line ProxyPass "http://<Hostname_of_new_VPS" as shown in the point 1 above and restart apache, the website starts working. However, in a few minutes it reverts back to original and the website stops with the following error


The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: DNS lookup failure for: <Hostname_of_new_VPS>

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.

The Transfer Tool has certainly created lots of issues with the original server which was never the case with the earlier cPanel versions. It looks like cPanel has created a very big blunder by making changes in the Transfer Tool. Please help to resolve the issue permanently.
 

andrew.n

Well-Known Member
Jun 9, 2020
607
171
43
EU
cPanel Access Level
Root Administrator
This is a bug in the current cPanel version and a fix is on the way as per @cPanelLauren mentioned earlier if I recall.
 

kodeslogic

Well-Known Member
Apr 26, 2020
295
103
118
IN
cPanel Access Level
Root Administrator
  • Like
Reactions: cPanelLauren

tonyotonio

Member
Dec 27, 2015
7
1
3
Philippines
cPanel Access Level
Root Administrator
Currently experiencing this now.


running:
whmapi1 unset_all_service_proxy_backends username=cpanelusername

Doesnt remove the .htaccess entries

mail are also not being routed/delivered

checking mail delivery shows this error:

also getting lookup of host "xxxxxx" failed in manualmx router


update:

running "whmapi1 unset_manual_mx_redirects domain=XXXX"
and restarting Exim
seems to have fixed the deliverability issue
 
Last edited:

amit210

Registered
Nov 22, 2020
1
0
1
India
cPanel Access Level
Reseller Owner
Hi.. just checking if the Transfer Tool issues were fixed? @cPanelLauren would you be able to confirm? I just completed a transfer, and didnt notice any Apache related issues, but the DNS Zone entries in the source servers are changed to the target server. Is there a way to avoid that? Has it always been like this?
Edit: ok you can ignore this.. just found out about the Live Transfer option..and that i can disable it. In case there is other information that may be helpful.. i'll appreciate. thanks.
 
Last edited:

lorio

Well-Known Member
Feb 25, 2004
313
20
168
cPanel Access Level
Root Administrator
@cPRex The question was, if the issues around the Transfer Tool are fixed. Is that the case?
Thanks @andrew.n and @kodeslogic that's correct, it is an issue with the transfer tool and is being fixed currently.
The issue was confirmed three months ago. What is the current status?
 

Seff

Registered
May 2, 2015
3
0
51
Kerala, India
cPanel Access Level
Root Administrator
I had a similar issue after doing the Express Transfer and manual rolling back. The email client and webmail logins were failing with the following error:


Code:
Dec  4 23:22:06 hostname dovecot: imap-login: Aborted login (proxy dest auth failed): user=<[email protected]>, method=PLAIN, rip=1.2.3.4, lip=192.168.156.125, TLS, session=</Cf5xbC1Ft9Iw8Aw>
The doveadm output was like below:

Code:
# doveadm user cpanel_user

home /home/cpanel_user
host remote.hostname.com
userdb_ssl any-cert
userdb_host remote.hostname.com
ssl any-cert
nopassword y
userdb_proxy_maybe y
userdb_nopassword y
proxy_maybe y
The command "whmapi1 unset_manual_mx_redirects domain=main-doamin.com" didn't remove the entries from /etc/manualmx. So, I had to manually remove the domain entries from the it and restart the dovecot.

The entire steps are:

  1. Removed domain entries from /etc/manualmx
  2. whmapi1 unset_manual_mx_redirects domain=main-domain.com
  3. systemctl restart dovecot
  4. doveadm user cpanel_user