Help wanted #2336
Replies: 5 comments 5 replies
-
I'm guessing the env vas are likely not "available" to Shlink when run through nginx. How and where did you set them? |
Beta Was this translation helpful? Give feedback.
-
I have also tried to set them in file /etc/bashrc . Then I rebooted system and tried to install. No effect. As soon as I entered short link I entered an Unxpected error |
Beta Was this translation helpful? Give feedback.
-
How to set up env vars correctly? :) |
Beta Was this translation helpful? Give feedback.
-
The most interesting thing as soon as I got error on browser . I go to cli shlink and execute command bin/cli short-url:list I also got en error : bin/cli short-url:list In ExceptionConverter.php line 52: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 no such table: short_urls In Exception.php line 28: SQLSTATE[HY000]: General error: 1 no such table: short_urls In Connection.php line 45: SQLSTATE[HY000]: General error: 1 no such table: short_urls Although I can see created short urls on my database. |
Beta Was this translation helpful? Give feedback.
-
Here are created tables pdo_pgsql=# \dt |
Beta Was this translation helpful? Give feedback.
-
Shlink version
shlink4.4.0_php8.4_dist
PHP version
php8.4
How do you serve Shlink
Self-hosted nginx
Database engine
PostgreSQL
Database version
15
Summary
Hello! Could you help me please.
I have installed postgres 15, nginx. Then after installing shlink using setting env variables and command php ./vendor/bin/shlink-installer init --initial-api-key --no-interaction --skip-download-geolite, I can create via cli a few short urls. I can see created urls on database. Everything looks good. But, when I enter page with short url, I got an error : Unexpected Error.
If I install shlink using vendor/bin/shlink-installer install and pass parameters manually everything works perfectly.
I can't understand what is problem. Did anyone have problem with installing shlink using env vars?
Beta Was this translation helpful? Give feedback.
All reactions