Project

General

Profile

Actions

Defect #21596

closed

internal error when click register or project setting tab after redmine fresh installation

Added by Tony Cao over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Log is pasted as below. ======================
[root@redmine01 redmine-2.6]# RAILS_ENV=production bundle exec rake redmine:load_default_data
/usr/local/rvm/gems/ruby-2.2.4/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"

Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] en ====================================
Default configuration data loaded.
[root@redmine01 redmine-2.6]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 27
Server version: 5.6.28 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use redmine2;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from settings;
Empty set (0.00 sec)

mysql>

==============================
I wonder if load default data is working fine, because there is no default data in settings table.

Actions #1

Updated by Tony Cao over 9 years ago

Tony Cao wrote:

Log is pasted as below. ======================
[root@redmine01 redmine-2.6]# RAILS_ENV=production bundle exec rake redmine:load_default_data
/usr/local/rvm/gems/ruby-2.2.4/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"

Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] en ====================================
Default configuration data loaded.
[root@redmine01 redmine-2.6]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 27
Server version: 5.6.28 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use redmine2;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from settings;
Empty set (0.00 sec)

mysql>

==============================
I wonder if load default data is working fine, because there is no default data in settings table.

I added my database config and creating database log as follows:

[root@redmine01 config]# cat database.yml
  1. Default setup is given for MySQL with ruby1.9. If you're running Redmine
  2. with MySQL and ruby1.8, replace the adapter name with `mysql`.
  3. Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end.
  4. Line indentation must be 2 spaces (no tabs).

production:
adapter: mysql2
database: redmine2
host: localhost
username: redmine
password: "redmine"
encoding: utf8

mysql> create database redmine2 character set utf8;
mysql> grant all privileges on redmine2.* to 'redmine'@'localhost' identified by 'redmine';
mysql> flush privileges;
mysql> \q

Actions #2

Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Please use forum for question.

Actions

Also available in: Atom PDF