Copy all fails at database upload every time, with all apps. Copying database on its own works fine.
brycekirk opened this issue · comments
PHP: 8.1.0
Craft: 3.7.55.2
Copy: 1.2.4
MAMP Pro (PHP 8.1.0 and MySQL 5.7.34)
When I run php craft copy/all/up
, the code copies and deploys no problem, but I get the following error when it tries to copy the database:
SSH Remote error: 255
Command: ssh <myapp>@deploy.us1.frbit.com "php vendor/bin/craft-copy-import-db.php
./storage/craft-copy-transfer.sql --force"
Output:
ERROR (sql):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
–––––––––––––––––––––––
[ERROR] Failed to copy the database
Running php craft copy/db/up
on its own uploads the database without any issues. This is a problem across all my fortrabbit apps for the last few weeks.
Related to wrong/missing ENV vars
@ostark What were the missing ENV vars? I'm hitting this on a brand new pro stack I'm just trying to test out.
I should note that is doesn't work for me using either craft copy/all/up
or craft copy/db/up
@engram-design Craft 3 or 4?
Add these Env vars if you still use Craft 3
https://help.fortrabbit.com/craft-3#toc-craft-3-environment-variables
@ostark Was Craft 3, got someone who uses the platform to sort it out!