# How to get into Rails Console

**URL:** https://meta.discourse.org/t/how-to-get-into-rails-console/77310
**Category:** Support
**Created:** [January 5, 2018, 1:54pm UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310 "2018-01-05T13:54:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jared\_Needell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jared_needell/32/116554_2.png) [@Jared\_Needell](https://meta.discourse.org/u/Jared_Needell)
#### Post date: [January 5, 2018, 1:54pm UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/1 "2018-01-05T13:54:12Z")

</div>

I recently updated Discourse after being out of date for 6-7 months. I noticed ./launcher ssh app doesn’t work anymore and if I use enter app then rails c, I get an error.

```
root@rdu-forums-01-app:/var/www/discourse/plugins/categorywatcher# rails c

^C/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require': Interrupt
        from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
        from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
        from /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'

```

Has anyone seen this?

---

<div class="post-metadata">

### Author: ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)
#### Post date: [January 5, 2018, 5:12pm UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/2 "2018-01-05T17:12:04Z")

</div>

First of all, could you please wrap your console output in a code block instead of a quote block? There’s Markdown syntax being interpreted in there.

* * *

Secondly, no, I’m not seeing it.

```plaintext
notriddle@wsl:~$ ssh ubuntu@52.26.80.122
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-92-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

68 packages can be updated.
0 updates are security updates.

***System restart required***
Last login: Thu Jan 4 00:59:09 2018 from 70.184.74.19
ubuntu@ip-172-31-27-237:~$ sudo -i
root@ip-172-31-27-237:~# cd /var/discourse/
root@ip-172-31-27-237:/var/discourse# ls
bin cids containers discourse-setup image launcher README.md samples scripts shared templates Vagrantfile
root@ip-172-31-27-237:/var/discourse# ./launcher enter app
root@ip-172-31-27-237-app:/var/www/discourse# rails c
[1] pry(main)>

```

It did take me like a minute after hitting enter at “rails c” before the pry prompt came up. Maybe wait longer?

---

<div class="post-metadata">

### Author: ![dnsmichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnsmichi/32/379505_2.png) [@dnsmichi](https://meta.discourse.org/u/dnsmichi)
#### Post date: [January 7, 2018, 2:02pm UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/4 "2018-01-07T14:02:11Z")

</div>

Opening the rails console can take a while, depending on the work load of your application and server. This isn’t really app specific, you can see that with Gitlab too.

The exception you are seeing originates from Crtl+C (`^C` before the stacktrace), interpreted as `interrupt` signal by the current running process.

Just wait a little longer as @notriddle suggested 🙂

Kind regards,  
Michael

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 20, 2020, 6:15am UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/5 "2020-03-20T06:15:35Z")

</div>



---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [March 20, 2020, 6:33am UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/6 "2020-03-20T06:33:12Z")

</div>

> [@Jared\_Needell](#):
>
> Has anyone seen this?

Working fine here, but does take a number of seconds (counted around 10 seconds) for the prompt:

```plaintext
root@discourse1-app:/shared/neo/bin# rails c

[1] pry(main)>

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 19, 2020, 6:36am UTC](https://meta.discourse.org/t/how-to-get-into-rails-console/77310/7 "2020-04-19T06:36:41Z")

</div>

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