Script copy/all/up always fails
TheFunkyMonk opened this issue · comments
Issue
I've set up a handful of Craft sites on Fortrabbit, and it seems like the copy/all/up
script in this plugin always fails when initially deploying the site after using php craft copy/setup
. This time, I'm not actually sure how to proceed.
Steps to reproduce
- Run setup steps from
php craft copy/setup
and select yes to push everything up withcopy/all/up
. - The code deploys and I get an error on Craft auto migrate that it can't connect to the database, which makes sense at this point given the database hasn't been pushed up.
- After the error stack trace, I still see
[OK] Code deployed successfully
, and setup moves to the next step of exporting the local database and pushing it up to fortrabbit. - On attempting to push up the database, I receive:
[ERROR] Unable to import database. Deploy code first using this command: php craft copy/code/up
I understand there's a bit of a chicken and egg problem referenced in this issue, but even running php craft copy/db/up --force
at this point results in the same error message from step 4.
If I SSH into the app, I see my code and it looks like the files in vendor
have been installed. What is the recommended way to proceed from here?
Thanks @TheFunkyMonk - I'll have a look and try to understand the issue.
Sorry, this issue was related to the delayed database provisioning.
I answered in support.
I have the same issue, what can i do to solve this? @ostark
@Maybach91
any luck with?:
php craft copy/db/up --force
any luck with?:
php craft copy/db/up --force
Thanks for the help, but no, i get the same error. :/