# APM agent for rails 5.0.5 not sending data

**URL:** <https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894>\
**Category:** APM\
**Created:** [November 22, 2018, 2:27pm UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894 "2018-11-22T14:27:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhimanyu\_Kaushal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_kaushal/32/35645_2.png) [@Abhimanyu\_Kaushal](https://discuss.elastic.co/u/Abhimanyu_Kaushal)\
**Post date:** [November 22, 2018, 2:27pm UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/1 "2018-11-22T14:27:21Z")

</div>

I followed this link: [https://www.elastic.co/guide/en/apm/agent/ruby/current/getting-started-rails.html](https://www.elastic.co/guide/en/apm/agent/ruby/current/getting-started-rails.html) for setting up my rails app monitoring. But it is not sending data to my apm-server. apm-server is running fine and also have few index from the same server. I'm using Rails 5.0.5.  
my "config/elastic\_apm.yml"  
---  
server\_url: '[http://monitor-rails.com/apm](http://monitor-rails.com/apm)'  
log\_path: 'log/elastic\_apm.

Also nothing is being logged in 'log/elastic\_apm.log'. apm logs are being showed in my rails log only. These are the logs I get:

[ElasticAPM] [2.0.1] Starting agent, reporting to [http://monitor-rails.com/apm](http://monitor-rails.com/apm)  
[ElasticAPM] Booting 1 workers

and after some rails app usage:

[ElasticAPM] Queue is full (256 items), skipping…

I don't seem to find any workaround for this.  
I use ElasticSearch -\> 6.5.0, APM-server -\> 6.5.0 and nginx to redirect the request.

---

<div class="post-metadata">

**Author:** ![mikker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikker/32/22118_2.png) [@mikker](https://discuss.elastic.co/u/mikker)\
**Post date:** [November 23, 2018, 11:54am UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/2 "2018-11-23T11:54:02Z")

</div>

Hi! Are you using Puma and its preload\_app! ? If so, can you try running the master branch? There's a fix coming up.

---

<div class="post-metadata">

**Author:** ![Abhimanyu\_Kaushal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_kaushal/32/35645_2.png) [@Abhimanyu\_Kaushal](https://discuss.elastic.co/u/Abhimanyu_Kaushal)\
**Post date:** [November 23, 2018, 12:29pm UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/3 "2018-11-23T12:29:10Z")

</div>

I'm using passenger-nginx module in development environment.

---

<div class="post-metadata">

**Author:** ![mikker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikker/32/22118_2.png) [@mikker](https://discuss.elastic.co/u/mikker)\
**Post date:** [November 23, 2018, 1:08pm UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/4 "2018-11-23T13:08:01Z")

</div>

Try setting log\_level for the agent to 0 and see if that reveals some more info. Do you see log messages of any errors?

---

<div class="post-metadata">

**Author:** ![Abhimanyu\_Kaushal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_kaushal/32/35645_2.png) [@Abhimanyu\_Kaushal](https://discuss.elastic.co/u/Abhimanyu_Kaushal)\
**Post date:** [November 26, 2018, 1:46pm UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/5 "2018-11-26T13:46:13Z")

</div>

I changed log level to 0. These are the logs I get:

[ElasticAPM] [2.0.1] Starting agent, reporting to [http://monitor.brisky.co.in/apm](http://monitor.brisky.co.in/apm)  
[ElasticAPM] Booting 1 workers  
[ElasticAPM] Starting instrumenter

after some time, (nothing between this is logged by ElasticAPM)  
[ElasticAPM] Queue is full (256 items), skipping…

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [November 27, 2018, 8:45am UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/6 "2018-11-27T08:45:55Z")

</div>

This should be fixed in the current `master` branch and with the next release.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2018, 4:46am UTC](https://discuss.elastic.co/t/apm-agent-for-rails-5-0-5-not-sending-data/157894/7 "2018-12-18T04:46:01Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
