Preloader Issues - Can't Find rbenv

83 views
Skip to first unread message

BeeRich33

unread,
Jul 19, 2017, 7:38:07 PM7/19/17
to Phusion Passenger Discussions
Hi there.  Getting a preloader issue with rbenv on FreeBSD.  rbenv is indeed installed and running fine.  Passenger says it has no clue about rbenv, can't be found.

I've read the article and I can't seem to find out what the problem might be.  rbenv works fine on my OSX box, right as the instructions are for installation.  

I've installed this on multiple OSes (FreeBSD) and the same issue that might be giving nginx some issues because Passenger can't find rbenv.  Any advice appreciated.  

Cheers

Web application could not be started
Error ID:
7227d37e
Details:
An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read this article for more information about this problem.
Raw process output:
/home/rich/.bash_profile: line 4: rbenv: command not found
env
: bash: No such file or directory


[Wed Jul 19 19:22 rich@shuttle ~] echo $(rbenv init -)
export PATH="/home/rich/.rbenv/shims:${PATH}" export RBENV_SHELL=bash source '/usr/local/share/rbenv/completions/rbenv.bash' command rbenv rehash 2>/dev/null rbenv() { local command command="$1" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(rbenv "sh-$command" "$@")";; *) command rbenv "$command" "$@";; esac }
[Wed Jul 19 19:22 rich@shuttle ~] cat .bashrc
cat
: .bashrc: No such file or directory


## Passenger reports system info:
Application root
/usr/local/www/mydom5
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/home/rich/.rbenv/shims/ruby
User and groups
uid
=1001(rich) gid=1001(rich) groups=1001(rich),0(wheel)
Environment variables
PASSENGER_APP_ENV
=production
NODE_ENV
=production
WSGI_ENV
=production
RACK_ENV
=production
RAILS_ENV
=production
NODE_PATH
=/usr/local/lib/ruby/gems/2.3/gems/passenger-5.1.5/src/nodejs_supportlib
PYTHONUNBUFFERED
=1
IN_PASSENGER
=1
RC_PID
=26
PASSENGER_USE_FEEDBACK_FD
=true
EDITOR
=ee
USER
=rich
RI
=--format ansi --width=80
PWD
=/usr/local/www/mydom5
HOME
=/home/rich
PASSENGER_DEBUG_DIR
=/tmp/passenger.spawn-debug.23v9wvCrsP
TERM
=xterm
SHELL
=/usr/local/bin/bash
SHLVL
=0
LOGNAME
=rich
PATH
=/usr/local/bin/rbenv:/home/rich/.rbenv/bin:/sbin:/bin:/usr/sbin:/usr/bin
PS1
=\[\e[30;41m\][\[\e[m\]\[\e[30;41m\]\d\[\e[m\] \T \u@\h \[\e[30;46m\]\w\[\e[m\]\[\e[30;41m\]]\[\e[m\]
SERVER_SOFTWARE
=nginx/1.12.0 Phusion_Passenger/5.1.5

Camden Narzt

unread,
Jul 20, 2017, 4:07:27 PM7/20/17
to Phusion Passenger Discussions
Reply all
Reply to author
Forward
0 new messages