Darkside138/DiscordSoundboard

Bot crashes on startup

daniel-san-fried opened this issue · 3 comments

The bot doesn't start anymore (I changed nothing, it just happened).

Console says "Failed to initialize jpa entitymanagerfactory". I have Java 17+ 64bit installed. I changed nothing in the config, it just went offline on my second PC and won't start again. Any Idea where to look first?
error

The issue is that the database line is out of date within the appliciation.properties file.

It should read as:
spring.datasource.url=jdbc:h2:file:./discordDB;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE

The issue is that the database line is out of date within the appliciation.properties file.

It should read as: spring.datasource.url=jdbc:h2:file:./discordDB;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE

Dude! You freaking nailed it, thanks! I asked everywhere and you helped me a lot. Thank you so much :) Have a great week.

@Darkside138 Please consider changing spring.datasource.url in application.properties (bundled in the release) to either jdbc:h2:file:./discordDB;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE or jdbc:h2:mem:discordDB;DB_CLOSE_ON_EXIT=FALSE;AUTO_RECONNECT=TRUE.