-
Notifications
You must be signed in to change notification settings - Fork 185
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
Database connection error on Docker startup for new dev install #1244
Comments
I have never touched the Docker stuff (it was contributed by someone else) so it might take me a while to figure it out.
…On Wed, Feb 12, 2020, at 10:24 PM, SandyS1 wrote:
Steps required to reproduce the problem
1. Check out latest from master
2. Copy `docker-compose.yml.dist` to `docker-compose.yml`
3. Change line 10 to ` - "CFP_ENV=development"`
4. Change DB password on `config/development.yml.dist` and `config/production.yml.dist` to `root`
5. Issue `docker-compose up -d`
6. Issue `docker-compose -f docker-compose.yml exec app composer run setup-env`
Expected Result
* Install dependencies via composer and load initial database
Actual Result
*
Get
`In AbstractMySQLDriver.php line 93:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] Connection refused`
I'm doing this on a new Mac with MacOS Catalina 10.15.3 with Docker version 19.03.5, build 633a0ea and docker-compose version 1.25.4, build 8d51620a
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1244?email_source=notifications&email_token=AAAG5INMDADPWOEMWZCH7QLRCS4NDA5CNFSM4KUJD3XKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INEJANQ>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAG5INXEBMHEKNSKLO6MJ3RCS4NDANCNFSM4KUJD3XA>.
|
I followed the instructions in the README file and was able to:
I now have a working version of the application in a docker container. |
Never mind, I spoke too soon. I am seeing the same error. Will dig in and fix |
@chartjes Why did you delete the ping @BoutValentin |
Sorry about that, it was part of a cleanup I did not finish. I have re-added that file |
Thanks! |
@chartjes Would it be interesting for you to redo the docker for your project? |
@toofff I would definitely take a look at any changes like that. The docker stuff was a 3rd party contribution so I didn't delve into it too deeply |
@chartjes Thank you to you and I understand it perfectly and I also prefer that you look in detail ;) |
Steps required to reproduce the problem
docker-compose.yml.dist
todocker-compose.yml
- "CFP_ENV=development"
config/development.yml.dist
andconfig/production.yml.dist
toroot
docker-compose up -d
docker-compose -f docker-compose.yml exec app composer run setup-env
Expected Result
Actual Result
Get
`In AbstractMySQLDriver.php line 93:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] Connection refused`
I'm doing this on a new Mac with MacOS Catalina 10.15.3 with Docker version 19.03.5, build 633a0ea and docker-compose version 1.25.4, build 8d51620a
The text was updated successfully, but these errors were encountered: