ERROR: "check-db" exited with 1. #1487
Replies: 16 comments 2 replies
-
|
That step simply tries to connect to the database. Did you change your |
Beta Was this translation helpful? Give feedback.
-
Everything works perfectly. We only have a problem on some Synology Servers from the 20+ series Reference: https://mariushosting.com/how-to-install-umami-on-your-synology-nas/ The installation is smooth on all NAS devices, with the exception of 20+series on which it's still not working and can't connect to the db. I have received 50 reports in the last month from different users with 20+ series NAS. I don't know what is causing the issue, the only thing they have in common is the Intel Celeron J4125 CPU. |
Beta Was this translation helpful? Give feedback.
-
|
@mariushosting i'm not familiar with your environment but i had the same issue today. For some reason my environment changes the Are you able to run commands on your system? Try printenv and verify the correct format of the @mikecao is there an alternative solution to configure the connection? Like a way to not use a |
Beta Was this translation helpful? Give feedback.
-
|
@tschannik Even if we split up the connection details, you'd still have to define environment variables. You'll have to figure out why your environment variables are not showing up. @mariushosting Is it possible the 20+ has a firewall preventing external connections? |
Beta Was this translation helpful? Give feedback.
-
|
@mikecao Well the problem is that in my environment i have no control over the My case is probably very specific. So i would agree that reading the values from different variables is not a "important" feature 👍 |
Beta Was this translation helpful? Give feedback.
-
|
The firewall settings is identical to other NAS. Only the 20+ models are getting trouble. |
Beta Was this translation helpful? Give feedback.
-
|
@tschannik Can you try setting |
Beta Was this translation helpful? Give feedback.
-
|
@mariushosting I only have a synology 19+ so I can't troubleshoot it |
Beta Was this translation helpful? Give feedback.
-
|
hey @mariushosting, i run umami without issue on a 1517+ using the postgres db. maybe try that? here's my docker-compose: big fan of your work! |
Beta Was this translation helpful? Give feedback.
-
Hello wheeleran, as already write at the beginning of this post the problem is only with NAS series model x20 not x17. |
Beta Was this translation helpful? Give feedback.
-
|
In case this is the issue for anyone else reading this thread: I discovered that if my yarn run v1.22.19
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
✗ Unable to connect to the database.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
Beta Was this translation helpful? Give feedback.
-
|
`✓ DATABASE_URL is defined. migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve ✗ Command failed: prisma migrate deploy migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve ERROR: "check-db" exited with 1.` |
Beta Was this translation helpful? Give feedback.
-
|
I had the same issue and mine was due to SSL/TLS. I had to set the MySQL server's parameter "require_secure_transport" OFF. |
Beta Was this translation helpful? Give feedback.
-
|
I do have require_secure_transport set to OFF, with GRANT ALL permissions for the user@localhost, and the same user and pw works with mysql -u -p; using urls with mysql://umami:@localhost:3306/umami ('umami' is also the db name) pw contains no special characters, and I've tried both mysql and mysql2 I'm using the current git code with Debian 12 on a rpi-4B+ with mysql 15.1 (10.11.4-MariaDB) There is just one clue in the log: but again, using mysql from the command line with that username and pw logs in correctly, however if I specify -P 3306, then I get and here's the answer! and now it works: |
Beta Was this translation helpful? Give feedback.
-
|
I used the |
Beta Was this translation helpful? Give feedback.
-
|
In my case docker container wasnt able to call internet. I used "iptables:false" in /etc/docker/deamon.json whcih is BAD practice. rather use https://github.com/chaifeng/ufw-docker. Worked after that fix was made docker compose logs umami --tail 10
umami-1 | ✓ DATABASE_URL is defined.
umami-1 | ✓ Database connection successful.
umami-1 | ✓ Database version check successful.
umami-1 | Error: request to https://binaries.prisma.sh/all_commits/34b5a692b7bd79939a9a2c3ef97d816e749cda2f/linux-musl-openssl-3.0.x/schema-engine.gz.sha256 failed, reason:
umami-1 | ✗ Command failed: prisma migrate deploy
umami-1 | Error: request to https://binaries.prisma.sh/all_commits/34b5a692b7bd79939a9a2c3ef97d816e749cda2f/linux-musl-openssl-3.0.x/schema-engine.gz.sha256 failed, reason:
umami-1 |
umami-1 | ELIFECYCLE Command failed with exit code 1.
umami-1 | ERROR: "check-db" exited with 1.
umami-1 | ELIFECYCLE Command failed with exit code 1. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The latest umami update with the postgres latest database is not working same with mysql as database in some server not all.
yarn run v1.22.19
$ npm-run-all check-db update-tracker start-server
$ node scripts/check-db.js
✓ DATABASE_URL is defined.
✗ Unable to connect to the database.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
Beta Was this translation helpful? Give feedback.
All reactions