Project

General

Profile

Cannot create users

Added by Travis Starke over 9 years ago

Hi All,

I have just installed redmine on a fresh ubuntu 15.04 x64 server.

When I try to create new users by clicking on the new user link, I get an Internal Error page.

The production.log shows the following:

Started GET "/redmine/users/new" for 10.0.0.205 at 2015-06-03 09:42:50 +0200
Processing by UsersController#new as HTML
Current user: admin (id=1)
Rendered users/_mail_notifications.html.erb (7.2ms)
Rendered users/_preferences.html.erb (82.0ms)
Rendered users/_form.html.erb (224.0ms)
Rendered users/new.html.erb within layouts/admin (247.8ms)
Completed 500 Internal Server Error in 257ms

NoMemoryError (failed to allocate memory):
lib/redmine/views/labelled_form_builder.rb:42:in `time_zone_select'
app/views/users/_preferences.html.erb:3:in `block in app_views_users_preferences_html_erb___1748119273592504295_73151720'
app/helpers/application_helper.rb:1051:in `labelled_fields_for'
app/views/users/_preferences.html.erb:1:in `_app_views_users__preferences_html_erb___1748119273592504295_73151720'
app/views/users/_form.html.erb:50:in `_app_views_users__form_html_erb__289902795039997432_72080440'
app/views/users/new.html.erb:4:in `block in app_views_users_new_html_erb__1177077495837321045_72013680'
app/helpers/application_helper.rb:1044:in `labelled_form_for'
app/views/users/new.html.erb:3:in `_app_views_users_new_html_erb___1177077495837321045_72013680'

Any help would be appreciated please. Thanks


Replies (5)

RE: Cannot create users - Added by Toshi MARUYAMA over 9 years ago

Travis Starke wrote:

NoMemoryError (failed to allocate memory):

RE: Cannot create users - Added by Toshi MARUYAMA over 9 years ago

RE: Cannot create users - Added by Travis Starke over 9 years ago

I thought the same until I checked the memory usage of the server and there is about +- 1.8GB RAM available, when I monitor real time memory usage and try add a user, it hardly makes a change.

RE: Cannot create users - Added by Toshi MARUYAMA over 9 years ago

Try https://github.com/tzinfo/tzinfo/issues/30#issuecomment-57902029.

Create Gemfile.local, add "gem 'tzinfo-data'" to it and run "bundle update" or "bundle install".
If it does not resolve problem, it causes by ubuntu or tzinfo gem.

RE: Cannot create users - Added by Travis Starke over 9 years ago

Awesome, its working now.

I ran into problems updating the mysql12 and rmagick gems. Running the following problems with their relevent fixes:

ERROR: Error installing mysql2: ERROR: Failed to build gem native extension.

sudo apt-get install mysql-client libmysqlclient-dev

checking for outdated ImageMagick version (<= 6.4.9)... * extconf.rb failed *

sudo apt-get install ImageMagick
sudo apt-get install libmagickwand-dev

Thanks!

    (1-5/5)