22-May-24 07:48:55 AM - root - INFO - Successfully updated with latest commit from UPSTREAM_REPO
[22-May-24 07:49:00 AM] [INFO] - Initializing Surf-TG v-1.2.6
[22-May-24 07:49:02 AM] [INFO] - Bot Client : [@surf_tg_bot]
[22-May-24 07:49:02 AM] [ERROR] - Traceback (most recent call last):
File "/app/bot/__main__.py", line 54, in <module>
loop.run_until_complete(start_services())
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/app/bot/__main__.py", line 23, in start_services
await UserBot.start()
File "/usr/local/lib/python3.12/site-packages/pyrogram/methods/utilities/start.py", line 59, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrogram/methods/auth/connect.py", line 41, in connect
await self.load_session()
File "/usr/local/lib/python3.12/site-packages/pyrogram/client.py", line 661, in load_session
await self.storage.open()
File "/usr/local/lib/python3.12/site-packages/pyrogram/storage/memory_storage.py", line 60, in open
dc_id, api_id, test_mode, auth_key, user_id, is_bot = struct.unpack(
^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 271 bytes
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/app/bot/__main__.py", line 60, in <module>
loop.run_until_complete(stop_clients())
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/app/bot/__main__.py", line 49, in stop_clients
await UserBot.stop()
File "/usr/local/lib/python3.12/site-packages/pyrogram/methods/utilities/stop.py", line 66, in stop
await do_it()
File "/usr/local/lib/python3.12/site-packages/pyrogram/methods/utilities/stop.py", line 62, in do_it
await self.terminate()
File "/usr/local/lib/python3.12/site-packages/pyrogram/methods/auth/terminate.py", line 41, in terminate
raise ConnectionError("Client is already terminated")
ConnectionError: Client is already terminated
The bot runs without the SESSION_STRING fine. I've generated the SESSION_STRING on my machine with the colab code bc colab doesn't work.
sudo docker run -p 8080:8080 surf-tg
The bot runs without the SESSION_STRING fine. I've generated the SESSION_STRING on my machine with the colab code bc colab doesn't work.