たけ
たけ
RRailway
Created by たけ on 2/8/2024 in #✋|help
psycopg2.OperationalError: SSL SYSCALL error: EOF detected
I am running a Discord bot SSApp on Railway, and when I execute SQL to a Postgres DB, I get this error. After that, the following error occurs and access to the DB becomes impossible. psycopg2.InterfaceError: connection already closed Project ID : 8153aade-2cb8-4e3e-a2c6-36ad01e8f5fd
14 replies
RRailway
Created by たけ on 9/15/2022 in #✋|help
How to use ffmpeg on Railway by writing in nixpacks.toml?
I developed a Discord Bot on Heroku and am considering migrating from Heroku to Railway. I used the following buildpacks on Heroku. https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git https://github.com/Crazycatz00/heroku-buildpack-libopus.git I would like to know how to write in nixpacks.toml in Railway. I am not looking to create a music bot, I am looking to create a bot that reads text on discord. I understand that knowing how to do this may encourage the creation of music bots, so could you please DM me about how to do this? Incidentally, the following description does not seem to work.
[phases.setup].
nixPkgs = ['python39','ffmpeg','libopus'].
[phases.setup].
nixPkgs = ['python39','ffmpeg','libopus'].
I get an error like this
Ignoring exception in on_message
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/discord/client.py", line 382, in _run_event
await coro(*args, **kwargs)
File "/app/SSTalk.py", line 224, in on_message
message.guild.voice_client.play(source)
File "/opt/venv/lib/python3.9/site-packages/discord/voice_client.py", line 652, in play
self.encoder = opus.Encoder()
File "/opt/venv/lib/python3.9/site-packages/discord/opus.py", line 380, in __init__
_OpusStruct.get_opus_version()
File "/opt/venv/lib/python3.9/site-packages/discord/opus.py", line 373, in get_opus_version
raise OpusNotLoaded()
discord.opus.OpusNotLoaded
Ignoring exception in on_message
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/discord/client.py", line 382, in _run_event
await coro(*args, **kwargs)
File "/app/SSTalk.py", line 224, in on_message
message.guild.voice_client.play(source)
File "/opt/venv/lib/python3.9/site-packages/discord/voice_client.py", line 652, in play
self.encoder = opus.Encoder()
File "/opt/venv/lib/python3.9/site-packages/discord/opus.py", line 380, in __init__
_OpusStruct.get_opus_version()
File "/opt/venv/lib/python3.9/site-packages/discord/opus.py", line 373, in get_opus_version
raise OpusNotLoaded()
discord.opus.OpusNotLoaded
19 replies