lavalink-devs / Lavalink

Standalone audio sending node based on Lavaplayer.
https://lavalink.dev/
MIT License
1.59k stars 672 forks source link

There is No Sound while playing ! #1101

Closed Tarekthedeveloper closed 2 months ago

Tarekthedeveloper commented 2 months ago

Description

When playing a music from youtube or any platform the bot run normally and play music but there is no sound and there is no errors

Expected behavior

Version info

Client used: lavalink-client Output of java -version:

    .   _                  _ _       _    __ _ _
      /\\ | | __ ___   ____ _| (_)_ __ | | __\ \ \ \
     ( ( )| |/ _` \ \ / / _` | | | '_ \| |/ / \ \ \ \
      \\/ | | (_| |\ V / (_| | | | | | |   <   ) ) ) )
       '  |_|\__,_| \_/ \__,_|_|_|_| |_|_|\_\ / / / /
    =========================================/_/_/_/

        Version:        4.0.7
        Build time:     08.07.2024 22:14:17 UTC
        Branch          HEAD
        Commit:         93102f8
        Commit time:    08.07.2024 21:49:02 UTC
        JVM:            22.0.2
        Lavaplayer      2.2.1

Lavalink Logs:

2024-09-02T16:53:56.827+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : Starting Launcher v4.0.7 using Java 22.0.2 with PID 3668 (C:\Users\User\Desktop\LavalinkServer\Lavalink.jar started by User in C:\Users\User\Desktop\LavalinkServer)
2024-09-02T16:53:57.023+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : No active profile set, falling back to 1 default profile: "default"
2024-09-02T16:53:58.547+03:00  INFO 3668 --- [Lavalink] [           main] l.server.bootstrap.PluginManager         : Downloading https://maven.lavalink.dev/releases/dev/lavalink/youtube/youtube-plugin/1.7.2/youtube-plugin-1.7.2.jar
2024-09-02T16:54:01.439+03:00  INFO 3668 --- [Lavalink] [           main] l.server.bootstrap.PluginManager         : Loaded youtube-plugin-1.7.2.jar (15 classes)
2024-09-02T16:54:01.664+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : Started Launcher in 6.035 seconds (process running for 6.963)
2024-09-02T16:54:01.746+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 :

       .   _                  _ _       _    __ _ _
      /\\ | | __ ___   ____ _| (_)_ __ | | __\ \ \ \
     ( ( )| |/ _` \ \ / / _` | | | '_ \| |/ / \ \ \ \
      \\/ | | (_| |\ V / (_| | | | | | |   <   ) ) ) )
       '  |_|\__,_| \_/ \__,_|_|_|_| |_|_|\_\ / / / /
    =========================================/_/_/_/

        Version:        4.0.7
        Build time:     08.07.2024 22:14:17 UTC
        Branch          HEAD
        Commit:         93102f8
        Commit time:    08.07.2024 21:49:02 UTC
        JVM:            22.0.2
        Lavaplayer      2.2.1

2024-09-02T16:54:01.759+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : No active profile set, falling back to 1 default profile: "default"
2024-09-02T16:54:02.581+03:00  WARN 3668 --- [Lavalink] [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2024-09-02T16:54:02.612+03:00  INFO 3668 --- [Lavalink] [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext
2024-09-02T16:54:02.613+03:00  INFO 3668 --- [Lavalink] [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 848 ms
2024-09-02T16:54:03.939+03:00  INFO 3668 --- [Lavalink] [           main] c.s.d.l.tools.GarbageCollectionMonitor   : GC monitoring enabled, reporting results every 2 minutes.
2024-09-02T16:54:04.517+03:00  WARN 3668 --- [Lavalink] [           main] d.l.youtube.plugin.YoutubePluginLoader   : youtubeConfig missing or 'clients' was not specified, default values will be used.
2024-09-02T16:54:04.589+03:00  INFO 3668 --- [Lavalink] [           main] d.l.youtube.plugin.YoutubePluginLoader   : YouTube source initialised with clients: WEB_REMIX, WEB, ANDROID_TESTSUITE, TVHTML5_SIMPLY_EMBEDDED_PLAYER
2024-09-02T16:54:04.784+03:00  INFO 3668 --- [Lavalink] [           main] l.server.config.KoeConfiguration         : OS: WINDOWS, Arch: X86_64
2024-09-02T16:54:04.784+03:00  INFO 3668 --- [Lavalink] [           main] l.server.config.KoeConfiguration         : Enabling JDA-NAS
2024-09-02T16:54:04.789+03:00  INFO 3668 --- [Lavalink] [           main] c.s.l.c.natives.NativeLibraryLoader      : Native library udpqueue: loading with filter null
2024-09-02T16:54:04.797+03:00  INFO 3668 --- [Lavalink] [           main] c.s.l.c.natives.NativeLibraryLoader      : Native library udpqueue: successfully loaded.
2024-09-02T16:54:04.866+03:00  WARN 3668 --- [Lavalink] [           main] l.server.config.SentryConfiguration      : Turning off sentry
2024-09-02T16:54:05.242+03:00  INFO 3668 --- [Lavalink] [           main] io.undertow                              : starting server: Undertow - 2.3.13.Final
2024-09-02T16:54:05.256+03:00  INFO 3668 --- [Lavalink] [           main] org.xnio                                 : XNIO version 3.8.8.Final
2024-09-02T16:54:05.277+03:00  INFO 3668 --- [Lavalink] [           main] org.xnio.nio                             : XNIO NIO Implementation Version 3.8.8.Final
2024-09-02T16:54:05.422+03:00  INFO 3668 --- [Lavalink] [           main] org.jboss.threads                        : JBoss Threads version 3.5.0.Final
2024-09-02T16:54:05.510+03:00  INFO 3668 --- [Lavalink] [           main] o.s.b.w.e.undertow.UndertowWebServer     : Undertow started on port 80 (http) with context path '/'
2024-09-02T16:54:05.517+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : Started Launcher in 3.842 seconds (process running for 10.816)
2024-09-02T16:54:05.518+03:00  INFO 3668 --- [Lavalink] [           main] lavalink.server.Launcher                 : Lavalink is ready to accept connections.
2024-09-02T16:54:36.482+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] io.undertow.servlet                      : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-09-02T16:54:36.483+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2024-09-02T16:54:36.485+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] o.s.web.servlet.DispatcherServlet        : Completed initialization in 2 ms
2024-09-02T16:54:36.521+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] l.server.io.HandshakeInterceptorImpl     : Incoming connection from /127.0.0.1:64155
2024-09-02T16:54:36.547+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] l.server.io.RequestLoggingFilter         : GET /v4/websocket, client=127.0.0.1
2024-09-02T16:54:36.630+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-2] lavalink.server.io.SocketServer          : Connection successfully established from Music bot v.1.2.2
2024-09-02T16:54:36.667+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.RequestLoggingFilter         : GET /v4/info?trace=true, client=127.0.0.1
2024-09-02T16:54:37.798+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.HandshakeInterceptorImpl     : Incoming connection from /127.0.0.1:64157
2024-09-02T16:54:37.799+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.RequestLoggingFilter         : GET /v4/websocket, client=127.0.0.1
2024-09-02T16:54:37.802+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] lavalink.server.io.SocketServer          : Connection successfully established from Music bot v.1.2.1
2024-09-02T16:54:37.805+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.RequestLoggingFilter         : GET /v4/info?trace=true, client=127.0.0.1
2024-09-02T16:54:53.264+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.player.AudioLoaderRestHandler   : Got request to load for identifier "ytsearch:حبتك"
2024-09-02T16:54:54.367+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] lavalink.server.player.AudioLoader       : Loaded playlist Search results for: حبتك
2024-09-02T16:54:54.405+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.RequestLoggingFilter         : GET /v4/loadtracks?identifier=ytsearch%3A%D8%AD%D8%A8%D8%AA%D9%83&trace=true, client=127.0.0.1
2024-09-02T16:54:54.568+03:00  INFO 3668 --- [Lavalink] [  XNIO-1 task-3] l.server.io.RequestLoggingFilter         : PATCH /v4/sessions/z97cnre4h4lqngbn/players/1066050408759435386?trace=true, client=127.0.0.1, payload={"track":{"encoded":"QAAAzwMANUZhZGVsIENoYWtlciAtIEhhYmV0YWsgfCDZgdi22YQg2LTYp9mD2LEgLSDYrdio2YrYqtmDAAxGYWRlbCBDaGFrZXIAAAAAAAQS+AALWWJ4N3dfblNndjQAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1ZYng3d19uU2d2NAEAMGh0dHBzOi8vaS55dGltZy5jb20vdmkvWWJ4N3dfblNndjQvbXFkZWZhdWx0LmpwZwAAB3lvdXR1YmUAAAAAAAAAAA==","userData":{}},"volume":75,"position":0}
2024-09-02T16:54:56.026+03:00  INFO 3668 --- [Lavalink] [back-1-thread-1] d.l.y.http.YoutubeAccessTokenTracker     : Updating YouTube visitor id succeeded, new one is CgtJcU5JVzl6NklOSSiwh9e2BjIKCgJMQhIEGgAgDzoMCAEg8cOBm4b28Opm, next update will be after 600 seconds.
2024-09-02T16:54:56.206+03:00  INFO 3668 --- [Lavalink] [back-1-thread-1] c.s.l.c.natives.NativeLibraryLoader      : Native library libmpg123-0: loading with filter com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader$$Lambda/0x0000028c017f0000@3fc37f27
2024-09-02T16:54:56.218+03:00  INFO 3668 --- [Lavalink] [back-1-thread-1] c.s.l.c.natives.NativeLibraryLoader      : Native library libmpg123-0: successfully loaded.
2024-09-02T16:54:56.218+03:00  INFO 3668 --- [Lavalink] [back-1-thread-1] c.s.l.c.natives.NativeLibraryLoader      : Native library connector: loading with filter null
2024-09-02T16:54:56.249+03:00  INFO 3668 --- [Lavalink] [back-1-thread-1] c.s.l.c.natives.NativeLibraryLoader      : Native library connector: successfully loaded.

Additional context

How to solve the problem

orfox32 commented 2 months ago

same problem, did you already fix the problem ?

lorenzo132 commented 2 months ago

When playing a music from youtube or any platform

It seems that it is just for Youtube.

topi314 commented 2 months ago

Lavalinks built-in YouTube source has been deprecated in recent lavalinks versions, see: https://github.com/lavalink-devs/youtube-source

topi314 commented 2 months ago

Also see: https://github.com/lavalink-devs/Lavalink/issues/1091