Project

General

Profile

Application error Rails application failed to start properly

Added by Hafiizh Eko 6 months ago

Hello,

I was follow the guide from here:
https://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)
https://www.redmine.org/projects/redmine/wiki/Install_Redmine_421_on_Centos_7

I was searching for days.. But I could not find anything. I alwas stuck at 'Application error Rails application failed to start properly'.

[root@myserver ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

[root@myserver ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: May 30 2023 14:01:11

[root@myserver ~]# ruby -v
ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux]

Redmine version 3.3.5 (/var/www/html/redmine/lib/redmine/version.rb)
module Redmine
module VERSION #:nodoc:
MAJOR = 3
MINOR = 3
TINY = 5

[root@xappsdev rubies]# gem -v
3.0.9

[root@xappsdev redmine]# passenger -v
Phusion Passenger(R) 6.0.18

[root@xappsdev rubies]# cat /var/www/html/redmine/public/.htaccess
https://pastebin.com/Cd8BeEWz

[root@myserver ~]# cat /etc/httpd/conf/httpd.conf
https://pastebin.com/y4ra0aVj

Gemfile:
https://pastebin.com/wnDCZtEq

/var/www/html/redmine/public/dispatch.fcgi:
https://pastebin.com/npnDSpvj


Replies (7)

RE: Application error Rails application failed to start properly - Added by Go MAEDA 6 months ago

Could you provide more information on the exact error?
These logs may provide more context on the error you're encountering.

  • Redmine's log (usually found in /var/www/html/redmine/log/production.log)
  • Your Apache error logs

RE: Application error Rails application failed to start properly - Added by Hafiizh Eko 6 months ago

Thank you for response. This is what i got on the log.

Redmine's log (/var/www/html/redmine/log/production.log):
https://pastebin.com/W6RUv1GH

Apache error logs(/var/log/httpd/error_log):
https://pastebin.com/4qeautkK

Redmine's log 2(/var/log/httpd/redmine_error_log) is blank.

RE: Application error Rails application failed to start properly - Added by Go MAEDA 6 months ago

Thank you for providing logs, but I could not find the cause. Sorry.

RE: Application error Rails application failed to start properly - Added by Mischa The Evil 6 months ago

FWIW:

Hafiizh Eko: Warning! You are trying to provision a Redmine stack on an outdated system (CentOS Linux release 7.4.1708, ruby 2.3.8p459) with a 6-year old, currently unsupported Redmine release (3.3.5) that is obviously outdated and is vulnerable to a whole range of security vulnerabilities.

I'd suggest you to start building your stack with supported and up-to-update systems/releases.

RE: Application error Rails application failed to start properly - Added by Hafiizh Eko 6 months ago

Mischa The Evil wrote in RE: Application error Rails application failed to start p...:

FWIW:

Hafiizh Eko: Warning! You are trying to provision a Redmine stack on an outdated system (CentOS Linux release 7.4.1708, ruby 2.3.8p459) with a 6-year old, currently unsupported Redmine release (3.3.5) that is obviously outdated and is vulnerable to a whole range of security vulnerabilities.

I'd suggest you to start building your stack with supported and up-to-update systems/releases.

I think, I want to running in current version of system. Then I will upgrade to up-to-update system/version.
is that possible to force running redmine in current system?

RE: Application error Rails application failed to start properly - Added by Holger Just 6 months ago

You seem to be mixing multiple deployment (incompatible) models. Specifically, it appears you have configured Passenger as an application server and also try to use fcgi. You should use only one of those options, preferably Passenger.

When using Passenger, you don't need a dispatch.fcgi file and do not need the RewriteRules in your .htaccess. They have a pretty good generic guide on how to deploy Rails applications at https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/apache/

RE: Application error Rails application failed to start properly - Added by Hafiizh Eko 6 months ago

Holger Just wrote in RE: Application error Rails application failed to start p...:

You seem to be mixing multiple deployment (incompatible) models. Specifically, it appears you have configured Passenger as an application server and also try to use fcgi. You should use only one of those options, preferably Passenger.

When using Passenger, you don't need a dispatch.fcgi file and do not need the RewriteRules in your .htaccess. They have a pretty good generic guide on how to deploy Rails applications at https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/apache/

Thank you for response. I was follow your suggestion and follow guide from here https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/apache/. And my redmine still not running, still 'Application error Rails application failed to start properly'.

For additional, I record my command. Can you help to check what I missing?
https://docs.google.com/document/d/10ooB-W4RQL0gE73MErWguAM4UZgEvoeOxUk0acD7A_0/edit?usp=sharing

    (1-7/7)