System unaccessible after update container Server v5.0.2 --> v5.1.5 #207
Replies: 5 comments
|
In the "Browser way" I see an error in console about: |
|
I can also add that about the versions I jumped from: 5.0.2 to 5.1.5 and from 4.7.1 to 4.8.0 |
|
This looks like it's likely tied to PHP 8.5 being very new... it introduced a deprecation notice for ReflectionProperty::setAccessible() (called internally by doctrine/persistence), and your log shows that notice being logged as Shlink.ERROR, not just a harmless warning. Best guess is Shlink's error handling is treating that deprecation as a thrown exception, which would break nearly every database backed request matching the total outage you're seeing. This exact php 8.5 deprecation has already forced quick patches in WordPress, Drupal, and Composer, so it's a known fresh pain point, not something specific to your setup. Roll back to your previous working image (5.0.2, or any tag bundling an older PHP version) to restore service now, while a real fix lands upstream - this likely needs a code patch, not a config change on your end. Worth reporting this directly in the Shlink repo with those exact two log lines and your php version |
|
Tomorrow I will try to pull the old version, do I have to modify the tag of backend and frontend? thank you |
|
The problem has been fixed with a roll back. When I will be able to update the cointainers without any problems? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Application
Shlink
Application version
5.1.5
How do you serve the application
Docker image
Database engine (if any)
MySQL
Database version
9.2.0
Summary
Hello, some minutes ago I tried to update the container on my environment but after that I have a classic GUI error:
Oops! Could not connect to this Shlink server.
Make sure you have internet connection, and the server is properly configured and on-line.
Before the update all were ok, about the upgrade I launched the docker pull command and migrated the db, all fine like usual.
I tried to read the backend log and I found error about PHP version:
Anyway, the "docker exec -it CONTAINER php -v" return:
PHP 8.5.7 (cli) (built: Jun 5 2026 01:16:51) (NTS)
How can I fix it?
Thank you
All reactions