Project

General

Profile

Redmine sort of executes, but is mired in error 500 and 404s

Added by Kevin Harding over 6 years ago

Hi all,

I'm attempting to install Redmine on a cPanel VPS. I have followed instructions here: https://documentation.cpanel.net/display/CKB/How+to+Install+Redmine

From what I understand, this is creating Redmine to run through Passenger. The UAPI call via cPanel registers the application and does some editing of the vhosts. I think it's also doing some redirecting.

Redmine sort of executes. I get the main login page, but no stylesheets. If I click on any link, I get error 500.

When I look at the Apache log, set to debug, I get this:


[Tue Nov 28 20:37:37.165141 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3785): [client REMOVED:44119] AH00121: r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165147 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165153 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165158 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165163 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165168 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165173 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165177 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165183 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165187 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /index.php, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165307 2017] [core:debug] [pid 27690:tid 140304359352064] core.c(3792): [client REMOVED:44119] AH00122: redirected from r->uri = /favicon.ico, referer: http://manage.kh.photography/login
[Tue Nov 28 20:37:37.165322 2017] [core:error] [pid 27690:tid 140304359352064] [client REMOVED:44119] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://manage.kh.photography/login

When I look at the Production log, I get this:


Started GET "/" for REMOVED at 2017-11-28 20:37:28 +0000
Processing by WelcomeController#index as HTML
  Current user: anonymous
  Rendered welcome/index.html.erb within layouts/base (45.8ms)
Completed 200 OK in 356ms (Views: 202.7ms | ActiveRecord: 10.8ms)

I can see that there's some sort of a redirection issue occurring that will be causing at least some of the issue but I haven't the foggiest idea how to fix it. Redmine does appear to be executing.

My system and environment is as follows:


sh: svn: command not found
sh: darcs: command not found
sh: hg: command not found
sh: bzr: command not found
Environment:
  Redmine version                3.4.3.stable
  Ruby version                   2.4.2-p198 (2017-09-14) [x86_64-linux-gnu]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            2.15.0
  Filesystem
Redmine plugins:
  no plugin installed

Replies (2)

RE: Redmine sort of executes, but is mired in error 500 and 404s - Added by Kevin Harding over 6 years ago

Additional update:

- I'm attempting to run the Redmine install on a subdomain. Since I posted the above, I deleted the folder that cPanel creates for the subdomain and made a symlink to the /redmine/public folder. This allows the welcome page to render - and properly! - but any link beyond that is an Error 500 with similar redirect issues as above.

RE: Redmine sort of executes, but is mired in error 500 and 404s - Added by Kevin Harding over 6 years ago

Okay, resolved: it's all about the symlinks. Follow symlinks needed to be enabled in the htaccess.

    (1-2/2)