Core: Upgrade 9.0.3.2 -> 9.1.1.3 (CentOS) - DiscoverManager not found

Created on 7 Oct 2016  路  64Comments  路  Source: owncloud/core

Steps to reproduce

  1. yum upgrade to current version 9.1.1.3 from repository
  2. sudo -u apache php occ upgrade

Expected behaviour
Get usable current version

Actual behaviour

ownCloud 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
Checking whether the database schema can be updated (this can take a long time depending on the database size)
 Done
 24/24 [============================] 100%
Checked database schema update
Checking updates of apps
Checked database schema update for apps
Updating database schema
Updated database
Drop old database tables
 Done
 28/28 [============================] 100%
Remove old (< 9.0) calendar/contact shares
 Done
 4/4 [============================] 100%
Fix permissions so avatars can be stored again
 Done
 2/2 [============================] 100%
Remove shares of a users root folder
 Starting ...
   16/1286 [>---------------------------]   1%   An unhandled exception has been thrown:
Error: Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/html/owncloud/apps/files_sharing/lib/AppInfo/Application.php:83
Stack trace:
#0 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#1 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): Pimple\Container->offsetGet('ExternalManager')
#2 /var/www/html/owncloud/apps/files_sharing/lib/AppInfo/Application.php(129): OC\AppFramework\Utility\SimpleContainer->query('ExternalManager')
#3 /var/www/html/owncloud/apps/files_sharing/lib/External/MountProvider.php(53): OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo{closure}()
#4 /var/www/html/owncloud/apps/files_sharing/lib/External/MountProvider.php(72): OCA\Files_Sharing\External\MountProvider->getMount(Object(OC\User\User), Array, Object(OC\Files\Storage\StorageFactory))
#5 /var/www/html/owncloud/lib/private/Files/Config/MountProviderCollection.php(76): OCA\Files_Sharing\External\MountProvider->getMountsForUser(Object(OC\User\User), Object(OC\Files\Storage\StorageFactory))
#6 [internal function]: OC\Files\Config\MountProviderCollection->OC\Files\Config{closure}(Object(OCA\Files_Sharing\External\MountProvider))
#7 /var/www/html/owncloud/lib/private/Files/Config/MountProviderCollection.php(77): array_map(Object(Closure), Array)
#8 /var/www/html/owncloud/lib/private/Files/Filesystem.php(422): OC\Files\Config\MountProviderCollection->getMountsForUser(Object(OC\User\User))
#9 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(99): OC\Files\Filesystem::initMountPoints('1B5F76F8-14BB-4...')
#10 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(448): OC\Files\Storage\Shared->init()
#11 /var/www/html/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(485): OC\Files\Storage\Shared->getWrapperStorage()
#12 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(122): OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage('\OC\Files\Stora...')
#13 /var/www/html/owncloud/lib/private/legacy/util.php(148): OC\Files\Storage\Shared->instanceOfStorage('\OC\Files\Stora...')
#14 /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php(100): OC_Util::{closure}('/C71A1E70-A414-...', Object(OC\Files\Storage\Shared), Object(OCA\Files_Sharing\SharedMount))
#15 /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php(82): OC\Files\Storage\StorageFactory->wrap(Object(OCA\Files_Sharing\SharedMount), Object(OC\Files\Storage\Shared))
#16 /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php(137): OC\Files\Storage\StorageFactory->getInstance(Object(OCA\Files_Sharing\SharedMount), '\OC\Files\Stora...', Array)
#17 /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php(160): OC\Files\Mount\MountPoint->createStorage()
#18 /var/www/html/owncloud/lib/private/Files/View.php(1356): OC\Files\Mount\MountPoint->getStorage()
#19 /var/www/html/owncloud/lib/private/Files/Node/Root.php(180): OC\Files\View->getFileInfo('/C71A1E70-A414-...')
#20 /var/www/html/owncloud/lib/private/Files/Node/Root.php(342): OC\Files\Node\Root->get('/C71A1E70-A414-...')
#21 [internal function]: OC\Files\Node\Root->getUserFolder('C71A1E70-A414-4...')
#22 /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php(64): call_user_func_array(Array, Array)
#23 /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php(281): OC\Files\Node\LazyRoot->__call('getUserFolder', Array)
#24 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(82): OC\Files\Node\LazyRoot->getUserFolder('C71A1E70-A414-4...')
#25 /var/www/html/owncloud/lib/private/User/Manager.php(359): OC\Repair\RemoveRootShares->OC\Repair{closure}(Object(OC\User\User))
#26 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(101): OC\User\Manager->callForAllUsers(Object(Closure))
#27 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(73): OC\Repair\RemoveRootShares->removeRootShares(Object(OC\Repair))
#28 /var/www/html/owncloud/lib/private/Repair.php(88): OC\Repair\RemoveRootShares->run(Object(OC\Repair))
#29 /var/www/html/owncloud/lib/private/Updater.php(267): OC\Repair->run()
#30 /var/www/html/owncloud/lib/private/Updater.php(150): OC\Updater->doUpgrade('9.1.1.3', '9.0.3.2')
#31 /var/www/html/owncloud/core/Command/Upgrade.php(290): OC\Updater->upgrade()
#32 /var/www/html/owncloud/3rdparty/symfony/console/Command/Command.php(259): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#34 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /var/www/html/owncloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /var/www/html/owncloud/console.php(94): OC\Console\Application->run()
#38 /var/www/html/owncloud/occ(11): require_once('/var/www/html/o...')
#39 {main}[

Server configuration
Operating system: CentOS Linux release 7.2.1511
Web server: Apache/2.4.6 (CentOS)
Database: mysql Ver 15.1 Distrib 5.5.50-MariaDB, for Linux (x86_64) using readline 5.1
PHP version: PHP 7.0.11
ownCloud version (see ownCloud admin page): 9.0.3.2 -> 9.1.1.3
Updated from an older ownCloud or fresh install: upgrade
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808): no information provided

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): LDAP

Bug blue-ticket update p1-urgent sev3-medium statuSTALE

All 64 comments

@stephan-l can you check whether the file "apps/federatedfilesharing/lib/DiscoveryManager.php" exists after the update ? From what I can see it exists in the tarball.

Yes it is present after the upgrade:

[root@xyz-1234 owncloud]# ls -alh apps/federatedfilesharing/lib/
insgesamt 88K
drwxrwxr-x. 4 apache apache 4,0K  7. Okt 16:12 .
drwxrwxr-x. 9 apache apache 4,0K  7. Okt 16:12 ..
-rwxrwxr-x. 1 apache apache 4,7K 19. Sep 19:04 AddressHandler.php
drwxrwxr-x. 2 apache apache   36  7. Okt 16:12 AppInfo
drwxrwxr-x. 2 apache apache   33  7. Okt 16:12 BackgroundJob
-rwxrwxr-x. 1 apache apache 3,9K 19. Sep 19:04 DiscoveryManager.php
-rwxrwxr-x. 1 apache apache  25K 19. Sep 19:04 FederatedShareProvider.php
-rwxrwxr-x. 1 apache apache 8,6K 19. Sep 19:04 Notifications.php
-rwxrwxr-x. 1 apache apache 2,7K 19. Sep 19:04 Notifier.php
-rwxrwxr-x. 1 apache apache  18K 19. Sep 19:04 RequestHandler.php
-rwxrwxr-x. 1 apache apache 1,5K 19. Sep 19:04 TokenHandler.php

Hmmm... so if the update code didn't find the file while running it could be that PHP CLI had old code cached and didn't load the new one ? I heard about APC (or APCu) code caching that might need clearing.

@PVince81 Yes, such caching issues where reported from time to time. Thats why the manual upgrade steps are containing the info to stop and start the webserver:

https://doc.owncloud.org/server/9.1/admin_manual/maintenance/manual_upgrade.html

There are a few issues about that:

  1. Users of the updater app are mostly not able to restart the webserver
  2. Users of the packages (like the OP) are mostly not having a look at the manual upgrade steps
  3. There are systems with e.g. php-fpm out there where a restart of the webserver won't help

I tried it twice. Both times I restarted the whole machine first. The first time it got stuck at the same place. The second time it continued until Update 3rd-party app and stopped due missing LDAP. But that's my fault. The clone I'm testing on got no access to it.
The second time I verifyed with apc.php that the cache was empty.

So I got no idea why it is working the second time. I just left the machine off for some days before. May this voided some caches?

Reproducing this isn't that easy since every upgrade takes 1.5 hours...

Today I gave it another try.
Got the system to maintenance mode, turned off selinux and rebooted.
Still the same experience.

Caching shouldn't be a problem anyway since it is not used for CLI tasks.
Also made a diff to the current download from the website. All files except the config and data are identical.

From my last try I assume it crashed because of missing LDAP before reaching the problimatic code.

The current log:

sudo -u apache php occ upgrade
ownCloud 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
Checking whether the database schema can be updated (this can take a long time depending on the database size)
 Done
 24/24 [============================] 100%
Checked database schema update
Checking updates of apps
Checking whether the database schema for <activity> can be updated (this can take a long time depending on the database size)
 Done
 2/2 [============================] 100%
Checking whether the database schema for <dav> can be updated (this can take a long time depending on the database size)
 Done
 10/10 [============================] 100%
Checking whether the database schema for <federatedfilesharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <federation> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_sharing> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <files_trashbin> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <notifications> can be updated (this can take a long time depending on the database size)
 Done
 1/1 [============================] 100%
Checking whether the database schema for <user_ldap> can be updated (this can take a long time depending on the database size)
 Done
 3/3 [============================] 100%
Checked database schema update for apps
Updating database schema
Updated database
Disabled 3rd-party app: calendar
Disabled 3rd-party app: contacts
Disabled incompatible app: documents
Disabled 3rd-party app: documents
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 0.3.0
Updating <gallery> ...
Updated <gallery> to 15.0.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 0.5.0
Updating <updatenotification> ...
Updated <updatenotification> to 0.2.1
Updating <federation> ...
Updated <federation> to 0.1.0
Updating <user_ldap> ...
Updated <user_ldap> to 0.9.0
Updating <files> ...
Updated <files> to 1.5.1
Updating <activity> ...
Updated <activity> to 2.3.2
Updating <dav> ...
Fix classification for calendar objects
 Done
 821/821 [============================] 100%
Updated <dav> to 0.2.6
Updating <files_sharing> ...
Updated <files_sharing> to 0.10.0
Updating <files_trashbin> ...
Updated <files_trashbin> to 0.9.0
Updating <files_versions> ...
Updated <files_versions> to 1.3.0
Updating <comments> ...
Updated <comments> to 0.3.0
Updating <notifications> ...
Updated <notifications> to 0.3.0
Updating <systemtags> ...
Updated <systemtags> to 0.3.0
Update 3rd-party app: calendar
Update 3rd-party app: contacts
Update 3rd-party app: documents
Drop old database tables
 Done
 28/28 [============================] 100%
Remove old (< 9.0) calendar/contact shares
 Done
 4/4 [============================] 100%
Fix permissions so avatars can be stored again
 Done
 2/2 [============================] 100%
Remove shares of a users root folder
 Starting ...
   16/1316 [>---------------------------]   1%   An unhandled exception has been thrown:
