I had my aapanel instance hooked up to a domain that had recently expired
So, I disable domain locking through the terminal then login to the panel and change url
After that, I disable ssl so I could then regenerate SSL for aapanel
Once I go to the new URL, I try to login and it keeps me locked at the loading screen, checking devtools shows that its redirecting the POST request with the login information to the login screen (its returining the html)
That makes me panic, so I go to turn aapanel ssl back on through the terminal and I execute the command and nothing happens.
this is what happens when attempting to turn ssl back on through terminal
root@wtf:/home/billy# bt
===============aaPanel CLI==================
(1) Restart panel (8) Change panel port
(2) Stop panel (9) Clear panel cache
(3) Start panel (10) Clear login limit
(4) Reload panel (11) Turn on/off IP + User-Agent Authenticator
(5) Change panel password (12) Cancel domain binding limit
(6) Change panel username (13) Cancel IP access limit
(7) Forcibly change MySQL root password (14) View panel default info
(22) Display panel error log (15) Clear system rubbish
(23) Turn off BasicAuth Authenticator (16) Repair panel (check for errors and update panel files to the latest version)
(24) Turn off Google Authenticator (17) Set log cutting on/off compression
(25) Save copy when modify file in panel (18) Set whether to back up the panel automatically
(26) Keep/Remove local backup when backing up to cloud storage
(27) Turn on/off panel SSL (28) Modify panel security entrance
(33) lift the explosion-proof limit on the panel
(0) Cancel
Pls enter command number:27
EXECUTING
0
aaPanel default info!
aaPanel Internet Address: http://not-leaking
aaPanel Internal Address: http://not-leaking
username: not-leaking
password: ********
Warning:
If you cannot access the panel,
release the following port (15008|888|80|443|20|21) in the security group
If cannot login, please change the browser or use the incognito mode of browser access
root@wtf:/home/billy# bt 9
EXECUTING
Reload Bt-Panel.. done
root@wtf:/home/billy# bt 27
EXECUTING
0
aaPanel default info!
aaPanel Internet Address: http://not-leaking
aaPanel Internal Address: http://not-leaking
username: not-leaking
password: not-leaking
Warning:
If you cannot access the panel,
release the following port (not-leaking) in the security group
If cannot login, please change the browser or use the incognito mode of browser access
root@wtf:/home/billy#
Looking at panel error logs, it returns this
[2024-11-09 22:21:58][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1821, in full_dispatch_request
rv = self.preprocess_request()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 2313, in preprocess_request
rv = self.ensure_sync(before_func)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/init.py", line 253, in request_check
return abort(401)
^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/helpers.py", line 310, in abort
current_app.aborter(code, args, **kwargs)
File "/www/server/panel/pyenv/lib/python3.12/site-packages/werkzeug/exceptions.py", line 864, in call
raise self.mapping
(*args, **kwargs)
werkzeug.exceptions.Unauthorized: 401 Unauthorized: The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.
If anybody could help me fix this, that would be helpful