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

Error: litestream-ruby does not support the aarch64-linux platform #55

Open
sebastian-kreis opened this issue Nov 30, 2024 · 0 comments · May be fixed by #56
Open

Error: litestream-ruby does not support the aarch64-linux platform #55

sebastian-kreis opened this issue Nov 30, 2024 · 0 comments · May be fixed by #56

Comments

@sebastian-kreis
Copy link

I am getting the following error trying to run litestream-ruby inside a .devcontainer environment: litestream-ruby does not support the aarch64-linux platform full stack below.

The Dockerfile is the official file generated with the rails new --devcontainer option. I am stuck because according to the docs litestream and litestream-ruby support the arm64-linux (linux-arm64) platform. As far as I understand arm64-linux (linux-arm64) is the same as aarch64-linux? I am stuck how to debug this.

I am running Docker-Desktop on macOS Sequoia 15.1.1 (24B91)

Stack:

** Invoke litestream:replicate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute litestream:replicate
bin/rails aborted!
Litestream::Commands::UnsupportedPlatformException: litestream-ruby does not support the aarch64-linux platform (Litestream::Commands::UnsupportedPlatformException)
Please install litestream following instructions at https://litestream.io/install
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/litestream-0.12.0/lib/litestream/commands.rb:43:in `executable'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/litestream-0.12.0/lib/litestream/commands.rb:134:in `prepare'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/litestream-0.12.0/lib/litestream/commands.rb:116:in `execute'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/litestream-0.12.0/lib/litestream/commands.rb:81:in `replicate'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/litestream-0.12.0/lib/tasks/litestream_tasks.rake:21:in `block (2 levels) in <main>'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `each'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands/rake/rake_command.rb:27:in `block (2 levels) in perform'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands/rake/rake_command.rb:27:in `block in perform'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands/rake/rake_command.rb:44:in `block in with_rake'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/rake_module.rb:59:in `with_application'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands/rake/rake_command.rb:41:in `with_rake'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/command.rb:150:in `invoke_rake'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/command.rb:67:in `block in invoke'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/command.rb:143:in `with_argv'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/command.rb:63:in `invoke'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/railties-8.0.0/lib/rails/commands.rb:18:in `<main>'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => litestream:replicate

Docker Version

Client:
 Version:           27.3.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        ce12230
 Built:             Fri Sep 20 11:38:18 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.36.0 (175267)
 Engine:
  Version:          27.3.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       41ca978
  Built:            Fri Sep 20 11:41:19 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.21
  GitCommit:        472731909fa34bd7bc9c087e4c27943f9835f111
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Dockerfile:

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
ARG RUBY_VERSION=3.3.4
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION
@fcatuhe fcatuhe linked a pull request Dec 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant