Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install Erlang anymore #1156

Closed
eproxus opened this issue Dec 13, 2023 · 5 comments · Fixed by #1159
Closed

Cannot install Erlang anymore #1156

eproxus opened this issue Dec 13, 2023 · 5 comments · Fixed by #1159
Labels
bug Something isn't working

Comments

@eproxus
Copy link

eproxus commented Dec 13, 2023

Describe the bug
It is not possible to install any Erlang version for me anymore.

To Reproduce

  • rtx install erlang@latest
  • rtx install erlang@26
  • rtx install erlang@25
  • rtx install erlang@24

Expected behavior
Erlang is installed.

rtx doctor output

rtx version:
  2023.12.25 macos-arm64 (e1f4173 2023-12-13)

build:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Wed, 13 Dec 2023 06:56:29 +0000
  Rust Version: rustc 1.74.1 (a28077b28 2023-12-04)
  Profile: release

shell:
  /opt/homebrew/bin/fish
  fish, version 3.6.4

rtx data directory:
  /Users/user/.local/share/rtx

rtx environment variables:
  RTX_SHELL=fish

settings:
  {"always_keep_download": "false", "always_keep_install": "false", "asdf_compat": "false", "disable_default_shorthands": "false", "disable_tools": "[]", "experimental": "true", "jobs": "4", "legacy_version_file": "true", "legacy_version_file_disable_tools": "[]", "plugin_autoupdate_last_check_duration": "7d", "raw": "false", "trusted_config_paths": "[]", "verbose": "false", "yes": "false"}

config files:
  /Users/user/.config/rtx/config.toml
  /Users/user/.tool-versions
  /Users/user/.rtx.toml

plugins:
  bun      (core)
  deno     (core)
  elixir   https://github.com/asdf-vm/asdf-elixir.git#a4c42e1
  erlang   https://github.com/asdf-vm/asdf-erlang.git#6744df7
  go       (core)
  java     (core)
  node     (core)
  python   (core)
  ruby     (core)

toolset:
  go@latest, bun@latest, erlang@latest, elixir@latest, node@latest, python@latest [email protected]

No problems found

Additional context

  • Output:

    $ rtx install -v erlang
    
    installing
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:—     0
    100  102M  100  102M    0     0  26.8M      0  0:00:03  0:00:03 --:--:— 29.2M
    APPLICATIONS DISABLED (See: /Users/alind/.local/share/rtx/plugins/erlang/kerl-home/builds/asdf_26.2/otp_build_26.2.log)
     * odbc           : ODBC library - link check failed
    DOCUMENTATION INFORMATION (See: /Users/alind/.local/share/rtx/plugins/erlang/kerl-home/builds/asdf_26.2/otp_build_26.2.log)
     * documentation  :
     *                  fop is missing.
     *                  Using fakefop to generate placeholder PDF files.
    rtx ~/.local/share/rtx/plugins/erlang/bin/install exited with non-zero status: exit code 1
    rtx Run with RTX_DEBUG=1 for more information

    The output is the same for all Erlang versions.

  • Possibly related issues:

  • I have the problem both before and after upgrading to the RTX version with Erang as a core plugin.

  • asdf can install these versions without problems.

@eproxus eproxus added the bug Something isn't working label Dec 13, 2023
@eproxus
Copy link
Author

eproxus commented Dec 13, 2023

Some further digging:

  1. Removing ~/Library/Caches/rtx/erlang did not fix the issue
  2. Removing ~/Library/Caches/rtx and moving ~/.local/share/rtx somewhere else fixes it (basically a manual rtx implode and reinstall). I have a copy of that folder in case more debugging is needed.

@marc0s
Copy link

marc0s commented Dec 13, 2023

I'm also unable to install [email protected]. My backtrace:

[DEBUG] (14) rtx::cmd: [src/cmd.rs:188] $ ~/.local/share/rtx/plugins/erlang/bin/install 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 98.8M  100 98.8M    0     0  22.0M      0  0:00:04  0:00:04 --:--:-- 23.3M
APPLICATIONS INFORMATION (See: /home/username/.local/share/rtx/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_build_25.1.2.log)
 * wx             : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available
[TRACE] (14) rtx::file: [src/file.rs:22] rm -rf ~/.local/share/rtx/installs/erlang/25.1.2
[TRACE] (14) rtx::file: [src/file.rs:22] rm -rf ~/.local/share/rtx/downloads/erlang/25.1.2
Error: 
   0: ~/.local/share/rtx/plugins/erlang/bin/install exited with non-zero status: exit code 1

Location:
   /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/convert/mod.rs:716

Version:
   2023.12.25 linux-x64 (e1f4173 2023-12-13)

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: color_eyre::config::EyreHook::into_eyre_hook::{{closure}}::hbb75190503dfde2e
      at <unknown source file>:<unknown line>
   2: eyre::error::<impl eyre::Report>::from_std::hefabd16996d0f18f
      at <unknown source file>:<unknown line>
   3: rtx::plugins::script_manager::ScriptManager::run_by_line::hadf9620a772ccf27
      at <unknown source file>:<unknown line>
   4: <rtx::plugins::external_plugin::ExternalPlugin as rtx::plugins::Plugin>::install_version_impl::h0b444f1239f5f3c8
      at <unknown source file>:<unknown line>
   5: rtx::plugins::Plugin::install_version::h546df37f60d108d7
      at <unknown source file>:<unknown line>
   6: std::sys_common::backtrace::__rust_begin_short_backtrace::h3813e8bbdc8369ee
      at <unknown source file>:<unknown line>
   7: core::ops::function::FnOnce::call_once{{vtable.shim}}::he89300381640a8c5
      at <unknown source file>:<unknown line>
   8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h51435299acd7166e
      at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/boxed.rs:2007
   9: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3f833c0a4926bdd4
      at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/boxed.rs:2007
  10: std::sys::unix::thread::Thread::new::thread_start::h2c486d0230ab0d99
      at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/sys/unix/thread.rs:108
  11: start_thread<unknown>
      at ./nptl/pthread_create.c:444
  12: __GI___clone3<unknown>
      at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Suggestion: Run with RTX_DEBUG=1 for more information.

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.

And my rtx doctor:

Consider adding one of the following versions in your config file at /home/username/tmp/rtx-erlang/.tool-versions
python 3.9.16
rtx version:
  2023.12.25 linux-x64 (e1f4173 2023-12-13)

build:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Wed, 13 Dec 2023 06:55:25 +0000
  Rust Version: rustc 1.74.1 (a28077b28 2023-12-04)
  Profile: release

shell:
  /usr/bin/zsh
  zsh 5.9 (x86_64-ubuntu-linux-gnu)

rtx data directory:
  /home/username/.local/share/rtx

rtx environment variables:
  RTX_SHELL=zsh

settings:
  {"always_keep_download": "false", "always_keep_install": "false", "asdf_compat": "false", "disable_default_shorthands": "false", "disable_tools": "[]", "experimental": "false", "jobs": "4", "legacy_version_file": "true", "legacy_version_file_disable_tools": "[]", "plugin_autoupdate_last_check_duration": "7d", "raw": "false", "trusted_config_paths": "[]", "verbose": "false", "yes": "false"}

config files:
  /home/username/tmp/rtx-erlang/.tool-versions

plugins:
  bun      (core)
  deno     (core)
  erlang   https://github.com/asdf-vm/asdf-erlang.git#6744df7
  go       (core)
  java     (core)
  node     (core)
  python   (core)
  ruby     (core)

toolset:
  [email protected]

No problems found

One thing I don't know is why my rtx is using the asdf-vm erlang plugin and not the core one, as I'd expect to have per my rtx version.

rtx implode didn't fix the issue. Neither manually removing ~/.cache/rtx and moving ~/.local/share/rtx away.

@marc0s
Copy link

marc0s commented Dec 13, 2023

Using RTX_EXPERIMENTAL=1 to use the core erlang plugin I can build it after rtx implode.

@jdx
Copy link
Owner

jdx commented Dec 13, 2023

rtx implode isn't necessary, just uninstall the plugin with rtx plugins uninstall erlang—then it will fall back to the core plugin if experimental is enabled.

I can reproduce this, but I'm wondering if the "fix" might just be to make the core plugin not experimental. This is incredibly bizarre since I just wrote that core plugin yesterday not knowing there were problems with this.

@eproxus
Copy link
Author

eproxus commented Dec 14, 2023

It was sometime since I installed the last new Erlang version (26.1.2, in October) so I didn't notice it until now. Thanks for the quick fix! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants