post image

rvm error wrapping thin

Mar 5, 2014 Muhammad Panji

Yesterday I play with rails apps to run with thin. The document that I follow said :

Edit /etc/init.d/thin on DAEMON line to :

DAEMON=/usr/local/rvm/bin/bootup_thin

But no bootup_thin on /usr/local/rvm/bin/. So, I move on setting up thin, it could run the app successfully when I ran thin manually like :

$ thin start -c /home/ec2-user/apps/current/ -p 3000 -e production

The app is running, CSS and Java Script not loaded yet but at least the app running. After reading several blogs I found that I need to wrap thin so that it could use correct rvm and ruby environment. But, again when I ran :

$ rvm wrapper 2.0.0-p353 bootup thin
No bin path suitable for lining wrapper. Try setting 'rvm_bin_path'

Try to add /usr/local/rvm/bin/ to system PATH, export rvm_bin_path variable manually but still no luck. Turned out that I need to add the user that run application to rvm group. It’s written somewhere in rvm manual but as usual I didn’t RTFM. What you need to do when you face the same error is add your user to rvm group.

# usermod -aG rvm <your username>

you should be able to wrap thin successfully

$ rvm wrapper 2.0.0-p353 bootup thin
Regenerating 2.0.0-p353 wrappers.

That’s it. Happy hacking!

Similer Post

post image
Masih Banyak Orang Baik di Jakarta

Dua hari lalu seperti biasa pulang kerja nge-grab dulu ke semanggi untuk nunggu bis. Karena udah lewat setengah 8 bis dari Gajah Mada udah habis jadi nunggu bis dari arah blok M. Supaya kebagian duduk jalan ke belokan semanggi arah blok M. Ada motor dari arah grogol yang berhenti di deket tempat gw nunggu bis, ini sebenernya hal biasa kadang ada driver ojek online yang berhenti disitu untuk kontak pelanggannya, kadang ada yang bingung gimana cara muter kalau mau ke arah blok M naik motor dan banyak hal lain. Gak berapa lama ada orang lain yang nuntun motornya dan di tanya sama mas yang udah berhenti duluan tadi.

post image
Selected Papers in Network and System Administration

Yesterday morning I found Selected Papers in Network and System Administration, you can also Look Inside the book in Amazon. I found some interesting titles from the Table of Contents and a user comment that some papers is available online, so google the titles and found most of them. I put links of the papers below. Some papers is not available online (or at least I haven’t found them yet :D). Hopefully this will be useful for fellow systems and network administrator. A Case Study of Network Management (M.K. Fenton). Balancing Security and Convenience (V. Jones and D. Schrodel). Creating an Environment for Novice Users (J.

post image
The Curious Case of TV-IP310PI

Meskipun judulnya bahasa inggris tapi saya mau cerita menggunakan Bahasa Indonesia. Sebenarnya ceritanya panjang tapi singkat cerita kamis lalu IP Camera TRENDnet TV-IP310PO itu pun datang. Kami pun mulai melakukan testing device yang baru datang ini, sebenernya bukan kami tapi lebih tepatnya Rusman melakukan 98% testing, saya membantu yang 2% 🙂 Menurut manual yang bisa diunduh dihalaman Support device ini akan mendapatkan IP dari DHCP Server apabila ada. Apabila tidak ada DHCP server di network, maka IP address IP camera ini akan diset ke 192.168.10.30. Karena dikantor ada DHCP Server mulailah lihat dari server dhcp IP device ini, setelah dilihat dengan seksama ternyata tidak ada.