+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 12193 + echo '1.67.3 ae5cf34be' 1.67.3 ae5cf34be + date Mon May 28 16:25:36 CEST 2018 + uptime 16:25:36 up 13 days, 7:58, 1 user, load average: 0.82, 1.23, 1.21 + 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.21 ++ echo 1.21 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 1.21, low enough to run a new Docker container' load average is 1.21, 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:25 . drwxrwxrwt 12 root root 12288 May 28 16:25 .. -rw-rw-r-- 1 rultor rultor 444 May 28 16:25 end.sh -rwxrwxr-x 1 rultor rultor 338 May 28 16:25 entry.sh -rw-rw-r-- 1 rultor rultor 1679 May 28 16:25 id_rsa -rw-rw-r-- 1 rultor rultor 396 May 28 16:25 id_rsa.pub -rw-rw-r-- 1 rultor rultor 6 May 28 16:25 pid drwxrwxr-x 11 rultor rultor 4096 May 28 16:25 repo -rw-rw-r-- 1 rultor rultor 56 May 28 16:25 rubygems.yml -rwxrwxr-x 1 rultor rultor 6920 May 28 16:25 run.sh -rw-rw-r-- 1 rultor rultor 1109 May 28 16:25 script.sh -rw-rw-r-- 1 rultor rultor 5854 May 28 16:25 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-1F6S:/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-1F6S/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 Get:1ohttp://security.ubuntu.com trusty-security InRelease [65.9 kB] Hit[http://ppa.launchpad.netItrustysInRelease65.9 kB 8%] [Waiting for headers] Ign%http://archive.ubuntu.com trustyaInReleaseB/65.9 kB 100%] Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB] Hit http://archive.ubuntu.com trusty-backports InRelease Hit http://ppa.launchpad.net trusty InRelease Ign http://ppa.launchpad.net precise InRelease Hit https://deb.nodesource.com trusty InRelease Hit%http://archive.ubuntu.com trusty Release.gpg Hit%http://ppa.launchpad.net]precisecRelease.gpg.launchpad.net (91.189.95.83)] Hit%http://archive.ubuntu.com trustynReleaseeaders] Hit%http://ppa.launchpad.net]precisecRelease ppa.launchpad.net (91.189.95.83)] Hit%http://ppa.launchpad.netktrusty/mainiamd64 Packageschpad.net (91.189.95.83) Get:3[http://archive.ubuntu.comWtrusty-updates/universe Sources [253 kB] Get:4[http://archive.ubuntu.comWtrusty-updates/mainkamd64 Packages [1344 kB] Get:5[http://archive.ubuntu.comRtrusty-updates/restrictedtamd64oPackagess[21.4 kB] Get:6[http://archive.ubuntu.comRtrusty-updates/universePamd64ePackages/[586 kB] Get:7[http://security.ubuntu.cometrusty-security/universenSourcese[88.8]kB]k95% Get:84http://archive.ubuntu.cometrusty-updates/multiversegamd64hPackages[[16.0rkB] Hit%http://archive.ubuntu.comRtrusty-backports/main[amd64nPackagesaders]8 kB 31 Hit%http://archive.ubuntu.comRtrusty-backports/restrictednamd64 Packages Hit%http://archive.ubuntu.com trusty-backports/universe amd64 Packages Get:9 http://security.ubuntu.com trusty-security/main amd64 Packages [919 kB] Hit%http://archive.ubuntu.comatrusty-backports/multiverse amd64 Packages Get:10Whttp://security.ubuntu.com trusty-security/restricted amd64 Packages [18.1 kB] Get:116http://security.ubuntu.comstrusty-security/universefamd64aPackages [290 kB] Hit http://ppa.launchpad.netetrusty/main4amd64]Packageskages 4002 B/290 kB 1%] Get:127http://security.ubuntu.comitrusty-security/multiverseramd64rPackages [4725 B] Hit https://deb.nodesource.com trusty/main Sources Hit%http://archive.ubuntu.com trusty/universe Sources Hit%https://deb.nodesource.com trusty/main amd64 Packages Hit%http://archive.ubuntu.comttrusty/maindamd64[Packagesngtto9ppa.launchpad.net Hit%http://archive.ubuntu.comntrusty/restrictednamd64.Packages189.95.83)] Hit%http://archive.ubuntu.comitrusty/universesamd64nPackagesto1ppa.launchpad.ne Hit%http://archive.ubuntu.comntrusty/multiverseuamd64dPackages.189.95.83)] Hit%http://ppa.launchpad.neteprecise/main.amd64hPackages(91.189.95.83)]3)] Fetchedo3673gkB0in]4sB(903 kB/s) 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 14 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 55653 # Running: 32m.0m32m.0mNfPp3uAXoKiwoBRY@ecff7183d9af601d 32m.0m32m.0m32m.0m32m.0m32m.0m8fc592f5268f526d: 32m0.00ZLD0m (net:test) 32m.0mExpired local copies removed for add75e05f4426b41, 0 left 32m.0m0: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 0.0s 1: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 1a9dea0fbffb7c2c1e5ad7ddc3accf8aec8f714e496696e3a864c1e96ce8c00 0.0s 2: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 db252cf3abf09d2b007d318a6c9c2d917e17eb1b9f069b82520df2b4050a400 0.0s 3: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 4df7b76e7ca5887c9d126e2ddd11e326cb88b12f72fc058ece2e4c40057b200 0.03s 4: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 153 09ebd895ff00cebc056ceb550a507af961b85ab0af35cf7d9f2d43a8596f300 0.01s 5: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 153 17a 8a0e94c452feb4bf92f67bae54abf451955be525fbf4b27f87ea07a0a123500 0.01s 6: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 153 17a 4a b9ea07d3bca24499ad8e5a7c92e17965dc791a47803696347694fc275ebf300 0.0s 7: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 153 17a 4a 137 f636f37a489f909904963376ccd82ad4310eef6df9bad6c7c0219cbec99ad00 0.01s 8: 2018-05-28T14:27:56Z 127.0.0.1 4096 NOSUFFIX@ffffffffffffffff 43 49 5c4 153 17a 4a 137 e9 e98eed60c9ec3d807549ce70225d5b3dfe290bafe984974a3ef4a4576939a00 0.01s Took 0.08 seconds, 0.01 per value 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.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=33268 + mkdir server + cd server + pid=14571 + trap 'kill -9 14571' EXIT + cd .. + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test --trace node --invoice=NOPREFIX@ffffffffffffffff --host=localhost --port=33268 --bind-port=33268 --threads=0 --standalone + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + 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 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + sleep 0.5 + (( c++ )) + (( c==20 )) + nc -z localhost 33268 + 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 33268 localhost:33268 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:33268/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=7a8b189cbec5dca2 ++ /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test invoice 7a8b189cbec5dca2 + invoice=ofNkqpYZ@7a8b189cbec5dca2 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test pay --private-key=id_rsa 0000000000000000 ofNkqpYZ@7a8b189cbec5dca2 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 7a8b189cbec5dca2: 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) 7a8b189cbec5dca2: 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:28:15Z -14.99ZLD 7a8b189cbec5dca2 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:33268/0 + /home/r/repo/bin/zold --ignore-global-config --trace --ignore-this-stupid-option --network=test push 0000000000000000 ERROR: http://localhost:33268/wallet/0000000000000000 failed as 599/Failed to open TCP connection to localhost:33268 (Cannot assign requested address - connect(2) for "localhost" port 33268) 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 14571 push-and-pull.sh: line 1: kill: (14571) - 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.0mfake-2:80 wallet 762bac222be29b90 31mnot found0m fake-1:80 773b/32m00m () 1 copies of 762bac222be29b90 fetched, there are 1 available locally 32m.0mfake-1:80 8b/32m00m () 1 copies of 702bd135b062ab76 fetched, there are 1 available locally 32m.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. 31mF0m 31mFailure: FrontTest#test_renders_public_pages [/home/r/repo/test/node/test_front.rb:48]: Invalid response code for http://localhost:40949/robots.txt: Failed to open TCP connection to localhost:40949 (Cannot assign requested address - connect(2) for "localhost" port 40949). Expected: "200" Actual: "599" 0m bin/rails test home/r/repo/test/node/test_front.rb:32 ERROR: 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:37478/... 31mERROR0m: http://localhost:37478/wallet/b7d6657699da9df7 failed as 599/Failed to open TCP connection to localhost:37478 (Cannot assign requested address - connect(2) for "localhost" port 37478) 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 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0mYear: 1, Quota: 21.89%, Limit: 32m470113189.36ZLD0m Year: 2, Quota: 38.99%, Limit: 32m837311814.13ZLD0m Year: 3, Quota: 52.35%, Limit: 32m1124125793.14ZLD0m Year: 4, Quota: 62.78%, Limit: 32m1348152391.34ZLD0m Year: 5, Quota: 70.93%, Limit: 32m1523136597.96ZLD0m Year: 6, Quota: 77.29%, Limit: 32m1659814442.20ZLD0m Year: 7, Quota: 82.26%, Limit: 32m1766571694.77ZLD0m Year: 8, Quota: 86.15%, Limit: 32m1849958369.82ZLD0m Year: 9, Quota: 89.18%, Limit: 32m1915090596.52ZLD0m Year: 10, Quota: 91.55%, Limit: 32m1965964515.56ZLD0m 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.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.0mcrQEUGP2@04974be1cb8f6ee1 32m14.95ZLD0m sent from 21d1381be6bceb8b to 04974be1cb8f6ee1: For the car Don't forget to do 'zold push 21d1381be6bceb8b' 1 32m.0mZtjPOJRq@1b2b72b7980362a1 32m14.95ZLD0m sent from 732c3a24090e18a7 to 1b2b72b7980362a1: here is the refund Don't forget to do 'zold push 732c3a24090e18a7' 1 32m.0mMeUIbQJD@ffdf35bda5ad361a 32m14.95ZLD0m sent from 0000000000000000 to ffdf35bda5ad361a: For the car Don't forget to do 'zold push 0000000000000000' 1 32m.0m32m.0mThe balance of dbae1f5f1c0af6b3: 32m0.00ZLD0m (net:test) 32m.0mTotal score is 0 32m.0mohJQMOVn@273b6e3b4da796ce 32m19.99ZLD0m sent from f8b3bf110f69ae6c to 273b6e3b4da796ce: testing Don't forget to do 'zold push f8b3bf110f69ae6c' 1 0 copies of f8b3bf110f69ae6c fetched, there are 1 available locally 1 copies merged successfully into /tmp/test20180528-14506-6bgtln/f8b3bf110f69ae6c 32m19.99ZLD0m arrived to 273b6e3b4da796ce: testing Wallet f8b3bf110f69ae6c propagated successfully, 1 wallets affected Expired local copies removed for f8b3bf110f69ae6c, 1 left Total score is 0 Total score is 0 32m.0m32m.0m32m.0mAOCAg8AM@72eb68ec09f8054b 32m14.95ZLD0m sent from 72eb68ec09f8054b to 72eb68ec09f8054b: - Don't forget to do 'zold push 72eb68ec09f8054b' 1 1 copies merged successfully into /tmp/test20180528-14506-s6j05q/72eb68ec09f8054b Wallet 72eb68ec09f8054b propagated successfully, 0 wallets affected 32m.0mddAKrGSI@dbf3b38e4dbac632 32m14.95ZLD0m sent from dbf3b38e4dbac632 to dbf3b38e4dbac632: - Don't forget to do 'zold push dbf3b38e4dbac632' 1 1 copies merged successfully into /tmp/test20180528-14506-1i80uuo/dbf3b38e4dbac632 Wallet dbf3b38e4dbac632 propagated successfully, 0 wallets affected 32m.0mUGP2mtpv@c053936644eea97f 32m14.95ZLD0m sent from c053936644eea97f to c053936644eea97f: - Don't forget to do 'zold push c053936644eea97f' 1 31m-0001;2018-05-28T14:28:21Z;fffffff10ccccccd;UGP2mtpv;c053936644eea97f;-;znGEZwkI45OdoPYRMOWmwcV0P4XB9rcB2XsRX7k2eB0H7msu6ZOXO19uZX+SoYtFDLNO9YZCkJDs3bJTmHoYxKSp7QmxrOm7sU5kimemPCOUjKstIWVyyYVMSpJXH+QVWXIXWj2kC8wcnyJxv5XM64/rW7YBQx39z6MBtJV9RVzKaMfSsslgE5GapXJHgzKGTJYYgP2PkS/5GqV11vI/Z0ccl26K65gxwQYMnEpZxGAyp0YSFo9f5YQre5k5gLPaozYlx8GC+FlQ1qO1+0XoW5Ok59ltHxKyeHHiGoMEcL3Oj4Ryh0cGmDlxCiY6g336CogyDgAZD7P8s4UV5Dtbac9X4TFGPq8lFmk7CWAxW972vFlRHfRW6luZNhBx70ZBuYEzAATszoeviIKYJCDTXTrE1h/nx0nO3jt9HcuKOckbFoiad8Z9gqxPWCcvmyYhngVtfIFa7wCZOYBFPk9Cxd825MCoW94FPa1sBU8FemZVIU2D+Ocj8GncXgXL73+GmXExIrs5FGzR6Ccf+JCLQvwdQ7/MQobtWe09riXJ37RPH3ITw0i4of5gkeXNo33FGoPn1MS+tuRNQiQFUTP99KQAkmNnkTfS/i48amsjdmc/g5QtxAfq9CzTDzs9CnfU/IGT/by5EvONvjy5PAKiFBANTtE7n8bau7ApTuEL/20=0m 32m.0m9bb510ff7272dbe3 Wallet 32m9bb510ff7272dbe30m created at /tmp/test20180528-14506-1wmjq5c 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m Finished in 25.015997s, 2.9581 runs/s, 8.5945 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 a89945116ef093bc4f771b2f1a72d4dbdd1e7a5b1f732f8d9c2cf8a1449a1eeb is dead Mon May 28 16:28:27 CEST 2018