プロジェクト

全般

プロフィール

Vote #81137

未完了

Adding new group results in Error 500

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Database_21
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
21
version_id:
0
issue_org_id:
34255
author_id:
19660
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[New]

説明

When I try to add a new group (groups/new) I get an Error 500 with the following log message

Completed 500 Internal Server Error in 15ms (ActiveRecord: 9.7ms)
ActiveRecord::NotNullViolation (Mysql2::Error: Field 'mail_notification' doesn't have a default value: INSERT INTO `users` (`login`, `hashed_password`, `firstname`, `lastname`, `created_on`, `updated_on`, `type`) VALUES ('', '', '', 'Group name', '2020-11-12 18:55:38', '2020-11-12 18:55:38', 'Group')):

Details regarding Redmine

Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.5.5-p157 (2019-03-15) [x86_64-linux-gnu]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               Mysql2

Any suggestions on how to get this fixed?


journals

Setting.default_notification_option is probably blank for some reason? that should never happen

take a look if the default value is present in your database and config/settings.yml

any 3rd party plugins?
--------------------------------------------------------------------------------
Code in settings.yml

<pre><code>default_notification_option:
default: 'only_my_events'
</code></pre>

Full redmine info

<pre><code>Environment:
Redmine version 4.1.1.stable
Ruby version 2.5.5-p157 (2019-03-15) [x86_64-linux-gnu]
Rails version 5.2.4.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 2.20.1
Filesystem
Redmine plugins:
additionals 3.0.1-master
redmine_banner 0.3.4
redmine_slack 0.2
redmine_spent_time 4.1.0
view_customize 2.7.0</code></pre>
--------------------------------------------------------------------------------
what is the result of

<pre>
rails c p
Setting.default_notification_option
=>
</pre>
?

try it without plugins
--------------------------------------------------------------------------------
<pre><code>Loading production environment (Rails 5.2.4.2)
Setting.default_notification_option
=> "only_my_events"
</code></pre>

Should be ok
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリDatabase_21 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0