Caused by: java.sql.SQLSyntaxErrorException: (conn=15) Unknown database 'grimmory' #210
Replies: 10 comments
-
|
Keep the .env as it was before. Do not change .env there is no need for that. |
Beta Was this translation helpful? Give feedback.
-
|
What specifically should be kept as before? |
Beta Was this translation helpful? Give feedback.
-
everything. just replace the image |
Beta Was this translation helpful? Give feedback.
-
|
I tried that and am having another issue which I was trying to see if this would solve. Besides, what if I was starting from scratch with no previous Booklore instance? |
Beta Was this translation helpful? Give feedback.
-
Nothing. Those env variables or more less meaningless, BUT once they got into the DB, they must stay or be migrated. Since that hasn't happened and we are telling everybody not to change those manually, the best thing you can do it just replace the image, keep everything as-is. |
Beta Was this translation helpful? Give feedback.
-
|
If I am starting from scratch with no previous Booklore instance, shouldn't a new database be created? If not how do you run Grimmory without ever having a previous Booklore instance? |
Beta Was this translation helpful? Give feedback.
-
if you want to create EMPTY instance then yes, new DB, do it separately if you want to preserve old booklore db. Grimmory is a successor of Booklore, so basically same setup as booklore, just make sure image in docker compose (if you use docker compose) is correct. refer to a README for the instructions. |
Beta Was this translation helpful? Give feedback.
-
|
I didn't change the name of the db. It's a fresh new installation. I am using the same name as given in a the docker-compose.yml. Just pretend I didn't say anything about having Booklore before. I am starting from scratch. In that case, wouldn't the database get created on first fun? If so, why isn't that happening in this case? |
Beta Was this translation helpful? Give feedback.
-
yes it would be created on the container start. just copy docker compose, adjust volume locations if needed, create .env, populate it with data necessary and run the container. that would be it |
Beta Was this translation helpful? Give feedback.
-
|
Converted this to a discussion as i'm not sure it's an error - we have had no other similar reports. @jayscovill can you paste your grimmory & mariadb docker logs please. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What Went Wrong?
This is probably just a "me doing something wrong" problem but I'm trying to stand up a fresh new instance of Grimmnory (vs migrating from Booklore by just replacing the image). Receiving the following error as it doesn't look like the 'grimmory' database is being created:
Caused by: java.sql.SQLSyntaxErrorException: (conn=15) Unknown database 'grimmory'
Trying set as root for starters.
My environment variables:
docker-compose.yml
How Can We Reproduce This?
What Should Have Happened?
Database created and application started?
Screenshots or Error Messages (Optional)
No response
Any Ideas on How to Fix This? (Optional)
No response
Your Setup
Before Submitting
Beta Was this translation helpful? Give feedback.
All reactions