Project

General

Profile

Internal error before login screen

Added by Jean-Claude Barbet about 12 years ago

Hello,

I'm running Redmine on Ubuntu server 10.2 since 3 month, and I can't log now...without any known raison...

This is my version :

About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.5
Rails version 2.2.3
Active Record version 2.2.3
Action Pack version 2.2.3
Active Resource version 2.2.3
Action Mailer version 2.2.3
Active Support version 2.2.3
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20100221100219

What I see in /var/log/redmine/default/production.log

ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #22 of app/views/account/login.rhtml:
19: <tr>
20: <td></td>
21: <td align="left">
22: <% if Setting.autologin? >
23: <label for="autologin"><
= check_box_tag 'autologin', 1, false, :tabindex => 4 > <= l(:label_stay_logged_in) ></label>
24: <
end %>
25: </td>

Nothing works...I restarted Apache, I reboot the machine...No soltution...

Any help ?

JC


Replies (7)

RE: Internal error before login screen - Added by harry krueger about 12 years ago

Same here, same setup.

Restarting apache yesterday fixed the problem temporarily.
But it doesn't work anymore.

Others are having the same problem:
http://www.redmine.org/boards/2/topics/29317
http://serverfault.com/questions/366406/redmine-suddenly-stopped-working-how-to-troubleshoot

RE: Internal error before login screen - Added by Ivan Cenov about 12 years ago

What is the version of your Redmine?
Rails version 2.2.3 is too old. You may have to upgrade rails to 2.3.14.

RE: Internal error before login screen - Added by harry krueger about 12 years ago

> aptitude show redmine
Package: redmine
State: installed
Automatically installed: no
Version: 0.9.3-1
Priority: extra
Section: universe/web
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Uncompressed Size: 11,1M
Depends: ruby, ruby1.8 (>= 1.8.7), rake (>= 0.8.3), rails (>= 2.2.3), rails (< 2.3), libjs-prototype (>= 1.6.1), libjs-scriptaculous (>= 1.8.2), 
dbconfig-common, redmine-sqlite | redmine-mysql | redmine-pgsql, debconf (>= 0.5) | debconf-2.0

Problem is: Redmine was running fine for months. And suddenly stoped working only a few days ago.

Possible cause was this (from /var/apt/log/history.log):

Start-Date: 2012-02-28  09:45:24
Upgrade: irb1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1), libxml2-utils (2.7.6.dfsg-1ubuntu1.3, 2.7.6.dfsg-1ubuntu1.4), python-httplib2 (0.6.0-1, 0.7.2-1ubuntu2~0.10.04.1), 
ruby1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1), libxml2 (2.7.6.dfsg-1ubuntu1.3, 2.7.6.dfsg-1ubuntu1.4), rdoc1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1), libruby1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1), 
libopenssl-ruby1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1), libreadline-ruby1.8 (1.8.7.249-2, 1.8.7.249-2ubuntu0.1)
End-Date: 2012-02-28  09:45:34

Any ideas?

RE: Internal error before login screen - Added by Jean-Claude Barbet about 12 years ago

After many reboots, apache restarts, etc...nothing works

Finally after an apache reload, it's working now...

Ok , I'm just testing this service, but I can't imagine use this software in production if anybody can't explain this problem !

JC

RE: Internal error before login screen - Added by harry krueger about 12 years ago

The reason for redmine to stop working on Ubuntu 10.04 is upgrade "ruby1.8 1.8.7.249-2ubuntu0.1".
see https://launchpad.net/ubuntu/+source/ruby1.8/1.8.7.249-2ubuntu0.1

I downgraded to "ruby1.8 1.8.7.249-2" and now redmine WORKS again.

But this can only be a temporary solution, because "ruby1.8 1.8.7.249-2ubuntu0.1" is a security upgrade.

RE: Internal error before login screen - Added by Jean-Claude Barbet about 12 years ago

If the reason is really upgrading from "ruby1.8 1.8.7.249-2" to "ruby1.8 1.8.7.249-2ubuntu0.1"...it's a major bug, no ?

RE: Internal error before login screen - Added by harry krueger about 12 years ago

I have posted this issue on launchpad:
https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/949011

Let's see what the Ubuntu-guys say about it.

    (1-7/7)