-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
After managing to get the docker-compose to start and successfully log into both subsonic(navidrome) and discord I can issue the command /play song_name but the bot won't play. This is the log from the container:
2024-12-18 11:10:12,356 - INFO - disopy.__main__: Starting Disopy!
2024-12-18 11:10:12,356 - WARNING - disopy.__main__: Secure conection (HTTPS) to the Subsonic server is disable in the config file, using plain HTTP!
2024-12-18 11:10:12,356 - INFO - disopy.__main__: Checking OpenSubsonic REST API status...
2024-12-18 11:10:12,360 - INFO - disopy.__main__: Healthy Subsonic server status reported!
2024-12-18 11:10:12,360 - INFO - disopy.__main__: Logging to Discord...
2024-12-18 11:10:12 INFO discord.client logging in using static token
2024-12-18 11:10:12,361 - INFO - discord.client: logging in using static token
2024-12-18 11:10:21 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: session_id).
2024-12-18 11:10:21,249 - INFO - discord.gateway: Shard ID None has connected to Gateway (Session ID: session_id).
2024-12-18 11:10:23,254 - INFO - disopy.discord: Logged in as 'botname_#xxxx'
2024-12-18 11:10:23,254 - INFO - disopy.discord: Developer config detected, reloading command tree for guild: 'guild_id'
2024-12-18 11:24:25 INFO discord.voice_state Connecting to voice...
2024-12-18 11:24:25,613 - INFO - discord.voice_state: Connecting to voice...
2024-12-18 11:24:25 INFO discord.voice_state Starting voice handshake... (connection attempt 1)
2024-12-18 11:24:25,613 - INFO - discord.voice_state: Starting voice handshake... (connection attempt 1)
2024-12-18 11:24:25 INFO discord.voice_state Voice handshake complete. Endpoint found: rotterdamxxxx.discord.media
2024-12-18 11:24:25,814 - INFO - discord.voice_state: Voice handshake complete. Endpoint found: rotterdamxxxx.discord.media
2024-12-18 11:24:29 INFO discord.voice_state Voice connection complete.
2024-12-18 11:24:29,958 - INFO - discord.voice_state: Voice connection complete.
2024-12-18 11:24:35 ERROR discord.app_commands.tree Ignoring exception in command 'play'
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/commands.py", line 857, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/disopy/cogs/queue.py", line 336, in play
await self.send_answer(interaction, "🎵 Now playing!", [f"**{playing_element_name}**"])
File "/usr/local/lib/python3.13/site-packages/disopy/cogs/base.py", line 59, in send_answer
await interaction.response.send_message(embed=embed, ephemeral=ephemeral)
File "/usr/local/lib/python3.13/site-packages/discord/interactions.py", line 855, in send_message
await adapter.create_interaction_response(
...<6 lines>...
)
File "/usr/local/lib/python3.13/site-packages/discord/webhook/async_.py", line 221, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/tree.py", line 1310, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/commands.py", line 883, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/commands.py", line 876, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'play' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
I'm at a loss here, I don't understand what is wrong at this point, a few hints/solutions would be appreciated
LE: It seems I get the same error for other commands as well. I tried ping and volume which leads me to believe this is a possible communication issue. How would I go about at least helping the dev(s) identify the problem?
My setup is as follows:
OS: VM with Ubuntu 22.04.4 LTS
Bot running inside docker with a external network(but I have other services in the network which all work well)
docker-compose.yml:
networks:
proxy:
external: true
services:
disopy:
image: ghcr.io/kutu-dev/disopy
container_name: disopy
environment:
- DISOPY_SUBSONIC_PASSWORD=pwd_here
- DISOPY_DISCORD_TOKEN=token_here
volumes:
- ./config:/config
networks:
proxy:
ipv4_address: 172.20.0.52
config.toml:
# Disopy config file
# DO NOT MODIFY ME! Internal config file version
version = 1
volume = 100
[subsonic]
# The URL where the OpenSubsonic REST API can be accessed
url = "http://172.20.0.8:4533" #the navidrome server runs on the same network as the bot
# Whether to verify the server's certificate
use_https = false
# The user to be use when authenticating in the OpenSubsonic server
user = "user"
[developer]
discord-sync-guild = "server_id"
discord-sync-users = ["my_discord_user_id"]
Metadata
Metadata
Assignees
Labels
No labels