Error: Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/html/owncloud/apps/files_sharing/lib/AppInfo/Application.php:83
Stack trace:
#0 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#1 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): Pimple\Container->offsetGet('ExternalManager')
#2 /var/www/html/owncloud/apps/files_sharing/lib/AppInfo/Application.php(129): OC\AppFramework\Utility\SimpleContainer->query('ExternalManager')
#3 /var/www/html/owncloud/apps/files_sharing/lib/External/MountProvider.php(53): OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo{closure}()
#4 /var/www/html/owncloud/apps/files_sharing/lib/External/MountProvider.php(72): OCA\Files_Sharing\External\MountProvider->getMount(Object(OC\User\User), Array, Object(OC\Files\Storage\StorageFactory))
#5 /var/www/html/owncloud/lib/private/Files/Config/MountProviderCollection.php(76): OCA\Files_Sharing\External\MountProvider->getMountsForUser(Object(OC\User\User), Object(OC\Files\Storage\StorageFactory))
#6 [internal function]: OC\Files\Config\MountProviderCollection->OC\Files\Config{closure}(Object(OCA\Files_Sharing\External\MountProvider))
#7 /var/www/html/owncloud/lib/private/Files/Config/MountProviderCollection.php(77): array_map(Object(Closure), Array)
#8 /var/www/html/owncloud/lib/private/Files/Filesystem.php(422): OC\Files\Config\MountProviderCollection->getMountsForUser(Object(OC\User\User))
#9 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(99): OC\Files\Filesystem::initMountPoints('1B5F76F8-14BB-4...')
#10 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(448): OC\Files\Storage\Shared->init()
#11 /var/www/html/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(485): OC\Files\Storage\Shared->getWrapperStorage()
#12 /var/www/html/owncloud/apps/files_sharing/lib/sharedstorage.php(122): OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage('\OC\Files\Stora...')
#13 /var/www/html/owncloud/lib/private/legacy/util.php(148): OC\Files\Storage\Shared->instanceOfStorage('\OC\Files\Stora...')
#14 /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php(100): OC_Util::{closure}('/C71A1E70-A414-...', Object(OC\Files\Storage\Shared), Object(OCA\Files_Sharing\SharedMount))
#15 /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php(82): OC\Files\Storage\StorageFactory->wrap(Object(OCA\Files_Sharing\SharedMount), Object(OC\Files\Storage\Shared))
#16 /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php(137): OC\Files\Storage\StorageFactory->getInstance(Object(OCA\Files_Sharing\SharedMount), '\OC\Files\Stora...', Array)
#17 /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php(160): OC\Files\Mount\MountPoint->createStorage()
#18 /var/www/html/owncloud/lib/private/Files/View.php(1356): OC\Files\Mount\MountPoint->getStorage()
#19 /var/www/html/owncloud/lib/private/Files/Node/Root.php(180): OC\Files\View->getFileInfo('/C71A1E70-A414-...')
#20 /var/www/html/owncloud/lib/private/Files/Node/Root.php(342): OC\Files\Node\Root->get('/C71A1E70-A414-...')
#21 [internal function]: OC\Files\Node\Root->getUserFolder('C71A1E70-A414-4...')
#22 /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php(64): call_user_func_array(Array, Array)
#23 /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php(281): OC\Files\Node\LazyRoot->__call('getUserFolder', Array)
#24 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(82): OC\Files\Node\LazyRoot->getUserFolder('C71A1E70-A414-4...')
#25 /var/www/html/owncloud/lib/private/User/Manager.php(359): OC\Repair\RemoveRootShares->OC\Repair{closure}(Object(OC\User\User))
#26 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(101): OC\User\Manager->callForAllUsers(Object(Closure))
#27 /var/www/html/owncloud/lib/private/Repair/RemoveRootShares.php(73): OC\Repair\RemoveRootShares->removeRootShares(Object(OC\Repair))
#28 /var/www/html/owncloud/lib/private/Repair.php(88): OC\Repair\RemoveRootShares->run(Object(OC\Repair))
#29 /var/www/html/owncloud/lib/private/Updater.php(267): OC\Repair->run()
#30 /var/www/html/owncloud/lib/private/Updater.php(150): OC\Updater->doUpgrade('9.1.1.3', '9.0.3.2')
#31 /var/www/html/owncloud/core/Command/Upgrade.php(290): OC\Updater->upgrade()
#32 /var/www/html/owncloud/3rdparty/symfony/console/Command/Command.php(259): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#34 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /var/www/html/owncloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /var/www/html/owncloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /var/www/html/owncloud/console.php(94): OC\Console\Application->run()
#38 /var/www/html/owncloud/occ(11): require_once('/var/www/html/o...')
#39 {main}

Still present in 9.1.2-1.1

Got the same issue here while trying to upgrade from 9.0.7 to 9.1.3.

@PVince81 What information do we need here?

00006823

Here's the upgrade CLI output:

ownCloud 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

2016-12-20T16:47:58+01:00 Set log level to debug
2016-12-20T16:47:58+01:00 Repair step: Repair MySQL database engine
2016-12-20T16:47:58+01:00 Repair info: Not a mysql database -> nothing to do
2016-12-20T16:47:58+01:00 Repair step: Repair MySQL collation
2016-12-20T16:47:58+01:00 Repair info: Not a mysql database -> nothing to no
2016-12-20T16:47:58+01:00 Repair step: Repair SQLite autoincrement
2016-12-20T16:47:58+01:00 Repair step: Repair duplicate entries in oc_lucene_status
2016-12-20T16:47:58+01:00 Repair info: lucene_status table does not exist -> nothing to do
2016-12-20T16:47:58+01:00 Checking whether the database schema can be updated (this can take a long time depending on the database size)
2016-12-20T16:47:58+01:00  Checking table oc_appconfig
2016-12-20T16:47:59+01:00  Checking table oc_storages
2016-12-20T16:48:00+01:00  Checking table oc_mounts
2016-12-20T16:48:01+01:00  Checking table oc_mimetypes
2016-12-20T16:48:02+01:00  Checking table oc_filecache
2016-12-20T16:49:51+01:00  Checking table oc_group_user
2016-12-20T16:49:51+01:00  Checking table oc_group_admin
2016-12-20T16:49:52+01:00  Checking table oc_groups
2016-12-20T16:49:53+01:00  Checking table oc_preferences
2016-12-20T16:49:56+01:00  Checking table oc_properties
2016-12-20T16:50:02+01:00  Checking table oc_share
2016-12-20T16:50:04+01:00  Checking table oc_jobs
2016-12-20T16:50:05+01:00  Checking table oc_users
2016-12-20T16:50:05+01:00  Checking table oc_authtoken
2016-12-20T16:50:05+01:00  Checking table oc_vcategory
2016-12-20T16:50:06+01:00  Checking table oc_vcategory_to_object
2016-12-20T16:50:07+01:00  Checking table oc_systemtag
2016-12-20T16:50:08+01:00  Checking table oc_systemtag_object_mapping
2016-12-20T16:50:09+01:00  Checking table oc_systemtag_group
2016-12-20T16:50:09+01:00  Checking table oc_privatedata
2016-12-20T16:50:10+01:00  Checking table oc_file_locks
2016-12-20T16:50:11+01:00  Checking table oc_comments
2016-12-20T16:50:12+01:00  Checking table oc_comments_read_markers
2016-12-20T16:50:12+01:00  Checking table oc_credentials
2016-12-20T16:50:13+01:00 Checked database schema update
2016-12-20T16:50:13+01:00 Checking updates of apps
2016-12-20T16:50:13+01:00 Checking whether the database schema for <activity> can be updated (this can take a long time depending on the database size)
2016-12-20T16:50:13+01:00  Checking table oc_activity
2016-12-20T16:55:29+01:00  Checking table oc_activity_mq
2016-12-20T16:55:30+01:00 Checking whether the database schema for <dav> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:30+01:00  Checking table oc_addressbooks
2016-12-20T16:55:31+01:00  Checking table oc_cards
2016-12-20T16:55:32+01:00  Checking table oc_addressbookchanges
2016-12-20T16:55:33+01:00  Checking table oc_calendarobjects
2016-12-20T16:55:34+01:00  Checking table oc_calendars
2016-12-20T16:55:35+01:00  Checking table oc_calendarchanges
2016-12-20T16:55:36+01:00  Checking table oc_calendarsubscriptions
2016-12-20T16:55:37+01:00  Checking table oc_schedulingobjects
2016-12-20T16:55:38+01:00  Checking table oc_cards_properties
2016-12-20T16:55:41+01:00  Checking table oc_dav_shares
2016-12-20T16:55:42+01:00 Checking whether the database schema for <federatedfilesharing> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:42+01:00  Checking table oc_federated_reshares
2016-12-20T16:55:42+01:00 Checking whether the database schema for <federation> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:42+01:00  Checking table oc_trusted_servers
2016-12-20T16:55:43+01:00 Checking whether the database schema for <files_sharing> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:43+01:00  Checking table oc_share_external
2016-12-20T16:55:44+01:00 Checking whether the database schema for <files_trashbin> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:44+01:00  Checking table oc_files_trash
2016-12-20T16:55:49+01:00 Checking whether the database schema for <notifications> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:49+01:00  Checking table oc_notifications
2016-12-20T16:55:49+01:00 Checking whether the database schema for <user_ldap> can be updated (this can take a long time depending on the database size)
2016-12-20T16:55:49+01:00  Checking table oc_ldap_user_mapping
2016-12-20T16:55:51+01:00  Checking table oc_ldap_group_mapping
2016-12-20T16:55:52+01:00  Checking table oc_ldap_group_members
2016-12-20T16:55:53+01:00 Checked database schema update for apps
2016-12-20T16:55:53+01:00 Updating database schema
2016-12-20T16:55:54+01:00 Updated database
2016-12-20T16:55:54+01:00 Updating <federatedfilesharing> ...
2016-12-20T16:55:55+01:00 Updated <federatedfilesharing> to 0.3.0
2016-12-20T16:55:55+01:00 Updating <gallery> ...
2016-12-20T16:55:55+01:00 Updated <gallery> to 15.0.0
2016-12-20T16:55:55+01:00 Updating <provisioning_api> ...
2016-12-20T16:55:55+01:00 Updated <provisioning_api> to 0.5.0
2016-12-20T16:55:55+01:00 Updating <updatenotification> ...
2016-12-20T16:55:55+01:00 Updated <updatenotification> to 0.2.1
2016-12-20T16:55:55+01:00 Updating <federation> ...
2016-12-20T16:55:55+01:00 Updated <federation> to 0.1.0
2016-12-20T16:55:55+01:00 Updating <user_ldap> ...
2016-12-20T16:55:56+01:00 Updated <user_ldap> to 0.9.0
2016-12-20T16:55:56+01:00 Updating <files> ...
2016-12-20T16:55:56+01:00 Updated <files> to 1.5.1
2016-12-20T16:55:56+01:00 Updating <activity> ...
2016-12-20T16:56:57+01:00 Updated <activity> to 2.3.2
2016-12-20T16:56:57+01:00 Updating <dav> ...
2016-12-20T16:56:59+01:00 Repair step: Fix classification for calendar objects
2016-12-20T16:56:59+01:00 Fix classification for calendar objects
2016-12-20T16:56:59+01:00 2016-12-20T16:56:59+01:00  Done                                      
    0/0 [>-]   0%2016-12-20T16:56:59+01:00 
2016-12-20T16:56:59+01:00 Repair step: Fix component of birthday calendars
2016-12-20T16:57:00+01:00 Repair info: 18312 birthday calendars updated.
2016-12-20T16:57:00+01:00 Updated <dav> to 0.2.7
2016-12-20T16:57:00+01:00 Updating <files_sharing> ...
2016-12-20T16:57:01+01:00 Updated <files_sharing> to 0.10.0
2016-12-20T16:57:01+01:00 Updating <files_trashbin> ...
2016-12-20T16:57:01+01:00 Updated <files_trashbin> to 0.9.0
2016-12-20T16:57:01+01:00 Updating <files_versions> ...
2016-12-20T16:57:01+01:00 Updated <files_versions> to 1.3.0
2016-12-20T16:57:01+01:00 Updating <firewall> ...
2016-12-20T16:57:01+01:00 Updated <firewall> to 2.4.0
2016-12-20T16:57:01+01:00 Updating <comments> ...
2016-12-20T16:57:01+01:00 Updated <comments> to 0.3.0
2016-12-20T16:57:01+01:00 Updating <notifications> ...
2016-12-20T16:57:02+01:00 Updated <notifications> to 0.3.0
2016-12-20T16:57:02+01:00 Repair step: Repair mime types
2016-12-20T16:57:02+01:00 Repair step: Repair legacy storages
2016-12-20T16:57:02+01:00 Repair step: Clear asset cache after upgrade
2016-12-20T16:57:02+01:00 Repair info: Asset pipeline disabled -> nothing to do
2016-12-20T16:57:02+01:00 Repair step: Generate ETags for file where no ETag is present.
2016-12-20T16:57:04+01:00 Repair info: ETags have been fixed for 0 files/folders.
2016-12-20T16:57:04+01:00 Repair step: Clean tags and favorites
PHP Fatal error:  Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /srv/www/htdocs/owncloud/apps/files_sharing/lib/AppInfo/Application.php on line 83

Autoloader expert required @DeepDiver1975 @PhilippSchaffrath @butonic

@SergioBertolinSG can you help reproducing this ? Maybe try on CentOS...

@michaelstingl a full issue report would be useful, especially the parts about how to reproduce it and what distro... If there are common aspects between the reports then it can provide clues how to reproduce it. For example if all report that the issue is on CentOS with distro packages, then it's likely related to that...

It's openSUSE here. No packages. I've used the oC Enterprise tar from customer.owncloud.com.

openSUSE Tumbleweed here, my steps:

  1. Extract enterprise-complete tarball 9.0.7 and move it to /srv/www/htdocs/owncloud-enterprise (I have Apache already configured for that path as per the docs)
  2. chown -R wwwrun:www owncloud-enterprise
  3. Setup OC (I used a MariaDB DB)
  4. Login as admin and see that the instance works
  5. mv owncloud-enterprise owncloud-enterprise.old
  6. Extract the enterprise-complete tarball 9.1.3 and move it to /srv/www/htdocs/owncloud-enterprise
  7. chown -R wwwrun:www owncloud-enterprise
  8. Copy over the old config and data: cd owncloud-enterprise; rm -Rf config data; cp -Ra ../owncloud-enterprise.old/{config,data} .
  9. occ upgrade --skip-migration-test
  10. Login as admin and see that the instance works

Works for me.

php5-5.6.28-1.1.x86_64
apache2-2.4.23-3.2.x86_64

Hello, upgrades 9.0.7->9.1.3 using centos both tarball and packages worked correctly.

Remove shares of a users root folder
Starting ...
16/1316 [>---------------------------] 1% An unhandled exception has been thrown:
Error: Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/html/owncloud/apps/files_sharing/lib/AppInfo/Application.php:83

2016-12-20T16:57:04+01:00 Repair step: Clean tags and favorites
PHP Fatal error: Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /srv/www/htdocs/owncloud/apps/files_sharing/lib/AppInfo/Application.php on line 83

Perhaps it requires federated shares or tags assigned to a federated shared/recieved file?

So does this mean, that this bug was resolved in 9.1.3 @SergioBertolinSG ? Or does it still persists regarding your attached log?
I wasn't able to try 9.1.3 so far. Next possible try for me would be on friday as I can only upgrade the production system and revert it if it is not working.

@stephan-l No, sorry didn't mean that. Those logs are from your failure and the other one.

I couldn't reproduce with a basic installation, so I guess it requires to have federated shares (shared or received) before upgrade.

I have recently tried what happens if I delete my whole LDAP config before upgrading to 9.1.3. Without that it worked for me too. So the problem clearly belongs to the database entries I think. Maybe users, shares or federated shares. I have several thousands of them in my production system.

The CLI output says the following:

2016-12-21T14:22:11+01:00 Repair step: Clean tags and favorites
2016-12-21T14:22:11+01:00 Repair info: 129 tags of deleted users have been removed.
2016-12-21T14:22:11+01:00 Repair info: 0 tags for delete files have been removed.
2016-12-21T14:22:11+01:00 Repair info: 231 tag entries for deleted tags have been removed.
2016-12-21T14:22:11+01:00 Repair info: 0 tags with no entries have been removed.
2016-12-21T14:22:11+01:00 Repair step: Drop old database tables

The step where the crash happens without deleting LDAP config seems to be this one: "repair info: 129 tags of deleted users have been removed." Could this be another remnant bug?

Ok, gave 9.1.3 another try with an older (9.0.6) database backup and 4Gigs of RAM for the PHP process. It tooks 16 hours but works. Not sure but maybe my database was corrupted in 9.0.7.

Trying to reproduce the one time working upgrade with no luck. (from 8.2.9 over) 9.0.7 to 9.1.3 with live DB is stuck again.

9.0.6 to 9.1.3 is broken too. Here are the last two SQL queries before the Class 'OCA\FederatedFileSharing\DiscoveryManager' not found error occurs:

2017-01-26 11:36:07 CET LOG:  Ausf眉hren <unnamed>: SELECT s.*, f."fileid", f."path", st."id" AS "storage_string_id" FROM "oc_share" s LEFT JOIN "oc_filecache" f ON s."file_source" = f."fileid" LEFT JOIN "oc_storages" st ON f."storage" = st."numeric_id" WHERE ("share_type" = $1) AND ("share_with" IN ($2)) AND (("item_type" = $3) OR ("item_type" = $4)) ORDER BY s."id" ASC OFFSET 0
2017-01-26 11:36:07 CET DETAIL:  Parameter: $1 = '1', $2 = 'Jeder (LDAP)', $3 = 'file', $4 = 'folder'
2017-01-26 11:36:07 CET LOG:  Ausf眉hren <unnamed>: 
                    SELECT "remote", "share_token", "password", "mountpoint", "owner"
                    FROM "oc_share_external"
                    WHERE "user" = $1 AND "accepted" = $2

2017-01-26 11:36:07 CET DETAIL:  Parameter: $1 = 'mmusterm', $2 = '1'

After a bit longer search I've found a (workaround) solution: The problem obviously belongs to the CamelCase naming of the PHP code files in 9.1.x. If you rename the 'apps/federatedfilesharing/lib/DiscoveryManager.php' to 'discoverymanager.php' in lowercases like in 9.0.x the update will run thru without any errors. I was able to reproduce this behavior for multiple times. So it works now. But the question is: What's the reason for this?

That might be an important clue you found.

In 9.1 the autoloader logic was reworked to use properly camel cased classes which also brings a performance boost. All classes that could not be renamed were moved into a "legacy" subfolder were the old less-efficient autoloader.

Maybe on your setup the old autoloader was still cached by PHP (APCu?) and it was trying to load the new classes with the old autoloader code. But some reporter said that clearing this cache did not help, so not sure.

@DeepDiver1975 @VicDeo @jvillafanez any idea ?

A caching problem would make sense. APCu is used but does this matter for the CLI mode? If that is the root of the problem the updater should clear all caches before starting to work I think...

I'm not sure if it's able to. There was a very old discussion about issues with clearing the cache https://github.com/owncloud/core/pull/18475 but I'm not sure they are relevant here.

@VicDeo would it be possible to occ upgrade to clear the APCu cache, if that even makes sense ?

One problem I see is that the code that clears the cache already needs to be loaded, so at least that specific code path needs to always work even with non-cleared cache.

I always did it via occ on command line. APCu is disabled on command line as far as I know.
As I wrote earlier it also fails after a reboot of the machine which should clear all caches.

If it's not APCu, then maybe the autoload*.php classes are still the ones from the old instance and somehow didn't get replaced by the new ones when you updated the code.

If it's not APCu, then maybe the autoload*.php classes are still the ones from the old instance and somehow didn't get replaced by the new ones when you updated the code.

I'm using complete oC enterprise tarballs only. Kind of sure that there can't be any code mixing with old versions.

@kiu-ball What's php version is active on your openSUSE?

php 5.6.9

Following kiu-ball idea I tried linking discoverymanager.php -> DiscoveryManager.php but it failed again:
[...]
Fix permissions so avatars can be stored again
Done
2/2 [============================] 100%
Remove shares of a users root folder
Starting ...
1/1292 [>---------------------------] 0% InvalidArgumentException: $absolutePath must be relative to "files"
Update failed
Maintenance mode is kept active
Reset log level

Same Here,
OS Debian: 8.7
php5: 5.6.29+dfsg-0+deb8u1
Repository: http://download.owncloud.org/download/repositories/9.1/Debian_8.0/

Upgrade via repository with success: 8.1->8.2 the 8.2>9.0 (update package then occ upgrade)
Failed with 9.0->9.1 using same method result in:

PHP Fatal error: Class 'OCAFederatedFileSharingDiscoveryManager' not found in /srv/www/htdocs/owncloud/apps/files_sharing/lib/AppInfo/Application.php on line 83

Rename DiscoveryManager.php to discoverymanager.php doesn't help (from owncloud.log):

Exception":"OCP\\AutoloadNotAllowedException","Message":"Autoload path not allowed: \/var\/www\/owncloud\/apps\/federatedfilesharing\/lib\/discoverymanager.php

The $absolutePath must be relative to "files" is due an Bug in /lib/private/Files/View.php getPathRelativeToFiles($absolutePath)
There you'll find
throw new InvalidArgumentException('$absolutePath must be relative to "files"');
fix:
throw new InvalidArgumentException($absolutePath . 'must be relative to "files"');

But only reveals that there are some broken locks. Cleaning the oc_file_locks from orphaned locks helped for me.

Still getting the DiscoveryManager exception.
So I linked discoverymanager.php -> DiscoveryManager.php and patched the sources to ignore the "Autoload path not allowed":
Just make the path valid in ./lib/autoloader.php by adding return true; before the exception in isValidPath($fullPath).

Not the most elegant way but it let us upgrade our test systems. After upgrading you can revert the patch and the link.

@IljaN @phisch do you guys maybe have an idea ? see https://github.com/owncloud/core/issues/26297#issuecomment-276384679

I guess it should be reproducible if there is a ldap user with a federated share.

@adri-M is it still reproducible on your system?

I have many ldap users with federated share.
I'll try ASAP

I had exactly the same problem while uprading from the latest 9.0 to 9.1.4

What helped was

sudo -u www-data php occ maintenance:repair

Then the upgrade run successfully.

@abuzze Thanks for the recipe. Could you please make it a bit detailed?
When you came across Fatal error: Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /srv/www/htdocs/owncloud/apps/files_sharing/lib/AppInfo/Application.php on line 83
did you just execute sudo -u www-data php occ maintenance:repair or took more actions to complete the upgrade?

this error is still present. yum update from 9.1.4 to 9.1.5
Running sudo -u apache php occ maintenance:repair before upgrading via yum update allows the upgrade from 9.1.4 to 9.1.5 to complete without errors. However, users are then met with "Access denied" and "CSRF" errors when they try to login.

@PVince81 Changing the milestone to 9.1.6.

However, users are then met with "Access denied" and "CSRF" errors when they try to login.

@happiness-now Did you clear your browser cache, did you you check the URL shown is the login page that finish with /index.php/login ? and not an old URL

@cdamken yes and yes

Here are the steps I just tested.

  1. performed sudo -u apache php occ maintenace:repair before doing yum update.
  2. ran sudo -u apache php occ upgrade after yum update finished.
  3. rebooted centos
  4. cleared cache on google chrome (latest version)
  5. logged into cloud albeit slow and it worked.
  6. shared a file with my non cloud email address.
  7. logged out of cloud and then tried to relog back into account
  8. could not log back into cloud using same account from 5 above and browser displayed access denied, CSRF errors.
  9. clearing browser cache would not allow same user from 5 to log back into cloud.

Again, our cloud instance has been entirely package managed via yum. Thanks!

I'm not a PHP developer, but it seems to me that the following code in lib/autoloader.php would explain why renaming DiscoveryManager.php to a lowercased discoverymanager.php allows the class to be loaded and the upgrade to complete.

https://github.com/owncloud/core/blob/master/lib/autoloader.php#L113

My best guess right now is that in most code paths, the \\OCA\FederatedFileSharing\DiscoveryManager class is already loaded by the time \\OCA\Files_Sharing\AppInfo is run, except for some cases during upgrade and because the autoloader only looks for the lowercased class name with a .php extension it fails to do the on-demand load.

Just ran into this when upgrading from 9.1.4 to 10.0.1 on my private instance which runs debian wheezy, installed from tarballs, no ldap ... I copied the DiscoveryManager.php to discoverymanager.php and added the hack to always return true in ./lib/autoloader.php isValidPath(). Lets me finish the upgrade.

cc @phisch for another reason to unify our class loading.

some more details:


first upgrade request owncloud.log

{"reqId":"M1hTrWdwnbAxCg1DMX6N","level":0,"time":"2017-05-23T21:06:50+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade fr
om 9.1.4.2 to 10.0.1.5"}
{"reqId":"M1hTrWdwnbAxCg1DMX6N","level":3,"time":"2017-05-23T21:07:00+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Excep
tion\":\"OC\\\\RepairException\",\"Message\":\"Upgrade is not possible\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair.
php(88): OC\\\\Repair\\\\Apps->run(Object(OC\\\\Repair))\\n#1 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Updater.php(221): OC\\\\Repair->run()\\n#2 \
\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Updater.php(108): OC\\\\Updater->doUpgrade('10.0.1.5', '9.1.4.2')\\n#3 \\\/var\\\/www\\\/owncloud\\\/ownclo
ud-10.0.1\\\/core\\\/Command\\\/Upgrade.php(249): OC\\\\Updater->upgrade()\\n#4 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Com
mand\\\/Command.php(262): OC\\\\Core\\\\Command\\\\Upgrade->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\
Output\\\\ConsoleOutput))\\n#5 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(826): Symfony\\\\Component\\\\Consol
e\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#6 \\\/var\
\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(189): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(O
C\\\\Core\\\\Command\\\\Upgrade), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#7 \\\
/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(120): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Sym
fony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#8 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\
\/lib\\\/private\\\/Console\\\/Application.php(160): Symfony\\\\Component\\\\Console\\\\Application->run(NULL, NULL)\\n#9 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/co
nsole.php(99): OC\\\\Console\\\\Application->run()\\n#10 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#11 {main}\"
,\"File\":\"\\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair\\\/Apps.php\",\"Line\":178}"}

oc wanted me to disable a few apps. easy thing. then the problem appears


second upgrade request owncloud.log

