Ada masalah kecil sewaktu saya upgrade Nextcloud 17.0 ke Nextcloud 18.0. Berikut ini error yang muncul

$ sudo -u www-data php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Updating database schema
Updated database
Updating <workflowengine> ...
Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing 'SELECT `o`.`id` FROM `oc_flow_operations` `o` LEFT JOIN `oc_flow_operations_scope` `s` ON `o`.`id` = `s`.`operation_id` WHERE `s`.`operation_id` IS NULL':
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_flow_operations_scope' doesn't exist
Update failed
Maintenance mode is kept active
Reset log level

Solusi dari masalah diatas adalah dengan menghapus file database.xml

# backup database.xml
cp apps/workflowengine/appinfo/database.xml ~/
# hapus database.xml
rm -f apps/workflowengine/appinfo/database.xml

Setelah selesai, upgrade ulang

sudo -u www-data php occ upgrade

ganti www-data dengan user apache/nginx anda.

Join the Conversation


Your email address will not be published. Required fields are marked *

  1. Hello i had the same problem and the database.xml file doesnt exist so my problem persist and have no solution
    there is an info.xml file instead that when i cut it gives me other error

    UnexpectedValueException: The files of the app “workflowengine” were not correctly replaced before running the update
    Update failed

    Please help thanks