Hi! I have this error when accesing the addons page.
The strange thing is that I rolled back to a saved backup when everything was working fine, but now it doesn't.
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='brandnew.aapanel.com', port=443): Max retries exceeded with url: /api/panel/getSoftList?status=False&msg=Please+login+with+account+first&environment_info=%7B%7D (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))
REQUEST_DATE: 2024-01-06 19:47:20
PAN_VERSION: 6.8.31
OS_VERSION: Ubuntu 20.04.4 LTS x86_64(Py3.7.9)
REMOTE_ADDR: 190.195.191.131
REQUEST_URI: POST /plugin?action=get_soft_list
REQUEST_FORM: {'p': 'null', 'type': '-1', 'tojs': 'soft.get_list', 'force': '1', 'query': ''}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 247, in getaddrinfo
addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/resolver/thread.py", line 63, in getaddrinfo
return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pool.py", line 161, in apply
return self.spawn(func, *args, **kwds).get()
File "src/gevent/event.py", line 306, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 336, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 324, in gevent._gevent_cevent.AsyncResult.get
File "src/gevent/event.py", line 304, in gevent._gevent_cevent.AsyncResult._raise_exception
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_compat.py", line 65, in reraise
raise value.with_traceback(tb)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/threadpool.py", line 167, in __run_task
thread_result.set(func(*args, **kwargs))
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 499, in send
timeout=timeout,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='brandnew.aapanel.com', port=443): Max retries exceeded with url: /api/panel/getSoftList?status=False&msg=Please+login+with+account+first&environment_info=%7B%7D (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1812, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1764, in run
result = getattr(toObject,get.action)(get)
File "class/panelPlugin.py", line 690, in get_soft_list
softList = self.get_cloud_list(get)
File "class/panelPlugin.py", line 366, in get_cloud_list
listTmp = requests.post(cloudUrl, params=pdata, headers=url_headers,verify=False)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='brandnew.aapanel.com', port=443): Max retries exceeded with url: /api/panel/getSoftList?status=False&msg=Please+login+with+account+first&environment_info=%7B%7D (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))
I tried to fix panel, restart panel and server, but nothing works.
To give more context, this is not a production server, what I did was to unistall mysql 5.5 to install mariaDB. But like I said, I had a back up so I figured that if anything went wrong i could roll back and everything would work, but it wasn't the case.
Any idea? thanks in advance.