Skip to content

Error downloading the agent while running the diagnose #1414

@fblupi

Description

@fblupi

Describe the bug

I've installed appsginal on my Ruby on Rails application. When I run the diagnose locally (using a MacOS M1) it works. But when I repeat the process on production Ubuntu with x86_64 arch, it fails with the error attached in the section below.

I tried downloading manually the package from the URL in the logs with curl and it works fine. I've also decompressed the downloaded file and run the diagnose task with the env variables _APPSIGNAL_AGENT_PATH and APPSIGNAL_AGENT_PATH pointing the folder where I decompressed with the same issues. I've also moved the downloaded files to the ext directory of the gem. But the issue persists as it tries to download the agent. The agent I downloaded seems to work as it returns me the version where calling it with the --version argument.

The exception is raised on this block: https://github.com/appsignal/appsignal-ruby/blob/main/ext/base.rb#L135

I also tried with the latest published version of the appsignal gem without success.

I'm running out of ideas. Could you help me out if there's anything I can do from my side?

To Reproduce

Steps to reproduce the behavior:

  • Using AppSignal for Ruby gem version 4.4.0, Ruby 3.1.7, and OpenSSL 3.0.2
  • Specifying the APPSIGNAL_PUSH_API_KEY env variable with a correct API key
  • Running RAILS_ENV=production bundle exec appsignal diagnose raise this error:
Could not download archive from any of our mirrors. Please make sure your network allows access to any of these mirrors.
Attempted to download the archive from the following urls:
- URL: https://d135dj0rjqvssy.cloudfront.net/0.35.29/appsignal-x86_64-linux-all-static.tar.gz
  Error: ArgumentError: wrong number of arguments (given 4, expected 0)
- URL: https://appsignal-agent-releases.global.ssl.fastly.net/0.35.29/appsignal-x86_64-linux-all-static.tar.gz
  Error: ArgumentError: wrong number of arguments (given 4, expected 0)

Metadata

Metadata

Assignees

Labels

bugConfirmed and unconfirmed bugs reported by us and customers.supportProblems or questions reported by customers.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions