Giter Club home page Giter Club logo

Comments (6)

Yoshyn avatar Yoshyn commented on August 26, 2024

As the versions has several commits, I tried to check by commit individually :

{:new_relic_agent, github: "newrelic/elixir_agent", ref: "ref_of_the_commit", override: true},

And the error occur at b742e39

So my it's not related to OTP (#138). I'll check to get a better understanding on what happen.

From the console :

iex(0)>NewRelic.Config.enabled?()
false
iex(1)>payload = NewRelic.Harvest.Collector.Connect.payload()
iex(2)>NewRelic.Harvest.Collector.Protocol.connect(payload)
{:error, :harvest_disabled}

Seem that this error is not handle

from elixir_agent.

binaryseed avatar binaryseed commented on August 26, 2024

Thanks, I'll take a look today

from elixir_agent.

binaryseed avatar binaryseed commented on August 26, 2024

Hi, I was able to reproduce this by running against OTP 20.

It's caused because AgentRun leverages handle_continue which was added to GenServer in OTP 21. In 20 that GenServer can't boot so the ETS table doesn't get created so trying to access it causes a crash...

I'll see what I can do to get the OTP version requirements front and center so this can't happen...

Can you upgrade your OTP version?

from elixir_agent.

binaryseed avatar binaryseed commented on August 26, 2024

This PR will raise a helpful error if the app is started pre OTP 21 #151

from elixir_agent.

Yoshyn avatar Yoshyn commented on August 26, 2024

Thank you. I get a better understanding now. I wondering what was the handle_continue.
And the error was not clear. It's clearly better !

Can you upgrade your OTP version?

😱 😢 😨 I'm afraid but this will not be possible in my case.

I'll try to find an alternative solution (maybe fork the gem and reimplement the AgentRun to OTP 20).

from elixir_agent.

binaryseed avatar binaryseed commented on August 26, 2024

FYI, the upcoming Elixir 1.10 release will also be OTP 21+ only.

from elixir_agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.