-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
php pdoexception sqlstate 08006 could not translate host name "firefly_iii_db" to address: Name or service not known #1838
Comments
I using the app kitematic to add /change guest and host port numbers. |
How did you use kitematic exactly? If you did not remove any volumes the upgrade should go smoothly but this is clearly not the case. Did you try a stop/start instead of a restart? |
well i have tried restart start stop running upgrade commands again, sorry can't remember the sequence of this. Can I provide you some other info by executing a command? someone suggested that I changed a setting in the docker-compose.yml file |
I noticed in kitematic that the container documents_firefly_iii_db_1 was not running. A start or a restart did not solve the problem here is a part of the docker-compose.yml file firefly_iii_db: I remembered that when I first installed firefly, the image was "postgres:latest" |
i also found another docker-compose.yml file in /var/www when I execute command "docker exec -it df46a17b56bd bash" Doing this a go from iMac-Bart:Documents bartherbots$ to root@df46a17b56bd. Once in there a can navigate to /var/www. The other yml file is locate on the imac /Users/myname/Documenten/ |
This is what I tried after changing <<image: "postgres:10 -> postgres:latest>>"the yml file (the one located under /Users/myname/Documenten) next i did docker-compose exec firefly_iii_app php artisan migrate --seed 2018-10-31 20:30:12] local.ERROR: SQLSTATE[08006] [7] could not translate host name "firefly_iii_db" to address: Name or service not known {"exception":"[object] (Doctrine\DBAL\Driver\PDOException(code: 7): SQLSTATE[08006] [7] could not translate host name "firefly_iii_db" to address: Name or service not known at /var/www/firefly-iii/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:50, PDOException(code: 7): SQLSTATE[08006] [7] could not translate host name "firefly_iii_db" to address: Name or service not known at /var/www/firefly-iii/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:46) In PDOConnection.php line 50: SQLSTATE[08006] [7] could not translate host name "firefly_iii_db" to address: Name or service not known In PDOConnection.php line 46: SQLSTATE[08006] [7] could not translate host name "firefly_iii_db" to address: Name or service not known |
at this point I get no more error(s) when navigating to http://localhost:8081/login , Instead i get a white page with "Be right back." |
Is the DB image running at all? The reason But I'm not a specialist on docker compose and the dns features (being able to connect to "firefly_iii_db"). I'll do some digging as well. |
doing a "docker-compose -f docker-compose.yml up -d" did the trick and I could login 4.7.8 and all data is still there |
Mmm. Is the f for "force", perhaps? I was afraid to suggest something like that. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am running Firefly III version 4.7.7
Description
I tried to upgrade from 4.7.7 to 4.7.8 using the following commands
docker-compose pull firefly_iii_app && docker-compose restart firefly_iii_app
followed by
docker-compose exec firefly_iii_app php artisan migrate --seed
docker-compose exec firefly_iii_app php artisan firefly:upgrade-database
docker-compose exec firefly_iii_app php artisan firefly:verify
docker-compose exec firefly_iii_app php artisan passport:install
when i try to reach http:localhost:8081 I first got a blank page. After running the upgrade commands a second time I got the message be right back. I then changed a setting in .env file to get this bug output
Have I lost also my data that I entered in version 4.7.7?
Steps to reproduce
(if relevant of course)
Extra info
MAC OS High Sierra / docker ce for mac
Bonus points
Earn bonus points by:
The text was updated successfully, but these errors were encountered: