Repository navigation
Closed
Closed
Copy link
Labels
Milestone
Description
Steps to reproduce
- apply repository for 10.0 version
- yum upgrade and install new version
- Apply upgrade from the Web and error ocurred
- Apply upgrade via occ cli and debug:
[root@owncloud ~]# sudo -u apache /usr/bin/php /var/www/html/owncloud/occ maintenance:mode --off && sudo -u apache /usr/bin/php /var/www/html/owncloud/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
Maintenance mode disabled
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-08-22T09:43:33+02:00 Set log level to debug
2017-08-22T09:43:33+02:00 Turned on maintenance mode
2017-08-22T09:43:33+02:00 Repair step: Repair MySQL database engine
2017-08-22T09:43:33+02:00 Repair step: Repair MySQL collation
2017-08-22T09:43:33+02:00 Repair info: All tables already have the correct collation -> nothing to do
2017-08-22T09:43:33+02:00 Repair step: Repair SQLite autoincrement
2017-08-22T09:43:33+02:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-08-22T09:43:33+02:00 Repair info: lucene_status table does not exist -> nothing to do
2017-08-22T09:43:33+02:00 Repair step: Upgrade app code from the marketplace
2017-08-22T09:43:33+02:00 Repair info: Enabling market app to assist with update
2017-08-22T09:43:33+02:00 Repair info: Using market to update existing apps
2017-08-22T09:43:33+02:00 Repair info: Attempting to update the following existing compatible apps from market:
2017-08-22T09:43:33+02:00 Repair info: Fetching app from market: activity
2017-08-22T09:43:34+02:00 Repair info:
2017-08-22T09:43:34+02:00 Repair info: Fetching app from market: calendar
2017-08-22T09:43:34+02:00 Repair info:
2017-08-22T09:43:34+02:00 Repair info: Fetching app from market: comments
2017-08-22T09:43:35+02:00 Repair info: App (comments) is not known at the marketplace.
2017-08-22T09:43:35+02:00 Repair info: Fetching app from market: configreport
2017-08-22T09:43:35+02:00 Repair info: App (configreport) is not known at the marketplace.
2017-08-22T09:43:35+02:00 Repair info: Fetching app from market: contacts
2017-08-22T09:43:35+02:00 Repair info:
2017-08-22T09:43:35+02:00 Repair info: Fetching app from market: dav
2017-08-22T09:43:36+02:00 Repair info: App (dav) is not known at the marketplace.
2017-08-22T09:43:36+02:00 Repair info: Fetching app from market: encryption
2017-08-22T09:43:36+02:00 Repair info: App (encryption) is not known at the marketplace.
2017-08-22T09:43:36+02:00 Repair info: Fetching app from market: external
2017-08-22T09:43:36+02:00 Repair info: App (external) is not known at the marketplace.
2017-08-22T09:43:36+02:00 Repair info: Fetching app from market: federatedfilesharing
2017-08-22T09:43:37+02:00 Repair info: App (federatedfilesharing) is not known at the marketplace.
2017-08-22T09:43:37+02:00 Repair info: Fetching app from market: federation
2017-08-22T09:43:37+02:00 Repair info: App (federation) is not known at the marketplace.
2017-08-22T09:43:37+02:00 Repair info: Fetching app from market: files
2017-08-22T09:43:38+02:00 Repair info: App (files) is not known at the marketplace.
2017-08-22T09:43:38+02:00 Repair info: Fetching app from market: files_external
2017-08-22T09:43:38+02:00 Repair info: App (files_external) is not known at the marketplace.
2017-08-22T09:43:38+02:00 Repair info: Fetching app from market: files_pdfviewer
2017-08-22T09:43:38+02:00 Repair info:
2017-08-22T09:43:38+02:00 Repair info: Fetching app from market: files_sharing
2017-08-22T09:43:39+02:00 Repair info: App (files_sharing) is not known at the marketplace.
2017-08-22T09:43:39+02:00 Repair info: Fetching app from market: files_texteditor
2017-08-22T09:43:39+02:00 Repair info:
2017-08-22T09:43:39+02:00 Repair info: Fetching app from market: files_trashbin
2017-08-22T09:43:39+02:00 Repair info: App (files_trashbin) is not known at the marketplace.
2017-08-22T09:43:39+02:00 Repair info: Fetching app from market: files_versions
2017-08-22T09:43:40+02:00 Repair info: App (files_versions) is not known at the marketplace.
2017-08-22T09:43:40+02:00 Repair info: Fetching app from market: files_videoplayer
2017-08-22T09:43:40+02:00 Repair info: App (files_videoplayer) is not known at the marketplace.
2017-08-22T09:43:40+02:00 Repair info: Fetching app from market: firstrunwizard
2017-08-22T09:43:41+02:00 Repair info: App (firstrunwizard) is not known at the marketplace.
2017-08-22T09:43:41+02:00 Repair info: Fetching app from market: gallery
2017-08-22T09:43:41+02:00 Repair info:
2017-08-22T09:43:41+02:00 Repair info: Fetching app from market: market
2017-08-22T09:43:41+02:00 Repair info:
2017-08-22T09:43:41+02:00 Repair info: Fetching app from market: notifications
2017-08-22T09:43:42+02:00 Repair info: App (notifications) is not known at the marketplace.
2017-08-22T09:43:42+02:00 Repair info: Fetching app from market: ownbackup
2017-08-22T09:43:42+02:00 Repair info:
2017-08-22T09:43:42+02:00 Repair info: Fetching app from market: provisioning_api
2017-08-22T09:43:42+02:00 Repair info: App (provisioning_api) is not known at the marketplace.
2017-08-22T09:43:42+02:00 Repair info: Fetching app from market: templateeditor
2017-08-22T09:43:43+02:00 Repair info: App (templateeditor) is not known at the marketplace.
2017-08-22T09:43:43+02:00 Repair info: Fetching app from market: updatenotification
2017-08-22T09:43:43+02:00 Repair info: App (updatenotification) is not known at the marketplace.
2017-08-22T09:43:43+02:00 Repair info: App was not updated: activity
2017-08-22T09:43:43+02:00 Repair info: App was not updated: calendar
2017-08-22T09:43:43+02:00 Repair info: App was not updated: comments
2017-08-22T09:43:43+02:00 Repair info: App was not updated: configreport
2017-08-22T09:43:43+02:00 Repair info: App was not updated: contacts
2017-08-22T09:43:43+02:00 Repair info: App was not updated: dav
2017-08-22T09:43:43+02:00 Repair info: App was not updated: encryption
2017-08-22T09:43:43+02:00 Repair info: App was not updated: external
2017-08-22T09:43:43+02:00 Repair info: App was not updated: federatedfilesharing
2017-08-22T09:43:43+02:00 Repair info: App was not updated: federation
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_external
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_pdfviewer
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_sharing
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_texteditor
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_trashbin
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_versions
2017-08-22T09:43:43+02:00 Repair info: App was not updated: files_videoplayer
2017-08-22T09:43:43+02:00 Repair info: App was not updated: firstrunwizard
2017-08-22T09:43:43+02:00 Repair info: App was not updated: gallery
2017-08-22T09:43:43+02:00 Repair info: App was not updated: market
2017-08-22T09:43:43+02:00 Repair info: App was not updated: notifications
2017-08-22T09:43:43+02:00 Repair info: App was not updated: ownbackup
2017-08-22T09:43:43+02:00 Repair info: App was not updated: provisioning_api
2017-08-22T09:43:43+02:00 Repair info: App was not updated: templateeditor
2017-08-22T09:43:43+02:00 Repair info: App was not updated: updatenotification
2017-08-22T09:43:43+02:00 Updating database schema
2017-08-22T09:43:43+02:00 Updated database
2017-08-22T09:43:43+02:00 Repair step: Repair mime types
2017-08-22T09:43:43+02:00 Repair step: Generate ETags for file where no ETag is present.
2017-08-22T09:43:45+02:00 Repair info: ETags have been fixed for 0 files/folders.
2017-08-22T09:43:45+02:00 Repair step: Clean tags and favorites
2017-08-22T09:43:45+02:00 Repair info: 0 tags of deleted users have been removed.
2017-08-22T09:43:45+02:00 Repair info: 0 tags for delete files have been removed.
2017-08-22T09:43:45+02:00 Repair info: 0 tag entries for deleted tags have been removed.
2017-08-22T09:43:45+02:00 Repair info: 0 tags with no entries have been removed.
2017-08-22T09:43:45+02:00 Repair step: Drop old database tables
2017-08-22T09:43:45+02:00 Drop old database tables
2017-08-22T09:43:45+02:00
2017-08-22T09:43:45+02:00 Done
28/28 [============================] 100%2017-08-22T09:43:45+02:00
2017-08-22T09:43:45+02:00 Repair step: Drop old background jobs
2017-08-22T09:43:45+02:00 Repair step: Remove getetag entries in properties table
2017-08-22T09:43:45+02:00 Repair info: Removed 0 unneeded "{DAV:}getetag" entries from properties table.
2017-08-22T09:43:45+02:00 Repair step: Repair outdated OCS IDs
2017-08-22T09:43:45+02:00 Repair step: Repair invalid shares
2017-08-22T09:43:45+02:00 Repair step: Remove old share propagation app entries
2017-08-22T09:43:45+02:00 Repair step: Fix permissions so avatars can be stored again
2017-08-22T09:43:45+02:00 Fix permissions so avatars can be stored again
2017-08-22T09:43:47+02:00 Done
2/2 [============================] 100%2017-08-22T09:43:47+02:00
2017-08-22T09:43:47+02:00 Repair step: Move user avatars outside the homes to the new location
2017-08-22T09:43:47+02:00 Move user avatars outside the homes to the new location
2017-08-22T09:43:47+02:00 Starting ...
0/40 [>-] 0%2017-08-22T09:43:47+02:00 :47+02:00
2017-08-22T09:43:47+02:00
2017-08-22T09:43:47+02:00 [Symfony\Component\Debug\Exception\FatalThrowableError]
2017-08-22T09:43:47+02:00 Call to a member function getCache() on null
2017-08-22T09:43:47+02:00
2017-08-22T09:43:47+02:00 Exception trace:
2017-08-22T09:43:47+02:00 () at /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php:251
2017-08-22T09:43:47+02:00 OC\Files\Mount\MountPoint->getStorageRootId() at /var/www/html/owncloud/lib/private/Files/Config/UserMountCache.php:92
2017-08-22T09:43:47+02:00 OC\Files\Config\UserMountCache->OC\Files\Config\{closure}() at n/a:n/a
2017-08-22T09:43:47+02:00 array_map() at /var/www/html/owncloud/lib/private/Files/Config/UserMountCache.php:97
2017-08-22T09:43:47+02:00 OC\Files\Config\UserMountCache->registerMounts() at /var/www/html/owncloud/lib/private/Files/Config/MountProviderCollection.php:134
2017-08-22T09:43:47+02:00 OC\Files\Config\MountProviderCollection->registerMounts() at /var/www/html/owncloud/lib/private/Files/Filesystem.php:448
2017-08-22T09:43:47+02:00 OC\Files\Filesystem::initMountPoints() at /var/www/html/owncloud/apps/files_sharing/lib/SharedStorage.php:102
2017-08-22T09:43:47+02:00 OCA\Files_Sharing\SharedStorage->init() at /var/www/html/owncloud/apps/files_sharing/lib/SharedStorage.php:455
2017-08-22T09:43:47+02:00 OCA\Files_Sharing\SharedStorage->getWrapperStorage() at /var/www/html/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php:490
2017-08-22T09:43:47+02:00 OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage() at /var/www/html/owncloud/apps/files_sharing/lib/SharedStorage.php:129
2017-08-22T09:43:47+02:00 OCA\Files_Sharing\SharedStorage->instanceOfStorage() at /var/www/html/owncloud/lib/private/legacy/util.php:158
2017-08-22T09:43:47+02:00 OC_Util::{closure}() at /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php:100
2017-08-22T09:43:47+02:00 OC\Files\Storage\StorageFactory->wrap() at /var/www/html/owncloud/lib/private/Files/Storage/StorageFactory.php:82
2017-08-22T09:43:47+02:00 OC\Files\Storage\StorageFactory->getInstance() at /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php:138
2017-08-22T09:43:47+02:00 OC\Files\Mount\MountPoint->createStorage() at /var/www/html/owncloud/lib/private/Files/Mount/MountPoint.php:161
2017-08-22T09:43:47+02:00 OC\Files\Mount\MountPoint->getStorage() at /var/www/html/owncloud/lib/private/Files/View.php:1362
2017-08-22T09:43:47+02:00 OC\Files\View->getFileInfo() at /var/www/html/owncloud/lib/private/Files/Node/Root.php:182
2017-08-22T09:43:47+02:00 OC\Files\Node\Root->get() at n/a:n/a
2017-08-22T09:43:47+02:00 call_user_func_array() at /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php:66
2017-08-22T09:43:47+02:00 OC\Files\Node\LazyRoot->__call() at /var/www/html/owncloud/lib/private/Files/Node/LazyRoot.php:143
2017-08-22T09:43:47+02:00 OC\Files\Node\LazyRoot->get() at /var/www/html/owncloud/lib/private/Repair/MoveAvatarOutsideHome.php:111
2017-08-22T09:43:47+02:00 OC\Repair\MoveAvatarOutsideHome->moveAvatars() at /var/www/html/owncloud/lib/private/Repair/MoveAvatarOutsideHome.php:135
2017-08-22T09:43:47+02:00 OC\Repair\MoveAvatarOutsideHome->OC\Repair\{closure}() at /var/www/html/owncloud/lib/private/User/Manager.php:378
2017-08-22T09:43:47+02:00 OC\User\Manager->OC\User\{closure}() at /var/www/html/owncloud/lib/private/User/AccountMapper.php:220
2017-08-22T09:43:47+02:00 OC\User\AccountMapper->callForAllUsers() at /var/www/html/owncloud/lib/private/User/Manager.php:379
2017-08-22T09:43:47+02:00 OC\User\Manager->callForAllUsers() at /var/www/html/owncloud/lib/private/User/Manager.php:397
2017-08-22T09:43:47+02:00 OC\User\Manager->callForSeenUsers() at /var/www/html/owncloud/lib/private/Repair/MoveAvatarOutsideHome.php:141
2017-08-22T09:43:47+02:00 OC\Repair\MoveAvatarOutsideHome->run() at /var/www/html/owncloud/lib/private/Repair.php:88
2017-08-22T09:43:47+02:00 OC\Repair->run() at /var/www/html/owncloud/lib/private/Updater.php:250
2017-08-22T09:43:47+02:00 OC\Updater->doUpgrade() at /var/www/html/owncloud/lib/private/Updater.php:108
2017-08-22T09:43:47+02:00 OC\Updater->upgrade() at /var/www/html/owncloud/core/Command/Upgrade.php:249
2017-08-22T09:43:47+02:00 OC\Core\Command\Upgrade->execute() at /var/www/html/owncloud/lib/composer/symfony/console/Command/Command.php:262
2017-08-22T09:43:47+02:00 Symfony\Component\Console\Command\Command->run() at /var/www/html/owncloud/lib/composer/symfony/console/Application.php:826
2017-08-22T09:43:47+02:00 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/owncloud/lib/composer/symfony/console/Application.php:189
2017-08-22T09:43:47+02:00 Symfony\Component\Console\Application->doRun() at /var/www/html/owncloud/lib/composer/symfony/console/Application.php:120
2017-08-22T09:43:47+02:00 Symfony\Component\Console\Application->run() at /var/www/html/owncloud/lib/private/Console/Application.php:160
2017-08-22T09:43:47+02:00 OC\Console\Application->run() at /var/www/html/owncloud/console.php:99
2017-08-22T09:43:47+02:00 require_once() at /var/www/html/owncloud/occ:11
2017-08-22T09:43:47+02:00
2017-08-22T09:43:47+02:00 upgrade [--no-app-disable]
2017-08-22T09:43:47+02:00
Expected behaviour
No upgrade finish
Actual behaviour
Tell us what happens instead
Server configuration
Operating system: Centos 7.3.1611
Web server: httpd
Database: Percona Server 5.7.18-16
PHP version: 7.0.22
ownCloud version: 10.0.2.1
Updated from an older ownCloud or fresh install: 9.1.6.2
Where did you install ownCloud from: /var/www/html/owncloud
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
$CONFIG = array (
'updatechecker' => false,
'instanceid' => 'ockn8ye244ke',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => '**************************************',
'trusted_domains' =>
array (
0 => 'xx.xx.xx.xx',
1 => 'xxxxxxxxxxxxxx',
),
'datadirectory' => '/var/www/html/owncloud/data',
'overwrite.cli.url' => 'https:/xxxxxxxxxxxxxxxxxxxxx',
'dbtype' => 'mysql',
'version' => '9.1.6.2',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxxxxxx'',
'dbpassword' => 'xxxxxxxxx',
'logtimezone' => 'Europe/Madrid',
'installed' => true,
'default_language' => 'es',
'mail_from_address' => 'no-email',
'mail_smtpmode' => 'php',
'mail_domain' => 'airenetworks.es',
'appstore.experimental.enabled' => true,
'theme' => '',
'maintenance' => true,
'loglevel' => 0,
'debug' => true,
'trashbin_retention_obligation' => 'auto',
'singleuser' => false,
);
List of activated apps:
Enabled:
- activity: 2.3.4
- calendar: 1.4.2
- comments: 0.3.0
- configreport: 0.1.1
- contacts: 1.5.2
- dav: 0.2.9
- encryption: 1.3.0
- external: 1.2
- federatedfilesharing: 0.3.0
- federation: 0.1.0
- files: 1.5.1
- files_external: 0.7.0
- files_pdfviewer: 0.8.2
- files_sharing: 0.10.0
- files_texteditor: 2.2
- files_trashbin: 0.9.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1Enabled:
- activity: 2.3.4
- calendar: 1.4.2
- comments: 0.3.0
- configreport: 0.1.1
- contacts: 1.5.2
- dav: 0.2.9
- encryption: 1.3.0
- external: 1.2
- federatedfilesharing: 0.3.0
- federation: 0.1.0
- files: 1.5.1
- files_external: 0.7.0
- files_pdfviewer: 0.8.2
- files_sharing: 0.10.0
- files_texteditor: 2.2
- files_trashbin: 0.9.0
- notifications: 0.3.0
- ownbackup: 17.7.0
- provisioning_api: 0.5.0
- templateeditor: 0.1
- updatenotification: 0.2.1
Disabled:
- announcementcenter
- documents
- files_antivirus
- html5_videoplayer
- notes
- onlyoffice
- ownnote
- qownnotesapi
- registration
- richdocuments
- systemtags
- tasks
- theme-example
- user_external
Are you using encryption: yes
ownCloud log
{"reqId":"JotOqRfp48nXftw81DLt","level":0,"time":"2017-08-22T09:43:45+02:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/html\/owncloud\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"JotOqRfp48nXftw81DLt","level":0,"time":"2017-08-22T09:43:46+02:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/html\/owncloud\/lib\/composer\/symfony\/console\/Helper\/ProgressBar.php#517"}
{"reqId":"JotOqRfp48nXftw81DLt","level":3,"time":"2017-08-22T09:43:47+02:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"cURL error 51: Unable to communicate securely with peer: requested domain name does not match the server's certificate."}
{"reqId":"GT5qGzrpQq0MQt53VCoH","level":0,"time":"2017-08-22T09:45:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Update required, skipping cron"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:50:56+02:00","remoteAddr":"88.148.82.4","user":"--","app":"core","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"starting upgrade from 9.1.6.2 to 10.0.2.1"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#861"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#862"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#863"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#866"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#867"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Cannot modify header information - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/User\/Session.php#868"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"session_regenerate_id(): Cannot regenerate session id - headers already sent at \/var\/www\/html\/owncloud\/lib\/private\/Session\/Internal.php#114"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":0,"time":"2017-08-22T09:51:05+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"A session had already been started - ignoring session_start() at \/var\/www\/html\/owncloud\/lib\/private\/Session\/Internal.php#98"}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":3,"time":"2017-08-22T09:51:09+02:00","remoteAddr":"88.148.82.4","user":"--","app":"core","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"cURL error 51: Unable to communicate securely with peer: requested domain name does not match the server's certificate."}
{"reqId":"WZviX1IxbT4DrvEneyit4QAAAAY","level":3,"time":"2017-08-22T09:51:09+02:00","remoteAddr":"88.148.82.4","user":"--","app":"PHP","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=WDJYLHUAFgMiIDN8KgIqTTggFAd6HQZNFn8YHXAtJAk%3D%3AibwkDJrpXrf3pjy%2FHvBP4OtbN%2BonGaeJX7MBvXtTov4%3D","message":"Error: Call to a member function getCache() on null at \/var\/www\/html\/owncloud\/lib\/private\/Files\/Mount\/MountPoint.php#251"}
Activity
XHAGBARD commentedon Aug 22, 2017
I disable app files_sharing and it work now....
XHAGBARD commentedon Aug 22, 2017
If active the app, error via Web:
[-]Upgrade 9.1.6.2 -> 10.0.2.1 // Call to a member function getCache() on null[/-][+]Upgrade 9.1.6.2 -> 10.0.2.1 null cache when moving avatars outside home[/+]PVince81 commentedon Aug 23, 2017
Can you try
select * from oc_storages where id like 'local::/%'?I wonder if the "root" storage entry is broken in some way.
PVince81 commentedon Aug 23, 2017
Also check if the folder "data/avatars" exists now, considering that the avatar migration failed.
cc @butonic
XHAGBARD commentedon Aug 23, 2017
Folder data/avatars exists...
XHAGBARD commentedon Aug 23, 2017
This is normal? An entry in oc_filecache without patch:
PVince81 commentedon Aug 23, 2017
the root entry has no path, yes this is normal.
XHAGBARD commentedon Aug 28, 2017
Annotation.
When you disable the files_sharing app you can complete the upgrade correctly. But when you re-enable it (with the app updated) it still fails with the same error message.
kswtch commentedon Oct 8, 2017
@XHAGBARD
I had the same issue like you. After upgrading to version 10 of owncloud I couldn't log in anymore and the same error messages as you posted appeared. As you explained disabling the files_sharing app solves the problem so it had to do something with the sharing part. I found out that we both had the following error message in our debug log:
So I checked all remote shares in the database:
select * from oc_share_external;This will give you a list of all remote shares. You can visit the URLs with your browser and check for invalid SSL certificates. Delete the ones with invalid certificates:
delete from oc_share_external where id=23 limit 1;I also removed the shares to the storage with invalid certificates from the table oc_share.
After that everything works as expected.
Maybe in some future release an invalid SSL certificate of a remote share does not break owncloud but disables the share automatically and puts a warning in the logs (or to the user).
PVince81 commentedon Oct 9, 2017
@tomneedham another case of cert issue blocking the upgrade ^
16 remaining items
PVince81 commentedon Oct 12, 2017
@pep29 thanks for testing. Seems the stack trace is gone.
Does it hang there or just crash ?
If it hangs, I suspect it might be trying to connect to federated share servers which are not available and is waiting for a connection timeout. If that's the case, this would fall under the third category to fix: "Prevent the constructor of the federated share external storage class to do any remote connections"
pep29 commentedon Oct 12, 2017
@PVince81 It just hang there till it timeout. Since i do not use external storage, can i get ride of it?
Another thing, i use two different owncloud for two different websites A and B, the upgrade on B went smootless, however it not that heavily used as A. Could be the huge amount of Data on A be a problem?
PVince81 commentedon Oct 12, 2017
@pep29 but you are using federated shares or some of your users do ? Federated shares internally work like external storages. If there aren't that many, you could check the contents of the "oc_share_external" table. I suspect that maybe some of the domains in that list are not reacahable any more.
The quantity of data in the ownClouds should not matter for this one specific spot of the upgrade.
pep29 commentedon Oct 12, 2017
@PVince81 the "oc_share_external" table is indeed empty for both mentioned site A and B
PVince81 commentedon Oct 12, 2017
@pep29 uh oh... ok, so it means it's yet another bug. It is possible that my patch above mitigated it a bit.
If it's neither external storage nor incoming federated shares, then it can likely only be somewhat broken local shares.
@pep29 mind filling the issue template and posting it as a comment here ? I'd like to see what apps you have enabled for more clues.
pep29 commentedon Oct 12, 2017
@PVince81 We indeed have some problems with local share (many folder are for some reasons duplicated with the extra [2]), there also many tickets about this duplicate issue.
here is a list of the used apps (i also use files_sharing, but for now it is disabled)
Enabled:
Disabled:
Here #29209 for the other infos
PVince81 commentedon Oct 12, 2017
@pep29 let's continue in #29209 then, focussing on the broken local shares
[-]Upgrade 9.1.6.2 -> 10.0.2.1 null cache when moving avatars outside home[/-][+]Upgrade 9.1.6.2 -> 10.0.2.1 null cache when moving avatars outside home (fed shares)[/+]PVince81 commentedon Oct 17, 2017
PR for lazily connecting to federated shares, should improve update speed: #29275 (it shouldn't hang for such a long time!)
PVince81 commentedon Oct 27, 2017
Two tasks from #28763 (comment) done.
Remaining one is about catching RingException
PVince81 commentedon Nov 3, 2017
I have retested the 9.1->10.0.4beta2 upgrade scenario. With the two fixes in place, there is no more leaking of RingException and the upgrade properly goes through.
lock commentedon Aug 1, 2019
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.