Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Docker Compose unable to connect to lavalink #768

Open
Kickbub opened this issue Dec 12, 2024 · 0 comments
Open

[Bug]: Docker Compose unable to connect to lavalink #768

Kickbub opened this issue Dec 12, 2024 · 0 comments
Assignees

Comments

@Kickbub
Copy link

Kickbub commented Dec 12, 2024

Bug description

Both containers start but lavamusic cannot connect to lavalink

EDIT:

To fix, add lavalink to lavamusic service network...

Steps to reproduce

docker compose up

Operating System

Ubuntu 22.04.5 LTS

Node.js version

23.3.0

java version

18.0.2.1

Application/Library version

c13d88d

Error logs or screenshots

lavamusic | [12/12/2024] [9:41:53 AM] [I18n.js] [Lavamusic] › ℹ info I18n has been initialized
lavamusic | [12/12/2024] [9:41:53 AM] [Lavamusic.js] [Lavamusic] › ⚠ warn Top.gg token not found!
lavamusic | [12/12/2024] [9:41:54 AM] [Lavamusic.js] [Lavamusic] › ℹ info Successfully loaded commands!
lavamusic | [12/12/2024] [9:41:54 AM] [Lavamusic.js] [Lavamusic] › ℹ info Successfully loaded events!
lavamusic | [12/12/2024] [9:41:54 AM] [index.js] [Lavamusic] › ℹ info Loaded plugin: AntiCrash Plugin v1.0.0
lavamusic | [12/12/2024] [9:41:54 AM] [index.js] [Lavamusic] › ℹ info Loaded plugin: KeepAlive Plugin v1.0.0
lavamusic | [12/12/2024] [9:41:54 AM] [index.js] [Lavamusic] › ℹ info Loaded plugin: Update Status Plugin v1.0.0
lavamusic | [12/12/2024] [9:41:54 AM] [Ready.js] [Lavamusic] › ✔ success clubpenguin-bot#1646 is ready!
lavamusic | [12/12/2024] [9:41:54 AM] [Ready.js] [Lavamusic] › ⚠ warn Top.gg token not found. Skipping auto poster.
lavamusic | [12/12/2024] [9:41:54 AM] [shard.js] [Lavamusic] › ▶ start [CLIENT] Shard 0 connected to Discord's Gateway.
lavamusic | [12/12/2024] [9:41:54 AM] [antiCrash.js] [Lavamusic] › ✖ error Uncaught Exception thrown: Error [ERR_UNHANDLED_ERROR]: Unhandled error. (<ref *2> LavalinkNode {
lavamusic | heartBeatPingTimestamp: 0,
lavamusic | heartBeatPongTimestamp: 0,
lavamusic | heartBeatInterval: undefined,
lavamusic | pingTimeout: undefined,
lavamusic | isAlive: false,
lavamusic | options: {
lavamusic | secure: false,
lavamusic | retryAmount: 5,
lavamusic | retryDelay: 10000,
lavamusic | requestSignalTimeoutMS: 10000,
lavamusic | heartBeatInterval: 30000,
lavamusic | closeOnError: true,
lavamusic | enablePingOnStatsCheck: true,
lavamusic | id: 'LavaMusic',
lavamusic | host: 'lavalink',
lavamusic | port: 2333,
lavamusic | authorization: 'youshallnotpass',
lavamusic | regions: []
lavamusic | },
lavamusic | calls: 0,
lavamusic | stats: {
lavamusic | players: 0,
lavamusic | playingPlayers: 0,
lavamusic | cpu: { cores: 0, lavalinkLoad: 0, systemLoad: 0 },
lavamusic | memory: { allocated: 0, free: 0, reservable: 0, used: 0 },
lavamusic | uptime: 0,
lavamusic | frameStats: { deficit: 0, nulled: 0, sent: 0 }
lavamusic | },
lavamusic | sessionId: null,
lavamusic | resuming: { enabled: true, timeout: null },
lavamusic | info: null,
lavamusic | NodeManager: <ref *1> NodeManager {
lavamusic | _events: [Object: null prototype] {
lavamusic | connect: [Function (anonymous)],
lavamusic | destroy: [Function (anonymous)]
lavamusic | },
lavamusic | _eventsCount: 2,
lavamusic | _maxListeners: undefined,
lavamusic | LavalinkManager: LavalinkClient {
lavamusic | _events: [Object: null prototype],
lavamusic | _eventsCount: 5,
lavamusic | _maxListeners: undefined,
lavamusic | options: [Object],
lavamusic | nodeManager: [Circular *1],
lavamusic | utils: [ManagerUtils],
lavamusic | initiated: true,
lavamusic | players: MiniMap(0) [Map] {},
lavamusic | client: [Lavamusic],
lavamusic | [Symbol(shapeMode)]: false,
lavamusic | [Symbol(kCapture)]: false
lavamusic | },
lavamusic | nodes: MiniMap(1) [Map] { 'LavaMusic' => [Circular *2] },
lavamusic | [Symbol(shapeMode)]: false,
lavamusic | [Symbol(kCapture)]: false
lavamusic | },
lavamusic | reconnectTimeout: undefined,
lavamusic | reconnectAttempts: 1,
lavamusic | socket: WebSocket {
lavamusic | _events: [Object: null prototype] {
lavamusic | open: [Function: bound open] AsyncFunction,
lavamusic | close: [Function (anonymous)],
lavamusic | message: [Function: bound message] AsyncFunction,
lavamusic | error: [Function: bound error]
lavamusic | },
lavamusic | _eventsCount: 4,
lavamusic | _maxListeners: undefined,
lavamusic | _binaryType: 'nodebuffer',
lavamusic | _closeCode: 1006,
lavamusic | _closeFrameReceived: false,
lavamusic | _closeFrameSent: false,
lavamusic | _closeMessage: ,
lavamusic | _closeTimer: null,
lavamusic | _errorEmitted: true,
lavamusic | _extensions: {},
lavamusic | _paused: false,
lavamusic | _protocol: '',
lavamusic | _readyState: 2,
lavamusic | _receiver: null,
lavamusic | _sender: null,
lavamusic | _socket: null,
lavamusic | _bufferedAmount: 0,
lavamusic | _isServer: false,
lavamusic | _redirects: 0,
lavamusic | _autoPong: true,
lavamusic | _url: 'ws://lavalink:2333/v4/websocket',
lavamusic | _req: null,
lavamusic | [Symbol(shapeMode)]: false,
lavamusic | [Symbol(kCapture)]: false
lavamusic | },
lavamusic | version: 'v4',
lavamusic | decode: {
lavamusic | singleTrack: [AsyncFunction: singleTrack],
lavamusic | multipleTracks: [AsyncFunction: multipleTracks]
lavamusic | },
lavamusic | lyrics: {
lavamusic | get: [AsyncFunction: get],
lavamusic | getCurrent: [AsyncFunction: getCurrent],
lavamusic | subscribe: [AsyncFunction: subscribe],
lavamusic | unsubscribe: [AsyncFunction: unsubscribe]
lavamusic | },
lavamusic | routePlannerApi: {
lavamusic | getStatus: [AsyncFunction: getStatus],
lavamusic | unmarkFailedAddress: [AsyncFunction: unmarkFailedAddress],
lavamusic | unmarkAllFailedAddresses: [AsyncFunction: unmarkAllFailedAddresses]
lavamusic | }
lavamusic | })
lavamusic | at NodeManager.emit (node:events:502:17)
lavamusic | at NodeManager.emit (/opt/lavamusic/node_modules/lavalink-client/dist/cjs/structures/NodeManager.js:16:22)
lavamusic | at LavalinkNode.error (/opt/lavamusic/node_modules/lavalink-client/dist/cjs/structures/Node.js:977:26)
lavamusic | at WebSocket.emit (node:events:513:28)
lavamusic | at emitErrorAndClose (/opt/lavamusic/node_modules/ws/lib/websocket.js:1041:13)
lavamusic | at ClientRequest. (/opt/lavamusic/node_modules/ws/lib/websocket.js:881:5)
lavamusic | at ClientRequest.emit (node:events:513:28)
lavamusic | at emitErrorEvent (node:_http_client:104:11)
lavamusic | at Socket.socketErrorListener (node:_http_client:512:5)
lavamusic | at Socket.emit (node:events:513:28) {
lavamusic | code: 'ERR_UNHANDLED_ERROR',
lavamusic | context: LavalinkNode {
lavamusic | heartBeatPingTimestamp: 0,
lavamusic | heartBeatPongTimestamp: 0,
lavamusic | heartBeatInterval: undefined,
lavamusic | pingTimeout: undefined,
lavamusic | isAlive: false,
lavamusic | options: {
lavamusic | secure: false,
lavamusic | retryAmount: 5,
lavamusic | retryDelay: 10000,
lavamusic | requestSignalTimeoutMS: 10000,
lavamusic | heartBeatInterval: 30000,
lavamusic | closeOnError: true,
lavamusic | enablePingOnStatsCheck: true,
lavamusic | id: 'LavaMusic',
lavamusic | host: 'lavalink',
lavamusic | port: 2333,
lavamusic | authorization: 'youshallnotpass',
lavamusic | regions: []
lavamusic | },
lavamusic | calls: 0,
lavamusic | stats: {
lavamusic | players: 0,
lavamusic | playingPlayers: 0,
lavamusic | cpu: [Object],
lavamusic | memory: [Object],
lavamusic | uptime: 0,
lavamusic | frameStats: [Object]
lavamusic | },
lavamusic | sessionId: null,
lavamusic | resuming: { enabled: true, timeout: null },
lavamusic | info: null,
lavamusic | NodeManager: NodeManager {
lavamusic | _events: [Object: null prototype],
lavamusic | _eventsCount: 2,
lavamusic | _maxListeners: undefined,
lavamusic | LavalinkManager: [LavalinkClient],
lavamusic | nodes: [MiniMap [Map]],
lavamusic | [Symbol(shapeMode)]: false,
lavamusic | [Symbol(kCapture)]: false
lavamusic | },
lavamusic | reconnectTimeout: undefined,
lavamusic | reconnectAttempts: 1,
lavamusic | socket: WebSocket {
lavamusic | _events: [Object: null prototype],
lavamusic | _eventsCount: 4,
lavamusic | _maxListeners: undefined,
lavamusic | _binaryType: 'nodebuffer',
lavamusic | _closeCode: 1006,
lavamusic | _closeFrameReceived: false,
lavamusic | _closeFrameSent: false,
lavamusic | _closeMessage: ,
lavamusic | _closeTimer: null,
lavamusic | _errorEmitted: true,
lavamusic | _extensions: {},
lavamusic | _paused: false,
lavamusic | _protocol: '',
lavamusic | _readyState: 2,
lavamusic | _receiver: null,
lavamusic | _sender: null,
lavamusic | _socket: null,
lavamusic | _bufferedAmount: 0,
lavamusic | _isServer: false,
lavamusic | _redirects: 0,
lavamusic | _autoPong: true,
lavamusic | _url: 'ws://lavalink:2333/v4/websocket',
lavamusic | _req: null,
lavamusic | [Symbol(shapeMode)]: false,
lavamusic | [Symbol(kCapture)]: false
lavamusic | },
lavamusic | version: 'v4',
lavamusic | decode: {
lavamusic | singleTrack: [AsyncFunction: singleTrack],
lavamusic | multipleTracks: [AsyncFunction: multipleTracks]
lavamusic | },
lavamusic | lyrics: {
lavamusic | get: [AsyncFunction: get],
lavamusic | getCurrent: [AsyncFunction: getCurrent],
lavamusic | subscribe: [AsyncFunction: subscribe],
lavamusic | unsubscribe: [AsyncFunction: unsubscribe]
lavamusic | },
lavamusic | routePlannerApi: {
lavamusic | getStatus: [AsyncFunction: getStatus],
lavamusic | unmarkFailedAddress: [AsyncFunction: unmarkFailedAddress],
lavamusic | unmarkAllFailedAddresses: [AsyncFunction: unmarkAllFailedAddresses]
lavamusic | }
lavamusic | }
lavamusic | }
lavamusic | [12/12/2024] [9:41:54 AM] [shard.js] [Lavamusic] › ▶ start [CLIENT] 1 shard(s) spawned.
lavamusic-lavalink | 2024-12-12T09:41:58.824Z INFO 1 --- [Lavalink] [ XNIO-1 task-2] l.server.io.RequestLoggingFilter : GET /version, client=127.0.0.1
lavamusic-lavalink | 2024-12-12T09:42:08.941Z INFO 1 --- [Lavalink] [ XNIO-1 task-2] l.server.io.RequestLoggingFilter : GET /version, client=127.0.0.1
lavamusic-lavalink | 2024-12-12T09:42:19.010Z INFO 1 --- [Lavalink] [ XNIO-1 task-2] l.server.io.RequestLoggingFilter : GET /version, client=127.0.0.1
lavamusic-lavalink | 2024-12-12T09:42:29.084Z INFO 1 --- [Lavalink] [ XNIO-1 task-2] l.server.io.RequestLoggingFilter : GET /version, client=127.0.0.1

Additional context

I believe this is urgent because it is easy to fix the Youtube issue with docker by using a warp container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants