Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/2ff8f070-ab0c-4ee7-9676-2d3b36a36e0f/vol_8chdamizrj575fwk
Starting Container
[2024-08-12 19:18:19] [INFO ] discord.client: logging in using static token
2024-08-12 19:18:40.255 | WARNING | afw_bot.ext.utils.database:connect:15 - 2024-08-12 19:18:40 Failed to connect to the database: Multiple exceptions: [Errno 111] Connect call failed ('::1', 5432, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 5432)
Traceback (most recent call last):
File "/app/afw_bot/main.py", line 155, in run
super().run(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/afw-bot-9TtSrW0h-py3.11/lib/python3.11/site-packages/discord/client.py", line 869, in run
asyncio.run(runner())
File "/root/.nix-profile/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/root/.nix-profile/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.nix-profile/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/afw-bot-9TtSrW0h-py3.11/lib/python3.11/site-packages/discord/client.py", line 858, in runner
await self.start(token, reconnect=reconnect)
File "/root/.cache/pypoetry/virtualenvs/afw-bot-9TtSrW0h-py3.11/lib/python3.11/site-packages/discord/client.py", line 786, in start
await self.login(token)
File "/root/.cache/pypoetry/virtualenvs/afw-bot-9TtSrW0h-py3.11/lib/python3.11/site-packages/discord/client.py", line 629, in login
await self.setup_hook()
File "/app/afw_bot/main.py", line 59, in setup_hook
await self.db.create_tables()
File "/app/afw_bot/ext/utils/database.py", line 22, in create_tables
raise RuntimeError("Database pool is not initialized")
RuntimeError: Database pool is not initialized
2024-08-12 19:18:40.284 | CRITICAL | afw_bot.main:run:158 - 2024-08-12 19:18:40 Login Failed
Reason: Database pool is not initialized
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fab710c29d0>
container event container died