My web app could not be started.

Added by Laurent M over 6 years ago

Hi all,

after hours trying to solve this issue, I ask you to help me ! :)

On my brand new Redmine with MySQL installation (on Ubuntu Server 14.04 LTS), I get this error message when trying to access to Redmine (with http://127.0.0.1) :

Web application could not be started

cannot load such file -- bundler/setup (LoadError)
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'

The complete error page is :


Application root
    /var/lib/redmine/default/passenger
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV)
    production
Ruby interpreter command

    /usr/bin/ruby

User and groups

    uid=33(www-data) gid=33(www-data) groups=33(www-data)

Environment variables

    APACHE_RUN_DIR = /var/run/apache2
    APACHE_PID_FILE = /var/run/apache2/apache2.pid
    PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    APACHE_LOCK_DIR = /var/lock/apache2
    LANG = C
    APACHE_RUN_USER = www-data
    APACHE_RUN_GROUP = www-data
    APACHE_LOG_DIR = /var/log/apache2
    PWD = /var/lib/redmine/default/passenger
    PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXnKr5bF
    USER = www-data
    LOGNAME = www-data
    SHELL = /usr/sbin/nologin
    HOME = /var/www
    IN_PASSENGER = 1
    PYTHONUNBUFFERED = 1
    NODE_PATH = /usr/share/passenger/node
    RAILS_ENV = production
    RACK_ENV = production
    WSGI_ENV = production
    NODE_ENV = production
    PASSENGER_APP_ENV = production
    SERVER_PROTOCOL = HTTP/1.1
    SERVER_SOFTWARE = Apache/2.4.7 (Ubuntu)
    X_DEBIAN_SITEID = default
    DOCUMENT_ROOT = /usr/share/redmine/public
    SERVER_ADMIN = [no address given]
    QUERY_STRING = 
    SERVER_NAME = localhost
    REMOTE_PORT = 41203
    REMOTE_ADDR = ::1
    SERVER_PORT = 80
    REQUEST_METHOD = GET
    SERVER_ADDR = ::1
    REQUEST_URI = /

Ulimits

    Unknown

System memory usage

                 total       used       free     shared    buffers     cached
    Mem:          1356        967        388          7          4        169
    -/+ buffers/cache:        793        562
    Swap:         1393          0       1393

General Ruby interpreter information

    RUBY_VERSION = 1.9.3
    RUBY_PLATFORM = x86_64-linux
    RUBY_ENGINE = ruby
    RubyGems version = 1.8.23

