Azure / azure-diagnostics-tools

Plugins and tools for collecting, processing, managing, and visualizing diagnostics data and configuration
98 stars 93 forks source link

Bundler could not find compatible versions for gem "faraday" #235

Open royprigat opened 2 years ago

royprigat commented 2 years ago

Hi,

There seems to be an issue when installing the plugin on Logstash v7.16.2. I am attempting to install the plugin inside a docker image, here is the error:

5 52.66 ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "faraday":

5 52.66 In snapshot (Gemfile.lock):

5 52.66 faraday (= 1.8.0)

5 52.66

5 52.66 In Gemfile:

5 52.66 logstash-input-azuretopicthreadable was resolved to 0.9.8, which depends on

5 52.66 azure (~> 0.7.1) was resolved to 0.7.10, which depends on

5 52.66 faraday (~> 0.9)

5 52.66

5 52.66 logstash-core was resolved to 7.16.2, which depends on

5 52.66 elasticsearch (~> 7) was resolved to 7.15.0, which depends on

5 52.66 elasticsearch-transport (= 7.15.0) was resolved to 7.15.0, which depends on

5 52.66 faraday (~> 1)

Please help

Thanks

MSSedusch commented 2 years ago

I had the same issue and fixed it by cloning this repo, building the gem locally and installing the logstash plugin with the local gem.

git clone https://github.com/Azure/azure-diagnostics-tools
cd azure-diagnostics-tools/Logstash/logstash-input-azureblob/
gem build
sudo /usr/share/logstash/bin/logstash-plugin install ./logstash-input-azureblob-0.9.13-java.gem

https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#installing-local-plugins

waynegoudie commented 2 years ago

I had the same issue and fixed it by cloning this repo, building the gem locally and installing the logstash plugin with the local gem.

git clone https://github.com/Azure/azure-diagnostics-tools
cd azure-diagnostics-tools/Logstash/logstash-input-azureblob/
gem build
sudo /usr/share/logstash/bin/logstash-plugin install ./logstash-input-azureblob-0.9.13-java.gem

https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#installing-local-plugins

Sorry, for us simple minds, could you care to elaborate on the steps you did to build the gem locally, and what was required?

MSSedusch commented 2 years ago

@waynegoudie these are really the only steps required if you use Linux. You clone the repository, cd into the directory and execute 'gem build' to build it. You need to have Ruby installed on your machine to be able to execute the gem command.

Do you get an error when you try to execute them?

waynegoudie commented 2 years ago

Ah ok, thanks. Thought there was more to it. Worked for me

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows


From: Sebastian Max Dusch @.> Sent: Tuesday, February 15, 2022 7:29:06 PM To: Azure/azure-diagnostics-tools @.> Cc: waynegoudie @.>; Mention @.> Subject: Re: [Azure/azure-diagnostics-tools] Bundler could not find compatible versions for gem "faraday" (Issue #235)

@waynegoudiehttps://github.com/waynegoudie these are really the only steps required if you use Linux. You clone the repository, cd into the directory and execute 'gem build' to build it. You need to have Ruby installed on your machine to be able to execute the gem command.

Do you get an error when you try to execute them?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-diagnostics-tools/issues/235#issuecomment-1040047714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN377VBCNX4K7LUOIRHYCQ3U3IMGFANCNFSM5LEWN4HQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

anorm commented 2 years ago

Having the same problem. It would be great to get a new release of this plugin to be able to install it the way it's supposed to be installed :-)

cschar commented 1 year ago

having same problem on macos bigsur 11.6 macbook air M1

https://github.com/Azure/azure-diagnostics-tools/issues/235#issuecomment-1029016037 workaround fixed it for now