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

Upgrade to 14.0.2 fails with error: UnexpectedValueException: The files of the app "lookup_server_connector" were not correctly replaced before running the update #11801

Closed
cmonty14 opened this issue Oct 12, 2018 · 3 comments
Labels

Comments

@cmonty14
Copy link

Steps to reproduce

  1. Run upgrade with package manager: apk upgrade
  2. Run sudo -u occ uprade

Expected behaviour

No errors after upgrade

Actual behaviour

UnexpectedValueException: The files of the app "lookup_server_connector" were not correctly replaced before running the update
{"reqId":"KStkBdpPaapNIWk4XLHJ","level":3,"time":"2018-10-12T14:34:22+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: UnexpectedValueException: The files of the app \"lookup_server_connector\" were not correctly replaced before running the update","userAgent":"--","version":"14.0.1.1"}
Update failed

Server configuration

Operating system:
Alpine Linux 3.8
Web server:
Nginx 1.14.0
Database:
MariaDB 10.3.9
PHP version:
7.2.11
Nextcloud version: (see Nextcloud admin page)
14.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Alpine package manager

Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

Nextcloud is in maintenance mode after failed upgrade.

ct114-devcloud:/usr/share/webapps/nextcloud# sudo -u nextcloud php occ app:list
The current PHP memory limit is below the recommended value of 512MB.
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
Enabled:
  - accessibility: 1.0.1
  - cloud_federation_api: 0.0.1
  - dav: 1.6.0
  - federatedfilesharing: 1.4.0
  - files: 1.9.0
  - provisioning_api: 1.4.0
  - support: 1.0.0
Disabled:

Nextcloud configuration:

ct114-devcloud:/usr/share/webapps/nextcloud# sudo -u nextcloud php occ config:list system
The current PHP memory limit is below the recommended value of 512MB.
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
{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "apps_paths": [
            {
                "path": "\/usr\/share\/webapps\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/lib\/nextcloud\/apps",
                "url": "\/apps-appstore",
                "writable": true
            }
        ],
        "updatechecker": false,
        "check_for_working_htaccess": false,
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "devcloud.whl.biszumbitterenen.lan"
        ],
        "dbtype": "mysql",
        "version": "14.0.1.1",
        "overwrite.cli.url": "https:\/\/devcloud.whl.biszumbitterenen.lan",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": true
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Nextcloud log (data/nextcloud.log)

Nextcloud log
no relevant entries for the point in time
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8240 (Update to Nextcloud 13.0.0 Fails: UnexpectedValueException: The files of the app "files" were not correctly replaced before running the update), #11751 (14.0.2), #3045 (Update to 10.0.2 fails [Check for expected files]), #6219 (Circle-app has an error when upgrading to 12.0.2), and #11797 (Upgrade from 13.0.7 to 14.0.2 failed).

@cmonty14
Copy link
Author

Fixed by manual upgrade.

@jose1711
Copy link

i hit the same problem. as part of the investigation i discovered that apk info -L nextcloud-lookup_server_connector is giving me empty output. so i ran apk add nextcloud-lookup_server_connector. this got me a little further (nextcloud-twofactor_backupcodes and nextcloud-workflowengine had to be reinstalled as well) and in the end i got occ upgrade to finish w/o an error

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

No branches or pull requests

3 participants