Content
View differences
Updated by Christophe Bliard over 2 years ago
We are installed openproject on our server Debian 11 with latest patch and PostgreSQL 13.
2 weeks ago we upgrade our installation in 2 steps:
First
12.4.1 to 12.5.8
and next
12.5.8 to 13.0.7
Before this no problem happened. Suddenly, when we filter on Work Packages, it shows this error: "Your view is erroneous and could not be processed. An internal error has occurred. ", as in attachment. attachment.
Searching errors, increasing log level via additional\_environment.rb to debug e re-running configure doesn't produce any log.
So I search in the log of postgresql and I find this error occur when that search was runned
`**2023-11-06 13:45:25.576 CET [1376804] openproject@openproj ERROR: column attachments.fulltext_tsv does not exist at character 4253**`
`2023-11-06 13:45:25.576 CET [1376804] openproject@openproj STATEMENT: SELECT "work_packages"."id" FROM "work_packages" INNER JOIN "statuses" ON "statuses"."id" = "work_packages"."status_id" LEFT OUTER JOIN "projects" ON "projects"."id" = "work_packages"."project_id" WHERE "work_packages"."project_id" IN (SELECT "projects"."id" FROM "projects" WHERE "projects"."id" IN (SELECT "projects"."id" FROM "projects" INNER JOIN "enabled_modules" ON "projects"."id" = "enabled_modules"."project_id" AND "enabled_modules"."name" IN ('work_package_tracking') AND "projects"."active" = TRUE WHERE "projects"."active" = TRUE)) AND ((statuses.is_closed=FALSE) AND (work_packages.subject ILIKE '%my%' AND work_packages.subject ILIKE '%test%' OR work_packages.description ILIKE '%my%' AND work_packages.description ILIKE '%test%' OR EXISTS ( SELECT 1 FROM journals`
`WHERE `WHERE journals.journable_id = work_packages.id`
`AND `AND journals.journable_type = 'WorkPackage'`
`AND `AND journals.notes ILIKE '%my%' AND journals.notes ILIKE '%test%'`
`) OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON `ON custom_values.customized_type = 'WorkPackage'`
`AND `AND custom_values.customized_id = work_packages.id`
`AND `AND custom_values.custom_field_id = 1`
`JOIN `JOIN custom_fields_types`
`ON `ON custom_fields_types.type_id = work_packages.type_id`
`AND `AND custom_fields_types.custom_field_id = 1`
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR `OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON `ON custom_values.customized_type = 'WorkPackage'`
`AND `AND custom_values.customized_id = work_packages.id`
`AND `AND custom_values.custom_field_id = 3`
`JOIN `JOIN custom_fields_types`
`ON `ON custom_fields_types.type_id = work_packages.type_id`
`AND `AND custom_fields_types.custom_field_id = 3`
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR `OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON `ON custom_values.customized_type = 'WorkPackage'`
`AND `AND custom_values.customized_id = work_packages.id`
`AND `AND custom_values.custom_field_id = 12`
`JOIN `JOIN custom_fields_types`
`ON `ON custom_fields_types.type_id = work_packages.type_id`
`AND `AND custom_fields_types.custom_field_id = 12 JOIN custom_fields_projects`
`ON `ON custom_fields_projects.project_id = work_packages.project_id`
`AND `AND custom_fields_projects.custom_field_id = 12`
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR `OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON `ON custom_values.customized_type = 'WorkPackage'`
`AND `AND custom_values.customized_id = work_packages.id`
`AND `AND custom_values.custom_field_id = 20`
`JOIN `JOIN custom_fields_types`
`ON `ON custom_fields_types.type_id = work_packages.type_id`
`AND `AND custom_fields_types.custom_field_id = 20`
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR `OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON `ON custom_values.customized_type = 'WorkPackage'`
`AND `AND custom_values.customized_id = work_packages.id`
`AND `AND custom_values.custom_field_id = 30`
`JOIN `JOIN custom_fields_types`
`ON `ON custom_fields_types.type_id = work_packages.type_id`
`AND `AND custom_fields_types.custom_field_id = 30`
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR `OR EXISTS ( SELECT 1 FROM attachments`
`WHERE attachments.container_id = work_packages.id`
`AND attachments.container_type = 'WorkPackage'`
`AND "attachments"."fulltext_tsv" @@ to_tsquery('english', 'my & test')`
`) OR EXISTS ( SELECT 1 FROM attachments`
`WHERE attachments.container_id = work_packages.id`
`AND attachments.container_type = 'WorkPackage'`
`AND "attachments"."file_tsv" @@ to_tsquery('english', 'my & test')`
`)) AND (projects.id IN (10))) ORDER BY work_packages.id LIMIT $1 OFFSET $2`
Can you help me to solve the problem? I suppose are necessary some DB actions..
**OpenProject installation type**
* [ ] Hosted cloud edition
* [x] Packaged installation
* What distribution? Debian 11
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_13.0.7_
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Italian and English_
2 weeks ago we upgrade our installation in 2 steps:
First
12.4.1 to 12.5.8
and next
12.5.8 to 13.0.7
Before this no problem happened. Suddenly, when we filter on Work Packages, it shows this error: "Your view is erroneous and could not be processed. An internal error has occurred. ", as in attachment.
Searching errors, increasing log level via additional\_environment.rb to debug e re-running configure doesn't produce any log.
So I search in the log of postgresql and I find this error occur when that search was runned
`**2023-11-06 13:45:25.576 CET [1376804] openproject@openproj ERROR: column attachments.fulltext_tsv does not exist at character 4253**`
`2023-11-06 13:45:25.576 CET [1376804] openproject@openproj STATEMENT: SELECT "work_packages"."id" FROM "work_packages" INNER JOIN "statuses" ON "statuses"."id" = "work_packages"."status_id" LEFT OUTER JOIN "projects" ON "projects"."id" = "work_packages"."project_id" WHERE "work_packages"."project_id" IN (SELECT "projects"."id" FROM "projects" WHERE "projects"."id" IN (SELECT "projects"."id" FROM "projects" INNER JOIN "enabled_modules" ON "projects"."id" = "enabled_modules"."project_id" AND "enabled_modules"."name" IN ('work_package_tracking') AND "projects"."active" = TRUE WHERE "projects"."active" = TRUE)) AND ((statuses.is_closed=FALSE) AND (work_packages.subject ILIKE '%my%' AND work_packages.subject ILIKE '%test%' OR work_packages.description ILIKE '%my%' AND work_packages.description ILIKE '%test%' OR EXISTS ( SELECT 1 FROM journals`
`WHERE
`AND
`AND
`) OR work_packages.id IN`
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON
`AND
`AND
`JOIN
`ON
`AND
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON
`AND
`AND
`JOIN
`ON
`AND
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON
`AND
`AND
`JOIN
`ON
`AND
`ON
`AND
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON
`AND
`AND
`JOIN
`ON
`AND
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR
`(SELECT work_packages.id`
`FROM work_packages`
`LEFT OUTER JOIN custom_values`
`ON
`AND
`AND
`JOIN
`ON
`AND
`WHERE custom_values.value ILIKE '%my%' AND custom_values.value ILIKE '%test%')`
`OR
`WHERE attachments.container_id = work_packages.id`
`AND attachments.container_type = 'WorkPackage'`
`AND "attachments"."fulltext_tsv" @@ to_tsquery('english', 'my & test')`
`) OR EXISTS ( SELECT 1 FROM attachments`
`WHERE attachments.container_id = work_packages.id`
`AND attachments.container_type = 'WorkPackage'`
`AND "attachments"."file_tsv" @@ to_tsquery('english', 'my & test')`
`)) AND (projects.id IN (10))) ORDER BY work_packages.id LIMIT $1 OFFSET $2`
* [ ] Hosted cloud edition
* [x] Packaged installation
* What distribution? Debian 11
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_13.0.7_
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Italian and English_