[V3 Lavalink] Infinite booting loop on macOS #1462

Closed
opened 2018-03-24 21:31:57 +01:00 by laggron42 · 1 comment
laggron42 commented 2018-03-24 21:31:57 +01:00 (Migrated from github.com)

Type:

  • Suggestion
  • Bug

Brief description of the problem

When loading the audio cog (or when starting the bot if the cog is already default loaded), the bot will try to connect, fail, and try again...

Lavalink jar started. PID: 30762
Lavalink jar shutdown, restarting.
Lavalink jar started. PID: 30763
Lavalink jar shutdown, restarting.
Lavalink jar started. PID: 30764
Lavalink jar shutdown, restarting.
Lavalink jar started. PID: 30765
Lavalink jar shutdown, restarting.
Lavalink jar started. PID: 30766
Lavalink jar shutdown, restarting.
Lavalink jar started. PID: 30767
Lavalink jar shutdown, restarting.
...

Java is installed from oracle (openJDK isn't available) and up-to-date

MBP-de-Laggron:Audio laggron$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

here's what shows when I try to run Lavalink from shell and under the ~/Red-DiscordBot/cogs/Audio folder

MBP-de-Laggron:Audio laggron$ java -jar Lavalink.jar
       .   _                  _ _       _    __ _ _
      /\\ | | __ ___   ____ _| (_)_ __ | | __\ \ \ \
     ( ( )| |/ _` \ \ / / _` | | | '_ \| |/ / \ \ \ \
      \\/ | | (_| |\ V / (_| | | | | | |   <   ) ) ) )
       '  |_|\__,_| \_/ \__,_|_|_|_| |_|_|\_\ / / / /
    =========================================/_/_/_/

    :: Lavalink    ::
    :: Spring Boot ::        (v1.5.10.RELEASE)

[21:21:27] [ INFO ] [Launcher] Starting Launcher on MBP-de-Laggron with PID 30710 (/Users/laggron/Library/Application Support/Red-DiscordBot/cogs/Audio/Lavalink.jar started by laggron in /Users/laggron/Library/Application Support/Red-DiscordBot/cogs/Audio)
[21:21:28] [ INFO ] [Launcher] No active profile set, falling back to default profiles: default
[21:21:28] [ INFO ] [AnnotationConfigEmbeddedWebApplicationContext] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy
[21:21:30] [ INFO ] [Version] HV000001: Hibernate Validator 5.3.6.Final
[21:21:34] [ INFO ] [TomcatEmbeddedServletContainer] Tomcat initialized with port(s): 2333 (http)
[21:21:34] [ INFO ] [StandardService] Starting service [Tomcat]
[21:21:34] [ INFO ] [StandardEngine] Starting Servlet Engine: Apache Tomcat/8.5.27
[21:21:35] [ INFO ] [[/]] Initializing Spring embedded WebApplicationContext
[21:21:35] [ INFO ] [ContextLoader] Root WebApplicationContext: initialization completed in 7086 ms
[21:21:35] [ INFO ] [ServletRegistrationBean] Mapping servlet: 'dispatcherServlet' to [/]
[21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'characterEncodingFilter' to: [/*]
[21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
[21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'httpPutFormContentFilter' to: [/*]
[21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'requestContextFilter' to: [/*]
[21:21:36] [ INFO ] [Launcher] No sentry dsn found, turning off sentry.
[21:21:36] [ INFO ] [SocketServer] Started WS server with port 2332
[21:21:37] [ INFO ] [RequestMappingHandlerAdapter] Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/debug/nashorn],methods=[POST]}" onto public java.lang.String lavalink.server.util.DebugRestHandler.getLoadTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String)
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/loadtracks],methods=[GET],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.getLoadTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException,java.lang.InterruptedException
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/decodetrack],methods=[GET],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.getDecodeTrack(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/decodetracks],methods=[POST],consumes=[application/json],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.postDecodeTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
[21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[21:21:38] [ INFO ] [AnnotationMBeanExporter] Registering beans for JMX exposure on startup
[21:21:38] [ INFO ] [Http11NioProtocol] Initializing ProtocolHandler ["http-nio-2333"]
[21:21:38] [ INFO ] [Http11NioProtocol] Starting ProtocolHandler ["http-nio-2333"]
[21:21:38] [ INFO ] [NioSelectorPool] Using a shared selector for servlet write/read
[21:21:38] [ INFO ] [TomcatEmbeddedServletContainer] Tomcat started on port(s): 2333 (http)
[21:21:38] [ INFO ] [Launcher] Started Launcher in 13.457 seconds (JVM running for 16.787)
[21:21:38] [ INFO ] [Launcher] OS: Mac OS X, Arch: x86_64
[21:21:38] [ WARN ] [Launcher] This system and architecture appears to not support native audio sending! GC pauses may cause your bot to stutter during playback.
^C[21:24:49] [ INFO ] [AnnotationConfigEmbeddedWebApplicationContext] Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy
### Type: - [ ] Suggestion - [x] Bug ### Brief description of the problem When loading the audio cog (or when starting the bot if the cog is already default loaded), the bot will try to connect, fail, and try again... ``` Lavalink jar started. PID: 30762 Lavalink jar shutdown, restarting. Lavalink jar started. PID: 30763 Lavalink jar shutdown, restarting. Lavalink jar started. PID: 30764 Lavalink jar shutdown, restarting. Lavalink jar started. PID: 30765 Lavalink jar shutdown, restarting. Lavalink jar started. PID: 30766 Lavalink jar shutdown, restarting. Lavalink jar started. PID: 30767 Lavalink jar shutdown, restarting. ... ``` Java is installed from oracle (openJDK isn't available) and up-to-date ``` MBP-de-Laggron:Audio laggron$ java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) ``` here's what shows when I try to run Lavalink from shell and under the `~/Red-DiscordBot/cogs/Audio` folder ``` MBP-de-Laggron:Audio laggron$ java -jar Lavalink.jar . _ _ _ _ __ _ _ /\\ | | __ ___ ____ _| (_)_ __ | | __\ \ \ \ ( ( )| |/ _` \ \ / / _` | | | '_ \| |/ / \ \ \ \ \\/ | | (_| |\ V / (_| | | | | | | < ) ) ) ) ' |_|\__,_| \_/ \__,_|_|_|_| |_|_|\_\ / / / / =========================================/_/_/_/ :: Lavalink :: :: Spring Boot :: (v1.5.10.RELEASE) [21:21:27] [ INFO ] [Launcher] Starting Launcher on MBP-de-Laggron with PID 30710 (/Users/laggron/Library/Application Support/Red-DiscordBot/cogs/Audio/Lavalink.jar started by laggron in /Users/laggron/Library/Application Support/Red-DiscordBot/cogs/Audio) [21:21:28] [ INFO ] [Launcher] No active profile set, falling back to default profiles: default [21:21:28] [ INFO ] [AnnotationConfigEmbeddedWebApplicationContext] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy [21:21:30] [ INFO ] [Version] HV000001: Hibernate Validator 5.3.6.Final [21:21:34] [ INFO ] [TomcatEmbeddedServletContainer] Tomcat initialized with port(s): 2333 (http) [21:21:34] [ INFO ] [StandardService] Starting service [Tomcat] [21:21:34] [ INFO ] [StandardEngine] Starting Servlet Engine: Apache Tomcat/8.5.27 [21:21:35] [ INFO ] [[/]] Initializing Spring embedded WebApplicationContext [21:21:35] [ INFO ] [ContextLoader] Root WebApplicationContext: initialization completed in 7086 ms [21:21:35] [ INFO ] [ServletRegistrationBean] Mapping servlet: 'dispatcherServlet' to [/] [21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'characterEncodingFilter' to: [/*] [21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] [21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'httpPutFormContentFilter' to: [/*] [21:21:35] [ INFO ] [FilterRegistrationBean] Mapping filter: 'requestContextFilter' to: [/*] [21:21:36] [ INFO ] [Launcher] No sentry dsn found, turning off sentry. [21:21:36] [ INFO ] [SocketServer] Started WS server with port 2332 [21:21:37] [ INFO ] [RequestMappingHandlerAdapter] Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/debug/nashorn],methods=[POST]}" onto public java.lang.String lavalink.server.util.DebugRestHandler.getLoadTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String) [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/loadtracks],methods=[GET],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.getLoadTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException,java.lang.InterruptedException [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/decodetrack],methods=[GET],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.getDecodeTrack(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/decodetracks],methods=[POST],consumes=[application/json],produces=[application/json]}" onto public java.lang.String lavalink.server.player.AudioLoaderRestHandler.postDecodeTracks(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) [21:21:38] [ INFO ] [RequestMappingHandlerMapping] Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) [21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] [21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] [21:21:38] [ INFO ] [SimpleUrlHandlerMapping] Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] [21:21:38] [ INFO ] [AnnotationMBeanExporter] Registering beans for JMX exposure on startup [21:21:38] [ INFO ] [Http11NioProtocol] Initializing ProtocolHandler ["http-nio-2333"] [21:21:38] [ INFO ] [Http11NioProtocol] Starting ProtocolHandler ["http-nio-2333"] [21:21:38] [ INFO ] [NioSelectorPool] Using a shared selector for servlet write/read [21:21:38] [ INFO ] [TomcatEmbeddedServletContainer] Tomcat started on port(s): 2333 (http) [21:21:38] [ INFO ] [Launcher] Started Launcher in 13.457 seconds (JVM running for 16.787) [21:21:38] [ INFO ] [Launcher] OS: Mac OS X, Arch: x86_64 [21:21:38] [ WARN ] [Launcher] This system and architecture appears to not support native audio sending! GC pauses may cause your bot to stutter during playback. ^C[21:24:49] [ INFO ] [AnnotationConfigEmbeddedWebApplicationContext] Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71dac704: startup date [Sat Mar 24 21:21:28 CET 2018]; root of context hierarchy ```
Tobotimus commented 2018-05-20 15:16:54 +02:00 (Migrated from github.com)

Fixed by #1498

Fixed by #1498
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#1462
No description provided.