ruby on rails - Redmine 2.4.4 - Web application could not be started -
i running redmine version 2.4.4 on rhel 6. works well, morning when checked it, error did occur.
web application not started cannot load such file -- bundler/setup (loaderror) /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:100:in `preload_app' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:158:in `' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:29:in `' /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:28:in `' application root /opt/redmine/ environment (value of rails_env, rack_env, wsgi_env , passenger_env) production ruby interpreter command /usr/local/bin/ruby user , groups uid=48(apache) gid=48(apache) groups=48(apache) environment variables term = xterm pwd = /opt/redmine lang = c shlvl = 2 _ = /usr/sbin/httpd passenger_debug_dir = /tmp/passenger.spawn-debug.xxxxiokuqq user = apache logname = apache shell = /sbin/nologin home = /var/www in_passenger = 1 pythonunbuffered = 1 node_path = /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/node_lib rails_env = production rack_env = production wsgi_env = production node_env = production passenger_app_env = production rails_relative_url_root = /redmine rack_base_uri = /redmine passenger_base_uri = /redmine https = on server_protocol = http/1.1 general ruby interpreter information ruby_version = 1.9.3 ruby_platform = x86_64-linux ruby_engine = ruby rubygems version = 1.8.23.2 ruby configuration (rbconfig::config) destdir = major = 1 minor = 9 teeny = 1 patchlevel = 547 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-1.9.pc package = ruby builtin_transsrcs = newline.c use_rubygems = yes mantype = doc nroff = /usr/bin/nroff vendorhdrdir = /usr/local/include/ruby-1.9.1/vendor_ruby sitehdrdir = /usr/local/include/ruby-1.9.1/site_ruby rubyhdrdir = /usr/local/include/ruby-1.9.1 universal_ints = universal_archnames = configure_args = vendordir = /usr/local/lib/ruby/vendor_ruby sitedir = /usr/local/lib/ruby/site_ruby ruby_version = 1.9.1 sitearch = x86_64-linux arch = x86_64-linux ri_base_name = ri ridir = /usr/local/share/ri rubylibprefix = /usr/local/lib/ruby makefiles = makefile 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.1.9.1 libruby_a = libruby-static.a rubyw_install_name = rubyw_install_name = libruby_dldflags = libruby_ldshared = gcc -shared extdldflags = warnflags = -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration debugflags = -ggdb optflags = -o3 cxxflags = -o3 -ggdb -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration cflags = -o3 -ggdb -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration cppflags = nullcmd = : installdoc = capitarget = capi rdoctarget = rdoc executable_exts = archfile = libruby_relative = no extout = .ext prep = miniruby test_runnable = yes 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 = dlext2 = dlext = 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 doxygen = doxygen dot = makedirs = /bin/mkdir -p mkdir_p = /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 = = ar = ar ranlib = ranlib try_header = coutflag = -o outflag = -o cppoutfile = -o conftest.i gnu_ld = yes gcc = yes egrep = /bin/grep -e grep = /bin/grep cpp = gcc -e cxxflags = -o3 -ggdb -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration cxx = g++ objext = o cppflags = ldflags = -l. -rdynamic -wl,-export-dynamic cflags = -o3 -ggdb -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration cc = gcc 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 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-05-14 ruby_program_version = 1.9.3 baseruby = ruby target_alias = host_alias = build_alias = libs = -lpthread -lrt -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 rubylibdir = /usr/local/lib/ruby/1.9.1 archdir = /usr/local/lib/ruby/1.9.1/x86_64-linux sitelibdir = /usr/local/lib/ruby/site_ruby/1.9.1 sitearchdir = /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux vendorlibdir = /usr/local/lib/ruby/vendor_ruby/1.9.1 vendorarchdir = /usr/local/lib/ruby/vendor_ruby/1.9.1/x86_64-linux topdir = /usr/local/lib/ruby/1.9.1/x86_64-linux ruby load path ($load_path) /usr/local/lib/ruby/site_ruby/1.9.1 /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux /usr/local/lib/ruby/site_ruby /usr/local/lib/ruby/vendor_ruby/1.9.1 /usr/local/lib/ruby/vendor_ruby/1.9.1/x86_64-linux /usr/local/lib/ruby/vendor_ruby /usr/local/lib/ruby/1.9.1 /usr/local/lib/ruby/1.9.1/x86_64-linux ruby loaded libraries ($loaded_features) enumerator.so /usr/local/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so /usr/local/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so /usr/local/lib/ruby/1.9.1/rubygems/defaults.rb /usr/local/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb /usr/local/lib/ruby/1.9.1/rubygems/deprecate.rb /usr/local/lib/ruby/1.9.1/rubygems/exceptions.rb /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb /usr/local/lib/ruby/1.9.1/rubygems.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger.rb /usr/local/lib/ruby/1.9.1/x86_64-linux/etc.so /usr/local/lib/ruby/1.9.1/fileutils.rb /usr/local/lib/ruby/1.9.1/tmpdir.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils/tmpio.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/platform_info.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/platform_info/operating_system.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/platform_info/ruby.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/platform_info/binary_compatibility.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/buildout/ruby/ruby-1.9.3-x86_64-linux/passenger_native_support.so /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/native_support.rb /usr/local/lib/ruby/1.9.1/x86_64-linux/socket.so /usr/local/lib/ruby/1.9.1/socket.rb /usr/local/lib/ruby/1.9.1/thread.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/ruby_core_enhancements.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils/tmpdir.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/preloader_shared_helpers.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/constants.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/public_api.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/debug_logging.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/loader_shared_helpers.rb /usr/local/lib/ruby/1.9.1/x86_64-linux/fcntl.so /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/message_channel.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/message_client.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils/native_support_utils.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils/unseekable_socket.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/request_handler/thread_handler.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/request_handler.rb /usr/local/lib/ruby/1.9.1/x86_64-linux/stringio.so /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/utils/tee_input.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/rack/thread_handler_extension.rb /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/lib/phusion_passenger/analytics_logger.rb /usr/local/lib/ruby/1.9.1/rubygems/version.rb /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb /usr/local/lib/ruby/1.9.1/rubygems/platform.rb /usr/local/lib/ruby/1.9.1/rubygems/specification.rb /usr/local/lib/ruby/1.9.1/rubygems/path_support.rb powered phusion passenger, mod_rails / mod_rack apache , nginx.
in file httpd.conf, did not change this: <pre> loadmodule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38/buildout/apache2/mod_passenger.so <ifmodule mod_passenger.c> passengerroot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38 passengerdefaultruby /usr/local/bin/ruby </ifmodule> </pre>
i did not install rvm
$ gem evn
rubygems environment: - rubygems version: 1.3.7 - ruby version: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] - installation directory: /usr/lib/ruby/gems/1.8 - ruby executable: /usr/bin/ruby - executable directory: /usr/bin - rubygems platforms: - ruby - x86_64-linux - gem paths: - /usr/lib/ruby/gems/1.8 - /root/.gem/ruby/1.8 - gem configuration: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - remote sources: - http://rubygems.org/
$gem list
*** local gems *** actionmailer (3.2.17) actionpack (3.2.17) activemodel (3.2.17) activerecord (3.2.17) activeresource (3.2.17) activesupport (3.2.17) arel (5.0.1.20140414130214, 3.0.3) builder (3.2.2, 3.0.0) bundler (1.6.5, 1.3.0) coderay (1.1.0) erubis (2.7.0) fastercsv (1.5.5) hashie (3.2.0) hike (1.2.3) hodel_3000_compliant_logger (0.1.1) i18n (0.6.9) journey (1.0.4) jquery-rails (2.0.3) json (1.8.1) mail (2.6.1, 2.5.4) mime-types (1.25.1) multi_json (1.10.1, 1.9.0) mysql2 (0.3.15) net-ldap (0.3.1) omniauth (1.2.2) omniauth-shibboleth (1.1.2) orm_adapter (0.5.0) polyglot (0.3.5, 0.3.4) rack (1.5.2, 1.4.5) rack-cache (1.2) rack-ssl (1.4.1, 1.3.3) rack-test (0.6.2) railties (3.2.17) rake (10.3.2, 10.1.1, 0.8.7) rdoc (4.1.1, 3.12.2) rdoc-data (4.0.1) shibboleth_auth (0.3.3) sprockets (2.12.1, 2.2.2) thor (0.18.1) thread_safe (0.3.4) tilt (2.0.1, 1.4.1) treetop (1.5.3, 1.4.15) tzinfo (1.2.1, 0.3.39) warden (1.2.3)
$ ruby -v <pre> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] </pre> <pre> $ bundler /usr/bin/bundler $ ruby /usr/bin/ruby $ gem /usr/bin/gem
i not re-install redmine because other users using it.
please give idea solve problem.
the paths indicate different versions of ruby in use.
- when run
ruby -v
command line, it's showing 1.8.7 - your
passengerroot
indicates 2.0.0 in/usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.38
(the directory undergems
indicates ruby version gem built for) - the error message @ top indicates
ruby_version = 1.9.3
your best course of action uninstall unneeded ruby versions, reinstall passenger , redmine.
Comments
Post a Comment