-
Notifications
You must be signed in to change notification settings - Fork 87
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
[ERROR] | [FATAL] Possibly Uncaught Exception, Reason: ReferenceError: player is not defined #229
Comments
Try use play command again, your lavalink connected right after you use the play command |
Lavalink Docker Lavaplayer FOR USERS OF 1.x FOR USERS OF 2.x |
Thank you for your help. I seem to have assumed the proper Lavalink version came with the repo. Probably missed some note regarding this in the docs. I will try to check in the support server before I post here if I have issues in the future. I replaced the Thanks again. |
I thought I'd update this in case someone finds the solution I posted not working anymore. It seems the lavalink devs changed their images in the repo around so you'll find What I did to get it working again was to change the |
Just use the latest version |
I did try. It didn't help sadly. Maybe I will try purging the container again. |
You need to install their new youtube source plugins as their old youtube source manager is deprecated https://github.com/lavalink-devs/youtube-source |
Thanks for the heads up and for updating the application.yml. I've been trying to run it, however I am hit with a permission denied error that has me sort of stumped. I realize you are not the lavalink dev, but do you have any idea what is causing this? Just to be safe, I already purged the containers and rebuilt them, made sure my docker-compose.yml is up to date, but this is still what I get in the log: lavalink | 2024-05-16 18:42:17.630 INFO 1 --- [ main] lavalink.server.Launcher : Starting Launcher using Java 18.0.2.1 on docker.lavalink with PID 1 (/opt/Lavalink/Lavalink.jar started by lavalink in /opt/Lavalink)
lavalink | 2024-05-16 18:42:17.642 INFO 1 --- [ main] lavalink.server.Launcher : No active profile set, falling back to 1 default profile: "default"
lavalink | 2024-05-16 18:42:19.509 INFO 1 --- [ main] lavalink.server.bootstrap.PluginManager : Downloading https://maven.lavalink.dev/releases/dev/lavalink/youtube/youtube-plugin/1.2.0/youtube-plugin-1.2.0.jar
lavalink | 2024-05-16 18:42:20.597 WARN 1 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [lavalink.server.bootstrap.PluginManager$$EnhancerBySpringCGLIB$$fc257968]: Constructor threw exception; nested exception is java.io.FileNotFoundException: ./plugins/youtube-plugin-1.2.0.jar (Permission denied)
lavalink | 2024-05-16 18:42:20.610 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :
lavalink |
lavalink | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
lavalink | 2024-05-16 18:42:20.667 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
lavalink |
lavalink | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [lavalink.server.bootstrap.PluginManager$$EnhancerBySpringCGLIB$$fc257968]: Constructor threw exception; nested exception is java.io.FileNotFoundException: ./plugins/youtube-plugin-1.2.0.jar (Permission denied)
lavalink | at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) ~[spring-boot-2.6.6.jar!/:2.6.6]
lavalink | at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) ~[spring-boot-2.6.6.jar!/:2.6.6]
lavalink | at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-2.6.6.jar!/:2.6.6]
lavalink | at lavalink.server.Launcher.launchPluginBootstrap(Launcher.kt:133) ~[classes!/:na]
lavalink | at lavalink.server.Launcher.main(Launcher.kt:125) ~[classes!/:na]
lavalink | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[na:na]
lavalink | at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
lavalink | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[Lavalink.jar:na]
lavalink | at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[Lavalink.jar:na]
lavalink | at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[Lavalink.jar:na]
lavalink | at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[Lavalink.jar:na]
lavalink | Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [lavalink.server.bootstrap.PluginManager$$EnhancerBySpringCGLIB$$fc257968]: Constructor threw exception; nested exception is java.io.FileNotFoundException: ./plugins/youtube-plugin-1.2.0.jar (Permission denied)
lavalink | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | ... 23 common frames omitted
lavalink | Caused by: java.io.FileNotFoundException: ./plugins/youtube-plugin-1.2.0.jar (Permission denied)
lavalink | at java.base/java.io.FileOutputStream.open0(Native Method) ~[na:na]
lavalink | at java.base/java.io.FileOutputStream.open(Unknown Source) ~[na:na]
lavalink | at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[na:na]
lavalink | at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[na:na]
lavalink | at lavalink.server.bootstrap.PluginManager.downloadJar(PluginManager.kt:81) ~[classes!/:na]
lavalink | at lavalink.server.bootstrap.PluginManager.manageDownloads(PluginManager.kt:74) ~[classes!/:na]
lavalink | at lavalink.server.bootstrap.PluginManager.<init>(PluginManager.kt:26) ~[classes!/:na]
lavalink | at lavalink.server.bootstrap.PluginManager$$EnhancerBySpringCGLIB$$fc257968.<init>(<generated>) ~[classes!/:na]
lavalink | at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source) ~[na:na]
lavalink | at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) ~[na:na]
lavalink | at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) ~[na:na]
lavalink | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ~[spring-beans-5.3.18.jar!/:5.3.18]
lavalink | ... 25 common frames omitted
lavalink |
lavalink exited with code 0 |
Thanks once again. I thought 600 would do it since that's what I had to do when setting up other docker projects, so it completely slipped my mind. |
Hello. I am encountering the following errors upon trying to play anything. The bot does connect but immediately disconnects. This is the log at the time of the error. As you can see I am met with
ReferenceError: player is not defined
on initialization and with another[ERROR] | [object Object]
when trying to play something.Any help would be appreciated! Let me know if what I have provided is not enough.
The text was updated successfully, but these errors were encountered: