# Prometheus exporter problem with SecureRandom (multisite?)

**URL:** https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064
**Category:** Support
**Created:** [10월 30, 2017, 5:34오후 UTC](https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064 "2017-10-30T17:34:54Z")
**Posts on this page:** 4
**Page:** 1

<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: [10월 30, 2017, 5:34오후 UTC](https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064/1 "2017-10-30T17:34:54Z")

</div>

Hey, @sam. I just tried to bootstrap a multisite instance and got this error:

```plaintext
I, [2017-10-30T17:12:58.767601 #14] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
NoMethodError: undefined method `bytes' for SecureRandom:Module
/var/www/discourse/plugins/discourse-prometheus/lib/big_pipe.rb:11:in `<class:RobustPipe>'
/var/www/discourse/plugins/discourse-prometheus/lib/big_pipe.rb:9:in `<class:BigPipe>'
/var/www/discourse/plugins/discourse-prometheus/lib/big_pipe.rb:7:in `<top (required)>'
/var/www/discourse/plugins/discourse-prometheus/plugin.rb:8:in `require_relative'
/var/www/discourse/plugins/discourse-prometheus/plugin.rb:8:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:412:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:412:in `activate!'
/var/www/discourse/lib/discourse.rb:146:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:143:in `each'
/var/www/discourse/lib/discourse.rb:143:in `activate_plugins!'
/var/www/discourse/config/application.rb:178:in `<class:Application>'
/var/www/discourse/config/application.rb:26:in `<module:Discourse>'
/var/www/discourse/config/application.rb:25:in `<top (required)>'
/var/www/discourse/Rakefile:5:in `require'
/var/www/discourse/Rakefile:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
I, [2017-10-30T17:13:10.161589 #14] INFO -- : 

```

Removing Prometheus plugin solved the problem.

(This should be a new topic in #Contribute > Bug and not a reply to [Discourse Prometheus](https://meta.discourse.org/t/prometheus-exporter-plugin-for-discourse/72666), right?)

---

<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: [10월 30, 2017, 6:02오후 UTC](https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064/2 "2017-10-30T18:02:46Z")

</div>

That’s not a multisite issue, that’s because that instance is not running Ruby 2.4 or higher.

---

<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: [10월 30, 2017, 6:59오후 UTC](https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064/3 "2017-10-30T18:59:23Z")

</div>

Doh!

```plaintext
git pull
./launcher bootstrap multi

```

Thanks, @RGJ!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:44오후 UTC](https://meta.discourse.org/t/prometheus-exporter-problem-with-securerandom-multisite/73064/4 "2024-06-08T12:44:00Z")

</div>

이 주제는 2412일 후 자동으로 닫혔습니다. 더 이상 새 답글을 작성할 수 없습니다.
