+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 17441 + echo '1.67.3 ae5cf34be' 1.67.3 ae5cf34be + date Mon May 28 16:16:41 CEST 2018 + uptime 16:16:41 up 13 days, 7:49, 1 user, load average: 1.03, 1.17, 1.06 + head=git@github.com:yegor256/zold.git + ff=default + image=yegor256/rultor + rebase=false + squash=false + head_branch=master + author=yegor256 + tag=0.9.10 + vars=('--env=head=git@github.com:yegor256/zold.git' '--env=tag=0.9.10' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/zold.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.9.10'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''sudo apt-get -y update'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/1\.0\.snapshot/${tag}/g" lib/zold/version.rb'\'' '\'';'\'' '\''git add lib/zold/version.rb'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build zold.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' '\''git remote add heroku git@heroku.com:zold.git'\'' '\'';'\'' '\''rm -rf ~/.ssh'\'' '\'';'\'' '\''mkdir ~/.ssh'\'' '\'';'\'' '\''mv ../id_rsa ../id_rsa.pub ~/.ssh'\'' '\'';'\'' '\''chmod -R 600 ~/.ssh/*'\'' '\'';'\'' '\''echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config'\'' '\'';'\'' '\''sed -i -s '\''\'\'''\''s|Gemfile.lock||g'\''\'\'''\'' .gitignore'\'' '\'';'\'' '\''bundle update'\'' '\'';'\'' '\''git add Gemfile.lock'\'' '\'';'\'' '\''git add .gitignore'\'' '\'';'\'' '\''git fetch'\'' '\'';'\'' '\''git commit -m '\''\'\'''\''ignores'\''\'\'''\'' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1'\'' '\'';'\'' '\''curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://b1.zold.io > /dev/null'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256') + scripts=('export '\''head=git@github.com:yegor256/zold.git'\''' ';' 'export '\''tag=0.9.10'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'sudo apt-get -y update' ';' 'sudo gem install pdd' ';' 'bundle install' ';' 'rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/zold/version.rb' ';' 'git add lib/zold/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build zold.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'git remote add heroku git@heroku.com:zold.git' ';' 'rm -rf ~/.ssh' ';' 'mkdir ~/.ssh' ';' 'mv ../id_rsa ../id_rsa.pub ~/.ssh' ';' 'chmod -R 600 ~/.ssh/*' ';' 'echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config' ';' 'sed -i -s '\''s|Gemfile.lock||g'\'' .gitignore' ';' 'bundle update' ';' 'git add Gemfile.lock' ';' 'git add .gitignore' ';' 'git fetch' ';' 'git commit -m '\''ignores'\'' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1' ';' 'curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://b1.zold.io > /dev/null' ';') + directory= + container=yegor256_zold_64 + as_root=false + mkdir -p /home/rultor/.ssh + echo -e 'Host github.com\n\tStrictHostKeyChecking no\n' + chmod 600 /home/rultor/.ssh/config + git clone git@github.com:yegor256/zold.git repo Cloning into 'repo'... + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'export '\''head=git@github.com:yegor256/zold.git'\''' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:yegor256/zold.git'\''' ';' 'export '\''tag=0.9.10'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'sudo apt-get -y update' ';' 'sudo gem install pdd' ';' 'bundle install' ';' rake ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/zold/version.rb' ';' 'git add lib/zold/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build zold.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'git remote add heroku git@heroku.com:zold.git' ';' 'rm -rf ~/.ssh' ';' 'mkdir ~/.ssh' ';' 'mv ../id_rsa ../id_rsa.pub ~/.ssh' ';' 'chmod -R 600 ~/.ssh/*' ';' 'echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config' ';' 'sed -i -s '\''s|Gemfile.lock||g'\'' .gitignore' ';' 'bundle update' ';' 'git add Gemfile.lock' ';' 'git add .gitignore' ';' 'git fetch' ';' 'git commit -m '\''ignores'\'' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1' ';' 'curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://b1.zold.io > /dev/null' ';' + rm -rf .gpg + '[' -z 0.9.10 ']' + [[ 0.9.10 =~ ^[a-zA-Z0-9\.\-]+$ ]] + echo 'tag name is valid: "0.9.10"' tag name is valid: "0.9.10" + cd repo ++ git tag -l 0.9.10 + '[' ']' + export BRANCH_NAME=__rultor + BRANCH_NAME=__rultor ++ git show-branch __rultor ++ wc -l + '[' 0 -gt 0 ']' + git checkout -b __rultor Switched to a new branch '__rultor' + docker_when_possible + true ++ uptime ++ sed 's/ /\n/g' ++ tail -n 1 + load=1.06 ++ echo 1.06 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 1.06, low enough to run a new Docker container' load average is 1.06, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor + docker pull yegor256/rultor Using default tag: latest latest: Pulling from yegor256/rultor Digest: sha256:0c53a2cc7b86af4d6ce6363e32a960a95166fc8a14b89ccb20cf61de35b066a2 Status: Image is up to date for yegor256/rultor:latest + docker ps --filter=status=exited + grep --quiet '\syegor256_zold_64\s*$' + ls -al . total 64 drwx--x--x 3 rultor rultor 4096 May 28 16:16 . drwxrwxrwt 12 root root 12288 May 28 16:16 .. -rw-rw-r-- 1 rultor rultor 444 May 28 16:16 end.sh -rwxrwxr-x 1 rultor rultor 338 May 28 16:16 entry.sh -rw-rw-r-- 1 rultor rultor 1679 May 28 16:16 id_rsa -rw-rw-r-- 1 rultor rultor 396 May 28 16:16 id_rsa.pub -rw-rw-r-- 1 rultor rultor 6 May 28 16:16 pid drwxrwxr-x 11 rultor rultor 4096 May 28 16:16 repo -rw-rw-r-- 1 rultor rultor 56 May 28 16:16 rubygems.yml -rwxrwxr-x 1 rultor rultor 6920 May 28 16:16 run.sh -rw-rw-r-- 1 rultor rultor 1109 May 28 16:16 script.sh -rw-rw-r-- 1 rultor rultor 5854 May 28 16:16 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-Tj0a:/main --env=head=git@github.com:yegor256/zold.git --env=tag=0.9.10 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/zold.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.9.10'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''sudo apt-get -y update'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/1\.0\.snapshot/${tag}/g" lib/zold/version.rb'\'' '\'';'\'' '\''git add lib/zold/version.rb'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build zold.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' '\''git remote add heroku git@heroku.com:zold.git'\'' '\'';'\'' '\''rm -rf ~/.ssh'\'' '\'';'\'' '\''mkdir ~/.ssh'\'' '\'';'\'' '\''mv ../id_rsa ../id_rsa.pub ~/.ssh'\'' '\'';'\'' '\''chmod -R 600 ~/.ssh/*'\'' '\'';'\'' '\''echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config'\'' '\'';'\'' '\''sed -i -s '\''\'\'''\''s|Gemfile.lock||g'\''\'\'''\'' .gitignore'\'' '\'';'\'' '\''bundle update'\'' '\'';'\'' '\''git add Gemfile.lock'\'' '\'';'\'' '\''git add .gitignore'\'' '\'';'\'' '\''git fetch'\'' '\'';'\'' '\''git commit -m '\''\'\'''\''ignores'\''\'\'''\'' && git push -f heroku $(git symbolic-ref --short HEAD):master && git reset HEAD~1'\'' '\'';'\'' '\''curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://b1.zold.io > /dev/null'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-Tj0a/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_zold_64 yegor256/rultor /main/entry.sh WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. + set -e + set -o pipefail + shopt -s dotglob + useradd -m -G sudo r + echo '%sudo ALL=(ALL) NOPASSWD:ALL' + cp -R /root/.bashrc /root/.composer /root/.gem /root/.gnupg /root/.m2 /root/.oracle_jre_usage /root/.profile /root/texmf /home/r + cp -R ./cid ./end.sh ./entry.sh ./id_rsa ./id_rsa.pub ./pid ./repo ./rubygems.yml ./run.sh ./script.sh ./stdout /home/r + rm -rf repo + chown -R r:r /home/r + chmod a+x /home/r/script.sh + su --login r --command /home/r/script.sh + set -e + set -o pipefail + shopt -s expand_aliases + alias 'sudo=sudo -i' + export HOME=/home/r + HOME=/home/r + cd /home/r/repo + export head=git@github.com:yegor256/zold.git + head=git@github.com:yegor256/zold.git + export tag=0.9.10 + tag=0.9.10 + export head_branch=master + head_branch=master + export author=yegor256 + author=yegor256 + sudo -i apt-get -y update Hit[http://ppa.launchpad.net trusty InRelease Ign[http://archive.ubuntu.comntrusty InReleasety.ubuntu.com (91.189.91.26)] [Co Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB] Hit http://archive.ubuntu.com trusty-backports InRelease Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB] Hit http://ppa.launchpad.net trusty InRelease Ign http://ppa.launchpad.net precise InRelease Hit http://archive.ubuntu.com[trustylRelease.gpgB/65.9 kB 65%] Hit http://ppa.launchpad.net preciselRelease.gpgB/65.9 kB 65%] [Waiting for hea Hit http://archive.ubuntu.com[trustygReleaseaders] [2 InRelease 43.1 kB/65.9 kB Hit https://deb.nodesource.com2trustyeInReleasekB/65.9 kB 70%] [Connecting to p Hit http://ppa.launchpad.net preciselRelease.9 kB/65.9 kB 74%] [Connecting to p Hit%http://ppa.launchpad.netktrusty/mainiamd64 Packageschpad.net (91.189.95.83) Get:3[http://archive.ubuntu.com trusty-updates/universe Sources [253 kB] Get:4[http://archive.ubuntu.comWtrusty-updates/mainkamd64 Packages [1344 kB] Get:5[http://archive.ubuntu.comltrusty-updates/restrictednamd64 Packages [21.4 kB] Get:6[http://archive.ubuntu.comitrusty-updates/universetamd64oPackagesn[586dkB] Hit http://ppa.launchpad.net trusty/main amd64 Packages Get:7[http://archive.ubuntu.cometrusty-updates/multiversehamd64ePackages [16.0 kB] Hit%http://archive.ubuntu.cometrusty-backports/mainaamd64ePackagesers]0 kB 16%] Hit%http://archive.ubuntu.com[trusty-backports/restricted amd64ePackages Hit%http://archive.ubuntu.comitrusty-backports/universe amd64 Packages Hit%http://archive.ubuntu.comitrusty-backports/multiverse amd64 Packages Hit http://archive.ubuntu.com trusty/universe Sources Hit http://archive.ubuntu.com trusty/main amd64 Packages Hit https://deb.nodesource.com trusty/main Sources Hit%http://archive.ubuntu.com trusty/restricted amd64 Packages Hit%http://archive.ubuntu.comitrusty/universe amd64 Packages Hit http://ppa.launchpad.net precise/main amd64 Packages Hit%https://deb.nodesource.com trusty/main amd64 Packages Hit%http://archive.ubuntu.com trusty/multiverse amd64 Packages Get:8[http://security.ubuntu.comrtrusty-security/universe Sources [88.8 kB] Get:9[http://security.ubuntu.com3trusty-security/main amd64 Packages [919 kB] Get:10Phttp://security.ubuntu.comhtrusty-security/restricted amd64 Packages [18.1 kB] Get:11Phttp://security.ubuntu.comgtrusty-security/universe amd64 Packages [290 kB] Get:12Phttp://security.ubuntu.comhtrusty-security/multiverse amd64 Packages [4725 B] Fetchedo3673gkBein43s5(9802kB/s)ages 1109 B/4725 B 23%] Reading package lists... Done W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz) W: You may want to run apt-get update to correct these problems + sudo -i gem install pdd Fetching: mini_portile2-2.3.0.gem (100%) Successfully installed mini_portile2-2.3.0 Fetching: nokogiri-1.8.2.gem (100%) Building native extensions. This could take a while... Successfully installed nokogiri-1.8.2 Fetching: rainbow-3.0.0.gem (100%) Successfully installed rainbow-3.0.0 Fetching: slop-4.6.1.gem (100%) Successfully installed slop-4.6.1 Fetching: pdd-0.20.3.gem (100%) Successfully installed pdd-0.20.3 Parsing documentation for mini_portile2-2.3.0 Installing ri documentation for mini_portile2-2.3.0 Parsing documentation for nokogiri-1.8.2 Installing ri documentation for nokogiri-1.8.2 Parsing documentation for rainbow-3.0.0 Installing ri documentation for rainbow-3.0.0 Parsing documentation for slop-4.6.1 Installing ri documentation for slop-4.6.1 Parsing documentation for pdd-0.20.3 Installing ri documentation for pdd-0.20.3 Done installing documentation for mini_portile2, nokogiri, rainbow, slop, pdd after 15 seconds 5 gems installed + bundle install Fetching gem metadata from https://rubygems.org/............ Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies....... 32mInstalling rake 12.0.00m 32mInstalling concurrent-ruby 1.0.50m 32mInstalling minitest 5.5.00m 32mInstalling thread_safe 0.3.60m 32mInstalling builder 3.2.30m 32mInstalling erubi 1.7.10m Using mini_portile2 2.3.0 32mInstalling crass 1.0.40m 32mInstalling rack 2.0.50m Using public_suffix 3.0.2 32mInstalling ast 2.4.00m 32mInstalling json 1.8.6 with native extensions0m 32mInstalling docile 1.3.10m 32mInstalling simplecov-html 0.10.20m 32mInstalling url 0.3.20m Using safe_yaml 1.0.4 32mInstalling diff-lcs 1.30m 32mInstalling multi_json 1.13.10m 32mInstalling multi_test 0.1.20m 32mInstalling differ 0.1.20m 32mInstalling diffy 3.2.00m 32mInstalling hashdiff 0.3.70m 32mInstalling method_source 0.9.00m 32mInstalling mustermann 1.0.20m 32mInstalling openssl 2.0.1 with native extensions0m 32mInstalling parallel 1.12.10m 32mInstalling powerpack 0.1.10m 32mInstalling thor 0.20.00m Using rainbow 3.0.0 32mInstalling rspec-support 3.1.20m 32mInstalling ruby-progressbar 1.9.00m 32mInstalling unicode-display_width 1.3.20m 32mInstalling semantic 1.5.00m 32mInstalling tilt 2.0.80m 32mInstalling slop 4.6.20m Using bundler 1.11.2 32mInstalling i18n 1.0.10m 32mInstalling tzinfo 1.2.50m Using nokogiri 1.8.2 32mInstalling rack-test 1.0.00m 32mInstalling rack-protection 2.0.10m Using addressable 2.5.2 32mInstalling parser 2.5.1.00m 32mInstalling rdoc 4.2.00m 32mInstalling simplecov 0.16.10m 32mInstalling crack 0.4.30m 32mInstalling gherkin 2.12.2 with native extensions0m 32mInstalling rspec-core 3.1.70m 32mInstalling rspec-expectations 3.1.20m 32mInstalling rspec-mocks 3.1.30m 32mInstalling activesupport 5.2.00m 32mInstalling loofah 2.2.20m 32mInstalling xcop 0.60m 32mInstalling sinatra 2.0.10m 32mInstalling rubocop 0.52.10m 32mInstalling codecov 0.1.100m 32mInstalling webmock 3.4.10m 32mInstalling cucumber 1.3.170m 32mInstalling rails-dom-testing 2.0.30m 32mInstalling rails-html-sanitizer 1.0.40m 32mInstalling rubocop-rspec 1.5.10m 32mInstalling actionview 5.2.00m Using zold 1.0.snapshot from source at `.` 32mInstalling actionpack 5.2.00m 32mInstalling railties 5.2.00m 32mInstalling rspec-rails 3.1.00m 32mBundle complete! 6 Gemfile dependencies, 66 gems now installed.0m 32mUse `bundle show [gemname]` to see where a bundled gem is installed.0m 32mPost-install message from rdoc:0m Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! + rake Coverage report generated for Unit Tests to /home/r/repo/coverage. 542 / 1500 LOC (36.13%) covered. Run options: --seed 37677 # Running: KCAgEA1w5FGfMDNW@6cd5b965359a68b0 32m.0mUsage: zold taxes command [options] Available commands: 32mtaxes pay0m wallet Pay taxes for the given wallet 32mtaxes show0m Show taxes status for the given wallet 32mtaxes debt0m Show current debt Available options: --private-key The location of RSA private key (default: ~/.ssh/id_rsa) --help Print instructions 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mcf0c4367cdcf8c42: 32m0.00ZLD0m (net:test) 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mYear: 1, Quota: 21.89%, Limit: 32m470113064.67ZLD0m Year: 2, Quota: 38.99%, Limit: 32m837311716.68ZLD0m Year: 3, Quota: 52.35%, Limit: 32m1124125717.60ZLD0m Year: 4, Quota: 62.78%, Limit: 32m1348152332.22ZLD0m Year: 5, Quota: 70.93%, Limit: 32m1523136551.42ZLD0m Year: 6, Quota: 77.29%, Limit: 32m1659814406.02ZLD0m Year: 7, Quota: 82.26%, Limit: 32m1766571666.53ZLD0m Year: 8, Quota: 86.15%, Limit: 32m1849958347.76ZLD0m Year: 9, Quota: 89.18%, Limit: 32m1915090579.28ZLD0m Year: 10, Quota: 91.55%, Limit: 32m1965964502.08ZLD0m 32m.0m32m.0mfake-1:80 8b/32m00m () 1 copies of a2b718eabd525807 fetched, there are 1 available locally 32m.0mfake-2:80 wallet 4080d8dfc8184d14 31mnot found0m fake-1:80 773b/32m00m () 1 copies of 4080d8dfc8184d14 fetched, there are 1 available locally 32m.0m13fea7b62824a97c Wallet 32m13fea7b62824a97c0m created at /tmp/test20180528-14506-13uvhvi 32m.0m32m.0m32m.0m32m.0m32m.0m+ set -e + shopt -s expand_aliases + alias 'zold=/home/r/repo/bin/zold --ignore-global-config --trace --network=test' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --help Usage: zold [options] command [arguments] Available commands: remote command [options] Manage remote nodes create [options] Creates a new wallet with a random ID fetch [ID...] [options] Fetch wallet copies from remote nodes clean [ID...] [options] Remove expired local copies merge [ID...] [options] Merge remote copies with the HEAD propagate [ID...] [options] Propagate transactions to receiving wallets pull [ID...] [options] Fetch and then merge show [ID...] [options] Show all available information about the wallet pay from to amount details [options] Pay ZOLD from one wallet to another invoice ID [options] Generate invoice unique ID for a payment push [ID...] [options] Push all/some local wallets or the ones required taxes command [ID...] [options] Pay taxes, check their status node [options] Run node at the given TCP port score host port strength [options] Generate score for the given host and port Available options: -d, --dir The directory where wallets are stored (default: .) -h, --help Show these instructions --trace Show full stack trace in case of a problem --ignore-global-config Don't read options from the ~/.zold file --no-colors Disable colors in the ouput --verbose Enable extra logging information -v, --version Show current version + commands=(node create invoice remote pay show fetch clean diff merge propagate pull push) + declare -a commands + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace node --help Usage: zold node [options] --invoice The invoice you want to collect money to or the wallet ID --port TCP port to open for the Net (default: 4096) --bind-port TCP port to listen on (default: 4096) --host Host name (default: 127.0.0.1) --home Home directory (default: .) --strength The strength of the score (default: 6) --threads How many threads to use for scores finding (default: 8) --standalone Never communicate with other nodes (mostly for testing) --never-reboot Don't reboot when a new version shows up in the network --skip-install Don't re-install the gem before running the node --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace create --help Usage: zold create [options] Available options: --public-key The location of RSA public key (default: ~/.ssh/id_rsa.pub) --network The name of the network --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace invoice --help Usage: zold invoice ID [options] Where: 'ID' is the wallet ID of the money receiver Available options: --length The length of the invoice prefix (default: 8) --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace remote --help Usage: zold remote <command> [options] Available commands: remote show Show all registered remote nodes remote clean Remove all registered remote nodes remote reset Restore it back to the default list of nodes remote add host [port] Add a new remote node remote remove host [port] Remove the remote node remote update Check each registered remote node for availability Available options: --ignore-score-weakness Don't complain when their score is too weak --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace pay --help Usage: zold pay wallet target amount [details] [options] Where: 'wallet' is the sender's wallet ID 'target' is the beneficiary (either wallet ID or invoice number)' 'amount' is the amount to pay, in ZLD, for example '14.95' 'details' is the optional text to attach to the payment Available options: --private-key The location of RSA private key (default: ~/.ssh/id_rsa) --force Ignore all validations --dont-pay-taxes Don't pay taxes even if the wallet is in debt --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace show --help Usage: zold show [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace fetch --help Usage: zold fetch [ID...] [options] Available options: --ignore-score-weakness Don't complain when their score is too weak --ignore-node Ignore this node and don't fetch from it --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace clean --help Usage: zold clean [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace diff --help Usage: zold diff [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace merge --help Usage: zold merge [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace propagate --help Usage: zold propagate [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace pull --help Usage: zold fetch [ID...] [options] Available options: --ignore-score-weakness Don't complain when their score is too weak --ignore-node Ignore this node and don't fetch from it --help Print instructions Usage: zold merge [ID...] [options] Available options: --help Print instructions Usage: zold clean [ID...] [options] Available options: --help Print instructions + for c in '"${commands[@]}"' + /home/r/repo/bin/zold --ignore-global-config --trace --network=test --ignore-global-config --trace push --help Usage: zold push [ID...] [options] Available options: --help Print instructions + set -e + shopt -s expand_aliases + alias 'zold=/home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test' ++ python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()' + port=52066 + mkdir server + cd server + pid=14589 + trap 'kill -9 14589' EXIT + cd .. + nc -z localhost 52066 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test --trace node --invoice=NOPREFIX@ffffffffffffffff --host=localhost --port=52066 --bind-port=52066 --threads=0 --standalone + sleep 0.5 + (( c++ )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.3 directory. ERROR: Failed to re-install zold gem (RuntimeError) /home/r/repo/lib/zold/commands/node.rb:79:in `run' /home/r/repo/bin/zold:127:in `<main>' + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 52066 + sleep 0.5 + (( c++ )) + (( c==20 )) + break + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test remote clean + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test remote add localhost 52066 localhost:52066 added to the list There are 1 remote nodes in the list + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test remote show localhost:52066/0 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test --public-key=id_rsa.pub create 0000000000000000 0000000000000000 ++ /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test create --public-key=id_rsa.pub + target=cad3cbeb8570beae ++ /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test invoice cad3cbeb8570beae + invoice=QyXUpfjj@cad3cbeb8570beae + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test pay --private-key=id_rsa 0000000000000000 QyXUpfjj@cad3cbeb8570beae 14.99 'To save the world!' 1 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test propagate 0000000000000000 14.99ZLD arrived to cad3cbeb8570beae: To save the world! + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test show 0000000000000000: -14.99ZLD (net:test) cad3cbeb8570beae: 14.99ZLD (net:test) + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test show 0000000000000000 #1 2018-05-28T14:19:22Z -14.99ZLD cad3cbeb8570beae To save the world! The balance of 0000000000000000: -14.99ZLD (net:test) + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test remote show localhost:52066/0 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test push 0000000000000000 ERROR: http://localhost:52066/wallet/0000000000000000 failed as 599/Failed to open TCP connection to localhost:52066 (Cannot assign requested address - connect(2) for "localhost" port 52066) ERROR: undefined method `closed?' for nil:NilClass Did you mean? clone (NoMethodError) /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:331:in `stream_check' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:200:in `read_body' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:227:in `body' /home/r/repo/lib/zold/commands/push.rb:69:in `block in push' /home/r/repo/lib/zold/commands/push.rb:59:in `each' /home/r/repo/lib/zold/commands/push.rb:59:in `push' /home/r/repo/lib/zold/commands/push.rb:52:in `block in run' /home/r/repo/lib/zold/commands/push.rb:51:in `each' /home/r/repo/lib/zold/commands/push.rb:51:in `run' /home/r/repo/bin/zold:166:in `<main>' + kill -9 14589 push-and-pull.sh: line 1: kill: (14589) - No such process 31mF0m 31mFailure: TestZold#test_all_scripts [/home/r/repo/test/test_zold.rb:42]: Expected: 0 Actual: 1 0m bin/rails test home/r/repo/test/test_zold.rb:31 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mExpired local copies removed for 1df86a99227f70d3, 0 left 32m.0m5LLFFvFL@10531b25315694ac 32m14.95ZLD0m sent from 10531b25315694ac to 10531b25315694ac: - Don't forget to do 'zold push 10531b25315694ac' 1 1 copies merged successfully into /tmp/test20180528-14506-17qg71v/10531b25315694ac Wallet 10531b25315694ac propagated successfully, 0 wallets affected 32m.0mNFwBsWY9@86b09e6337deb2b1 32m14.95ZLD0m sent from 86b09e6337deb2b1 to 86b09e6337deb2b1: - Don't forget to do 'zold push 86b09e6337deb2b1' 1 1 copies merged successfully into /tmp/test20180528-14506-7kdeo/86b09e6337deb2b1 Wallet 86b09e6337deb2b1 propagated successfully, 0 wallets affected 32m.0mERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.3 directory. 31mF0m 31mFailure: FrontTest#test_renders_public_pages [/home/r/repo/test/node/test_front.rb:48]: Invalid response code for http://localhost:37379/robots.txt: Failed to open TCP connection to localhost:37379 (Cannot assign requested address - connect(2) for "localhost" port 37379). Expected: "200" Actual: "599" 0m bin/rails test home/r/repo/test/node/test_front.rb:32 Total score is 0 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mThe balance of 47f1596a64d47ac1: 32m0.00ZLD0m (net:test) 32m.0mQV4rrnbt@6995b76557f257a1 32m19.99ZLD0m sent from 05cce2bc4b5f88cf to 6995b76557f257a1: testing Don't forget to do 'zold push 05cce2bc4b5f88cf' 1 0 copies of 05cce2bc4b5f88cf fetched, there are 1 available locally 1 copies merged successfully into /tmp/test20180528-14506-1s7duhe/05cce2bc4b5f88cf 32m19.99ZLD0m arrived to 6995b76557f257a1: testing Wallet 05cce2bc4b5f88cf propagated successfully, 1 wallets affected Expired local copies removed for 05cce2bc4b5f88cf, 1 left Total score is 0 Total score is 0 32m.0mGpeA4ryw@20badca2e055e927 32m14.95ZLD0m sent from 20badca2e055e927 to 20badca2e055e927: - Don't forget to do 'zold push 20badca2e055e927' 1 31m-0001;2018-05-28T14:19:27Z;fffffff10ccccccd;GpeA4ryw;20badca2e055e927;-;OLZa4mEgxnxaAgw149FekAEg3Y0zl8bqJBsvbuF/K/uxBOugHk4PX0YdwIFFYhLbp1jxCHevSEz5qZNKxRWOyiy7XGkIm63aNwY3RNpR5TzHehY+zk7reodbKC66MhfhGITU+2BV1EVBbcsoSoEWg88GIavfY4srC8+WvpK+YTLWlFvQHvUEDZYhWfpMnzRIe4jAOXpnMZZWxiJqa9k96zrnYXNkVvKxTfzpob3OhxoOH6gbfvb/9OHGeLxnCafMq0pOtbGhFc5vzAD9glDa+sjsN2cT3NAujXq9lY7Pq7oem2iv+N5ArhDpwjxRRGbFIJb7bwjKOFpBYzE6m/Mpdd+DezIQBhM5pyxT2GraHUyrICqKV4pNSw/ypWI3dE/f5oBW7L6YnfOcd8riv98rKo1FWPCzyy7gk3NU830pr9Xvv3rdcGNGAKxFFfTFGuUdVZZQQGgx+4/fpH94F3dwmgLfAYfj3XTAHavUMoBvDHwUpiN7j1jdlm1qa2YccQgdDkbTH9VEV3Tbp4d9cNCEQoXozr0taqr7v5oAq6T37B/9p+Nopxue3DE1lglOT2FuY3e7LcykcvLo5w1p4QKq6pAbrDT7gstyqAllNZbA6AAXwrgng0IhV9XFVMMt8DWGVplb46sfuvf9bGX/1j3pPM50w+WFRcBixIUm9/paw/A=0m 32m.0mAll remote nodes deleted localhost:4096 added to the list There are 1 remote nodes in the list localhost:2 added to the list There are 2 remote nodes in the list 31mlocalhost0m 404 "" http://localhost:2/remotes localhost:888 added to the list There are 3 remote nodes in the list localhost:999 added to the list There are 4 remote nodes in the list localhost:4096: 32m00m () There are 4 known remotes 31mlocalhost0m 404 "" http://localhost:999/remotes 31mlocalhost0m 404 "" http://localhost:888/remotes localhost:4096: 32m00m () 31mlocalhost0m 404 "" http://localhost:2/remotes There are 4 known remotes 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.3 directory. 31mERROR0m: Failed to re-install zold gem /home/r/repo/lib/zold/commands/node.rb:79:in `run' /home/r/repo/test/node/fake_node.rb:46:in `block (2 levels) in run' Waiting for http://localhost:35491/... 31mERROR0m: http://localhost:35491/wallet/052933f5a5784563 failed as 599/Failed to open TCP connection to localhost:35491 (Cannot assign requested address - connect(2) for "localhost" port 35491) 31mE0m 31mError: TestNode#test_push_and_fetch: NoMethodError: undefined method `closed?' for nil:NilClass Did you mean? clone /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:331:in `stream_check' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:200:in `read_body' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http/response.rb:227:in `body' /home/r/repo/lib/zold/commands/push.rb:69:in `block in push' /home/r/repo/lib/zold/commands/push.rb:59:in `each' /home/r/repo/lib/zold/commands/push.rb:59:in `push' /home/r/repo/lib/zold/commands/push.rb:52:in `block in run' /home/r/repo/lib/zold/commands/push.rb:51:in `each' /home/r/repo/lib/zold/commands/push.rb:51:in `run' /home/r/repo/test/commands/test_node.rb:50:in `block (2 levels) in test_push_and_fetch' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir' /home/r/repo/test/commands/test_node.rb:42:in `block in test_push_and_fetch' /home/r/repo/test/node/fake_node.rb:67:in `block in run' /usr/local/rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir' /home/r/repo/test/node/fake_node.rb:38:in `run' /home/r/repo/test/commands/test_node.rb:41:in `test_push_and_fetch' 0m bin/rails test home/r/repo/test/commands/test_node.rb:40 Dw2GxR0g@194b17a8776d0d49 32m14.95ZLD0m sent from ae4ee708c07d625a to 194b17a8776d0d49: here is the refund Don't forget to do 'zold push ae4ee708c07d625a' 1 32m.0m5H2cdnO4@80580aef5994dc0b 32m14.95ZLD0m sent from 0000000000000000 to 80580aef5994dc0b: For the car Don't forget to do 'zold push 0000000000000000' 1 32m.0mAvrtqGkQ@dd05460037d44347 32m14.95ZLD0m sent from 6b2f2d8bc9328658 to dd05460037d44347: For the car Don't forget to do 'zold push 6b2f2d8bc9328658' 1 32m.0m0: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 0.0s 1: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 d9fdfaf3c258eb7dd92c62c946513bf98ef69a4adb33f2cb1d8d9296586b200 0.0s 2: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 ee664eca2b1275c05eb196063e5f3ece1423636649d4717322b40e1385c8300 0.0s 3: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 3b9fd7612b6a4fa515a12167ff36e58fc558dfd0c673f76dbd27ed476516000 0.01s 4: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 29f 1705f0d39d1252a5c49cdaa94eaa965c7bfc9074c13e74c077fc01844923a00 0.02s 5: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 29f 1f8 c705d4f9be14091a2a4d6940237a66b308fb5e426c056f62e069ccf882c7f00 0.02s 6: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 29f 1f8 69 23c7a74737c6b1f07b0500360ca8a023931ad446bd9b87970ceea1d076d9600 0.0s 7: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 29f 1f8 69 61 2386bdbb538dc606d1cb5162a8e95fcc195532ee4341273e2d1ff48a06b6500 0.0s 8: 2018-05-28T14:19:28Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 23 72 11a 29f 1f8 69 61 61 ac2e66dd492fb36cb3c0ca9e9a3d1b3ee7756083df5422bdc85a12907494200 0.0s Took 0.06 seconds, 0.0075 per value 32m.0m Finished in 23.916668s, 3.0941 runs/s, 8.9895 assertions/s. 74 runs, 215 assertions, 2 failures, 1 errors, 0 skips rake aborted! Command failed with status (1) /usr/local/rvm/gems/ruby-2.3.3/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' /usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval' /usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>' Tasks: TOP => default => test (See full trace by running task with --trace) container 896e835c8c609d6a80c976d508a3eecca6f12948e5dd840de12fa0623714dfed is dead Mon May 28 16:19:36 CEST 2018