Content
Migration from 9.0.4 to 10.4.1: Psych::SyntaxError: (<unknown>): control characters are not allowed at line 1 column 1
Added by L B over 4 years ago
As this is probably not a bug in OpenProject itself, but rather the data I'm converting, I'm not (yet) posting this as a bug. But I filled out the Bug form already, so it has the same format.
Environment:
Your OpenProject Version: 10.4.1
Operating System / Browser / Language: Debian 9.12 / Google Chrome / German
Database: PostgreSQL 9.6.17
Logs
See attached file for full output!
Steps to reproduce:
Not sure if it's easy to reproduce, the problem might originate in the MySQL to PostgreSQL migration or my specific database data.
- Upgraded OpenProject from 7.3.2 to 9.0.4 (Debian 8), including database table upgrades
- Upgraded Debian 8 to Debian 9
- Installed PostgreSQL 9.6.17
- Migrated DB from MySQL to PostgreSQL according to guide at https://docs.openproject.org/installation-and-operations/misc/packaged-postgresql-migration/#optional-install-and-create-postgresql-database
- Upgraded OpenProject from 9.0.4 to 10.4.1
Actual Behavior
Error message while running openproject configure (see full output attached!)
# sudo openproject configure
...
== 20190826083604 MyProjectPageToGrid: migrating ==============================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
(<unknown>): control characters are not allowed at line 1 column 1
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.2.1/lib/active_record/coders/yaml_column.rb:26:in `load'
...
Expected Behavior
Upgrade runs without errors.
Notes
I'm quite experienced in debugging application errors in general, but I have no idea how to determine the actual database entry which is responsible for this. I'm also unable to tell where to look by analyzing the full error message.
This sounds similar to what is described in a different application context here: https://github.com/collectiveidea/audited/issues/260#issuecomment-186245034
Replies (1)
Now handled as a Bug in https://community.openproject.com/projects/openproject/work_packages/33240/activity
Check the bug for updates.