Skip to content

Instantly share code, notes, and snippets.

@dantswain
Created April 19, 2017 18:33
Show Gist options
  • Save dantswain/4d0825e21fe19b480e93e1ebf78283d5 to your computer and use it in GitHub Desktop.
Save dantswain/4d0825e21fe19b480e93e1ebf78283d5 to your computer and use it in GitHub Desktop.
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
ok
vm.args needs to have either -name or -sname parameter.
+ uname
+ grep -q Darwin
++ readlink -f /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
++ dirname /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT_DIR=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3
+++ dirname /usr/local/ourco/ourapp-1.1.3/releases/1.1.3
++ dirname /usr/local/ourco/ourapp-1.1.3/releases
+ RELEASE_ROOT_DIR=/usr/local/ourco/ourapp-1.1.3
+ RUN_ERL_DISABLE_FLOWCNTRL=true
+ REL_NAME=ourapp
+ REL_VSN=1.1.3
+ ERTS_VSN=8.1
+ CODE_LOADING_MODE=embedded
+ START_ERL_DATA=/usr/local/ourco/ourapp-1.1.3/releases/start_erl.data
+ REL_DIR=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3
+ REL_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/lib
+ ERL_OPTS=
+ RELEASE_MUTABLE_DIR=/usr/local/ourco/ourapp-1.1.3/var
+ RUNNER_LOG_DIR=/data/log/ourapp
+ EXTRA_OPTS=
+ PRE_CONFIGURE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_configure.d
+ PRE_START_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_start.d
+ POST_START_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_start.d
+ PRE_STOP_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_stop.d
+ POST_STOP_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_stop.d
+ PRE_UPGRADE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_upgrade.d
+ POST_UPGRADE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_upgrade.d
+ '[' -z dumb ']'
+ _init_erts_config
+ '[' -z 8.1 ']'
+ __erts_dir=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ '[' -d /usr/local/ourco/ourapp-1.1.3/erts-8.1 ']'
+ export ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ export ERTS_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ ERTS_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ echo '8.1 1.1.3'
+ '[' -z '' ']'
+ export RELEASE_CONFIG_DIR=/usr/local/ourco/ourapp-1.1.3
+ RELEASE_CONFIG_DIR=/usr/local/ourco/ourapp-1.1.3
+ mkdir -p /usr/local/ourco/ourapp-1.1.3/var
+ echo 'Files in this directory are regenerated frequently, edits will be lost'
+ mkdir -p /data/log/ourapp
+ _init_configs
+ '[' -z '' ']'
+ '[' -f /usr/local/ourco/ourapp-1.1.3/vm.args ']'
+ export VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ export SRC_VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ SRC_VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ '[' /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args '!=' /usr/local/ourco/ourapp-1.1.3/var/vm.args ']'
+ echo '#### Generated - edit/create /usr/local/ourco/ourapp-1.1.3/vm.args instead.'
+ cat /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ export VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/var/vm.args
+ VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/var/vm.args
+ '[' ']'
+ '[' -z '' ']'
+ '[' -f /usr/local/ourco/ourapp-1.1.3/sys.config ']'
+ export SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ export SRC_SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ SRC_SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ '[' /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config '!=' /usr/local/ourco/ourapp-1.1.3/var/sys.config ']'
+ echo '%% Generated - edit/create /usr/local/ourco/ourapp-1.1.3/sys.config instead.'
+ cat /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ export SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/var/sys.config
+ SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/var/sys.config
+ '[' ']'
++ egrep '^-s?name' /usr/local/ourco/ourapp-1.1.3/var/vm.args
+ export 'NAME_ARG=-name [email protected]
-name [email protected]'
+ NAME_ARG='-name [email protected]
-name [email protected]'
+ '[' -z '-name [email protected]
-name [email protected]' ']'
++ echo '-name [email protected]
-name [email protected]'
++ awk '{print $1}'
+ export 'NAME_TYPE=-name
-name'
+ NAME_TYPE='-name
-name'
++ echo '-name [email protected]
-name [email protected]'
++ awk '{print $2}'
+ export '[email protected]
[email protected]'
+ NAME='[email protected]
[email protected]'
+ PIPE_DIR='/usr/local/ourco/ourapp-1.1.3/var/erl_pipes/[email protected]
[email protected]/'
+ _load_cookie
++ grep '^-setcookie' /usr/local/ourco/ourapp-1.1.3/var/vm.args
+ COOKIE_ARG='-setcookie ourapp
-setcookie ourapp'
+ DEFAULT_COOKIE_FILE=/home/ourco_erlang_vm/.erlang.cookie
+ '[' -z '-setcookie ourapp
-setcookie ourapp' ']'
++ echo '-setcookie ourapp
-setcookie ourapp'
++ awk '{print $2}'
+ COOKIE='ourapp
ourapp'
+ export ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ export BINDIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/bin
+ BINDIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/bin
+ export EMU=beam
+ EMU=beam
+ export PROGNAME=erl
+ PROGNAME=erl
+ export LD_LIBRARY_PATH=/usr/local/ourco/ourapp-1.1.3/erts-8.1/lib:
+ LD_LIBRARY_PATH=/usr/local/ourco/ourapp-1.1.3/erts-8.1/lib:
+ export HOME=/home/ourco_erlang_vm
+ HOME=/home/ourco_erlang_vm
+ export RUN_ERL_LOG_GENERATIONS=25
+ RUN_ERL_LOG_GENERATIONS=25
+ export RUN_ERL_LOG_MAXSIZE=1000000
+ RUN_ERL_LOG_MAXSIZE=1000000
+ export ERTS_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/../lib
+ ERTS_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/../lib
+ CONSOLIDATED_DIR=/usr/local/ourco/ourapp-1.1.3/lib/ourapp-1.1.3/consolidated
+ cd /usr/local/ourco/ourapp-1.1.3
+ case $NAME in
+ export DISTILLERY_TASK=rpc
+ DISTILLERY_TASK=rpc
+ case "$1" in
+ _check_cookie
+ '[' -z 'ourapp
ourapp' ']'
+ '[' -z 'ourapp
ourapp' ']'
+ nodetool ping
+ command=ping
+ shift
+ name='[email protected]
[email protected]'
+ /usr/local/ourco/ourapp-1.1.3/erts-8.1/bin/escript /usr/local/ourco/ourapp-1.1.3/bin/nodetool '-name
-name' '[email protected]
[email protected]' -setcookie 'ourapp
ourapp' ping
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
+ echo 'Node is not running!'
Node is not running!
+ exit 1
+ uname
+ grep -q Darwin
++ readlink -f /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
++ dirname /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/ourapp.sh
+ SCRIPT_DIR=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3
+++ dirname /usr/local/ourco/ourapp-1.1.3/releases/1.1.3
++ dirname /usr/local/ourco/ourapp-1.1.3/releases
+ RELEASE_ROOT_DIR=/usr/local/ourco/ourapp-1.1.3
+ RUN_ERL_DISABLE_FLOWCNTRL=true
+ REL_NAME=ourapp
+ REL_VSN=1.1.3
+ ERTS_VSN=8.1
+ CODE_LOADING_MODE=embedded
+ START_ERL_DATA=/usr/local/ourco/ourapp-1.1.3/releases/start_erl.data
+ REL_DIR=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3
+ REL_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/lib
+ ERL_OPTS=
+ RELEASE_MUTABLE_DIR=/usr/local/ourco/ourapp-1.1.3/var
+ RUNNER_LOG_DIR=/data/log/ourapp
+ EXTRA_OPTS=
+ PRE_CONFIGURE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_configure.d
+ PRE_START_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_start.d
+ POST_START_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_start.d
+ PRE_STOP_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_stop.d
+ POST_STOP_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_stop.d
+ PRE_UPGRADE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/pre_upgrade.d
+ POST_UPGRADE_HOOKS=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/hooks/post_upgrade.d
+ '[' -z dumb ']'
+ _init_erts_config
+ '[' -z 8.1 ']'
+ __erts_dir=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ '[' -d /usr/local/ourco/ourapp-1.1.3/erts-8.1 ']'
+ export ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ export ERTS_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ ERTS_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1
+ echo '8.1 1.1.3'
+ '[' -z '' ']'
+ export RELEASE_CONFIG_DIR=/usr/local/ourco/ourapp-1.1.3
+ RELEASE_CONFIG_DIR=/usr/local/ourco/ourapp-1.1.3
+ mkdir -p /usr/local/ourco/ourapp-1.1.3/var
+ echo 'Files in this directory are regenerated frequently, edits will be lost'
+ mkdir -p /data/log/ourapp
+ _init_configs
+ '[' -z '' ']'
+ '[' -f /usr/local/ourco/ourapp-1.1.3/vm.args ']'
+ export VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ export SRC_VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ SRC_VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ '[' /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args '!=' /usr/local/ourco/ourapp-1.1.3/var/vm.args ']'
+ echo '#### Generated - edit/create /usr/local/ourco/ourapp-1.1.3/vm.args instead.'
+ cat /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/vm.args
+ export VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/var/vm.args
+ VMARGS_PATH=/usr/local/ourco/ourapp-1.1.3/var/vm.args
+ '[' ']'
+ '[' -z '' ']'
+ '[' -f /usr/local/ourco/ourapp-1.1.3/sys.config ']'
+ export SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ export SRC_SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ SRC_SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ '[' /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config '!=' /usr/local/ourco/ourapp-1.1.3/var/sys.config ']'
+ echo '%% Generated - edit/create /usr/local/ourco/ourapp-1.1.3/sys.config instead.'
+ cat /usr/local/ourco/ourapp-1.1.3/releases/1.1.3/sys.config
+ export SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/var/sys.config
+ SYS_CONFIG_PATH=/usr/local/ourco/ourapp-1.1.3/var/sys.config
+ '[' ']'
++ egrep '^-s?name' /usr/local/ourco/ourapp-1.1.3/var/vm.args
+ export 'NAME_ARG=-name [email protected]'
+ NAME_ARG='-name [email protected]'
+ '[' -z '-name [email protected]' ']'
++ echo '-name [email protected]'
++ awk '{print $1}'
+ export NAME_TYPE=-name
+ NAME_TYPE=-name
++ echo '-name [email protected]'
++ awk '{print $2}'
+ export [email protected]
+ [email protected]
+ PIPE_DIR=/usr/local/ourco/ourapp-1.1.3/var/erl_pipes/[email protected]/
+ _load_cookie
++ grep '^-setcookie' /usr/local/ourco/ourapp-1.1.3/var/vm.args
+ COOKIE_ARG='-setcookie ourapp'
+ DEFAULT_COOKIE_FILE=/home/ourco_erlang_vm/.erlang.cookie
+ '[' -z '-setcookie ourapp' ']'
++ echo '-setcookie ourapp'
++ awk '{print $2}'
+ COOKIE=ourapp
+ export ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ ROOTDIR=/usr/local/ourco/ourapp-1.1.3
+ export BINDIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/bin
+ BINDIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/bin
+ export EMU=beam
+ EMU=beam
+ export PROGNAME=erl
+ PROGNAME=erl
+ export LD_LIBRARY_PATH=/usr/local/ourco/ourapp-1.1.3/erts-8.1/lib:
+ LD_LIBRARY_PATH=/usr/local/ourco/ourapp-1.1.3/erts-8.1/lib:
+ export HOME=/home/ourco_erlang_vm
+ HOME=/home/ourco_erlang_vm
+ export RUN_ERL_LOG_GENERATIONS=25
+ RUN_ERL_LOG_GENERATIONS=25
+ export RUN_ERL_LOG_MAXSIZE=1000000
+ RUN_ERL_LOG_MAXSIZE=1000000
+ export ERTS_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/../lib
+ ERTS_LIB_DIR=/usr/local/ourco/ourapp-1.1.3/erts-8.1/../lib
+ CONSOLIDATED_DIR=/usr/local/ourco/ourapp-1.1.3/lib/ourapp-1.1.3/consolidated
+ cd /usr/local/ourco/ourapp-1.1.3
+ case $NAME in
+ export DISTILLERY_TASK=rpc
+ DISTILLERY_TASK=rpc
+ case "$1" in
+ _check_cookie
+ '[' -z ourapp ']'
+ '[' -z ourapp ']'
+ nodetool ping
+ command=ping
+ shift
+ [email protected]
+ /usr/local/ourco/ourapp-1.1.3/erts-8.1/bin/escript /usr/local/ourco/ourapp-1.1.3/bin/nodetool -name [email protected] -setcookie ourapp ping
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
+ shift
+ nodetool rpc Elixir.OurApp do_some_thing
+ command=rpc
+ shift
+ [email protected]
+ /usr/local/ourco/ourapp-1.1.3/erts-8.1/bin/escript /usr/local/ourco/ourapp-1.1.3/bin/nodetool -name [email protected] -setcookie ourapp rpc Elixir.OurApp do_some_thing
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
ok
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment