Update OC from 10.0.3.1 to 10.0.4.0 with errors


#1

During update Process the following error message appears

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Detect file cache entries with path that does not match parent-child relationships
- WARNING: The file cache contains entries where the parent id does not point to any existing entry for the following storage numeric ids: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
- WARNING: Please run occ files:scan --all --repair to repair all affected storages
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tried to run the suggested repair
"sudo -u www-data php occ files:scan --all --repair"
the following was the response
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ownCloud is in maintenance mode - no app have been loaded

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "files" namespace.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

BUT there is no files command available in this version of occ (see attached list)
I am running Ubuntu 16.04 latest versions
Can anybody help me?

0000000000000000000000000000000000000000000000000000000000000000000000
/var/www/owncloud# sudo -u www-data php occ list

ownCloud is in maintenance mode - no app have been loaded

ownCloud 10.0.4

Usage:
_ command [options] [arguments]_

Options:
_ -h, --help Display this help message_
_ -q, --quiet Do not output any message_
_ -V, --version Display this application version_
_ --ansi Force ANSI output_
_ --no-ansi Disable ANSI output_
_ -n, --no-interaction Do not ask any interactive question_
_ --no-warnings Skip global warnings, show command output only_
_ -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug_

Available commands:
_ check check dependencies of the server environment_
_ help Displays help for a command_
_ list Lists commands_
_ status show some status information_
_ upgrade run upgrade routines after installation of a new release. The release has to be installed before._
_ app_
_ app:check-code check code to be compliant_
_ app:disable disable an app_
_ app:enable enable an app_
_ app:getpath Get an absolute path to the app directory_
_ app:list List all available apps_
_ background_
_ background:ajax Use ajax to run background jobs_
_ background:cron Use cron to run background jobs_
_ background:webcron Use webcron to run background jobs_
_ config_
_ config:app:delete Delete an app config value_
_ config:app:get Get an app config value_
_ config:app:set Set an app config value_
_ config:import Import a list of configs_
_ config:list List all configs_
_ config:system:delete Delete a system config value_
_ config:system:get Get a system config value_
_ config:system:set Set a system config value_
_ db_
_ db:convert-mysql-charset Convert charset of MySQL/MariaDB to use utf8mb4_
_ db:convert-type Convert the ownCloud database to the newly configured one_
_ db:generate-change-script generates the change script from the current connected db to db_structure.xml_
_ encryption_
_ encryption:change-key-storage-root Change key storage root_
_ encryption:decrypt-all Disable server-side encryption and decrypt all files_
_ encryption:disable Disable encryption_
_ encryption:enable Enable encryption_
_ encryption:encrypt-all Encrypt all files for all users_
_ encryption:list-modules List all available encryption modules_
_ encryption:set-default-module Set the encryption default module_
_ encryption:show-key-storage-root Show current key storage root_
_ encryption:status Lists the current status of encryption_
_ group_
_ group:add adds a group_
_ group:add-member add members to a group_
_ group:delete deletes the specified group_
_ group:list list groups_
_ group:list-members list group members_
_ group:remove-member remove member(s) from a group_
_ integrity_
_ integrity:check-app Check integrity of an app using a signature._
_ integrity:check-core Check integrity of core code using a signature._
_ integrity:sign-app Signs an app using a private key._
_ integrity:sign-core Sign core using a private key._
_ l10n_
_ l10n:createjs Create javascript translation files for a given app_
_ log_
_ log:manage manage logging configuration_
_ log:owncloud manipulate ownCloud logging backend_
_ maintenance_
_ maintenance:data-fingerprint update the systems data-fingerprint after a backup is restored_
_ maintenance:mimetype:update-db Update database mimetypes and update filecache_
_ maintenance:mimetype:update-js Update mimetypelist.js_
_ maintenance:mode set maintenance mode_
_ maintenance:repair repair this installation_
_ maintenance:singleuser set single user mode_
_ maintenance:update:htaccess Updates the .htaccess file_
_ migrations_
_ migrations:execute Execute a single migration version manually._
_ migrations:generate _
_ migrations:migrate Execute a migration to a specified version or the latest available version._
_ migrations:status View the status of a set of migrations._
_ security_
_ security:certificates list trusted certificates_
_ security:certificates:import import trusted certificate_
_ security:certificates:remove remove trusted certificate_
_ security:routes list used routes_
_ twofactorauth_
_ twofactorauth:disable Disable two-factor authentication for a user_
_ twofactorauth:enable Enable two-factor authentication for a user_
_ user_
_ user:add adds a user_
_ user:delete deletes the specified user_
_ user:disable disables the specified user_
_ user:enable enables the specified user_
_ user:inactive reports users who are known to owncloud, but have not logged in for a certain number of days_
_ user:lastseen shows when the user was logged in last time_
_ user:list list users_
_ user:list-groups list groups for a user_
_ user:report shows how many users have access_
_ user:resetpassword Resets the password of the named user_
_ user:setting Read and modify user settings_
_ user:sync synchronize users from a given backend to the accounts table_

ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo


#2

its because of changing versioning of apps , so u have to disable maintenance mod in config.php ,
or this command
sudo -u www-data php occ maintenance:mode --off


#3

Many thanks for the hint
After switching off maintenanace mode File scan worked and repaired cache entries
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
/var/www/owncloud# sudo -u www-data php occ files:scan --all --repair
1 [->--------------------------]Fixed 714 file cache entries with wrong path
1 [============================]
Starting scan
+---------+--------+--------------+
| Folders | Files | Elapsed time |
+---------+--------+--------------+
| xxxx | yyyyyy | 08:20:21 |
+---------+--------+--------------+
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
no errors where found when doing
/var/www/owncloud# sudo -u www-data php occ maintenance:repair

Release 10.0.4 up and running on ubuntu 16.04