Skip to content

Fatal error on insert Cyrillic symbols #179

@Carsak

Description

@Carsak

When I create new Issue with Cyrillic characters in string, for example

Интеграция с Gitlab

I got this error

redmine_1  | I, [2019-11-09T13:41:21.638651 #1]  INFO -- :   Current user: admin (id=1)
redmine_1  | I, [2019-11-09T13:41:21.662663 #1]  INFO -- : Completed 500 Internal Server Error in 70ms (ActiveRecord: 46.8ms)
redmine_1  | F, [2019-11-09T13:41:20.958816 #1] FATAL -- :
redmine_1  | F, [2019-11-09T13:41:20.958837 #1] FATAL -- : ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value: '\xD0\x98\xD0\xBD\xD1\x82...' for column 'subject' at row 1: INSERT INTO `issues` (`tracker_id`, `project_id`, `subject`, `description`, `status_id`, `priority_id`, `author_id`, `created_on`, `updated_on`, `start_date`, `lock_version`) VALUES (1, 1, 'Интеграция с Gitlab', '', 1, 1, 1, '2019-11-09 13:41:20', '2019-11-09 13:41:20', '2019-11-09', 0)):
redmine_1  | F, [2019-11-09T13:41:20.958849 #1] FATAL -- :
redmine_1  | F, [2019-11-09T13:41:20.958859 #1] FATAL -- : app/models/issue.rb:209:in `create_or_update'

My docker-compose file


version: '3.1'

services:

  redmine:
    image: redmine
    restart: always
    hostname: redmine.local
    ports:
      - 8080:3000
    environment:
      REDMINE_DB_MYSQL: db
      REDMINE_DB_PASSWORD: example
      # REDMINE_NO_DB_MIGRATE: "true"
    volumes:
      - ./docker/redmine-data:/usr/src/redmine/files
    depends_on:
      - db

  db:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_DATABASE: redmine
    volumes:
      - ./docker/mysql-data:/var/lib/mysql

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions