Bot don't start
`ubuntu:~/environment/Ravager (main) $ docker logs -f ravager
"2023-06-28 09:32:46,124 — /app/ravager/housekeeping.py — INFO —
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pysetup/.venv/bin/celery", line 8, in
Please specify a different user using the --uid option.
User information: uid=0 euid=0 gid=0 egid=0
warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
-------------- celery@d2595b795205 v5.2.7 (dawn-chorus) --- ***** ----- -- ******* ---- Linux-5.4.0-1103-aws-x86_64-with-glibc2.28 2023-06-28 09:35:00
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app: Essential Bot Tasks:0x7fcd69154a00
- ** ---------- .> transport: redis://redis:6379//
- ** ---------- .> results: redis://redis/
- *** --- * --- .> concurrency: {min=5, max=10} (prefork) -- ******* ---- .> task events: ON --- ***** ----- -------------- [queues] .> celery exchange=celery(direct) key=celery
[tasks] . download_updater . ravager.celery_tasks.tasks.clean_database . ravager.celery_tasks.tasks.keep_heroku_alive . ravager.celery_tasks.tasks.restart_heroku . start_download . start_upload
"2023-06-28 09:35:05,841 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc3e2a315d0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" "2023-06-28 09:35:10,848 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc3e2a31870>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" "2023-06-28 09:35:15,854 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc3e2a32620>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" [2023-06-28 09:35:20 +0000] [32] [ERROR] Exception in worker process Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 140, in _new_conn conn = connection.create_connection( File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/connection.py", line 83, in create_connection raise err File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 614, in urlopen httplib_response = self._make_request(conn, method, url, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 360, in _make_request self._validate_conn(conn) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 857, in _validate_conn super(HTTPSConnectionPool, self)._validate_conn(conn) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 289, in _validate_conn conn.connect() File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 284, in connect conn = self._new_conn() File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 144, in _new_conn raise ConnectTimeoutError( telegram.vendor.ptb_urllib3.urllib3.exceptions.ConnectTimeoutError: (<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc3e2a322f0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/utils/request.py", line 259, in _request_wrapper resp = self._con_pool.request(*args, **kwargs) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 68, in request return self.request_encode_body(method, url, fields=fields, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body return self.urlopen(method, url, **extra_kw) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 665, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 376, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) telegram.vendor.ptb_urllib3.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook (Caused by ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc3e2a322f0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pysetup/.venv/bin/celery", line 8, in
Please specify a different user using the --uid option.
User information: uid=0 euid=0 gid=0 egid=0
warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
-------------- celery@d2595b795205 v5.2.7 (dawn-chorus) --- ***** ----- -- ******* ---- Linux-5.4.0-1103-aws-x86_64-with-glibc2.28 2023-06-28 11:05:35
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app: Essential Bot Tasks:0x7f6204184a00
- ** ---------- .> transport: redis://redis:6379//
- ** ---------- .> results: redis://redis/
- *** --- * --- .> concurrency: {min=5, max=10} (prefork) -- ******* ---- .> task events: ON --- ***** ----- -------------- [queues] .> celery exchange=celery(direct) key=celery
[tasks] . download_updater . ravager.celery_tasks.tasks.clean_database . ravager.celery_tasks.tasks.keep_heroku_alive . ravager.celery_tasks.tasks.restart_heroku . start_download . start_upload
"2023-06-28 11:05:40,488 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9abb2a9390>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" "2023-06-28 11:05:45,495 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9abb2a9630>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" "2023-06-28 11:05:50,501 — telegram.vendor.ptb_urllib3.urllib3.connectionpool — WARNING — urlopen:689 — Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9abb2aa3e0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')': /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook" [2023-06-28 11:05:55 +0000] [33] [ERROR] Exception in worker process Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 140, in _new_conn conn = connection.create_connection( File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/connection.py", line 83, in create_connection raise err File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 614, in urlopen httplib_response = self._make_request(conn, method, url, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 360, in _make_request self._validate_conn(conn) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 857, in _validate_conn super(HTTPSConnectionPool, self)._validate_conn(conn) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 289, in _validate_conn conn.connect() File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 284, in connect conn = self._new_conn() File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 144, in _new_conn raise ConnectTimeoutError( telegram.vendor.ptb_urllib3.urllib3.exceptions.ConnectTimeoutError: (<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9abb2aa0b0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/utils/request.py", line 259, in _request_wrapper resp = self._con_pool.request(*args, **kwargs) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 68, in request return self.request_encode_body(method, url, fields=fields, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body return self.urlopen(method, url, **extra_kw) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 691, in urlopen return self.urlopen(method, url, body, headers, retries, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 665, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/opt/pysetup/.venv/lib/python3.10/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 376, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) telegram.vendor.ptb_urllib3.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot5623099390:AAFpibdnmq7VStUm1chOpynZ_xamvmZyqZQ/deleteWebhook (Caused by ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9abb2aa0b0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "