SOLVED WHM Login failure "A network error occurred during your login request"

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
Hello, lately i did run an AutoSSL installation to my domains, after that i failed to access to whm via https://MyServerIp:2087, sometimes i get a timeout but when the login page appears, i put the login details but unfortunately i got the error message "A network error occurred during your login request. Please try again. If this condition persists, contact your network service provider."
i can log in the server using ssh. please help me. thank you
 

rbairwell

Well-Known Member
May 28, 2022
117
49
28
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
If you've setup SSL, try accessing WHM by https://server.example.com:2087 and not the IP address.

You should be able to also access WHM via port :2086 over http (not https) - if you've enabled " Non-SSL redirect destination" under "Tweak Settings" (it is enabled by default), this can be disabled by editing /var/cpanel/cpanel.config and changing "alwasyredirecttossl" to 0

I suspect you've enabled "Cookie IP validation" in Tweak settings (which is set to "strict" by default) then the cookie is being set on the IP address you are originally requesting but then when the details are being submitted it is redirecting to https://server.example.com:2087 (where server.example.com is your server's hostname) and the data says "check the cookie" but there is no cookie being sent as it is a different hostname.
 

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
well i did try with http://myservername:2086 , it worked i opened the WHM session, but i disconnected and tryed one more time, then i got the same timeout error or network problem, i tryed more then once to login, and i made it finaly, but i want to know the reason. The https still not working
i checked the ' Cookie IP validation = Strict'. thank you for your help in advance.
 

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
same thing i still got " ERR_CONNECTION_TIMED_OUT" and when it succeed to load the page i get "A network error occurred during your login request. Please try again. If this condition persists, contact your network service provider." when i put the login details. Please anyone to help me with this
 

Attachments

rbairwell

Well-Known Member
May 28, 2022
117
49
28
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
Can you provide the following (replacing your servername with server.example.com and your IP address with 192.168.0.1 ):
1. Which URL (including the protocol) you are going to to login
2. What the URL (including the protocol) is displayed when you see that "A network error occurred" message
3. Which web browser are you using (and have you tried any others)?

Have you tried logging in after disabling cPHulk
(from the SSH command line as root: whmapi1 configureservice service=cphulkd enabled=0 monitored=0) and flushing cPHulk's database (again, from SSH as root:
iptables -F cphulk && /usr/local/cpanel/3rdparty/bin/sqlite3 /var/cpanel/hulkd/cphulk.sqlite "DELETE FROM login_track;" ) ?

Have you also tried disabling cookieipvalidation and requiressl in [URL='https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-config-file/']/var/cpanel/cpanel.config[/URL] (this could be done via the root command line via
Code:
sed -i 's/requiressl=1/requiressl=0/' /var/cpanel/cpanel.config
sed -i 's/cookieipvalidation=.*$/cookieipvalidation=disabled/' /var/cpanel/cpanel.config
?
 

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
hello,
i disabled cphulk and disabled cookieipvalidation and i still get the same issue, the outlook is getting error too the configuration of outlook is with SSL. (it takes too much time to receive email and send, and mostly it dosnt work with error) POP protocol


i tryied two web browsers and different ip address
the webmail also is not working, " A network error occurred during your login request. Please try again. If this condition persists, contact your network service provider "
 

Attachments

Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
If Outlook is experiencing the issue a well, that would be a clue that the issue may really be on your local network and not a problem with the server.

Since you mentioned you are sometimes able to connect to SSH, do you see any additional details in the cPanel error log at /usr/local/cpanel/logs/error_log?
 

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
Maybe it's a something about security?

Well, i don't think its on local network, since i tryied from 4 different location, all the accounts are having this problem.

ssh also :
Network error: Connection timed out from local network.

additional details in error_log:
Net::SSLeay error left in queue from previous call: “error:140E0197:SSL routines:SSL_shutdown:shutdown while in init” (336462231) at /us$
Net::SSLeay error left in queue from previous call: “error:140E0197:SSL routines:SSL_shutdown:shutdown while in init” (336462231) at /us$

-------------------------------------------
[2022-10-27 01:52:51 +0000] info [wpt_license] Nothing to do
⚠ New Security Advisor notifications with Medium importance

Type

Module

Advice

⚠ Medium

Apache

LiteSpeed vhosts are not segmented or chroot()ed. Consider a more robust solution by using “CageFS on CloudLinux”.
 

MustaphaG

Member
Sep 7, 2020
20
2
3
tunisia
cPanel Access Level
Root Administrator
the firewall on the server provider is disabled already, this is really strange, using wifi from my home or the wifi of 3 companies i got no access to whm and ssh. and when i share connection from my cellphone i can connect to ssh and whm. is there any explination for this. is there a restriction for country or something like this?? i had this issue since 27/10/2022.
 

Attachments

rbairwell

Well-Known Member
May 28, 2022
117
49
28
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
the problem was with the provider. thank you for your support and your time
Glad it's resolved after all that. Were they able to shed any light as to what the actual problem was just so if anybody else has this issue in the future the knowledge is here to share! ;)