-
-
Notifications
You must be signed in to change notification settings - Fork 138
Status 500 "Error calling /en/." since 1.16.0 #871
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
Comments
What do the logs of Part-DB says? It will explain what the 500 error means |
I couldn't access the logs, as the logs are maybe inside the docker container instead of a mounted folder? Please see the attached file (it's HTML). It starts at the bottom going up. Edit: This line:
|
Same exact issue.....
Found line in error log which indicates a database schema problem.. |
In both cases it appears, that he cant find the You should check if that the database In my private instance and the demo instance the new Part-DB and the required migration works fine... |
The migration script told me it was succesful, just like tpazdera but indeed in my |
Same problem
I saw there were migrations to perform, did so and cleared cache but no change and the column isn't there. Using the Docker container on Unraid with sqlite. |
I'm just trying to copy the app.db file from version 1.14.5 to version 1.16.0 and I can't because the |
Edit: Now see that this was in the mySQL function and the sqlite one was more elaborate... but it worked anyway as far as I can tell. Probably don't do that in your setup. From what I can see it chokes on
not liking the 2 statements in one, threw an error in my sqlite editor, I ran the whole block manually with that as 2 separate statements and it worked.
|
What does |
In my case I show that that version does have a migrated status.
|
I have slightly changed the migration (into basically what @kilrah) reported as succesful. For MySQL this is bascially the same as before, for sqlite its slightly different, but this should normally not make a difference. You can either take the latest commit from the repo master branch, or you wait until the docker image is built, and use the jbtronics/part-db1:master image, and try it out if it is working that way... |
I'm unsure if this is the same issue, as I was only encountering Error 500 past /en/ pages where the database was referenced. This previous thread helped #648. |
The problem persists in jbtronics/part-db1 version 1.16.1 I updated the docker image from 1.16.0 to 1.16.1 After the update I did the migration:
After that, I logged back in to part-DB. The home page works and confirms i'm on 1.16.1, but give the same popup: error (Status 500) Every other page directly displays error 500. The logs show this line:
Here is my full log (again HTML going bottom to top) Do you need anything else? |
I have the same issue. I upgraded to 1.16.1, re-ran the doctrine:migrate command. The messages claimed that the task was either not needed or no task "was executed but did not result in any SQL statements." However, all migration tasks completed successfully, confirmed by doctrine:list.
The attachments table still contains the old path...
Anything I am doing wrong? |
Same, I restored an old DB and tried upgrading it with the :master tag and it also did not work |
@salvatoreraccardi It looks like you may have a different problem. This issue is specifically for the database issue where the attachments table has not been migrated to a later schema. My table has a "path" column, but yours has the updated "internal_path", "external_path". There may be a new thing going on. You may have to check your logs and perhaps start a new issue. |
@tpazdera You are right, I noticed it now thanks for the feedback. I did a fresh install and encountered the problem I reported in the comment above right away. I don't understand what I'm doing wrong. |
I manually ran the update steps from @kilrah above, everything works fine for me now. |
@tpazdera @Kabelkrant I think your problem is that with the way you are calling the database migration, you are applying the migrations to the wrong kind of database, as your sudo command there doesn't pass the env variables with the database path to the migration command. So instead of using your configured mysql database, it migrates on the default sqlite database (as defined in To properly perform the database migration, call the migration via |
Yes i have upgraded this before and haven't had an issue until now, it's ok looks like the DB has been wiped so i'll try a freash install on bullseye and re install partsDB and see what happens |
Can’t the docker not automigrate when it senses the database is out of date during startup of the container? In my experience it’s common practice in the selfhosted space, at least I know Jellyfin and Bookstack do it this way. The thing is, we run Docker through an GUI frontend (Synology Container Manager) and don’t interact directly with the Docker CLI. We might be able to, but it’s advised against to to SSH directly into a NAS operating system. I would totaly understand if we’re not your target audience, but I love running this at home. |
I'm not sure if this is the same issue but I run in to trouble updating my docker install from 1.15 to 1.16. When trying to migrate the database with: I solved it with adding "command: ["--log_bin_trust_function_creators=1"]" to my docker-compose.yml However I'm not sure if it's the right way to do it? |
@MVM6508 That is actually a different probel. The alternative would be to disable this option via an "SET GLOBAL" option. |
Calling the migrating script at container startup is not difficult, and the frankenphp based image partdborg/part-db actually does that (https://github.com/Part-DB/Part-DB-server/blob/master/.docker/frankenphp/docker-entrypoint.sh) However there is a certain risk, because if the database migration should fail for whatever reason, the database might end up in some state in between migrations, that are difficult to recover from automatically. And if the user has no backup it can be difficult to recover from that. You might able to automatically backup the database before approaching migration, but that complicates things a bit more... |
@sochartgit That is most likely the same problem as above. You must run the migrations with |
Hello guys! |
I have the same issue when I decide to update partDB to newer version, from this time I try install it many time from zero, but it doesn't help. Have you any solution to fix this problem ? |
what exactly is your problem? If you start with an empty database, everything should work, if the migration goes through |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Since upgrading to 1.16.0, almost every page displays an error 500. It states:
error (Status 500)
Error calling /en/.
Try to reload the page or contact the administrator if this error persists.
To Reproduce
Steps to reproduce the behavior:
php bin/console doctrine:migrations:migrate
as user www-data, type Yes, migation succesfulThe error message advises to run
php bin/console cache:clear
but this does not help.Screenshots
https://postimg.cc/4YYQJtnW
Server Side
Host 10.0.20.2
Host 10.0.20.4
Desktop:
Additional context
My docker-compose is:
The text was updated successfully, but these errors were encountered: