In Progress [CPANEL-39236] Login bug can cause services to restart

rolinger

Active Member
Feb 13, 2017
36
2
8
Tampa
cPanel Access Level
Root Administrator
I discovered an odd glitch that probably should be reported as a bug.

If you login to WHM, go to a service that can be restarted, such as "SQL Server (MySQL) " and then select "YES" to restart the service. The service restarts displaying the startup info and that the service has been restarted and is active again. All is good.

However, if you stay on this screen and the Login session times out, it will take you back to the login screen. If you login again, the page starts back up on the "I already selected YES to restart the service" response page - and it restarts the service again. This can be replicated as I have done it, by accident, a few times now.

The WHM is remembering the last page you were on, and after login, takes you back to the same page - if it happens to be the "response" page AFTER clicking a "YES, Restart Service" - then the Login will trigger another 'restart service'. WHM session login page should never allow the page to land on the service restart "response" page.
 
  • Like
Reactions: quietFinn

quietFinn

Well-Known Member
Feb 4, 2006
1,394
179
193
Finland
cPanel Access Level
Root Administrator
You are right, has happened to me a few times. :oops:
 

rolinger

Active Member
Feb 13, 2017
36
2
8
Tampa
cPanel Access Level
Root Administrator
@cPanelAnthony, I just read the article. It states that when "WHM detects an IP change it logs you out". Well, yes, that could happen too. But the issue can happen any time WHM forces an auto logout. Cookies expire, IP change, etc . My IP rarely changes but due to session/cookie timeout the logout/restart service occurs quite frequently during my dev testing (which often requires service restarts).
 
Last edited: