Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Fail #2398

Closed
Ghostraider88 opened this issue Oct 12, 2022 · 3 comments
Closed

Update Fail #2398

Ghostraider88 opened this issue Oct 12, 2022 · 3 comments
Labels
Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/

Comments

@Ghostraider88
Copy link

Steps To Reproduce

  1. Login by SSH
  2. Start Update with "sudo bash /var/scripts/update.sh
  3. Wait

Expected Result

Update will get installed and Nextcloud is working again.

Actual Result

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
An unhandled exception has been thrown:
TypeError: fwrite() expects parameter 1 to be resource, bool given in /var/www/nextcloud/lib/private/Security/CertificateManager.php:161
Stack trace:
#0 /var/www/nextcloud/lib/private/Security/CertificateManager.php(161): fwrite()
#1 /var/www/nextcloud/lib/private/Security/CertificateManager.php(247): OC\Security\CertificateManager->createCertificateBundle()
#2 /var/www/nextcloud/lib/private/Http/Client/Client.php(127): OC\Security\CertificateManager->getAbsoluteBundlePath()
#3 /var/www/nextcloud/lib/private/Http/Client/Client.php(74): OC\Http\Client\Client->getCertBundle()
#4 /var/www/nextcloud/lib/private/Http/Client/Client.php(218): OC\Http\Client\Client->buildRequestOptions()
#5 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(120): OC\Http\Client\Client->get()
#6 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(87): OC\App\AppStore\Fetcher\Fetcher->fetch()
#7 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(192): OC\App\AppStore\Fetcher\AppFetcher->fetch()
#8 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(188): OC\App\AppStore\Fetcher\Fetcher->get()
#9 /var/www/nextcloud/lib/private/Installer.php(422): OC\App\AppStore\Fetcher\AppFetcher->get()
#10 /var/www/nextcloud/lib/private/Updater.php(413): OC\Installer->isUpdateAvailable()
#11 /var/www/nextcloud/lib/private/Updater.php(274): OC\Updater->upgradeAppStoreApps()
#12 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#13 /var/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#14 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#15 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#16 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#17 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#18 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#19 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#20 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#21 {main}Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ upgrade failed
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Posting notification to users that are admins, this might take a while...
Posting 'Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!' to: Administrator
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

Screenshots, Videos, or Pastebins

No response

Additional Context

No response

Build Version

24

Environment

By downloading the VM

Environment Details

Ubuntu 20.04.5 LTS

@enoch85
Copy link
Member

enoch85 commented Oct 13, 2022

This is most likley a bug within some of the apps that you have enabled. Try to disable all the apps, then update again. Does it work?

@Ghostraider88
Copy link
Author

This is most likley a bug within some of the apps that you have enabled. Try to disable all the apps, then update again. Does it work?

Im not sure what app to disable. Is there any that can be safely disabled?
Thast the app list:

Enabled:

  • accessibility: 1.10.0
  • activity: 2.16.0
  • admin_audit: 1.14.0
  • circles: 24.0.1
  • cloud_federation_api: 1.7.0
  • comments: 1.14.0
  • contactsinteraction: 1.5.0
  • dashboard: 7.4.0
  • dav: 1.22.0
  • federatedfilesharing: 1.14.0
  • federation: 1.14.0
  • files: 1.19.0
  • files_external: 1.16.1
  • files_pdfviewer: 2.5.0
  • files_rightclick: 1.3.0
  • files_sharing: 1.16.2
  • files_trashbin: 1.14.0
  • files_versions: 1.17.0
  • files_videoplayer: 1.13.0
  • firstrunwizard: 2.13.0
  • logreader: 2.9.0
  • lookup_server_connector: 1.12.0
  • nextcloud_announcements: 1.13.0
  • notifications: 2.12.1
  • oauth2: 1.12.0
  • password_policy: 1.14.0
  • photos: 1.6.0
  • privacy: 1.8.0
  • provisioning_api: 1.14.0
  • recommendations: 1.3.0
  • serverinfo: 1.14.0
  • settings: 1.6.0
  • sharebymail: 1.14.0
  • support: 1.7.0
  • survey_client: 1.12.0
  • systemtags: 1.14.0
  • text: 3.5.1
  • theming: 1.15.0
  • twofactor_backupcodes: 1.13.0
  • updatenotification: 1.14.0
  • user_status: 1.4.0
  • viewer: 1.8.0
  • weather_status: 1.4.0
  • workflowengine: 2.6.0
    Disabled:
  • encryption
  • user_ldap

@enoch85 enoch85 added Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/ and removed bug labels Oct 13, 2022
@enoch85
Copy link
Member

enoch85 commented Oct 13, 2022

First hit on Google: nextcloud/docker#1747

@enoch85 enoch85 closed this as completed Oct 13, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/
Projects
None yet
Development

No branches or pull requests

2 participants