Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Verbose logging breaks install/remove. #2688

Closed
richardkmichael opened this Issue · 4 comments

2 participants

@richardkmichael

Testing #2671 after rvm get head, verbose logging causes breakage on install/remove.

Try rvm remove ruby-2-1.1., errors but it is indeed gone. Then, rvm install ruby-2.1.1, fail.

(localhost) ~ rvm remove ruby-2.1.1
ruby-2.1.1 - #removing rubiesError running '__rvm_rm_rf /Users/testuser/.rvm/rubies/ruby-2.1.1',
showing last 15 lines of /Users/testuser/.rvm/log/1394384065_ruby-2.1.1/remove.rubies.log
current path: /Users/testuser
GEM_HOME=/Users/testuser/.rvm/gems/ruby-1.9.3-p545
PATH=/Users/testuser/.rvm/gems/ruby-1.9.3-p545/bin:/Users/testuser/.rvm/gems/ruby-1.9.3-p545@global/bin:/Users/testuser/.rvm/rubies/ruby-1.9.3-p545/bin:/usr/local/heroku/bin:/Users/testuser/software/bin:/opt/local/sbin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/s
bin:/usr/local/bin:/Users/testuser/.rvm/bin
GEM_PATH=/Users/testuser/.rvm/gems/ruby-1.9.3-p545:/Users/testuser/.rvm/gems/ruby-1.9.3-p545@global
command(2): __rvm_rm_rf /Users/testuser/.rvm/rubies/ruby-2.1.1
++ __rvm_rm_rf_verbose /Users/testuser/.rvm/rubies/ruby-2.1.1
++ typeset target
++ target=/Users/testuser/.rvm/rubies/ruby-2.1.1
++ [[ -n '' ]]
++ [[ -n 4.2.45(2)-release ]]
++ shopt -s extglob
++ case "${target}" in
++ [[ -n /Users/testuser/.rvm/rubies/ruby-2.1.1 ]]
++ [[ -d /Users/testuser/.rvm/rubies/ruby-2.1.1 ]]
++ rm -rf /Users/testuser/.rvm/rubies/ruby-2.1.1
ruby-2.1.1 - #removing gemsError running '__rvm_remove_path_list_remove /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-game /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve /Users/testuser/.rvm/gems/ruby-2.1.1@project-component-data /Users/testuser/.rvm/gems/ruby-2.1.1@project-application /Users/testuser/.rvm/gems/ruby-2.1.1@project-expiry /Users/testuser/.rvm/gems/ruby-2.1.1@project-game /Users/testuser/.rvm/gems/ruby-2.1.1@project-component-data /Users/testuser/.rvm/gems/ruby-2.1.1@project-resolve',
showing last 15 lines of /Users/testuser/.rvm/log/1394384065_ruby-2.1.1/remove_gems.log
++ printf 'ok\n'
ok
++ for __item in '"$@"'
++ printf 'Removing /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve - '
Removing /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve - ++ __rvm_rm_rf /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve
++ __rvm_rm_rf_verbose /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve
++ typeset target
++ target=/Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve
++ [[ -n '' ]]
++ [[ -n 4.2.45(2)-release ]]
++ shopt -s extglob
++ case "${target}" in
++ [[ -n /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve ]]
++ [[ -d /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve ]]
++ rm -rf /Users/testuser/.rvm/gems/ruby-2.1.1@project-engines-resolve
ruby-2.1.1 - #removing wrappersError running '__rvm_remove_path_list_remove /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-engines-game /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-engines-resolve /Users/testuser/.rvm/wrappers/ruby-2.1.1@market
sworld-component-data /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-application /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-expiry /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-component-data /Users/testuser/.rvm/wrappers
/ruby-2.1.1@project-resolve',
showing last 15 lines of /Users/testuser/.rvm/log/1394384065_ruby-2.1.1/remove_wrappers.log
ok
++ for __item in '"$@"'
++ printf 'Removing /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game - '
Removing /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game - ++ __rvm_rm_rf /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game
++ __rvm_rm_rf_verbose /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game
++ typeset target
++ target=/Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game
++ [[ -n '' ]]
++ [[ -n 4.2.45(2)-release ]]
++ shopt -s extglob
++ case "${target}" in
++ [[ -n /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game ]]
++ [[ -d /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game ]]
++ rm -rf /Users/testuser/.rvm/wrappers/ruby-2.1.1@project-game
++ printf 'ok\n'
ok

(localhost) ~ $ rvm list

rvm rubies

   ruby-1.9.3-p448 [ x86_64 ]
=* ruby-1.9.3-p545 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

(localhost) ~ rvm install ruby-2.1.1
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Skipping update of certificates in '/opt/local/etc/openssl/cert.pem', to force update run:
    rvm osx-ssl-certs update /opt/local/etc/openssl/cert.pem

Requirements installation successful.
Installing Ruby from source to: /Users/testuser/.rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
ruby-2.1.1 - #extracting ruby-2.1.1 to /Users/testuser/.rvm/src/ruby-2.1.1Error running '__rvm_package_extract /Users/testuser/.rvm/archives/ruby-2.1.1.tar.bz2 /Users/testuser/.rvm/tmp/rvm_src_19635',
showing last 15 lines of /Users/testuser/.rvm/log/1394384196_ruby-2.1.1/extract.log
++ rvm_debug __rvm_package_extract:2: /Users/testuser/.rvm/archives/ruby-2.1.1.tar.bz2 /Users/testuser/.rvm/tmp/rvm_src_19635
++ ((  0  ))
++ return 0
++ typeset __tempdir __path __file __return
++ __return=0
+++ TMPDIR=/Users/testuser/.rvm/tmp
+++ mktemp -d -t rvm-tmp.XXXXXXXXX
++ __tempdir=/Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n
++ __rvm_package_extract_run /Users/testuser/.rvm/archives/ruby-2.1.1.tar.bz2 /Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n
++ [[ -d /Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n ]]
++ case "$1" in
++ [[ -n '' ]]
++ __rvm_tar xjf /Users/testuser/.rvm/archives/ruby-2.1.1.tar.bz2 -C /Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n
++ tar xjf /Users/testuser/.rvm/archives/ruby-2.1.1.tar.bz2 -C /Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n
++ __rvm_fix_group_permissions /Users/testuser/.rvm/tmp/rvm-tmp.XXXXXXXXX.LUfXw00n/ruby-2.1.1
There has been an error while trying to extract the source. Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
@mpapis mpapis referenced this issue from a commit
@mpapis mpapis cleaning remove, update #2688 6e3a885
@mpapis
Owner

did some cleaning it might help, please try after rvm get head, if it fails again please show also --trace

@mpapis mpapis added this to the rvm 1.25 milestone
@mpapis
Owner

what is in /Users/testuser/.rvm/log/1394418213_ruby-2.1.1/extract.log ... so far it looks very odd like set -e was enabled and function finished half way because of some kind of problem, but can't see why

@mpapis
Owner

it was 2 weeks with no feedback, nobody else hits this problem, closing - please let me know if you can provide the log file and I will reopen.

@mpapis mpapis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.