factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

Do not call task copyFromPrepareSource on method mysql with `phab copy-from <xxx> files` #212

Closed mikran closed 2 years ago

mikran commented 2 years ago

phab copy-from <xxx> files command failed with "Could not connect to database!".

Database should not be needed when copying just the files.

stmh commented 2 years ago

can you try latest main? should contain a fix for this scenario.

stmh commented 2 years ago

please try 3.7.4

mikran commented 2 years ago

I had to do it with get:file & put:file, it did not work with docker-exec nor kubectl

stmh commented 2 years ago

copy-from is using rsync internally and this is not supported for specific combinations of shell-providers, as we need to pass a "connection-string" to rsync so it can reach the source originating from the target-shell. (or the other way around). There is some preliminary work in the 3.8-branch where I am replacing kubectl cp with rsync which might be also a way to make it working for certain, currently unsupported combinations.

stmh commented 2 years ago

this should be fixes in latest 3.7.x. Please reopen if still the case.