Content
View differences
Updated by Oliver Günther almost 2 years ago
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Upgrade to OpenProject 14.3.0
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* FixDeletedDataJournals migration can fail with follwoing error:
I, \[2024-07-31T09:59:46.776240 #3635\] INFO -- : Migrating to FixDeletedDataJournals (20220818074159)
\== 20220818074159 FixDeletedDataJournals: migrating ===========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
uninitialized constant WikiContent
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.2/lib/active\_support/inflector/methods.rb:290:in \`constantize'
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.2/lib/active\_support/core\_ext/string/inflections.rb:74:in \`constantize'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:119:in \`block in get\_missing\_journals'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:118:in \`to\_h'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:118:in \`get\_missing\_journals'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:31:in \`up'
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. The migration will fail in versions 14.x+
2. We inform the user what to do Migration runs without an internal error issues
### Workaround:
Open SQL console:
```shell
sudo su - postgres -c psql
```
Insert the following commands:
```sql
\c openproject
INSERT INTO schema_migrations (version) VALUES (20220818074159);
```
Run openproject configure command:
```shell
sudo openproject configure
```
Open SQL console again:
```text
sudo su - postgres -c psql
```
Run the following commands:
```shell
\c openproject
DELETE FROM schema_migrations WHERE version='20220818074159';
```
Run openproject configure again:
```text
sudo openproject configure
```
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Upgrade to OpenProject 14.3.0
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* FixDeletedDataJournals migration can fail with follwoing error:
I, \[2024-07-31T09:59:46.776240 #3635\] INFO -- : Migrating to FixDeletedDataJournals (20220818074159)
\== 20220818074159 FixDeletedDataJournals: migrating ===========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
uninitialized constant WikiContent
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.2/lib/active\_support/inflector/methods.rb:290:in \`constantize'
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.2/lib/active\_support/core\_ext/string/inflections.rb:74:in \`constantize'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:119:in \`block in get\_missing\_journals'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:118:in \`to\_h'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:118:in \`get\_missing\_journals'
/opt/openproject/db/migrate/20220818074159\_fix\_deleted\_data\_journals.rb:31:in \`up'
_Describe how the application should behave like. Example:_
1. The migration will fail in versions 14.x+
2. We inform the user what to do
### Workaround:
Open SQL console:
```shell
sudo su - postgres -c psql
```
Insert the following commands:
```sql
\c openproject
INSERT INTO schema_migrations (version) VALUES (20220818074159);
```
Run openproject configure command:
```shell
sudo openproject configure
```
Open SQL console again:
```text
sudo su - postgres -c psql
```
Run the following commands:
```shell
\c openproject
DELETE FROM schema_migrations WHERE version='20220818074159';
```
Run openproject configure again:
```text
sudo openproject configure
```