vsys-host / shkeeper.io

SHKeeper is a self-hosted and open-source cryptocurrency gateway payment processor. It's integrate with popular CMS, any e-commerce, your own code or product
https://shkeeper.io/
GNU General Public License v3.0
247 stars 63 forks source link

Backup page internal server error #29

Closed siddieswar closed 1 year ago

siddieswar commented 1 year ago

can't able to fetch backup file.

why again trying to establish connection to sqllite. use the old connection.

[2023-07-11 13:09:56,286] ERROR in app: Exception on /api/v1/BTC/backup [GET] Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 714, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 415, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.8/http/client.py", line 1256, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output self.send(msg) File "/usr/lib/python3.8/http/client.py", line 951, in send self.connect() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff4e027c040>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 798, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5555): Max retries exceeded with url: /2023-07-11_13:09:53_BTC_shkeeper_wallet.dat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff4e027c040>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2525, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1822, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1796, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) File "/crypto_node/shkeeperMain/shkeeper/auth.py", line 64, in wrapped_view return view(kwargs) File "/crypto_node/shkeeperMain/shkeeper/api_v1.py", line 355, in backup req = requests.get(url, stream=True, headers={"X-SHKEEPER-BACKEND-KEY": bkey}) File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 565, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5555): Max retries exceeded with url: /2023-07-11_13:09:53_BTC_shkeeper_wallet.dat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff4e027c040>: Failed to establish a new connection: [Errno 111] Connection refused'))

and make one config file for rpcuser. password, ip, port. they should be custom . and disabling currencies also from config file that would be good.

dmytro-samoylenko commented 1 year ago

Hello,

The error you get while trying to download backup caused by absence of nginx server on localhost:5555. I presume you are not installed Shkeeper using official guide. Currently we only support k8s as a platform for Shkeeper and Helm for it's configuration.

You can configure Shkeeper to disable currencies using values.yaml in Helm.

siddieswar commented 1 year ago

where is official guide please share with me...

image if I open 5555 port internal server error it says.

dmytro-samoylenko commented 1 year ago

https://github.com/vsys-host/shkeeper.io#installation