You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to update version 2.7.1 to 3.1.2 with migrating the configuration of the old version, runs into an error.
I migrated it version by version and got from 2.7.1 to 2.10.3 successfully. As soon as I want to migrate from 2.10.3 to the 3.0.0 I get the error message.
This error message also appears when trying to migrate from 2.7.1 directly to 3.0.0 or 3.1.2.
I had a rather bumpy upgrade from 2.10.3 to 3.4.0, as it didn't seem to respect the majority of the existing settings values, so I copied and pasted manually, then ran into this same error. I didn't want to update the default system version of MariaDB if I didn't have to, as Shlink is not the only service on the machine, so I checked which keys were actually affected by the limit. In all cases they were on VARCAHR(255) columns where values are unlikely to be that length. I don't think many Shlink users have domains, shortcodes and tags greater than 191 chars, because that would defeat the normal purpose of using a URL shortener. I manually changed the columns with the following SQL commands:
ALTERTABLE`short_urls`
MODIFY `short_code`varchar(191) COLLATE 'utf8_bin'NOT NULL AFTER `original_url`,
MODIFY `import_original_short_code`varchar(191) COLLATE 'utf8_unicode_ci'NULL AFTER `import_source`;
ALTERTABLE`domains`
MODIFY `authority`varchar(191) COLLATE 'utf8_unicode_ci'NOT NULL AFTER `id`;
ALTERTABLE`tags`
MODIFY `name`varchar(191) COLLATE 'utf8_unicode_ci'NOT NULL AFTER `id`;
I can't tell if this is sufficient to work around the issue because afterwards visiting the site root spat out this:
An unexpected error occurred
The List short URLs and Overview pages on the management web app say:
Something went wrong while loading short URLs :(
I can see the API call to list URLs produces the same error response as visiting the root. However, the app pages for domains, tags, etc., work fine. @acelaya What's the quickest way I can get proper errors to debug the cause? Shlink isn't writing anything to the PHP error logs. This might be a separate issue, but I'd rather make sure it isn't related to the upgrade, first.
How Shlink is set-up
Summary
Try to update version 2.7.1 to 3.1.2 with migrating the configuration of the old version, runs into an error.
I migrated it version by version and got from 2.7.1 to 2.10.3 successfully. As soon as I want to migrate from 2.10.3 to the 3.0.0 I get the error message.
This error message also appears when trying to migrate from 2.7.1 directly to 3.0.0 or 3.1.2.
/var/customers/webs/customer/shlink3.1.2_php8.0_dist# vendor/bin/shlink-installer update -vvv
Current behavior
Expected behavior
How to reproduce
The text was updated successfully, but these errors were encountered: