# Nessuna versione di gem funziona

**URL:** https://meta.discourse.org/t/no-gem-version-works/268148
**Category:** Development
**Created:** [13 Giugno 2023, 10:06am UTC](https://meta.discourse.org/t/no-gem-version-works/268148 "2023-06-13T10:06:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wont93](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@wont93](https://meta.discourse.org/u/wont93)
#### Post date: [13 Giugno 2023, 10:06am UTC](https://meta.discourse.org/t/no-gem-version-works/268148/1 "2023-06-13T10:06:06Z")

</div>

Sto provando a installare newrelic in locale per lo sviluppo. Ecco l’elenco delle versioni di gem che ho già provato:

- newrelic\_rpm-8.1.0
- newrelic\_rpm-8.4.0
- newrelic\_rpm-8.8.0
- newrelic\_rpm-8.12.0
- newrelic\_rpm-8.13.0
- newrelic\_rpm-8.13.1
- newrelic\_rpm-8.14.0
- newrelic\_rpm-8.15.0
- newrelic\_rpm-9.0.0
- newrelic\_rpm-9.2.2

la gem è installata con d/rails s  
ma restituisce errori simili a questo:

```plaintext
/home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/transaction/datastore_segment.rb:34:in `set_instance_info': **stack level too deep (****SystemStackError****)**
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/transaction/datastore_segment.rb:26:in `initialize'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/tracer.rb:299:in `new'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/tracer.rb:299:in `start_datastore_segment'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/instrumentation/redis/instrumentation.rb:46:in `with_tracing'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/instrumentation/redis/instrumentation.rb:17:in `call_with_tracing'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/instrumentation/redis/prepend.rb:17:in `call'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/mini_profiler/profiling_methods.rb:85:in `block in profile_method'
from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-9.0.0/lib/new_relic/agent/instrumentation/redis/prepend.rb:17:in `block in call'
... 9348 livelli...
from /src/bin/unicorn:96:in `load'
from /src/bin/unicorn:96:in `block in <main>'
from /src/bin/unicorn:95:in `fork'
from /src/bin/unicorn:95:in `<main>'

```

o questo per le versioni vecchie (\<=8):

```plaintext
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/core_ext/numeric/deprecated_conversions.rb:6:in `to_s': stack level too deep (SystemStackError)
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/transaction/datastore_segment.rb:34:in `set_instance_info'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/transaction/datastore_segment.rb:26:in `initialize'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/tracer.rb:298:in `new'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/tracer.rb:298:in `start_datastore_segment'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/instrumentation/redis/instrumentation.rb:35:in `with_tracing'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/instrumentation/redis/instrumentation.rb:18:in `call_with_tracing'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/newrelic_rpm-8.12.0/lib/new_relic/agent/instrumentation/redis/prepend.rb:11:in `call'
	from /home/discourse/.bundle/gems/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/mini_profiler/profiling_methods.rb:85:in `block in profile_method'
	 ... 9517 livelli...
	from /src/bin/unicorn:96:in `load'
	from /src/bin/unicorn:96:in `block in <main>'
	from /src/bin/unicorn:95:in `fork'
	from /src/bin/unicorn:95:in `<main>'

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [13 Giugno 2023, 10:25am UTC](https://meta.discourse.org/t/no-gem-version-works/268148/2 "2023-06-13T10:25:05Z")

</div>

Penso che tu debba inserirlo nel `Gemfile` e

`bundle install`

---

<div class="post-metadata">

### Author: ![wont93](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@wont93](https://meta.discourse.org/u/wont93)
#### Post date: [13 Giugno 2023, 10:40am UTC](https://meta.discourse.org/t/no-gem-version-works/268148/3 "2023-06-13T10:40:36Z")

</div>

è quello che ho fatto, puoi vedere il log degli errori dopo averlo installato ed eseguito d/rails s

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [13 Giugno 2023, 11:00am UTC](https://meta.discourse.org/t/no-gem-version-works/268148/4 "2023-06-13T11:00:22Z")

</div>

> [@wont93](#):
>
> ` `set\_instance\_info’: **stack level too deep (SystemStackError)**`

Non sono sicuro se questo sia un problema di Discourse.

> **[SystemStackError: stack level too deep | New Relic Documentation](https://docs.newrelic.com/docs/apm/agents/ruby-agent/troubleshooting/systemstackerror-stack-level-too-deep/)**
>
> Find out what to do if you receive the error message SystemStackError: stack level too deep on the Error details page in your APM UI.