Ruby configuration (RbConfig::CONFIG)

    DESTDIR = 
    MAJOR = 1
    MINOR = 9
    TEENY = 1
    PATCHLEVEL = 484
    INSTALL = /usr/bin/install -c
    EXEEXT = 
    prefix = /usr
    ruby_install_name = ruby1.9.1
    RUBY_INSTALL_NAME = ruby1.9.1
    RUBY_SO_NAME = ruby-1.9.1
    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/include/ruby-1.9.1/vendor_ruby
    sitehdrdir = /usr/include/ruby-1.9.1/site_ruby
    rubyhdrdir = /usr/include/ruby-1.9.1
    UNIVERSAL_INTS = 
    UNIVERSAL_ARCHNAMES = 
    configure_args =  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/usr/include' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib/ruby1.9.1' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-pthread' '--enable-shared' '--disable-rpath' '--disable-install-doc' '--with-vendordir=/usr/lib/ruby/vendor_ruby' '--with-sitedir=/usr/local/lib/site_ruby' '--program-suffix=1.9.1' '--with-soname=ruby-1.9.1' '--enable-ipv6' '--with-dbm-type=gdbm_compat' '--with-tklib=tk8.5' '--with-tcllib=tcl8.5' '--with-tcl-include=/usr/include/tcl8.5' '--with-tk-include=/usr/include/tcl8.5' '--with-tcl-lib=/usr/lib/x86_64-linux-gnu' '--with-tk-lib=/usr/lib/x86_64-linux-gnu' '--with-bundled-sha1' '--with-bundled-md5' '--with-bundled-rmd160' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing'
    vendordir = /usr/lib/ruby/vendor_ruby
    sitedir = /usr/local/lib/site_ruby
    ruby_version = 1.9.1
    sitearch = x86_64-linux
    arch = x86_64-linux
    RI_BASE_NAME = ri
    ridir = /usr/share/ri
    rubylibprefix = /usr/lib/ruby
    MAKEFILES = Makefile
    PLATFORM_DIR = 
    THREAD_MODEL = pthread
    SYMBOL_PREFIX = 
    EXPORT_PREFIX = 
    COMMON_HEADERS = 
    COMMON_MACROS = 
    COMMON_LIBS = 
    MAINLIBS = 
    ENABLE_SHARED = yes
    DLDLIBS =  -lc
    SOLIBS = -lpthread -lrt -ldl -lcrypt -lm 
    LIBRUBYARG_SHARED = -lruby-1.9.1
    LIBRUBYARG_STATIC = -lruby-1.9.1-static
    LIBRUBYARG = -lruby-1.9.1
    LIBRUBY = libruby-1.9.1.so.1.9.1
    LIBRUBY_ALIASES = libruby-1.9.1.so.1.9 libruby-1.9.1.so
    LIBRUBY_SO = libruby-1.9.1.so.1.9.1
    LIBRUBY_A = libruby-1.9.1-static.a
    RUBYW_INSTALL_NAME = 
    rubyw_install_name = 
    LIBRUBY_DLDFLAGS = -Wl,-soname,libruby-1.9.1.so.1.9
    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 = -D_FORTIFY_SOURCE=2
    NULLCMD = :
    INSTALLDOC = nodoc
    CAPITARGET = nodoc
    RDOCTARGET = nodoc
    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 = 
    LIBPATHFLAG =  -L%s
    LINK_SO = 
    LIBEXT = a
    DLEXT2 = 
    DLEXT = so
    LDSHAREDXX = g++ -shared
    LDSHARED = gcc -shared
    CCDLFLAGS = -fPIC
    STATIC = 
    ARCH_FLAG = 
    DLDFLAGS = 
    ALLOCA = 
    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 = 
    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 = 
    AS = as
    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 = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing
    CXX = g++
    OBJEXT = o
    CPPFLAGS = -D_FORTIFY_SOURCE=2  -D_FORTIFY_SOURCE=2
    LDFLAGS = -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic
    CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC
    CC = gcc
    target_os = linux
    target_vendor = pc
    target_cpu = x86_64
    target = x86_64-pc-linux-gnu
    host_os = linux-gnu
    host_vendor = pc
    host_cpu = x86_64
    host = x86_64-pc-linux-gnu
    RUBYW_BASE_NAME = rubyw
    RUBY_BASE_NAME = ruby
    build_os = linux-gnu
    build_vendor = pc
    build_cpu = x86_64
    build = x86_64-pc-linux-gnu
    RUBY_RELEASE_DATE = 2013-11-22
    RUBY_PROGRAM_VERSION = 1.9.3
    BASERUBY = ruby
    target_alias = 
    host_alias = 
    build_alias = x86_64-linux-gnu
    LIBS = -lpthread -lrt -ldl -lcrypt -lm 
    ECHO_T = 
    ECHO_N = -n
    ECHO_C = 
    DEFS = 
    mandir = /usr/share/man
    localedir = /usr/share/locale
    libdir = /usr/lib
    psdir = /usr/share/doc/ruby
    pdfdir = /usr/share/doc/ruby
    dvidir = /usr/share/doc/ruby
    htmldir = /usr/share/doc/ruby
    infodir = /usr/share/info
    docdir = /usr/share/doc/ruby
    oldincludedir = /usr/include
    includedir = /usr/include
    localstatedir = /var
    sharedstatedir = /usr/com
    sysconfdir = /etc
    datadir = /usr/share
    datarootdir = /usr/share
    libexecdir = /usr/lib/ruby1.9.1
    sbindir = /usr/sbin
    bindir = /usr/bin
    program_transform_name = s&$&1.9.1&;s&^&&
    exec_prefix = /usr
    PACKAGE_URL = 
    PACKAGE_BUGREPORT = 
    PACKAGE_STRING = 
    PACKAGE_VERSION = 
    PACKAGE_TARNAME = 
    PACKAGE_NAME = 
    PATH_SEPARATOR = :
    SHELL = /bin/bash
    rubylibdir = /usr/lib/ruby/1.9.1
    archdir = /usr/lib/ruby/1.9.1/x86_64-linux
    sitelibdir = /usr/local/lib/site_ruby/1.9.1
    sitearchdir = /usr/local/lib/site_ruby/1.9.1/x86_64-linux
    vendorlibdir = /usr/lib/ruby/vendor_ruby/1.9.1
    vendorarchdir = /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
    topdir = /usr/lib/ruby/1.9.1/x86_64-linux

Ruby load path ($LOAD_PATH)

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

Ruby loaded libraries ($LOADED_FEATURES)

    enumerator.so
    /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    /usr/lib/ruby/1.9.1/rubygems/defaults.rb
    /usr/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    /usr/lib/ruby/1.9.1/rubygems/deprecate.rb
    /usr/lib/ruby/1.9.1/rubygems/exceptions.rb
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb
    /usr/lib/ruby/1.9.1/rubygems.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger.rb
    /usr/lib/ruby/1.9.1/x86_64-linux/etc.so
    /usr/lib/ruby/1.9.1/fileutils.rb
    /usr/lib/ruby/1.9.1/tmpdir.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tmpio.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/operating_system.rb
    /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/passenger_native_support.so
    /usr/lib/ruby/vendor_ruby/phusion_passenger/native_support.rb
    /usr/lib/ruby/1.9.1/x86_64-linux/socket.so
    /usr/lib/ruby/1.9.1/socket.rb
    /usr/lib/ruby/1.9.1/thread.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/ruby_core_enhancements.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tmpdir.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/constants.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/debug_logging.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb
    /usr/lib/ruby/1.9.1/x86_64-linux/fcntl.so
    /usr/lib/ruby/vendor_ruby/phusion_passenger/message_channel.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/message_client.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/native_support_utils.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/unseekable_socket.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb
    /usr/lib/ruby/1.9.1/x86_64-linux/stringio.so
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tee_input.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb
    /usr/lib/ruby/vendor_ruby/phusion_passenger/analytics_logger.rb
    /usr/lib/ruby/1.9.1/rubygems/version.rb
    /usr/lib/ruby/1.9.1/rubygems/requirement.rb
    /usr/lib/ruby/1.9.1/rubygems/platform.rb
    /usr/lib/ruby/1.9.1/rubygems/specification.rb
    /usr/lib/ruby/1.9.1/rubygems/path_support.rb

I have attached :
- apache2.conf (in /etc/apache2/),
- apache2-passenger-host.conf (in /etc/apache2/sites-available/).

Any ideas ?

Thanks a lot,
L.

apache2-passenger-host.conf - /etc/apache2/sites-available/apache2-passenger-host.conf (746 Bytes)

apache2.conf - /etc/apache2/apache2.conf (6.97 KB)

Replies (5)

RE: My web app could not be started. - Added by Martin Denizet (redmine.org team member) about 6 years ago

Hi Laurent,

Seems like you have a problem with your bundler. Double check it. How did you install it?
You could also try to start Redmine with WEBrick to see if the problem is the same.

Cheers,

RE: My web app could not be started. - Added by Laurent M about 6 years ago

Hi Martin,

Thanks a lot for your answer.

I'm afraid but I don't know how to check my bundler ... and I don't know how to start Redmine with WEBrick.

Here is my process of installation :

- sudo apt-get install redmine redmine-mysql mysql-server
- sudo apt-get install apache2 libapache2-mod-passenger
- sudo cp /usr/share/doc/redmine/examples/apache2-passenger-host.conf /etc/apache2/sites-available/
- + customize apache2-passenger-host.conf (listen 80) and apache2.conf (NameServer)
- sudo ln -sf /usr/share/redmine /var/lib/redmine/default/passenger
- sudo a2ensite apache2-passenger-host.conf
- sudo service apache2 reload

Thanks for your help.

Cheers,
L.

RE: My web app could not be started. - Added by Martin Denizet (redmine.org team member) about 6 years ago

Try:

gem install bundler

For WEBrick:
ruby script/rails server webrick -e production

Cheers,

RE: My web app could not be started. - Added by Laurent M about 6 years ago

Hi Martin,

thanks a lot for your answer.

I have discovered your excellent article (http://martin-denizet.com/install-redmine-2-5-x-with-git-and-subversion-on-debian-with-apache2-rvm-and-passenger/) ... and my installation of Redmine is now perfect !

Thanks a lot for this big big help.

Best regards,
Laurent.

RE: My web app could not be started. - Added by Martin Denizet (redmine.org team member) about 6 years ago

Hey Laurent,

Awesome! Great to know my article is useful!

Thanks for the feedback.

Cheers,

(1-5/5)