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

cap dump:backup:create failed #5

Open
jpascal opened this issue Sep 22, 2012 · 5 comments
Open

cap dump:backup:create failed #5

jpascal opened this issue Sep 22, 2012 · 5 comments

Comments

@jpascal
Copy link

jpascal commented Sep 22, 2012

cap dump:backup:create
 * executing `dump:backup:create'
 * executing `dump:remote:create'
 * executing "cd /home/user/application/current; bundle\\ exec\\ rake -s dump:create PROGRESS_TTY\\=\\+ RAILS_ENV\\=production TAGS\\=remote,backup"
  servers: ["server"]
  [server] executing command
  command finished in 461ms
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.3-p194' -c 'cd /home/user/application/current; bundle\\ exec\\ rake -s dump:create PROGRESS_TTY\\=\\+ RAILS_ENV\\=production TAGS\\=remote,backup'" on server

dump_command shelljoin?

@toy
Copy link
Owner

toy commented Sep 22, 2012

Please test version 1.0.2

@jpascal
Copy link
Author

jpascal commented Sep 22, 2012

Error gone but not all work correctly.

$ cap dump:backup:create
  * executing `dump:backup:create'
  * executing `dump:remote:create'
  * executing "cd /home/user/application/current; bundle exec rake -s dump:create PROGRESS_TTY\\=\\+ RAILS_ENV\\=production TAGS\\=remote,backup"
    servers: ["server"]
    [server] executing command
    command finished in 7864ms
Tables: 100.0%
20120922121021@backup,remote.tgz
  * executing `dump:remote:download'
  * executing "cd /home/user/application/current; bundle exec rake -s dump:versions LIKE\\=Tables:\\ \\\e\\[1m......\\\e\\[0m\\\e\\[K\\\r\\\e\\]0\\;Tables:\\ ......\\\aTables:\\ \\\e\\[1m......\\\e\\[0m\\ \\>\\ schema_migrations:\\ \\\e\\[1m......\\\e\\[0m\\\e\\[K\\\r\\\e\\]0\\;Tables:\\ ......\\ \\>\\ schema_migrations:\\ ......\\\aTables:\\ \\\e\\[1m\\ 12.5\\%\\\e\\[0m\\ \\>\\ schema_migrations:\\ \\\e\\[1m\\ 25.0\\%\\\e\\[0m\\ \\(ETA:\\ 0s\\)\\\e\\[K\\\r\\\e\\]0\\;Tables:\\ \\ 12.5\\%\\ \\>\\ schema_migrations:\\ \\ 25.0\\%\\ \\(ETA:\\ 0s\\)\\\aTables:\\ \\\e\\[1m\\ 50.0\\%\\\e\\[0m\\ \\>\\ servers:\\ \\\e\\[1m......\\\e\\[0m\\ \\(ETA:\\ 0s\\)\\\e\\[K\\\r\\\e\\]0\\;Tables:\\ \\ 50.0\\%\\ \\>\\ servers:\\ ......\\ \\(ETA:\\ 0s\\)\\\aTables:\\ 100.0\\%\\\e\\[K\\\r\\\e\\]0\\;Tables:\\ 100.0\\%\\\a\\\e\\]0\\;\\\a\\\r'\\\n'20120922121021@backup,remote.tgz PROGRESS_TTY\\=\\+ RAILS_ENV\\=production"
    servers: ["server"]
    [server] executing command
    command finished in 7604ms
$ ls dump/

no versions id directoruy

$ cap dump:mirror:down

Local database not changed...

I try make a path for you if I will be have free time.

@toy
Copy link
Owner

toy commented Sep 22, 2012

Something with mixing stderr and stdout. Can you try running cd /home/user/application/current; bundle exec rake -s dump:create PROGRESS_TTY\=\+ RAILS_ENV\=production TAGS\=remote,backup 2> /dev/null and tell what you get as output?

@jpascal
Copy link
Author

jpascal commented Sep 22, 2012

$ cd application/current
$ bundle exec rake -s dump:create PROGRESS_TTY\=\+ RAILS_ENV\=production TAGS\=remote,backup 2> /dev/null
20120922195614@backup,remote.tgz

output: 20120922195614@backup,remote.tgz

@toy
Copy link
Owner

toy commented Sep 23, 2012

This works as it should, can you try to run this command using cap invoke?

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

2 participants