{"reqId":"Uh4ilbWTjSHlnqUX2266","level":0,"time":"2017-05-23T21:09:24+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade fr
om 9.1.4.2 to 10.0.1.5"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":1,"time":"2017-05-23T21:09:27+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Insert new users ..
."}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"Class 'OCA\\Federate
dFileSharing\\DiscoveryManager' not found at \/var\/www\/owncloud\/owncloud-10.0.1\/apps\/files_sharing\/lib\/AppInfo\/Application.php#84"}

apply first workaround: copy DiscoveryManager.php to discoverymanager.php


third upgrade request owncloud.log

{"reqId":"IBaoRnGoTunm3yXOIbkP","level":0,"time":"2017-05-23T21:13:33+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade fr
om 9.1.4.2 to 10.0.1.5"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"Except
ion: {\"Exception\":\"OCP\\\\AutoloadNotAllowedException\",\"Message\":\"Autoload path not allowed: \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/federatedfilesha
ring\\\/lib\\\/discoverymanager.php\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/autoloader.php(157): OC\\\\Autoloader->isValidPath('\
\\/var\\\/www\\\/ownclo...')\\n#1 [internal function]: OC\\\\Autoloader->load('OCA\\\\\\\\FederatedFi...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/file
s_sharing\\\/lib\\\/AppInfo\\\/Application.php(84): spl_autoload_call('OCA\\\\\\\\FederatedFi...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/p
imple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OCA\\\\Files_Sharing\\\\AppInfo\\\\Application->OCA\\\\Files_Sharing\\\\AppInfo\\\\{closure}(Object(OC\\\\AppFramewor
k\\\\DependencyInjection\\\\DIContainer))\\n#4 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(111): Pimple
\\\\Container->offsetGet('ExternalManager')\\n#5 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\/lib\\\/AppInfo\\\/Application.php(130): OC\\\\AppF
ramework\\\\Utility\\\\SimpleContainer->query('ExternalManager')\\n#6 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\/lib\\\/External\\\/MountProvi
der.php(53): OCA\\\\Files_Sharing\\\\AppInfo\\\\Application->OCA\\\\Files_Sharing\\\\AppInfo\\\\{closure}()\\n#7 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/fil
es_sharing\\\/lib\\\/External\\\/MountProvider.php(72): OCA\\\\Files_Sharing\\\\External\\\\MountProvider->getMount(Object(OC\\\\User\\\\User), Array, Object(OC\\\\Files\\\\
Storage\\\\StorageFactory))\\n#8 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Config\\\/MountProviderCollection.php(77): OCA\\\\Files_Sharing\
\\\External\\\\MountProvider->getMountsForUser(Object(OC\\\\User\\\\User), Object(OC\\\\Files\\\\Storage\\\\StorageFactory))\\n#9 [internal function]: OC\\\\Files\\\\Config\
\\\MountProviderCollection->OC\\\\Files\\\\Config\\\\{closure}(Object(OCA\\\\Files_Sharing\\\\External\\\\MountProvider))\\n#10 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1
\\\/lib\\\/private\\\/Files\\\/Config\\\/MountProviderCollection.php(78): array_map(Object(Closure), Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/pri
vate\\\/Files\\\/Filesystem.php(445): OC\\\\Files\\\\Config\\\\MountProviderCollection->getMountsForUser(Object(OC\\\\User\\\\User))\\n#12 \\\/var\\\/www\\\/owncloud\\\/ownc
loud-10.0.1\\\/apps\\\/files_sharing\\\/lib\\\/SharedStorage.php(102): OC\\\\Files\\\\Filesystem::initMountPoints('abc')\\n#13 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\
\\/apps\\\/files_sharing\\\/lib\\\/SharedStorage.php(455): OCA\\\\Files_Sharing\\\\SharedStorage->init()\\n#14 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/privat
e\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(490): OCA\\\\Files_Sharing\\\\SharedStorage->getWrapperStorage()\\n#15 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\
\\/files_sharing\\\/lib\\\/SharedStorage.php(129): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->instanceOfStorage('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...')\\n#16 \\\/var\\
\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/legacy\\\/util.php(158): OCA\\\\Files_Sharing\\\\SharedStorage->instanceOfStorage('\\\\\\\\OC\\\\\\\\Files\\\\\\\\S
tora...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Storage\\\/StorageFactory.php(100): OC_Util::{closure}('\\\/usera\\\/files\\\/Sh.
..', Object(OCA\\\\Files_Sharing\\\\SharedStorage), Object(OCA\\\\Files_Sharing\\\\SharedMount))\\n#18 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Fil
es\\\/Storage\\\/StorageFactory.php(82): OC\\\\Files\\\\Storage\\\\StorageFactory->wrap(Object(OCA\\\\Files_Sharing\\\\SharedMount), Object(OCA\\\\Files_Sharing\\\\SharedSto
rage))\\n#19 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Mount\\\/MountPoint.php(138): OC\\\\Files\\\\Storage\\\\StorageFactory->getInstance(
Object(OCA\\\\Files_Sharing\\\\SharedMount), '\\\\\\\\OCA\\\\\\\\Files_Shar...', Array)\\n#20 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Mou
nt\\\/MountPoint.php(161): OC\\\\Files\\\\Mount\\\\MountPoint->createStorage()\\n#21 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/View.php(136
2): OC\\\\Files\\\\Mount\\\\MountPoint->getStorage()\\n#22 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php(182): OC\\\\Files\\\\
View->getFileInfo('\\\/usera')\\n#23 [internal function]: OC\\\\Files\\\\Node\\\\Root->get('\\\/usera')\\n#24 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private
\\\/Files\\\/Node\\\/LazyRoot.php(66): call_user_func_array(Array, Array)\\n#25 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.
php(143): OC\\\\Files\\\\Node\\\\LazyRoot->__call('get', Array)\\n#26 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair\\\/MoveAvatarOutsideHome.php(
111): OC\\\\Files\\\\Node\\\\LazyRoot->get('\\\/usera')\\n#27 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair\\\/MoveAvatarOutsideHome.php(135): OC
\\\\Repair\\\\MoveAvatarOutsideHome->moveAvatars(Object(OC\\\\Repair), Object(OC\\\\User\\\\User))\\n#28 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/U
ser\\\/Manager.php(378): OC\\\\Repair\\\\MoveAvatarOutsideHome->OC\\\\Repair\\\\{closure}(Object(OC\\\\User\\\\User))\\n#29 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/
lib\\\/private\\\/User\\\/AccountMapper.php(220): OC\\\\User\\\\Manager->OC\\\\User\\\\{closure}(Object(OC\\\\User\\\\Account))\\n#30 \\\/var\\\/www\\\/owncloud\\\/owncloud-
10.0.1\\\/lib\\\/private\\\/User\\\/Manager.php(379): OC\\\\User\\\\AccountMapper->callForAllUsers(Object(Closure), '', true)\\n#31 \\\/var\\\/www\\\/owncloud\\\/owncloud-10
.0.1\\\/lib\\\/private\\\/User\\\/Manager.php(397): OC\\\\User\\\\Manager->callForAllUsers(Object(Closure), '', true)\\n#32 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/
lib\\\/private\\\/Repair\\\/MoveAvatarOutsideHome.php(141): OC\\\\User\\\\Manager->callForSeenUsers(Object(Closure))\\n#33 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/l
ib\\\/private\\\/Repair.php(88): OC\\\\Repair\\\\MoveAvatarOutsideHome->run(Object(OC\\\\Repair))\\n#34 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Up
dater.php(250): OC\\\\Repair->run()\\n#35 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Updater.php(108): OC\\\\Updater->doUpgrade('10.0.1.5', '9.1.4.2'
)\\n#36 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/core\\\/Command\\\/Upgrade.php(249): OC\\\\Updater->upgrade()\\n#37 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\
/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(262): OC\\\\Core\\\\Command\\\\Upgrade->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput
), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#38 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Applic
ation.php(826): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Cons
ole\\\\Output\\\\ConsoleOutput))\\n#39 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(189): Symfony\\\\Component\\
\\Console\\\\Application->doRunCommand(Object(OC\\\\Core\\\\Command\\\\Upgrade), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\
\\Console\\\\Output\\\\ConsoleOutput))\\n#40 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(120): Symfony\\\\Compo
nent\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#4
1 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Console\\\/Application.php(160): Symfony\\\\Component\\\\Console\\\\Application->run(NULL, NULL)\\n#42 \
\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/console.php(99): OC\\\\Console\\\\Application->run()\\n#43 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/occ(11): require_
once('\\\/var\\\/www\\\/ownclo...')\\n#44 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/autoloader.php\",\"Line\":133}"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"IBaoRnGoTunm3yXOIbkP","level":3,"time":"2017-05-23T21:13:34+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Excep
tion\":\"OCP\\\\AutoloadNotAllowedException\",\"Message\":\"Autoload path not allowed: \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/federatedfilesharing\\\/lib\\
\/discoverymanager.php\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/autoloader.php(157): OC\\\\Autoloader->isValidPath('\\\/var\\\/www
\\\/ownclo...')\\n#1 [internal function]: OC\\\\Autoloader->load('OCA\\\\\\\\FederatedFi...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\/
lib\\\/AppInfo\\\/Application.php(84): spl_autoload_call('OCA\\\\\\\\FederatedFi...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/pimple\\\/pimp
le\\\/src\\\/Pimple\\\/Container.php(113): OCA\\\\Files_Sharing\\\\AppInfo\\\\Application->OCA\\\\Files_Sharing\\\\AppInfo\\\\{closure}(Object(OC\\\\AppFramework\\\\Dependen
cyInjection\\\\DIContainer))\\n#4 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(111): Pimple\\\\Container
->offsetGet('ExternalManager')\\n#5 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\/lib\\\/AppInfo\\\/Application.php(130): OC\\\\AppFramework\\\\U
tility\\\\SimpleContainer->query('ExternalManager')\\n#6 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\/lib\\\/External\\\/MountProvider.php(53):
OCA\\\\Files_Sharing\\\\AppInfo\\\\Application->OCA\\\\Files_Sharing\\\\AppInfo\\\\{closure}()\\n#7 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/apps\\\/files_sharing\\\
/lib\\\/External\\\/MountProvider.php(72): OCA\\\\Files_Sharing\\\\External\\\\MountProvider->getMount(Object(OC\\\\User\\\\User), Array, Object(OC\\\\Files\\\\Storage\\\\St
orageFactory))\\n#8 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files\\\/Config\\\/MountProviderCollection.php(77): OCA\\\\Files_Sharing\\\\External\\
\\MountProvider->getMountsForUser(Object(OC\\\\User\\\\User), Object(OC\\\\Files\\\\Storage\\\\StorageFactory))\\n#9 [internal function]: OC\\\\Files\\\\Config\\\\MountProvi
derCollection->OC\\\\Files\\\\Config\\\\{closure}(Object(OCA\\\\Files_Sharing\\\\External\\\\MountProvider))\\n#10 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/pr
ivate\\\/Files\\\/Config\\\/MountProviderCollection.php(78): array_map(Object(Closure), Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Files
\\\/Filesystem.php(445): OC\\\\Files\\\\Config\\\\MountProviderCollection->getMountsForUser(Object(OC\\\\User\\\\User))\\n#12 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\
\/lib\\\/private\\\/Repair\\\/MoveAvatarOutsideHome.php(107): OC\\\\Files\\\\Filesystem::initMountPoints('abc')\\n#13 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\
/private\\\/Repair\\\/MoveAvatarOutsideHome.php(135): OC\\\\Repair\\\\MoveAvatarOutsideHome->moveAvatars(Object(OC\\\\Repair), Object(OC\\\\User\\\\User))\\n#14 \\\/var\\\/w
ww\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/User\\\/Manager.php(378): OC\\\\Repair\\\\MoveAvatarOutsideHome->OC\\\\Repair\\\\{closure}(Object(OC\\\\User\\\\User))
\\n#15 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/User\\\/AccountMapper.php(220): OC\\\\User\\\\Manager->OC\\\\User\\\\{closure}(Object(OC\\\\User\\\
\Account))\\n#16 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/User\\\/Manager.php(379): OC\\\\User\\\\AccountMapper->callForAllUsers(Object(Closure), '
', true)\\n#17 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/User\\\/Manager.php(397): OC\\\\User\\\\Manager->callForAllUsers(Object(Closure), '', true)
\\n#18 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair\\\/MoveAvatarOutsideHome.php(141): OC\\\\User\\\\Manager->callForSeenUsers(Object(Closure))\
\n#19 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Repair.php(88): OC\\\\Repair\\\\MoveAvatarOutsideHome->run(Object(OC\\\\Repair))\\n#20 \\\/var\\\/ww
w\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Updater.php(250): OC\\\\Repair->run()\\n#21 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Updater.
php(108): OC\\\\Updater->doUpgrade('10.0.1.5', '9.1.4.2')\\n#22 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/core\\\/Command\\\/Upgrade.php(249): OC\\\\Updater->upgrade(
)\\n#23 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(262): OC\\\\Core\\\\Command\\\\Upgrade->execute(Obje
ct(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#24 \\\/var\\\/www\\\/owncloud\\\/owncloud-1
0.0.1\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(826): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\
Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#25 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symfony\\\
/console\\\/Application.php(189): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(OC\\\\Core\\\\Command\\\\Upgrade), Object(Symfony\\\\Component\\\\Conso
le\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#26 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/composer\\\/symf
ony\\\/console\\\/Application.php(120): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\
\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#27 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\/private\\\/Console\\\/Application.php(160): Symfony\\\\Comp
onent\\\\Console\\\\Application->run(NULL, NULL)\\n#28 \\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/console.php(99): OC\\\\Console\\\\Application->run()\\n#29 \\\/var\\\
/www\\\/owncloud\\\/owncloud-10.0.1\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#30 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/owncloud-10.0.1\\\/lib\\\
/autoloader.php\",\"Line\":133}"}

apply second workaround: always return true in ./lib/autoloader.php isValidPath()


fourth and successful upgrade request owncloud.log

{"reqId":"iewNu9RvXb4sjUVgFJjE","level":0,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade fr
om 9.1.4.2 to 10.0.1.5"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:42+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"iewNu9RvXb4sjUVgFJjE","level":3,"time":"2017-05-23T21:14:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second
 argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}


the first web request after the upgrade fails owncloud.log

{"reqId":"ZWpOCJbtLTBpVIHoMuAi","level":3,"time":"2017-05-23T21:18:39+00:00","remoteAddr":"77.20.215.145","user":"--","app":"PHP","method":"GET","url":"\/","message":"Call t
o undefined method OCA\\Federation\\AppInfo\\Application::registerOCSApi() at \/var\/www\/owncloud\/owncloud-9.1.4\/apps\/federation\/appinfo\/routes.php#47"}

Here is where I start noticing that there are mixed paths in the log: owncloud-10.0.1 as well as owncloud-9.1.4 ... In a stupid attempt of optimizing my php setup I once disabled opcache.validate_timestamps. double checking revealed that it has been reenabled. I assume by a php update ... whatever.


same for a notification request triggered by the sync client, owncloud.log

{"reqId":"FS1XkCfTj8qonuJcaZHi","level":3,"time":"2017-05-23T21:18:41+00:00","remoteAddr":"77.20.215.145","user":"abc","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\
/notifications\/api\/v1\/notifications?format=json","message":"Call to undefined method OCA\\Federation\\AppInfo\\Application::registerOCSApi() at \/var\/www\/owncloud\/ownc
loud-9.1.4\/apps\/federation\/appinfo\/routes.php#47"}


there seems to be a problem when trying to load twofactor_totp

{"reqId":"Ai3WJRSAzb0GhgKDLSUP","level":3,"time":"2017-05-23T21:18:57+00:00","remoteAddr":"77.20.215.145","user":"abc","app":"PHP","method":"GET","url":"\/ocs\/v1.php\/cloud
\/capabilities?format=json","message":"include_once(\/var\/www\/owncloud\/apps-repos\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php): failed to open stream: No such file
 or directory at \/var\/www\/owncloud\/apps-repos\/twofactor_totp\/appinfo\/app.php#24"}
{"reqId":"Ai3WJRSAzb0GhgKDLSUP","level":3,"time":"2017-05-23T21:18:57+00:00","remoteAddr":"77.20.215.145","user":"abc","app":"PHP","method":"GET","url":"\/ocs\/v1.php\/cloud
\/capabilities?format=json","message":"include_once(): Failed opening '\/var\/www\/owncloud\/apps-repos\/twofactor_totp\/appinfo\/..\/vendor\/autoload.php' for inclusion (in
clude_path='\/var\/www\/owncloud\/htdocs\/apps:\/var\/www\/owncloud\/htdocs\/apps-repos') at \/var\/www\/owncloud\/apps-repos\/twofactor_totp\/appinfo\/app.php#24"}
{"reqId":"Ai3WJRSAzb0GhgKDLSUP","level":3,"time":"2017-05-23T21:18:57+00:00","remoteAddr":"77.20.215.145","user":"abc","app":"PHP","method":"GET","url":"\/ocs\/v1.php\/cloud
\/capabilities?format=json","message":"Class 'OCA\\TwoFactor_Totp\\AppInfo\\Application' not found at \/var\/www\/owncloud\/apps-repos\/twofactor_totp\/appinfo\/app.php#26"}


and yes ... the vendors dir doesn't exist:

# ls -l ../apps-disabled/twofactor_totp/
insgesamt 60
drwxr-xr-x 2 www-data www-data  4096 Mai 23 23:06 appinfo
-rw-r--r-- 1 www-data www-data    62 Mai 23 23:06 AUTHORS.md
-rw-r--r-- 1 www-data www-data   245 Mai 23 23:06 CHANGELOG.md
-rw-r--r-- 1 www-data www-data 34519 Mai 23 23:06 COPYING
drwxr-xr-x 2 www-data www-data  4096 Mai 23 23:06 js
drwxr-xr-x 2 www-data www-data  4096 Mai 23 23:06 l10n
-rw-r--r-- 1 www-data www-data  1424 Mai 23 23:06 README.md

As you can se in the path, I moved the app away, this allowed me to login. I didn't do anything else to fix the Call to undefined method OCA\\Federation\\AppInfo\\Application::registerOCSApi() problems. They no longer occur. Probably because I moved away code?


in the apache error log I have an error that was caused by the config being owned by root.

[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: PHP message: PHP Fatal error:  Uncaught exception 'Exception' with
 message 'Could not acquire a shared lock on the config file /var/www/owncloud/owncloud-10.0.1/config/config.php' in /var/www/owncloud/owncloud-10.0.1/lib/private/Config.php
:210
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: Stack trace:
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #0 /var/www/owncloud/owncloud-10.0.1/lib/private/Config.php(63): OC\\Config->readData()
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #1 /var/www/owncloud/owncloud-10.0.1/lib/base.php(134): OC\\Config->__construct('/var/www/ownclo...')
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #2 /var/www/owncloud/owncloud-10.0.1/lib/base.php(517): OC::initPaths()
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #3 /var/www/owncloud/owncloud-10.0.1/lib/base.php(1003): OC::init()
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #4 /var/www/owncloud/owncloud-10.0.1/ocs/v1.php(38): require_once('/var/www/ownclo...')
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #5 /var/www/owncloud/owncloud-9.1.4/ocs/v2.php(22): require_once('/var/www/ownclo...')
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr: #6 {main}
[Tue May 23 23:05:10 2017] [error] [client 77.20.215.145] FastCGI: server "/var/www/php5.external" stderr:   thrown in /var/www/owncloud/owncloud-10.0.1/lib/private/Config.php on line 210

why was #5 /var/www/owncloud/owncloud-9.1.4/ocs/v2.php(22): require_once('/var/www/ownclo...') executed when the rest is 10.0.1?!?


reinstalling twofactor_totp it from the marked this time gives me all files:

# ls -l apps-repos/twofactor_totp/
insgesamt 6000
drwxr-xr-x 2 www-data www-data    4096 Mai 23 23:25 appinfo
-rw-r--r-- 1 www-data www-data      62 Mai 23 23:25 AUTHORS.md
-rw-r--r-- 1 www-data www-data     245 Mai 23 23:25 CHANGELOG.md
-rw-r--r-- 1 www-data www-data   34519 Mai 23 23:25 COPYING
drwxr-xr-x 2 www-data www-data    4096 Mai 23 23:25 js
drwxr-xr-x 2 www-data www-data    4096 Mai 23 23:25 l10n
drwxr-xr-x 9 www-data www-data    4096 Mai 23 23:25 lib
-rw-r--r-- 1 www-data www-data    1424 Mai 23 23:25 README.md
drwxr-xr-x 2 www-data www-data    4096 Mai 23 23:25 templates
-rw-r--r-- 1 www-data www-data 6067843 Mai 23 23:25 twofactor_totp.tar.gz
drwxr-xr-x 5 www-data www-data    4096 Mai 23 23:25 vendor

I don't have the console log for the -vvv occ upgrade, but i said it would download the app from the market.

Something is very fishy in my setup. Why does the code try to look for files in old directories?


I have apache serve oc from a symlinked directory to make changing the version a matter of changing the htdocs symlink:

/var/www/owncloud# ls -l
insgesamt 330444
drwxr-xr-x  6 root     root         4096 Mai 24 08:53 apps-disabled
drwxr-xr-x 21 www-data www-data     4096 Mai 23 23:25 apps-repos
drwxr-xr-x  2 root     root         4096 Jan  7  2014 bin
drwxr-xr--  2 www-data www-data     4096 Jan  4  2016 conf
lrwxrwxrwx  1 root     root           15 Mai 23 23:04 htdocs -> owncloud-10.0.1
-rw-r--r--  1 root     root         1671 Mai 27  2016 issue.sh
drwxr-xr--  2 www-data www-data     4096 Aug  3  2014 log
drwxr-xr-x 13 www-data www-data     4096 Mai 24 08:39 owncloud-10.0.1
-rw-r--r--  1 root     root     29486784 Mai 22 21:57 owncloud-10.0.1.tar.bz2
drwxr-xr-x 11 nobody   nogroup      4096 Jul 26  2015 owncloud-8.0.2
-rw-r--r--  1 root     root     20422855 M盲r  9  2015 owncloud-8.0.2.tar.bz2
drwxr-xr-x 11 nobody   nogroup      4096 Jul 26  2015 owncloud-8.0.5
-rw-r--r--  1 root     root     25635979 Jul  3  2015 owncloud-8.0.5.tar.bz2
drwxr-xr-x 14 www-data www-data     4096 Mai 27  2016 owncloud-8.1.0
-rw-r--r--  1 root     root     26247599 Jul  3  2015 owncloud-8.1.0.tar.bz2
drwxr-xr-x 13 www-data www-data     4096 Apr  5 04:04 owncloud-8.2.0
-rw-r--r--  1 root     root     26072679 Okt 20  2015 owncloud-8.2.0.tar.bz2
drwxr-xr-x 13 nobody   nogroup      4096 Jan  4  2016 owncloud-8.2.2
-rw-r--r--  1 root     root     28922075 Dez 21  2015 owncloud-8.2.2.tar.bz2
drwxr-xr-x 13 www-data www-data     4096 Mai 17  2016 owncloud-8.2.5
-rw-r--r--  1 www-data www-data 28015027 Mai 12  2016 owncloud-8.2.5.tar.bz2
drwxr-xr-x 15 www-data www-data     4096 Jun 24  2016 owncloud-9.0.2
-rw-r--r--  1 root     root     24487988 Mai  3  2016 owncloud-9.0.2.tar.bz2
drwxr-xr-x 14 www-data www-data     4096 Jul  1  2016 owncloud-9.0.3
-rw-r--r--  1 root     root     28517856 Jun 29  2016 owncloud-9.0.3.tar.bz2
drwxr-xr-x 14 www-data www-data     4096 Sep 27  2016 owncloud-9.0.5
-rw-r--r--  1 root     root     28435642 Sep 19  2016 owncloud-9.0.5.tar.bz2
drwxr-xr-x 15 www-data www-data     4096 Okt 28  2016 owncloud-9.1.1
-rw-r--r--  1 root     root     28984910 Sep 19  2016 owncloud-9.1.1.tar.bz2
drwxr-xr-x 14 www-data www-data     4096 Dez 27 22:53 owncloud-9.1.2
-rw-r--r--  1 root     root     29041269 Nov  8  2016 owncloud-9.1.2.tar.bz2
drwxr-xr-x 14 www-data www-data     4096 Mai  6 23:33 owncloud-9.1.4
-rw-r--r--  1 root     root     13882525 Feb  1 19:46 owncloud-9.1.4.tar.bz2
drwxr-xr--  2 www-data www-data     4096 Apr 24  2012 php-fcgi
drwxr-xr--  2 www-data www-data     4096 Mai 17  2016 run
drwxr-xr--  2 www-data www-data    98304 Apr  5 04:04 sessions
drwxr-xr--  3 www-data www-data     4096 Aug 12  2015 tmp

the apps-repos folder is symlinked from every owncloud dir:

ls -l htdocs/
insgesamt 168
drwxrwxrwx 25 www-data www-data  4096 Mai 22 21:54 apps
lrwxrwxrwx  1 root     root        13 Mai 23 23:06 apps-repos -> ../apps-repos
-rw-r--r--  1 www-data www-data  8859 Mai 22 21:51 AUTHORS
drwxrwxrwx  2 www-data www-data  4096 Mai 23 23:32 config
-rw-r--r--  1 www-data www-data  4056 Mai 22 21:51 console.php
-rw-r--r--  1 www-data www-data 34520 Mai 22 21:51 COPYING
drwxr-xr-x 17 www-data www-data  4096 Mai 22 21:55 core
-rw-r--r--  1 www-data www-data  4969 Mai 22 21:51 cron.php
-rw-r--r--  1 www-data www-data 30871 Mai 22 21:51 db_structure.xml
-rw-r--r--  1 www-data www-data   179 Mai 22 21:51 index.html
-rw-r--r--  1 www-data www-data  3257 Mai 22 21:51 index.php
drwxr-xr-x  3 www-data www-data  4096 Mai 22 21:51 l10n
drwxr-xr-x  6 www-data www-data  4096 Mai 23 23:17 lib
-rwxr-xr-x  1 www-data www-data   283 Mai 22 21:51 occ
drwxr-xr-x  2 www-data www-data  4096 Mai 22 21:51 ocs
drwxr-xr-x  2 www-data www-data  4096 Mai 22 21:51 ocs-provider
-rw-r--r--  1 www-data www-data  3197 Mai 22 21:51 public.php
-rw-r--r--  1 www-data www-data  5481 Mai 22 21:51 remote.php
drwxr-xr-x  4 www-data www-data  4096 Mai 22 21:51 resources
drwxr-xr-x 12 www-data www-data  4096 Mai 22 21:51 settings
-rw-r--r--  1 www-data www-data  1757 Mai 22 21:51 status.php
drwxr-xr-x  2 www-data www-data  4096 Mai 22 21:51 themes
drwxr-xr-x  6 www-data www-data  4096 Mai 22 21:51 updater
-rw-r--r--  1 www-data www-data   244 Mai 22 21:55 version.php

for an upgrade i untar the release, rename it to append the version, copy the current config and add a symlink to the apps-repos dir, which is configured as an additional - writeable - apps dir:

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/owncloud/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/owncloud/htdocs/apps-repos',
      'url' => '/apps-repos',
      'writable' => true,
    ),
  ),

I cleaned up the folder a while ago, but yes this instance has been in use since oc4.

Hm ... I'm at a loss, but I know I want oc to:

  • [ ] log all console messages to the oc log as well ... the console I used had a limited history, so I cannot go back to see what it wrote. the precious -vvv output is gone.
  • [ ] fix {"reqId":"Uh4ilbWTjSHlnqUX2266","level":3,"time":"2017-05-23T21:09:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/owncloud-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"} it pollutes the log

Note that I tested the upgrade from 9.1.4 to 10.0.1 on ubuntu without this problem.

as far as I can tell it depends on the user and its data like shares, tags and so on ....

@DeepDiver1975 no, that's not it. just used the db dump from before the upgrade to test the upgrade in my ubuntu vm ... worked fine. I will need to try with the exact same paths and symlinks ... but I doubt that is related.


console output

10.0.1 sudo -u www-data php /var/www/oc/10.0.1/occ upgrade -vvv                                       
ownCloud 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
2017-05-24T08:49:21+00:00 Set log level to debug
2017-05-24T08:49:21+00:00 Repair step: Repair MySQL database engine
2017-05-24T08:49:21+00:00 Repair step: Repair MySQL collation
2017-05-24T08:49:21+00:00 Repair info: All tables already have the correct collation -> nothing to do
2017-05-24T08:49:21+00:00 Repair step: Repair SQLite autoincrement
2017-05-24T08:49:21+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-05-24T08:49:21+00:00 Repair info: lucene_status table does not exist -> nothing to do
2017-05-24T08:49:21+00:00 Repair step: Upgrade app code from the marketplace
2017-05-24T08:49:21+00:00 Repair info: Enabling market app to assist with update
2017-05-24T08:49:21+00:00 Repair info: Using market to update existing apps
2017-05-24T08:49:21+00:00 Repair info: Attempting to update the following existing compatible apps from market: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: activity
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: calendar
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: comments
2017-05-24T08:49:21+00:00 Repair info: App (comments) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: configreport
2017-05-24T08:49:21+00:00 Repair info: App (configreport) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: contacts
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: dav
2017-05-24T08:49:21+00:00 Repair info: App (dav) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: federatedfilesharing
2017-05-24T08:49:21+00:00 Repair info: App (federatedfilesharing) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: federation
2017-05-24T08:49:21+00:00 Repair info: App (federation) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files
2017-05-24T08:49:21+00:00 Repair info: App (files) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_external
2017-05-24T08:49:21+00:00 Repair info: App (files_external) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_pdfviewer
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_sharing
2017-05-24T08:49:21+00:00 Repair info: App (files_sharing) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_texteditor
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_trashbin
2017-05-24T08:49:21+00:00 Repair info: App (files_trashbin) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_versions
2017-05-24T08:49:21+00:00 Repair info: App (files_versions) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: files_videoplayer
2017-05-24T08:49:21+00:00 Repair info: App (files_videoplayer) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: firstrunwizard
2017-05-24T08:49:21+00:00 Repair info: App (firstrunwizard) is not known at the marketplace.
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: gallery
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: guests
2017-05-24T08:49:21+00:00 Repair info: 
2017-05-24T08:49:21+00:00 Repair info: Fetching app from market: market
2017-05-24T08:49:22+00:00 Repair info: App (market) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: notifications
2017-05-24T08:49:22+00:00 Repair info: App (notifications) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: provisioning_api
2017-05-24T08:49:22+00:00 Repair info: App (provisioning_api) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: systemtags
2017-05-24T08:49:22+00:00 Repair info: App (systemtags) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: templateeditor
2017-05-24T08:49:22+00:00 Repair info: App (templateeditor) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: twofactor_totp
2017-05-24T08:49:22+00:00 Repair info: 
2017-05-24T08:49:22+00:00 Repair info: Fetching app from market: updatenotification
2017-05-24T08:49:22+00:00 Repair info: App (updatenotification) is not known at the marketplace.
2017-05-24T08:49:22+00:00 Repair info: App was not updated: activity
2017-05-24T08:49:22+00:00 Repair info: App was not updated: calendar
2017-05-24T08:49:22+00:00 Repair info: App was not updated: comments
2017-05-24T08:49:22+00:00 Repair info: App was not updated: configreport
2017-05-24T08:49:22+00:00 Repair info: App was not updated: contacts
2017-05-24T08:49:22+00:00 Repair info: App was not updated: dav
2017-05-24T08:49:22+00:00 Repair info: App was not updated: federatedfilesharing
2017-05-24T08:49:22+00:00 Repair info: App was not updated: federation
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_external
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_pdfviewer
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_sharing
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_texteditor
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_trashbin
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_versions
2017-05-24T08:49:22+00:00 Repair info: App was not updated: files_videoplayer
2017-05-24T08:49:22+00:00 Repair info: App was not updated: firstrunwizard
2017-05-24T08:49:22+00:00 Repair info: App was not updated: gallery
2017-05-24T08:49:22+00:00 Repair info: App was not updated: guests
2017-05-24T08:49:22+00:00 Repair info: App was not updated: market
2017-05-24T08:49:22+00:00 Repair info: App was not updated: notifications
2017-05-24T08:49:22+00:00 Repair info: App was not updated: provisioning_api
2017-05-24T08:49:22+00:00 Repair info: App was not updated: systemtags
2017-05-24T08:49:22+00:00 Repair info: App was not updated: templateeditor
2017-05-24T08:49:22+00:00 Repair info: App was not updated: twofactor_totp
2017-05-24T08:49:22+00:00 Repair info: App was not updated: updatenotification
2017-05-24T08:49:22+00:00 Updating database schema
2017-05-24T08:49:23+00:00 Updated database
2017-05-24T08:49:23+00:00 Updating <dav> ...
2017-05-24T08:49:24+00:00 Repair step: Fix component of birthday calendars
2017-05-24T08:49:24+00:00 Repair info: 12 birthday calendars updated.
2017-05-24T08:49:24+00:00 Updated <dav> to 0.2.9
2017-05-24T08:49:24+00:00 Updating <files_external> ...
2017-05-24T08:49:24+00:00 Updated <files_external> to 0.7.0
2017-05-24T08:49:24+00:00 Repair step: Repair mime types
2017-05-24T08:49:24+00:00 Repair step: Generate ETags for file where no ETag is present.
2017-05-24T08:49:24+00:00 Repair info: ETags have been fixed for 0 files/folders.
2017-05-24T08:49:24+00:00 Repair step: Clean tags and favorites
2017-05-24T08:49:24+00:00 Repair info: 67 tags of deleted users have been removed.
2017-05-24T08:49:24+00:00 Repair info: 0 tags for delete files have been removed.
2017-05-24T08:49:24+00:00 Repair info: 24 tag entries for deleted tags have been removed.
2017-05-24T08:49:24+00:00 Repair info: 0 tags with no entries have been removed.
2017-05-24T08:49:24+00:00 Repair step: Drop old database tables
2017-05-24T08:49:24+00:00 Drop old database tables
2017-05-24T08:49:24+00:00 
                                                    2017-05-24T08:49:24+00:00  Done
 28/28 [============================] 100%2017-05-24T08:49:24+00:00 
2017-05-24T08:49:24+00:00 Repair step: Drop old background jobs
2017-05-24T08:49:24+00:00 Repair step: Remove getetag entries in properties table
2017-05-24T08:49:24+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2017-05-24T08:49:24+00:00 Repair step: Repair outdated OCS IDs
2017-05-24T08:49:24+00:00 Repair step: Repair invalid shares
2017-05-24T08:49:24+00:00 Repair step: Remove old share propagation app entries
2017-05-24T08:49:24+00:00 Repair step: Fix permissions so avatars can be stored again
2017-05-24T08:49:24+00:00 Fix permissions so avatars can be stored again
                                                    2017-05-24T08:49:24+00:00  Done
 2/2 [============================] 100%2017-05-24T08:49:24+00:00 
2017-05-24T08:49:24+00:00 Repair step: Move user avatars outside the homes to the new location
2017-05-24T08:49:24+00:00 Move user avatars outside the homes to the new location
                                                    2017-05-24T08:49:24+00:00  Done
 1/1 [============================] 100%2017-05-24T08:49:24+00:00 
2017-05-24T08:49:24+00:00 Repair step: Remove shares of a users root folder
2017-05-24T08:49:24+00:00 Repair step: Repair unmerged shares
2017-05-24T08:49:24+00:00 Starting code integrity check...
2017-05-24T08:50:30+00:00 Finished code integrity check
2017-05-24T08:50:30+00:00 Update successful
2017-05-24T08:50:30+00:00 Maintenance mode is kept active
2017-05-24T08:50:30+00:00 Reset log level

I can reproduce:

# sudo -u www-data php /var/www/owncloud/oc9.1-10.0.1/occ upgrade -vvv
ownCloud 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
2017-05-24T10:43:28+00:00 Set log level to debug
2017-05-24T10:43:28+00:00 Repair step: Repair MySQL database engine
2017-05-24T10:43:28+00:00 Repair step: Repair MySQL collation
2017-05-24T10:43:28+00:00 Repair info: All tables already have the correct collation -> nothing to do
2017-05-24T10:43:28+00:00 Repair step: Repair SQLite autoincrement
2017-05-24T10:43:28+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-05-24T10:43:28+00:00 Repair info: lucene_status table does not exist -> nothing to do
2017-05-24T10:43:28+00:00 Repair step: Upgrade app code from the marketplace
2017-05-24T10:43:28+00:00 Repair info: Enabling market app to assist with update
2017-05-24T10:43:28+00:00 Repair info: Using market to update existing apps
2017-05-24T10:43:28+00:00 Repair info: Attempting to update the following existing compatible apps from market: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: activity
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: calendar
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: comments
2017-05-24T10:43:28+00:00 Repair info: App (comments) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: configreport
2017-05-24T10:43:28+00:00 Repair info: App (configreport) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: contacts
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: dav
2017-05-24T10:43:28+00:00 Repair info: App (dav) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: federatedfilesharing
2017-05-24T10:43:28+00:00 Repair info: App (federatedfilesharing) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: federation
2017-05-24T10:43:28+00:00 Repair info: App (federation) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files
2017-05-24T10:43:28+00:00 Repair info: App (files) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_external
2017-05-24T10:43:28+00:00 Repair info: App (files_external) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_pdfviewer
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_sharing
2017-05-24T10:43:28+00:00 Repair info: App (files_sharing) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_texteditor
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_trashbin
2017-05-24T10:43:28+00:00 Repair info: App (files_trashbin) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_versions
2017-05-24T10:43:28+00:00 Repair info: App (files_versions) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: files_videoplayer
2017-05-24T10:43:28+00:00 Repair info: App (files_videoplayer) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: firstrunwizard
2017-05-24T10:43:28+00:00 Repair info: App (firstrunwizard) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: gallery
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: guests
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: logreader
2017-05-24T10:43:28+00:00 Repair info: App (logreader) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: market
2017-05-24T10:43:28+00:00 Repair info: App (market) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: notifications
2017-05-24T10:43:28+00:00 Repair info: App (notifications) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: provisioning_api
2017-05-24T10:43:28+00:00 Repair info: App (provisioning_api) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: systemtags
2017-05-24T10:43:28+00:00 Repair info: App (systemtags) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: templateeditor
2017-05-24T10:43:28+00:00 Repair info: App (templateeditor) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: twofactor_totp
2017-05-24T10:43:28+00:00 Repair info: 
2017-05-24T10:43:28+00:00 Repair info: Fetching app from market: updatenotification
2017-05-24T10:43:28+00:00 Repair info: App (updatenotification) is not known at the marketplace.
2017-05-24T10:43:28+00:00 Repair info: App was not updated: activity
2017-05-24T10:43:28+00:00 Repair info: App was not updated: calendar
2017-05-24T10:43:28+00:00 Repair info: App was not updated: comments
2017-05-24T10:43:28+00:00 Repair info: App was not updated: configreport
2017-05-24T10:43:28+00:00 Repair info: App was not updated: contacts
2017-05-24T10:43:28+00:00 Repair info: App was not updated: dav
2017-05-24T10:43:28+00:00 Repair info: App was not updated: federatedfilesharing
2017-05-24T10:43:28+00:00 Repair info: App was not updated: federation
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_external
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_pdfviewer
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_sharing
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_texteditor
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_trashbin
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_versions
2017-05-24T10:43:28+00:00 Repair info: App was not updated: files_videoplayer
2017-05-24T10:43:28+00:00 Repair info: App was not updated: firstrunwizard
2017-05-24T10:43:28+00:00 Repair info: App was not updated: gallery
2017-05-24T10:43:28+00:00 Repair info: App was not updated: guests
2017-05-24T10:43:28+00:00 Repair info: App was not updated: logreader
2017-05-24T10:43:28+00:00 Repair info: App was not updated: market
2017-05-24T10:43:28+00:00 Repair info: App was not updated: notifications
2017-05-24T10:43:28+00:00 Repair info: App was not updated: provisioning_api
2017-05-24T10:43:28+00:00 Repair info: App was not updated: systemtags
2017-05-24T10:43:28+00:00 Repair info: App was not updated: templateeditor
2017-05-24T10:43:28+00:00 Repair info: App was not updated: twofactor_totp
2017-05-24T10:43:28+00:00 Repair info: App was not updated: updatenotification
2017-05-24T10:43:28+00:00 Updating database schema
2017-05-24T10:43:31+00:00 Updated database
2017-05-24T10:43:31+00:00 Updating <calendar> ...
2017-05-24T10:43:31+00:00 Updated <calendar> to 1.4.2
2017-05-24T10:43:31+00:00 Updating <contacts> ...
2017-05-24T10:43:31+00:00 Updated <contacts> to 1.5.2
2017-05-24T10:43:31+00:00 Updating <files_pdfviewer> ...
2017-05-24T10:43:31+00:00 Updated <files_pdfviewer> to 0.8.2
2017-05-24T10:43:31+00:00 Updating <files_texteditor> ...
2017-05-24T10:43:31+00:00 Updated <files_texteditor> to 2.2
2017-05-24T10:43:31+00:00 Updating <gallery> ...
2017-05-24T10:43:31+00:00 Updated <gallery> to 16.0.2
2017-05-24T10:43:31+00:00 Updating <twofactor_totp> ...
2017-05-24T10:43:31+00:00 Updated <twofactor_totp> to 0.4.3
2017-05-24T10:43:31+00:00 Updating <guests> ...
2017-05-24T10:43:31+00:00 Updated <guests> to 0.4.1
2017-05-24T10:43:31+00:00 Updating <activity> ...
2017-05-24T10:43:33+00:00 Updated <activity> to 2.3.4
2017-05-24T10:43:33+00:00 Updating <dav> ...
2017-05-24T10:43:35+00:00 Repair step: Fix component of birthday calendars
2017-05-24T10:43:35+00:00 Repair info: 12 birthday calendars updated.
2017-05-24T10:43:35+00:00 Updated <dav> to 0.2.9
2017-05-24T10:43:35+00:00 Updating <files_external> ...
2017-05-24T10:43:35+00:00 Updated <files_external> to 0.7.0
2017-05-24T10:43:35+00:00 Repair step: Repair mime types
2017-05-24T10:43:35+00:00 Repair step: Generate ETags for file where no ETag is present.
2017-05-24T10:43:35+00:00 Repair info: ETags have been fixed for 0 files/folders.
2017-05-24T10:43:35+00:00 Repair step: Clean tags and favorites
2017-05-24T10:43:35+00:00 Repair info: 0 tags of deleted users have been removed.
2017-05-24T10:43:35+00:00 Repair info: 0 tags for delete files have been removed.
2017-05-24T10:43:35+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2017-05-24T10:43:35+00:00 Repair info: 0 tags with no entries have been removed.
2017-05-24T10:43:35+00:00 Repair step: Drop old database tables
2017-05-24T10:43:35+00:00 Drop old database tables
2017-05-24T10:43:35+00:00 
                                                    2017-05-24T10:43:35+00:00  Done
 28/28 [============================] 100%2017-05-24T10:43:35+00:00 
2017-05-24T10:43:35+00:00 Repair step: Drop old background jobs
2017-05-24T10:43:35+00:00 Repair step: Remove getetag entries in properties table
2017-05-24T10:43:35+00:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2017-05-24T10:43:35+00:00 Repair step: Repair outdated OCS IDs
2017-05-24T10:43:35+00:00 Repair step: Repair invalid shares
2017-05-24T10:43:35+00:00 Repair step: Remove old share propagation app entries
2017-05-24T10:43:35+00:00 Repair step: Fix permissions so avatars can be stored again
2017-05-24T10:43:35+00:00 Fix permissions so avatars can be stored again
                                                    2017-05-24T10:43:35+00:00  Done
 2/2 [============================] 100%2017-05-24T10:43:35+00:00 
2017-05-24T10:43:35+00:00 Repair step: Move user avatars outside the homes to the new location
2017-05-24T10:43:35+00:00 Move user avatars outside the homes to the new location
                                                    2017-05-24T10:43:35+00:00  Starting ...
 1/7 [====>]  14%PHP Fatal error:  Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/owncloud/owncloud-10.0.1/apps/files_sharing/lib/AppInfo/Application.php on line 84

nothing valuable in the log:

{"reqId":"aeIgugjOHvzhjMBBldHV","level":0,"time":"2017-05-24T10:43:28+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 9.1.4.2 to 10.0.1.5"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":1,"time":"2017-05-24T10:43:29+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Insert new users ..."}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/owncloud\/oc9.1-10.0.1\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"aeIgugjOHvzhjMBBldHV","level":3,"time":"2017-05-24T10:43:35+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"Class 'OCA\\FederatedFileSharing\\DiscoveryManager' not found at \/var\/www\/owncloud\/owncloud-10.0.1\/apps\/files_sharing\/lib\/AppInfo\/Application.php#84"}

then again ... the upgrade is done via occ. for oc in /var/www/owncloud/oc9.1-10.0.1 but in the last line it reads not found at \/var\/www\/owncloud\/owncloud-10.0.1 ... WTF

in the config i still had configured a different apps path that was pointing to owncloud-10.0.1. fixing it still gives:

2017-05-24T10:52:33+00:00 Move user avatars outside the homes to the new location
                                                    2017-05-24T10:52:34+00:00  Starting ...
 1/7 [====>]  14%PHP Fatal error:  Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/AppInfo/Application.php on line 84

adding xdebug in production ... yay

 1/7 [====>]  14%PHP Fatal error:  Class 'OCA\FederatedFileSharing\DiscoveryManager' not found in /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/AppInfo/Application.php on line 84
PHP Stack trace:
PHP   1. {main}() /var/www/owncloud/oc9.1-10.0.1/occ:0
PHP   2. require_once() /var/www/owncloud/oc9.1-10.0.1/occ:11
PHP   3. OC\Console\Application->run() /var/www/owncloud/oc9.1-10.0.1/console.php:99
PHP   4. Symfony\Component\Console\Application->run() /var/www/owncloud/oc9.1-10.0.1/lib/private/Console/Application.php:160
PHP   5. Symfony\Component\Console\Application->doRun() /var/www/owncloud/oc9.1-10.0.1/lib/composer/symfony/console/Application.php:120
PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/owncloud/oc9.1-10.0.1/lib/composer/symfony/console/Application.php:189
PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/owncloud/oc9.1-10.0.1/lib/composer/symfony/console/Application.php:826
PHP   8. OC\Core\Command\Upgrade->execute() /var/www/owncloud/oc9.1-10.0.1/lib/composer/symfony/console/Command/Command.php:262
PHP   9. OC\Updater->upgrade() /var/www/owncloud/oc9.1-10.0.1/core/Command/Upgrade.php:249
PHP  10. OC\Updater->doUpgrade() /var/www/owncloud/oc9.1-10.0.1/lib/private/Updater.php:108
PHP  11. OC\Repair->run() /var/www/owncloud/oc9.1-10.0.1/lib/private/Updater.php:250
PHP  12. OC\Repair\MoveAvatarOutsideHome->run() /var/www/owncloud/oc9.1-10.0.1/lib/private/Repair.php:88
PHP  13. OC\User\Manager->callForSeenUsers() /var/www/owncloud/oc9.1-10.0.1/lib/private/Repair/MoveAvatarOutsideHome.php:141
PHP  14. OC\User\Manager->callForAllUsers() /var/www/owncloud/oc9.1-10.0.1/lib/private/User/Manager.php:397
PHP  15. OC\User\AccountMapper->callForAllUsers() /var/www/owncloud/oc9.1-10.0.1/lib/private/User/Manager.php:379
PHP  16. OC\User\Manager->OC\User\{closure}() /var/www/owncloud/oc9.1-10.0.1/lib/private/User/AccountMapper.php:220
PHP  17. OC\Repair\MoveAvatarOutsideHome->OC\Repair\{closure}() /var/www/owncloud/oc9.1-10.0.1/lib/private/User/Manager.php:378
PHP  18. OC\Repair\MoveAvatarOutsideHome->moveAvatars() /var/www/owncloud/oc9.1-10.0.1/lib/private/Repair/MoveAvatarOutsideHome.php:135
PHP  19. OC\Files\Node\LazyRoot->get() /var/www/owncloud/oc9.1-10.0.1/lib/private/Repair/MoveAvatarOutsideHome.php:111
PHP  20. OC\Files\Node\LazyRoot->__call() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Node/LazyRoot.php:143
PHP  21. call_user_func_array:{/var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Node/LazyRoot.php:66}() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Node/LazyRoot.php:66
PHP  22. OC\Files\Node\Root->get() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Node/LazyRoot.php:66
PHP  23. OC\Files\View->getFileInfo() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Node/Root.php:182
PHP  24. OC\Files\Mount\MountPoint->getStorage() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/View.php:1362
PHP  25. OC\Files\Mount\MountPoint->createStorage() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Mount/MountPoint.php:161
PHP  26. OC\Files\Storage\StorageFactory->getInstance() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Mount/MountPoint.php:138
PHP  27. OC\Files\Storage\StorageFactory->wrap() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Storage/StorageFactory.php:82
PHP  28. OC_Util::{closure:/var/www/owncloud/oc9.1-10.0.1/lib/private/legacy/util.php:157-163}() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Storage/StorageFactory.php:100
PHP  29. OCA\Files_Sharing\SharedStorage->instanceOfStorage() /var/www/owncloud/oc9.1-10.0.1/lib/private/legacy/util.php:158
PHP  30. OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/SharedStorage.php:129
PHP  31. OCA\Files_Sharing\SharedStorage->getWrapperStorage() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Storage/Wrapper/Wrapper.php:490
PHP  32. OCA\Files_Sharing\SharedStorage->init() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/SharedStorage.php:455
PHP  33. OC\Files\Filesystem::initMountPoints() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/SharedStorage.php:102
PHP  34. OC\Files\Config\MountProviderCollection->getMountsForUser() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Filesystem.php:445
PHP  35. array_map() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Config/MountProviderCollection.php:78
PHP  36. OC\Files\Config\MountProviderCollection->OC\Files\Config\{closure}() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Config/MountProviderCollection.php:78
PHP  37. OCA\Files_Sharing\External\MountProvider->getMountsForUser() /var/www/owncloud/oc9.1-10.0.1/lib/private/Files/Config/MountProviderCollection.php:77
PHP  38. OCA\Files_Sharing\External\MountProvider->getMount() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/External/MountProvider.php:72
PHP  39. OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo\{closure}() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/External/MountProvider.php:53
PHP  40. OC\AppFramework\Utility\SimpleContainer->query() /var/www/owncloud/oc9.1-10.0.1/apps/files_sharing/lib/AppInfo/Application.php:130
PHP  41. Pimple\Container->offsetGet() /var/www/owncloud/oc9.1-10.0.1/lib/private/AppFramework/Utility/SimpleContainer.php:111
PHP  42. OCA\Files_Sharing\AppInfo\Application->OCA\Files_Sharing\AppInfo\{closure}() /var/www/owncloud/oc9.1-10.0.1/lib/composer/pimple/pimple/src/Pimple/Container.php:113

sudo -u www-data php occ maintenance:repair does not fix it

I f you can reproduce, does adding a case-sensitive version of the classname to the list of searched paths in the autoloader help? i.e.

$paths[] = $appPath . '/lib/' . str_replace('\\', '/', $rest) . '.php';

after line 113 in lib/autoloader.php

ok ... the federatedfilesharing app is not loaded when the MoveAvatarOutsideHome repair step is executed.
with this patch the upgrade completes:

diff --git a/lib/private/Repair/MoveAvatarOutsideHome.php b/lib/private/Repair/MoveAvatarOutsideHome.php
index 53e34a2..1a5436d 100644
--- a/lib/private/Repair/MoveAvatarOutsideHome.php
+++ b/lib/private/Repair/MoveAvatarOutsideHome.php
@@ -104,6 +104,7 @@ class MoveAvatarOutsideHome implements IRepairStep {
        private function moveAvatars(IOutput $out, IUser $user) {
                $userId = $user->getUID();

+               \OC_App::loadApp('federatedfilesharing');
                \OC\Files\Filesystem::initMountPoints($userId);

                // call get instead of getUserFolder to avoid needless skeleton copy

This is not the correct solution, bit it raises the question if we need to make federatedfilesharing apptype filesystem in info.xml. the dependency was introduced with https://github.com/owncloud/core/pull/24073#discussion-diff-60871519 and a possible dependency problem was deferred to a later PR ... which I assume never came for ... reasons.

cc @DeepDiver1975 @PVince81 make federatedfilesharing apptype filesystem?

this is the wrong code location - this can be triggered by any repair step. maybe the repair step command class needs to load all apps?

for the bigger picture: it was wrong in the first place to use the discovery manager class in sharing

this just proves that the exception is triggered by a dependency of files_sharing on federatedfilesharing. as I wrote above:

This is not the correct solution, ...

working on a PR

needed to change quite a bit: https://github.com/owncloud/core/issues/28004

Same problem here: upgrading from OC 9.1.6 to OC 10.0.2 on Debian 8 fails with "Fatal error: Class 'OCAFederatedFileSharingDiscoveryManager' not found"

We found a workaround. If you disable maintenance mode before upgrade the process works smoothly and ends without errors.

sudo -u www-data /usr/bin/php /var/www/owncloud/occ maintenance:mode --off && sudo -u www-data /usr/bin/php /var/www/owncloud/occ upgrade -vvv

We tested with a 20K users installation and like @ronbailer says:

forcing the maintenance more to off and immediately adding the upgrade works.

@tomneedham @butonic why? 馃槙

@cdamken
A. in maintenance mode only certain app types are loaded automatically. Others are not.
B. repair step of one app (that is loaded) directly uses the class of another app (that is NOT loaded)

Workaround: load federatedfilesharing in the repair step https://github.com/owncloud/core/issues/26297#issuecomment-303698609

Fix: Follow design guides and remove a direct cross-app dependency. This is what Joern and Tom are doing in https://github.com/owncloud/core/pull/28004

@VicDeo Thanks

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fridaynext picture fridaynext  路  5Comments

HLeemans picture HLeemans  路  4Comments

j-holub picture j-holub  路  3Comments

PVince81 picture PVince81  路  4Comments

ho4ho picture ho4ho  路  3Comments