Concerning the problem with "control", I've been able to add "control" to the classpath by doing that, thanks to aerogear-push/env/OPENSHIFT_AEROGEAR_PATH_ELEMENT :
# rhc ssh aerogearbkp # cd aerogear-push/bin # ln -sf `pwd`/control tools/
---------------------------------------------------------- Yet "rhc snapshot-save" still does not work. ----------------------------------------------------------
I've extracted the interesting part from sshing the gear in verbose mode to do the snapshot :
# ssh -vvv my-uuid@aerogearbkp-mydomain.rhcloud.com 'snapshot' > aerogearbkp.tar.gz
[... verbose initiating the connection ...]
Authenticated to aerogearbkp-mydomain.rhcloud.com ([${IP}]:22). debug2: fd 6 setting O_NONBLOCK debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug2: callback start debug2: fd 3 setting TCP_NODELAY debug3: packet_set_tos: set IP_TOS 0x08 debug2: client_session2_setup: id 0 debug1: Sending environment. debug3: Ignored env Apple_PubSub_Socket_Render debug3: Ignored env CMD_DURATION debug3: Ignored env COLORFGBG debug3: Ignored env DISPLAY debug3: Ignored env HOME debug3: Ignored env ITERM_PROFILE debug3: Ignored env ITERM_SESSION_ID debug1: Sending env LC_CTYPE = UTF-8 debug2: channel 0: request env confirm 0 debug3: Ignored env LOGNAME debug3: Ignored env PATH debug3: Ignored env PWD debug3: Ignored env SHELL debug3: Ignored env SHLVL debug3: Ignored env SSH_AUTH_SOCK debug3: Ignored env TERM debug3: Ignored env TERM_PROGRAM debug3: Ignored env TMPDIR debug3: Ignored env USER debug3: Ignored env __CF_USER_TEXT_ENCODING debug3: Ignored env __CHECKFIX1436934 debug3: Ignored env __fish_bin_dir debug3: Ignored env __fish_datadir debug3: Ignored env __fish_help_dir debug3: Ignored env __fish_sysconfdir debug1: Sending command: snapshot debug2: channel 0: request exec confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug2: channel 0: rcvd ext data 490 /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1380:in `block in do_control_with_directory': CLIENT_ERROR: Failed to execute: 'control pre-snapshot' for /var/lib/openshift/${MY_UUID}/aerogear-push (OpenShift::Runtime::Utils::ShellExecutionException) from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1170:in `process_cartridges' debug2: channel 0: written 490 to efd 7 debug2: channel 0: rcvd ext data 2206 from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1343:in `do_control_with_directory' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1192:in `do_control' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/application_container_ext/snapshots.rb:69:in `block in snapshot' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:84:in `block in each_cartridge' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1176:in `block in process_cartridges' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1174:in `each' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:1174:in `process_cartridges' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/v2_cart_model.rb:82:in `each_cartridge' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.36.3/lib/openshift-origin-node/model/application_container_ext/snapshots.rb:68:in `snapshot' from /usr/bin/gear:582:in `block (2 levels) in <main>' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:155:in `run' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:62:in `run!' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/delegates.rb:11:in `run!' from /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/import.rb:10:in `block in <top (required)>'
[ ... verbose stuff ending connection ... ]
debug1: Exit status 1
Notes : while doing the manual ssh snapshot trial, I have in my "rhc tail" output this that is beeing added :
/usr/bin/tail: aerogear-push/logs/migration.log: file truncated Unexpected error running Liquibase: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
|