veksen
January 12, 2016, 1:31am
1
Hello, my build is currently failing on my master branch. This branch was just merged from develop, which succeded.
It fails at the migration:
php artisan migrate --force --env=production --no-interaction -vvv
[PDOException] SQLSTATE[HY000] [2002] No such file or directory
My circle.yml:
machine:
timezone:
America/Chicago
php:
version: 5.5.9
environment:
APP_ENV: testing
DB_HOST: 127.0.0.1
DB_DATABASE: circle_test
DB_USERNAME: ubuntu
dependencies:
override:
- composer install --prefer-source --no-interaction
- npm install
- npm install -g bower
- npm install -g gulp
- bower install
- gulp
pre:
- echo "memory_limit = 1024M" > ~/.phpenv/versions/5.5.9/etc/conf.d/memory.ini
post:
- php artisan optimize
- sudo chmod -R 775 storage
- sudo chmod -R 775 bootstrap/cache
test:
post:
- phpunit
database:
override:
- php artisan migrate --force --env=production --no-interaction -vvv
- php artisan db:seed --force --env=production --no-interaction -vvv
levlaz
January 12, 2016, 1:37am
2
If you SSH into the build and run the step manually do you get any additional logging?
veksen
January 12, 2016, 1:37am
3
No additional logging, same output.
levlaz
January 12, 2016, 1:38am
4
veksen
January 12, 2016, 1:40am
5
Yes, running either with a forced env, or without causes the same error. What puzzles me, is that the database migrates correctly with the same env/files, on the develop branch.
veksen
January 12, 2016, 6:32am
6
What I’ve attempted so far:
DB_HOST
as either localhost
or 127.0.0.1
with or without a UNIX_SOCKET
variable (/tmp/mysql.sock
)
php artisan migrate
with our without --env
alexey
January 13, 2016, 9:53am
7
Did you try rebuilding without cache? Have you force-pushed to the master branch recently?
veksen
January 13, 2016, 2:00pm
8
Hello, I just tried rebuilding without cache without success. I did force-push into the branch, but the merge was not a forced push.
alexey
January 15, 2016, 4:36pm
9
I would like to clear your source cache and see if that changes anything. Do you mind reaching out to sayhi@circleci.com
referencing this post? I’ll get that done for you.
veksen
January 17, 2016, 5:32am
10
Okay, it was an error on my part, one of my migration file was trying to access another database, which of course didn’t exist. Thanks a lot for your time and help.
1 Like
levlaz
January 18, 2016, 9:07am
11
Glad you were able to figure this out!