nextcloud / updater

:arrows_counterclockwise: The updater app to keep your Nextcloud up-to-date
GNU Affero General Public License v3.0
45 stars 33 forks source link

[Bug]: web updater failing 27.00 to 27.0.2 #483

Closed stratege1401 closed 5 months ago

stratege1401 commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

Web updater from 27.0.0 to 27.0.2 failed.

Fresh Nextcloud 27.0.0 install on a Debian 12, apache2 2.54, php 8.2, mariadb, redis ... Everything is working absolutly fine.

NC signal an update is available. Opening the webupdater works until step4, then hang...

No specific logs.

Steps to reproduce

  1. fresh 27.0.0 install
  2. after the notification, use the web updater
  3. step four hangs

Expected behavior

no hangs obviously on step 4

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "27.0.2.1",
        "default_phone_region": "FR",
        "trusted_domains": [
            "next.rkn.ovh",
            "82.64.24.17",
            "192.168.1.254"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/next.rkn.ovh\/",
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "false",
        "redis": {
            "localhost": "\/var\/run\/redis\/redis.sock",
            "port": 6379,
            "timeout": 0
        },
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "twofactor_reminder",
            "twofactor_admin",
            "hibp",
            "twofactor_gateway",
            "hibp_login_check",
            "admin_notifications"
        ],
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "loglevel": 2,
        "maintenance": false
    }
}

List of activated Apps

root@next:/var/www/html# sudo -u www-data php occ app:list
Enabled:
  - activity: 2.19.0
  - admin_notifications: 1.0.2
  - cfg_share_links: 4.1.0
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contactsinteraction: 1.8.0
  - dav: 1.27.0
  - external: 5.2.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_notify_redis: 0.3.1
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_snapshots: 1.0.7
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - hibp: 0.1.0
  - hibp_login_check: 0.0.1
  - impersonate: 1.14.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - passwords: 2023.8.31
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - registration: 2.2.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - terms_of_service: 2.2.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_admin: 0.2.1
  - twofactor_backupcodes: 1.16.0
  - twofactor_email: 2.7.3
  - twofactor_gateway: 0.20.0
  - twofactor_nextcloud_notification: 3.7.0
  - twofactor_reminder: 1.0.0
  - twofactor_totp: 9.0.0
  - twofactor_webauthn: 1.2.0
  - unsplash: 2.2.1
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - bruteforcesettings: 2.7.0
  - dashboard: 7.7.0 (installed 7.7.0)
  - encryption: 2.15.0
  - files_external: 1.19.0
  - suspicious_login: 5.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

empty file

Nextcloud Logs

i provide the only intersecting part... nothing to see anywhere else

[version] => 27.0.2.1
    [versionstring] => Nextcloud 27.0.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.2.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => pd8gQOxzJqcjCR10kWmt+vKhOXWJimF8FhdGcuzkZc/7Ujg8zY+xL3UQ9BG0x9nN
YXC7CtgMDeVr55/UoB2qHpWijze7HD7qsBD9tx4MDTvcTyH4lF5LGsFWydCUrEvH
TAF3mBAqRasfq7Exz7QbMtiqsw3U4+sku2QEQyYZOH6dupbT/k3i5I+syRQiTK9O
1mhmO0WnSMSlW+uMPUsABipYyfiY4bxRJja/kv4GVA66DLSdxrq7WUvvxK2HNKOf
V22tSiRwjvYLZDM6drqpW6DY6hKMoeKFGc14KrFgwN1WFJShmdFCG+Tld3iEcVwE
wf5nncfHuTeT/AapME4dLQ==
)

2023-08-11T14:02:58+0000 4PMX3EGmPg [info] request to updater
2023-08-11T14:02:58+0000 4PMX3EGmPg [info] currentStep()
2023-08-11T14:02:58+0000 4PMX3EGmPg [info] Step 4 is in state "start".
2023-08-11T14:03:05+0000 AYAgg4MRk2 [info] request to updater
2023-08-11T14:03:05+0000 AYAgg4MRk2 [info] currentStep()
2023-08-11T14:03:05+0000 AYAgg4MRk2 [info] Step 4 is in state "start".
2023-08-11T14:03:10+0000 pEwEakkIfA [info] request to updater
2023-08-11T14:03:10+0000 pEwEakkIfA [info] currentStep()
2023-08-11T14:03:10+0000 pEwEakkIfA [info] Step 4 is in state "start".
2023-08-11T14:04:36+0000 kxqQHqW08q [info] request to updater
2023-08-11T14:04:36+0000 kxqQHqW08q [info] currentStep()
2023-08-11T14:04:36+0000 kxqQHqW08q [info] Step 4 is in state "start".
2023-08-11T14:04:56+0000 U0aJa4O6TD [info] request to updater
2023-08-11T14:04:56+0000 U0aJa4O6TD [info] currentStep()
2023-08-11T14:04:56+0000 U0aJa4O6TD [info] Step 4 is in state "start".
2023-08-11T14:06:31+0000 v9HLXn9jqh [info] request to updater
2023-08-11T14:06:31+0000 v9HLXn9jqh [info] currentStep()
2023-08-11T14:06:31+0000 v9HLXn9jqh [info] Step 4 is in state "start".

Additional info

No response

rightsaidfred99 commented 1 year ago

Same here!

stratege1401 commented 1 year ago

My initial config was not 100% ok .... Redis cache was broken due to bad syntax in config/config.php...

Manual update is working with failed files... Also fixed...

Recreated a fresh install with fixed config.

Again, step 4 is hanging with no visible reasons .

Le sam. 12 août 2023, 06:14, rightsaidfred99 @.***> a écrit :

Same here!

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/updater/issues/483#issuecomment-1675678615, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCBCPO62EKZVAUPYV2DTXLXU37LZANCNFSM6AAAAAA3NGXAC4 . You are receiving this because you authored the thread.Message ID: @.***>

joshtrichards commented 1 year ago

2023-08-11T14:02:58+0000 4PMX3EGmPg [info] Step 4 is in state "start".

Since there are no additional log entries after this it would appear the rest of the preliminary checks in downloadUpdate() are not finding a problem so I can only assume what's hanging is the download itself.

It needs to download the archive file which is ~200 MB.

Can you confirm, using curl or wget at the command-line, that you can access the archive url from your NC server (doesn't sound like you're using Docker so just from the same host) - e.g.

curl https://download.nextcloud.com/server/releases/nextcloud-27.0.2.zip --output /dev/null

rightsaidfred99 commented 1 year ago

I'm running a docker container, and well it kinda fixed itself.

I'm now running 27.0.2 and the "update" section is now no longer visible in the nextcloud UI, but the latest version is installed. Guessing the docker image now handles the update as previously I did it via the UI even though watchtowerr is looking after the docker images.

joshtrichards commented 1 year ago

@rightsaidfred99 Yes. Docker is a different matter entirely. All the images I'm aware of that exist today (including third-party ones) for NC no longer use the built-in updater. The proper - and now exclusive to my knowledge - way to update Docker environments is generally to update the image with a docker compose pull (or equivalent). I'm going to make an educated guess that you're using the LinuxServer.io NC Image (since it's image I'm aware of that most recently made this change): https://info.linuxserver.io/issues/2023-06-25-nextcloud/

joshtrichards commented 10 months ago

@stratege1401 If you're able, it would be helpful to see a non-excerpt version of your updater.log. You can still redact anything deemed confidential of course.

joshtrichards commented 5 months ago

Closing due to not receiving any further details. I suggest running updater.phar from the command line next time around to see if something isn't making it into the logs.

Also, check the contents of your data/updater-INSTANCEID download folder.