Upgrade from shlink 3.7.4 to 4.1.1 fails #2143
-
Shlink version4.1.1 PHP version8.3.6 How do you serve ShlinkOther (explain in summary) Database engineMySQL Database version10.6-MariaDB SummaryHi there I use multiple shlink v3 instances on a shared hosting (Hostpoint Business Webhosting, Nginx (Proxy) with Apache/PHP, Switzerland) since more than a year without a problem. Instances are protected through free Cloudflare instances. I tried to update my youngest shlink instance (installed with 3.7.3 in early 2024, updated to 3.7.4 afterwards) to 4.1.1 Before that I downgrade again (backups available), I prefer to go forwared and try to fix this. Update works like, CLI is working BUT web access through app.shlink.io does not work. What I tried so far and did not help:
My generated_config.php:
Thanks for your help! Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Can you elaborate on what you mean by "web access through app.shlink.io does not work"? Have you checked nginx, Apache and Shlink logs? Have you checked the browser console for errors? And the network tab? Do short URLs work? |
Beta Was this translation helpful? Give feedback.
Actually, I just remembered about something.
When not using redis, Shlink uses an in-memory cache storage which is shared by all Shlink instances running in the same server. This can be a problem, so Shlink 3.7 introduced a way to define a unique cache prefix per instance, via
CACHE_NAMESPACE
config option or env var (in your config the value is "Shlink").What's happening here is probably that your newest Shlink 4 instance is "picking-up" class metadata entries from the cache that were generated by Shlink 3.
Try setting a unique value there, and that should solve the problem.
See #1862 for context.