Skip to content
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

'export' is not recognized as an interal or external command - Capistrano-wpcli db pull #44

Open
kivabitar opened this issue Jan 28, 2019 · 0 comments

Comments

@kivabitar
Copy link

Ok, I have spent long enough on this issue where I figured on posting it.
When running a cap staging wpcli:db:pull I keep getting hung here.

$ cap staging wpcli:db:pull --trace
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke wpcli:db:pull (first_time)
** Execute wpcli:db:pull
00:00 wpcli:db:pull
01 wp db export - | gzip > /tmp/wpcli_database.sql.gz
✔ 01 mas_sf_serverpilot 0.563s
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 10.17%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 20.35%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 30.52%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 40.69%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 50.87%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 61.04%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 71.21%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 81.39%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 90.11%
Downloading C:/xampp/htdocs/tmp/wpcli_database.sql.gz 100.0%
02 rm /tmp/wpcli_database.sql.gz
✔ 02 mas_sf_serverpilot 0.108s
03 gunzip -c C:/xampp/htdocs/tmp/wpcli_database.sql.gz > C:/xampp/htdocs/tmp/wpcli_database.sql
03 'export' is not recognized as an internal or external command,
03 operable program or batch file.
cap aborted!
SSHKit::Command::Failed: gunzip exit status: 256
gunzip stdout: Nothing written
gunzip stderr: 'export' is not recognized as an internal or external command,
operable program or batch file.
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/command.rb:99:in exit_status=' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/local.rb:59:in block in execute_command'
C:/Ruby24-x64/lib/ruby/2.4.0/open3.rb:205:in popen_run' C:/Ruby24-x64/lib/ruby/2.4.0/open3.rb:95:in popen3'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/local.rb:44:in execute_command' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:145:in block in create_command_and_execute'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:145:in tap' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:145:in create_command_and_execute'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:78:in execute' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capistrano-wpcli-0.1.4/lib/capistrano/tasks/wpdb.rake:67:in block (4 levels) in <top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:29:in instance_exec' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sshkit-1.18.0/lib/sshkit/backends/abstract.rb:29:in run'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capistrano-3.11.0/lib/capistrano/dsl.rb:76:in run_locally' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capistrano-wpcli-0.1.4/lib/capistrano/tasks/wpdb.rake:65:in block (3 levels) in <top (required)>'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:273:in block in execute' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:273:in each'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:273:in execute' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/airbrussh-1.3.1/lib/airbrussh/rake/context.rb:62:in execute'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:214:in block in invoke_with_call_chain' C:/Ruby24-x64/lib/ruby/2.4.0/monitor.rb:214:in mon_synchronize'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:194:in invoke_with_call_chain' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/task.rb:183:in invoke'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:160:in invoke_task' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:116:in block (2 levels) in top_level'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:116:in each' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:116:in block in top_level'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:125:in run_with_threads' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:110:in top_level'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:83:in block in run' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:186:in standard_exception_handling'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.2/lib/rake/application.rb:80:in run' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capistrano-3.11.0/lib/capistrano/application.rb:14:in run'
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capistrano-3.11.0/bin/cap:3:in <top (required)>' C:/Ruby24-x64/bin/cap:23:in load'
C:/Ruby24-x64/bin/cap:23:in `

'
Tasks: TOP => wpcli:db:pull

I'm on a windows 10 OS, but using GITbash. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant