-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Installer options are not properly loaded as env vars #1499
Comments
I have resolved this by clearing the database to 0 (ofc clearing all stored short links) and then rerunning the installer on a clean folder with a new shell. From my observations this issue came from a polluted environment. |
Ok i was mistaken. It is still not accessing the postgres database (and still creating the sqlite one) |
Yep, I have reproduced it. It's not just a problem with the database driver, but a regression introduced in Shlink 3.2 which is making it not load the configuration at all, so it uses default values for everything. The fix is easy. I will publish v3.2.1 in a couple of hours, as this is a bug affecting everyone not using the docker image. |
I have just released v3.2.1, which includes the fix for this. You can skip v3.2.0 and update directly to v3.2.1 |
This worked like a charm. For anyone finding this and wondering how (assuming both your user and db are called
Now the upgrade should go through as normal |
How Shlink is set-up
Summary
When installing and/or upgrading shlink it defaults to a sqlite database in
$SHLINK_ROOT/data/database.sqlite
instead of the configured postgres database.
Even reinstalling from scratch exhibits the same behavior.
The config generated by the installer:
Current behavior
Creating and initializing a database at
$SHLINK_ROOT/data/database.sqlite
.Expected behavior
Initializing the database in the running postgres instance (/var/run/postgresql/.s.PGSQL.5432)
How to reproduce
vendor/bin/shlink-installer install
and fill in the values listed aboveThe text was updated successfully, but these errors were encountered: