Path not property set up errors for rvm with passenger-customizable 0.9.19

519 views
Skip to first unread message

Andrew Pietsch

unread,
Jul 28, 2016, 6:29:50 PM7/28/16
to passenger-docker
Hi all, 

I just updated to 0.9.19 and am getting the following errors when hitting the server.

web_1                | App 819 stdout: 

web_1                | App 819 stderr: Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.3.1@rails5_coolon_light_architect/bin' is not at first place,

web_1                | App 819 stderr:          usually this is caused by shell initialization files - check them for 'PATH=...' entries,

web_1                | App 819 stderr:          it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',

web_1                | App 819 stderr:          to fix temporarily in this shell session run: 'rvm use ruby-2.3.1@rails5_coolon_light_architect'.

web_1                | App 819 stderr: 

web_1                | App 819 stderr: Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:

web_1                | App 819 stderr:     https://github.com/rvm/rvm/issues/3212

web_1                | App 819 stderr: 

web_1                | App 1412 stdout: 


I'm using the following steps to configure the environment in my Dockerfile:


#   Build system and git.
RUN /pd_build/utilities.sh

# Ruby support.
RUN /pd_build/ruby-2.3.1.sh

# Node.js and Meteor support.
RUN /pd_build/nodejs.sh

# Ruby 2.3
RUN bash -lc 'rvm --default use ruby-2.3.1'


When running the rvm step I see the following.


Step 11 : RUN bash -lc 'rvm --default use ruby-2.3.1'

 ---> Running in 6d2202cb3dd5

mesg: ttyname failed: Inappropriate ioctl for device

Using /usr/local/rvm/gems/ruby-2.3.1


Any help would be greatly appreciated.


Thanks & cheers

Andrew Pietsch

unread,
Aug 4, 2016, 1:10:25 AM8/4/16
to passenger-docker
In case anyone else stumbles across this issue, the relevant documentation is: https://www.phusionpassenger.com/library/config/nginx/reference/#setting_correct_passenger_ruby_value

After following it the above I just needed to change my nginx conf file to:

passenger_ruby /usr/local/rvm/gems/ruby-2.3.1@rails5_coolon_light_architect/wrappers/ruby;

Cheers
Reply all
Reply to author
Forward
0 new messages