500 Error when trying to list short urls, or clicking through one #1862
-
Shlink version3.6.3 PHP version8.1 How do you serve ShlinkSelf-hosted Apache Database engineMySQL Database version5.7 SummaryI'm having issues with one of my shlink servers. 4 total, this is the only one that's having issues and also the only one running with a MySQL database. The others are using SQLite and also an older version of shlink. Not sure which, but they've been running for a while. The MySQL server is running on a different VPS, but it's able to connect. The Visits, Orphan Visits, and Tags counters are showing the right values. Short URLs is showing 0, even though there should be 1. On the home page on app.shlnk.io I'm seeing the following error under recently created URLs. Same error on the list short URLs page.
There's only one short url in the database right now, and if I try to go to it I get this error
Here are pastes of the log file from trying to work with the site in app.shlink.io. Apache log for request
Log File
And here are the logs for the 500 error when trying to go to a short code. Same error, but slightly shorter trace. Only thing in the Apache log file is the request to the short url with a 500 error.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You probably have outdated information in cache. See #1684 (comment) Have you recently updated Shlink and forgot to go through the update process? |
Beta Was this translation helpful? Give feedback.
Not sure what the cause was, but your mention of caching sent me down a rabbit hole and I think it's working now.
2 servers, this one that's 3.6.3 and one that was 3.4.0 seemed to conflict somewhere. I'd restart apache and then go to one of the two and it would work fine. Didn't matter which. But the other would no longer work. Same errors. Restart apache and go to the other one first, and same thing. The second one I went to didn't work. Thought it might be opcache, but disabling it made no difference.
I upgrade the 3.4.0 site to 3.6.3 and now they both appear to be working fine.
Appreciate the help pointing me in the right direction, and really appreciate shlink. I've used similar progr…