Redmine failed by "bundler/setup" cann't be found!

Added by Jeff W almost 6 years ago

Hi, that is my first Redmine server, which the version is 2.6. I got the following error when it boosted up. Some people said that's because of multiple Ruby had been installed, but I'm sure there's only one for me. I mainly referenced to this page: http://www.redmine.org/projects/redmine/wiki/redmineinstall.

My platform is Centos 7. Is there any body can help?


Web application could not be started

cannot load such file -- bundler/setup (LoadError)
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/loader_shared_helpers.rb:263:in `require'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/loader_shared_helpers.rb:263:in `block in run_load_path_setup_code'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/loader_shared_helpers.rb:366:in `running_bundler'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/loader_shared_helpers.rb:261:in `run_load_path_setup_code'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/helper-scripts/rack-preloader.rb:100:in `preload_app'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/helper-scripts/rack-preloader.rb:28:in `<main>'

Error ID
6c16c709
Application root
/var/www/redmine
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command

/usr/local/bin/ruby

User and groups

uid=99(nobody) gid=99(nobody) groups=99(nobody) context=system_u:system_r:httpd_t:s0

Environment variables

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LANG = C
NOTIFY_SOCKET = @/org/freedesktop/systemd1/notify
PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXX8U3en3
USER = nobody
LOGNAME = nobody
SHELL = /sbin/nologin
HOME = /
PWD = /var/www/redmine
IN_PASSENGER = 1
PYTHONUNBUFFERED = 1
NODE_PATH = /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/node_lib
RAILS_ENV = production
RACK_ENV = production
WSGI_ENV = production
NODE_ENV = production
PASSENGER_APP_ENV = production
UNIQUE_ID = VFRjJ1TPFds-CmW2bJ@xYgAAAAE
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Apache/2.4.6 (CentOS) Phusion_Passenger/4.0.53
DOCUMENT_ROOT = /var/www/redmine/public
SERVER_ADMIN = root@localhost
QUERY_STRING =
SERVER_NAME = 192.168.1.120
REMOTE_PORT = 53579
REMOTE_ADDR = 192.168.1.107
SERVER_PORT = 80
REQUEST_METHOD = GET
SERVER_ADDR = 192.168.1.120
REQUEST_URI = /

Ulimits

Unknown

System metrics

------------- General -------------
Kernel version : 3.10.0-123.el7.x86_64
Uptime : 2h 14m 17s
Load averages : 0.00%, 0.01%, 0.05%
Fork rate : unknown
------------- CPU -------------
Number of CPUs : 1
Average CPU usage : 0% -- 0% user, 0% nice, 0% system, 100% idle
CPU 1 : 0% -- 0% user, 0% nice, 0% system, 100% idle
I/O pressure : 0%
CPU 1 : 0%
Interference from other VMs: 0%
CPU 1 : 0%
------------- Memory -------------
RAM total : 987 MB
RAM used : 352 MB (36%)
RAM free : 634 MB
Swap total : 2079 MB
Swap used : 0 MB (0%)
Swap free : 2079 MB
Swap in : unknown
Swap out : unknown

General Ruby interpreter information

RUBY_VERSION = 2.1.4
RUBY_PLATFORM = x86_64-linux
RUBY_ENGINE = ruby
RubyGems version = 1.4.2
RubyGems paths = ["/.gem/ruby/2.1.0", "/usr/local/lib/ruby/gems/2.1.0"]

Ruby configuration (RbConfig::CONFIG)

DESTDIR = 
MAJOR = 2
MINOR = 1
TEENY = 0
PATCHLEVEL = 265
INSTALL = /usr/bin/install -c
EXEEXT =
prefix = /usr/local
ruby_install_name = ruby
RUBY_INSTALL_NAME = ruby
RUBY_SO_NAME = ruby
exec = exec
ruby_pc = ruby-2.1.pc
PACKAGE = ruby
BUILTIN_TRANSSRCS = newline.c
USE_RUBYGEMS = YES
MANTYPE = doc
NROFF = /usr/bin/nroff
vendorarchhdrdir = /usr/local/include/ruby-2.1.0/vendor_ruby/x86_64-linux
sitearchhdrdir = /usr/local/include/ruby-2.1.0/site_ruby/x86_64-linux
rubyarchhdrdir = /usr/local/include/ruby-2.1.0/x86_64-linux
vendorhdrdir = /usr/local/include/ruby-2.1.0/vendor_ruby
sitehdrdir = /usr/local/include/ruby-2.1.0/site_ruby
rubyhdrdir = /usr/local/include/ruby-2.1.0
RUBY_SEARCH_PATH =
UNIVERSAL_INTS =
UNIVERSAL_ARCHNAMES =
configure_args =
vendorarchdir = /usr/local/lib/ruby/vendor_ruby/2.1.0/x86_64-linux
vendorlibdir = /usr/local/lib/ruby/vendor_ruby/2.1.0
vendordir = /usr/local/lib/ruby/vendor_ruby
sitearchdir = /usr/local/lib/ruby/site_ruby/2.1.0/x86_64-linux
sitelibdir = /usr/local/lib/ruby/site_ruby/2.1.0
sitedir = /usr/local/lib/ruby/site_ruby
rubyarchdir = /usr/local/lib/ruby/2.1.0/x86_64-linux
rubylibdir = /usr/local/lib/ruby/2.1.0
ruby_version = 2.1.0
sitearch = x86_64-linux
arch = x86_64-linux
sitearchincludedir = /usr/local/include/x86_64-linux
archincludedir = /usr/local/include/x86_64-linux
sitearchlibdir = /usr/local/lib/x86_64-linux
archlibdir = /usr/local/lib/x86_64-linux
libdirname = libdir
RUBY_EXEC_PREFIX = /usr/local
RUBY_LIB_VERSION =
RUBY_LIB_VERSION_STYLE = 3 /* full */
RI_BASE_NAME = ri
ridir = /usr/local/share/ri
rubysitearchprefix = /usr/local/lib/ruby/x86_64-linux
rubyarchprefix = /usr/local/lib/ruby/x86_64-linux
MAKEFILES = Makefile GNUmakefile
PLATFORM_DIR =
THREAD_MODEL = pthread
SYMBOL_PREFIX =
EXPORT_PREFIX =
COMMON_HEADERS =
COMMON_MACROS =
COMMON_LIBS =
MAINLIBS =
ENABLE_SHARED = no
DLDLIBS = -lc
SOLIBS =
LIBRUBYARG_SHARED = -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib
LIBRUBYARG_STATIC = -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static
LIBRUBYARG = -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static
LIBRUBY = libruby-static.a
LIBRUBY_ALIASES = libruby.so
LIBRUBY_SO = libruby.so.2.1.0
LIBRUBY_A = libruby-static.a
RUBYW_INSTALL_NAME =
rubyw_install_name =
EXTDLDFLAGS =
EXTLDFLAGS =
strict_warnflags = -ansi -std=iso9899:199409
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
debugflags = -ggdb3
optflags = -O3 -fno-fast-math
cxxflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
cflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
cppflags =
NULLCMD = :
DLNOBJ = dln.o
INSTALLDOC = all
CAPITARGET = nodoc
RDOCTARGET = rdoc
DTRACE_GLOMMED_OBJ =
DTRACE_OBJ =
DTRACE_EXT = dmyh
EXECUTABLE_EXTS =
ARCHFILE =
LIBRUBY_RELATIVE = no
EXTOUT = .ext
RUNRUBY_COMMAND = $(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=.ext $(RUNRUBYOPT)
PREP = miniruby
BTESTRUBY = $(MINIRUBY)
CROSS_COMPILING = no
TEST_RUNNABLE = yes
rubylibprefix = /usr/local/lib/ruby
setup = Setup
EXTSTATIC =
STRIP = strip -S -x
TRY_LINK =
LIBPATHENV = LD_LIBRARY_PATH
RPATHFLAG = -Wl,-R%1$-s
LIBPATHFLAG = -L%1$-s
LINK_SO =
LIBEXT = a
DLEXT2 =
DLEXT = so
LDSHAREDXX = g++ -shared
LDSHARED = gcc -shared
CCDLFLAGS = -fPIC
STATIC =
ARCH_FLAG =
DLDFLAGS =
ALLOCA =
codesign =
POSTLINK = :
WERRORFLAG = -Werror
CHDIR = cd -P
RMALL = rm -fr
RMDIRS = rmdir --ignore-fail-on-non-empty -p
RMDIR = rmdir --ignore-fail-on-non-empty
CP = cp
RM = rm -f
PKG_CONFIG = pkg-config
PYTHON =
DOXYGEN =
DOT =
DTRACE =
MAKEDIRS = /usr/bin/mkdir -p
MKDIR_P = /usr/bin/mkdir -p
INSTALL_DATA = /usr/bin/install -c -m 644
INSTALL_SCRIPT = /usr/bin/install -c
INSTALL_PROGRAM = /usr/bin/install -c
SET_MAKE =
LN_S = ln -s
NM = nm
DLLWRAP =
WINDRES =
OBJCOPY = :
OBJDUMP = objdump
ASFLAGS =
AS = as
AR = ar
RANLIB = ranlib
try_header =
CC_VERSION = gcc -v
COUTFLAG = -o
OUTFLAG = -o
CPPOUTFILE = -o conftest.i
GNU_LD = yes
LD = ld
GCC = yes
EGREP = /usr/bin/grep -E
GREP = /usr/bin/grep
CPP = gcc -E
CXXFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
CXX = g++
OBJEXT = o
CPPFLAGS =
LDFLAGS = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
CC = gcc
NACL_SDK_VARIANT =
NACL_SDK_ROOT =
NACL_TOOLCHAIN =
target_os = linux
target_vendor = unknown
target_cpu = x86_64
target = x86_64-unknown-linux-gnu
host_os = linux-gnu
host_vendor = unknown
host_cpu = x86_64
host = x86_64-unknown-linux-gnu
RUBY_VERSION_NAME = ruby-2.1.0
RUBYW_BASE_NAME = rubyw
RUBY_BASE_NAME = ruby
build_os = linux-gnu
build_vendor = unknown
build_cpu = x86_64
build = x86_64-unknown-linux-gnu
RUBY_RELEASE_DATE = 2014-10-27
RUBY_PROGRAM_VERSION = 2.1.4
target_alias =
host_alias =
build_alias =
LIBS = -lpthread -ldl -lcrypt -lm
ECHO_T =
ECHO_N = -n
ECHO_C =
DEFS =
mandir = /usr/local/share/man
localedir = /usr/local/share/locale
libdir = /usr/local/lib
psdir = /usr/local/share/doc/ruby
pdfdir = /usr/local/share/doc/ruby
dvidir = /usr/local/share/doc/ruby
htmldir = /usr/local/share/doc/ruby
infodir = /usr/local/share/info
docdir = /usr/local/share/doc/ruby
oldincludedir = /usr/include
includedir = /usr/local/include
localstatedir = /usr/local/var
sharedstatedir = /usr/local/com
sysconfdir = /usr/local/etc
datadir = /usr/local/share
datarootdir = /usr/local/share
libexecdir = /usr/local/libexec
sbindir = /usr/local/sbin
bindir = /usr/local/bin
exec_prefix = /usr/local
PACKAGE_URL =
PACKAGE_BUGREPORT =
PACKAGE_STRING =
PACKAGE_VERSION =
PACKAGE_TARNAME =
PACKAGE_NAME =
PATH_SEPARATOR = :
SHELL = /bin/sh
archdir = /usr/local/lib/ruby/2.1.0/x86_64-linux
topdir = /usr/local/lib/ruby/2.1.0/x86_64-linux

Ruby load path ($LOAD_PATH)

/usr/local/lib/ruby/site_ruby/2.1.0
/usr/local/lib/ruby/site_ruby/2.1.0/x86_64-linux
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/vendor_ruby/2.1.0
/usr/local/lib/ruby/vendor_ruby/2.1.0/x86_64-linux
/usr/local/lib/ruby/vendor_ruby
/usr/local/lib/ruby/2.1.0
/usr/local/lib/ruby/2.1.0/x86_64-linux

Ruby loaded libraries ($LOADED_FEATURES)

enumerator.so
/usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
/usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/defaults.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb
thread.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/exceptions.rb
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/config_file.rb
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
/usr/local/lib/ruby/2.1.0/fileutils.rb
/usr/local/lib/ruby/2.1.0/tmpdir.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/tmpio.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/platform_info.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/platform_info/operating_system.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/platform_info/ruby.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/platform_info/binary_compatibility.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/buildout/ruby/ruby-2.1.4-x86_64-linux/passenger_native_support.so
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/native_support.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
/usr/local/lib/ruby/2.1.0/socket.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/ruby_core_enhancements.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/tmpdir.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/preloader_shared_helpers.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/constants.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/public_api.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/debug_logging.rb
/usr/local/lib/ruby/2.1.0/shellwords.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/shellwords.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/loader_shared_helpers.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/message_channel.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/message_client.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/native_support_utils.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/unseekable_socket.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/request_handler/thread_handler.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/request_handler.rb
/usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/tee_input.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/rack/thread_handler_extension.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/union_station/connection.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/union_station/transaction.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/utils/lock.rb
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.53/lib/phusion_passenger/union_station/core.rb

Powered by Phusion Passenger, mod_rails / mod_rack for Apache and Nginx.

Replies (1)

RE: Redmine failed by "bundler/setup" cann't be found! - Added by Jeff W almost 6 years ago

Ok, I fixed this by upgrade rubygems to the latest version. It seems like an incompatible problem.

(1-1/1)