Workflowengine failes during update but update successfull

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 15.0.0 but I belive I have it since 12.0 or so
Operating system and version (eg, Ubuntu 17.04): ubuntu 18.04 server and arch linux
Apache or nginx version (eg, Apache 2.4.25): apache proxy for ssl on ubuntu2.4.18, ngingx proxy on Arch Linux.
PHP version (eg, 7.1): 7.2
Installation was done with docker image on both systems, the ubuntu server (productive) and the test server arch linux.

The issue you are facing:
During updating nextcloud, I see an error that workflowengine fails.

\OC\Updater::failure: workflowengine: Failed to enable app workflowengine
OC\HintException: Failed to enable app workflowengine.

Searching I found https://github.com/nextcloud/server/issues/2617
I belive, that this is what happened, at least at some point I remember reverting a nextcloud setup. Since this was some while ago, I’m not sure any more. Also my setup has changed after this. I used to have a simple setup of nextcloud in apache root folder, but I moved it to docker, because I had dependencie issues in the past. The strange thing is, I can update on my test and productive setup. It gives an error doing the update but runs just fine at the end. Taking a look at the installed apps I get:

www-data@36e91714f4eb:~/html$ php occ app:list
Enabled:
  - accessibility: 1.1.0
  - calendar: 1.6.4
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - contacts: 3.0.0
  - dav: 1.8.0
  - federatedfilesharing: 1.5.0
  - federation: 1.5.0
  - files: 1.10.0
  - files_external: 1.6.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - gallery: 18.2.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - news: 13.0.3
  - nextcloud_announcements: 1.4.0
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - password_policy: 1.5.0
  - provisioning_api: 1.5.0
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - support: 1.0.0
  - survey_client: 1.3.0
  - systemtags: 1.5.0
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - updatenotification: 1.5.0
  - workflowengine: true
Disabled:
  - activity
  - admin_audit
  - bruteforcesettings
  - encryption
  - files_pdfviewer
  - firstrunwizard
  - user_external
  - user_ldap

I guess this meas workflowengine is just fine. So my question should be:
How do I get my database out of this inconsistent state that was mentioned by @nickvergessen. I tried to do what is mentionied in the thread, but its difficult in a docker container, also I remember trying it already in my old native nextclou in apache root folder setup and it didnt work back then, but it was still version 12.0 I belive.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. update nextcloud with docker (but I have it bevore I started using docker)
  2. I think I saw this error message for all updates since version 12.0 or so.

The output of your Nextcloud log in Admin > Logging:

[workflowengine] Error: OC\HintException: Failed to enable app workflowengine at <<closure>>

 0. /var/www/html/lib/private/Installer.php line 515
    installShippedApp("workflowengine")
 1. /var/www/html/lib/private/Updater.php line 256
    installShippedApps(true)
 2. /var/www/html/lib/private/Updater.php line 121
    doUpgrade("15.0.0.10", "14.0.4.2")
 3. /var/www/html/core/Command/Upgrade.php line 258
    upgrade()
 4. /var/www/html/3rdparty/symfony/console/Command/Command.php line 255
    execute(Symfony\Componen ... {}, Symfony\Componen ... {})
 5. /var/www/html/3rdparty/symfony/console/Application.php line 946
    run(Symfony\Componen ... {}, Symfony\Componen ... {})
 6. /var/www/html/3rdparty/symfony/console/Application.php line 248
    doRunCommand(OC\Core\Command\ ... }}, Symfony\Componen ... {}, Symfony\Componen ... {})
 7. /var/www/html/3rdparty/symfony/console/Application.php line 148
    doRun(Symfony\Componen ... {}, Symfony\Componen ... {})
 8. /var/www/html/lib/private/Console/Application.php line 213
    run(Symfony\Componen ... {}, Symfony\Componen ... {})
 9. /var/www/html/console.php line 96
    run()
10. /var/www/html/occ line 11
    require_once("/var/www/html/console.php")

at 2018-12-16T10:18:59+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'some_number,
  'passwordsalt' => 'some_salt',
  'secret' => 'some_secret',
  'trusted_domains' => 
  array (
    0 => 'localhost:8081',
    1 => 'serv:8081',
  ),
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => 'http://localhost:8080',
  'dbtype' => 'mysql',
  'version' => '15.0.0.10',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'some_password',
  'installed' => true,
  'loglevel' => 0,
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'theme' => '',
);

The output of your Apache/nginx/system log in /var/log/____:

nothing of importance
1 Like