Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: Can't upgrade via the updater. #416

Closed
5 of 8 tasks
rahmanlar opened this issue Apr 27, 2022 · 4 comments
Closed
5 of 8 tasks

[Bug]: Can't upgrade via the updater. #416

rahmanlar opened this issue Apr 27, 2022 · 4 comments

Comments

@rahmanlar
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

I tried to upgrade my NextCloud server via the web interface, it didn't do anything, when I clicked the upgrade button it redirected me to the dashboard. Then I tried the OCC CLI interface, it was kinda riddiculous:
www-data@0fefdd67011d:~/html$ php occ update:check Nextcloud 23.0.4 is available. Get more information on how to update at https://docs.nextcloud.com/server/23/admin_manual/maintenance/upgrade.html. 1 update available www-data@0fefdd67011d:~/html$ php occ upgrade Nextcloud is already latest version

Steps to reproduce

  1. Open up administrator panel on NextCloud 23.0.3 (Or php occ)
  2. Try to upgrade from website (Or commandline)
  3. It doesn't do anything.

Expected behavior

It should update.

Installation method

Official Docker image

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.cezeri.tech"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "23.0.3.2",
        "overwrite.cli.url": "http:\/\/cloud.cezeri.tech",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "has_rebuilt_cache": true,
        "app_install_overwrite": [
            "whiteboard"
        ],
        "maintenance": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - announcementcenter: 6.2.0
  - apporder: 0.15.0
  - bruteforcesettings: 2.4.0
  - calendar: 3.2.2
  - cfg_share_links: 1.2.2
  - circles: 23.1.0
  - cloud_federation_api: 1.6.0
  - comments: 1.13.0
  - contacts: 4.1.0
  - contactsinteraction: 1.4.0
  - dashboard: 7.3.0
  - dav: 1.21.0
  - deck: 1.6.1
  - drawio: 1.0.2
  - electronicsignatures: 2.0.0
  - external: 3.10.2
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_3d: 0.5.0
  - files_accesscontrol: 1.13.0
  - files_automatedtagging: 1.13.0
  - files_fulltextsearch: 23.0.1
  - files_pdfviewer: 2.4.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - firstrunwizard: 2.12.0
  - forms: 2.5.0
  - fulltextsearch: 23.0.0
  - groupfolders: 11.1.2
  - integration_github: 1.0.2
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.11.7
  - maps: 0.1.10
  - nextcloud_announcements: 1.12.0
  - notes: 4.3.1
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - onlyoffice: 7.3.2
  - password_policy: 1.13.0
  - photos: 1.5.0
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - quota_warning: 1.14.0
  - recommendations: 1.2.0
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - spreed: 13.0.5
  - support: 1.6.0
  - survey_client: 1.11.0
  - systemtags: 1.13.0
  - talked: 0.3.0
  - tasks: 0.14.4
  - terms_of_service: 1.9.3
  - text: 3.4.1
  - theming: 1.14.0
  - twofactor_backupcodes: 1.12.0
  - unroundedcorners: 1.0.3
  - updatenotification: 1.13.0
  - user_status: 1.3.1
  - viewer: 1.7.0
  - weather_status: 1.3.0
  - workflowengine: 2.5.0
Disabled:
  - admin_audit
  - analytics: 4.2.1
  - encryption: 2.11.0
  - files_external
  - news: 18.0.1
  - occweb: 0.1.0
  - richdocuments: 5.0.3
  - richdocumentscode: 21.11.306
  - user_ldap
  - whiteboard: 0.0.3

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

From when I click to the update button:
{"reqId":"h204dIMjd6Nc8HODzFJ3","level":2,"time":"2022-04-27T08:40:25+00:00","remoteAddr":"172.18.0.1","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: 9fenb (Remote IP: 172.18.0.1)","userAgent":"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36","version":"23.0.3.2"}
{"reqId":"RB3i53FSDc4OSHSblUEx","level":3,"time":"2022-04-27T20:42:45+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/cron.php","message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"23.0.3.2","exception":{"Exception":"Error","Message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Updater/VersionCheck.php","line":98,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8192,"Function libxml_disable_entity_loader() is deprecated","/var/www/html/lib/private/Updater/VersionCheck.php",98]},{"file":"/var/www/html/apps/updatenotification/lib/Notification/BackgroundJob.php","line":106,"function":"check","class":"OC\\Updater\\VersionCheck","type":"->","args":[]},{"file":"/var/www/html/apps/updatenotification/lib/Notification/BackgroundJob.php","line":91,"function":"checkCoreUpdate","class":"OCA\\UpdateNotification\\Notification\\BackgroundJob","type":"->","args":[]},{"file":"/var/www/html/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\UpdateNotification\\Notification\\BackgroundJob","type":"->","args":[null]},{"file":"/var/www/html/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":172,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"RB3i53FSDc4OSHSblUEx","level":3,"time":"2022-04-27T20:42:45+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/cron.php","message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"23.0.3.2","exception":{"Exception":"Error","Message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Updater/VersionCheck.php","line":100,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8192,"Function libxml_disable_entity_loader() is deprecated","/var/www/html/lib/private/Updater/VersionCheck.php",100]},{"file":"/var/www/html/apps/updatenotification/lib/Notification/BackgroundJob.php","line":106,"function":"check","class":"OC\\Updater\\VersionCheck","type":"->","args":[]},{"file":"/var/www/html/apps/updatenotification/lib/Notification/BackgroundJob.php","line":91,"function":"checkCoreUpdate","class":"OCA\\UpdateNotification\\Notification\\BackgroundJob","type":"->","args":[]},{"file":"/var/www/html/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\UpdateNotification\\Notification\\BackgroundJob","type":"->","args":[null]},{"file":"/var/www/html/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":172,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"KjU1x7Uu9oSaWbMwbGvV","level":2,"time":"2022-04-27T21:05:59+00:00","remoteAddr":"172.18.0.1","user":"ensar","app":"fulltextsearch","method":"GET","url":"/ocs/v2.php/search/providers/fulltextsearch/search?term=white&from=%2Fsettings%2Fadmin%2Foverview","message":"Admin have not selected any IFullTextSearchPlatform","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"23.0.3.2"}
{"reqId":"XrQd8eiWzvTEy8ogDI4v","level":2,"time":"2022-04-27T21:06:00+00:00","remoteAddr":"172.18.0.1","user":"ensar","app":"fulltextsearch","method":"GET","url":"/ocs/v2.php/search/providers/fulltextsearch/search?term=whiteboard&from=%2Fsettings%2Fadmin%2Foverview","message":"Admin have not selected any IFullTextSearchPlatform","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"23.0.3.2"}
{"reqId":"wJJSlFx54MXvMHUwoiju","level":2,"time":"2022-04-27T21:06:15+00:00","remoteAddr":"172.18.0.1","user":"ensar","app":"fulltextsearch","method":"GET","url":"/ocs/v2.php/search/providers/fulltextsearch/search?term=white&from=%2Fsettings%2Fapps","message":"Admin have not selected any IFullTextSearchPlatform","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"23.0.3.2"}
{"reqId":"CA4SdMoWLbWS3uaWYGfI","level":3,"time":"2022-04-27T21:16:33+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Error","Message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Updater/VersionCheck.php","line":98,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8192,"Function libxml_disable_entity_loader() is deprecated","/var/www/html/lib/private/Updater/VersionCheck.php",98]},{"file":"/var/www/html/apps/updatenotification/lib/UpdateChecker.php","line":52,"function":"check","class":"OC\\Updater\\VersionCheck","type":"->","args":[]},{"file":"/var/www/html/apps/updatenotification/lib/Command/Check.php","line":73,"function":"getUpdateState","class":"OCA\\UpdateNotification\\UpdateChecker","type":"->","args":[]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OCA\\UpdateNotification\\Command\\Check","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OCA\\UpdateNotification\\Command\\Check"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/html/occ","line":11,"args":["/var/www/html/console.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"CA4SdMoWLbWS3uaWYGfI","level":3,"time":"2022-04-27T21:16:33+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Error","Message":"Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Updater/VersionCheck.php","line":100,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8192,"Function libxml_disable_entity_loader() is deprecated","/var/www/html/lib/private/Updater/VersionCheck.php",100]},{"file":"/var/www/html/apps/updatenotification/lib/UpdateChecker.php","line":52,"function":"check","class":"OC\\Updater\\VersionCheck","type":"->","args":[]},{"file":"/var/www/html/apps/updatenotification/lib/Command/Check.php","line":73,"function":"getUpdateState","class":"OCA\\UpdateNotification\\UpdateChecker","type":"->","args":[]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OCA\\UpdateNotification\\Command\\Check","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OCA\\UpdateNotification\\Command\\Check"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/html/occ","line":11,"args":["/var/www/html/console.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}

Additional info

I use Apache server with Caddy reverse-proxy

@szaimen szaimen transferred this issue from nextcloud/server Apr 27, 2022
@rahmanlar
Copy link
Author

rahmanlar commented Apr 27, 2022

NOTE: This looks like a similar issue, but in other similar issues the users at least can get into the updater page however I can't even get that far, the button only redirects me to the dashboard.

@rahmanlar
Copy link
Author

PS: I realized that there's no updater.phar or the updater directory on my NextCloud instance's files, how can I get it?

@joshtrichards
Copy link
Member

joshtrichards commented Jul 2, 2023

Hi @rahmanlar Thanks for your report. Your report says "official Docker image" is install method.

Which Docker image, specifically, was/is this occurring in?

I ask because typically you upgrade the Docker image not the Nextcloud update directly.

@rahmanlar
Copy link
Author

Hi @rahmanlar Thanks for your report. Your report says "official Docker image" is install method.

Which Docker image, specifically, was/is this occurring in?

I ask because typically you upgrade the Docker image not the Nextcloud update directly.

Oh, sorry! I forgot to update the issue.
Now I just use the nextcloud:latest image in my compose file and when it pulls, it gets automatically updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants