-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Nextcloud 14.0.0 beta 3 updater "ocm-provider" extra file #10677
Comments
The workaround for this issue is to remove the specified directory that the web updater complains of, yet I strongly suspect that directory was created by the update to NC 14.0.0 beta 1 since it has the same time stamp as when I updated to v14.0.0 beta 1 (27.07.2018) Steps I took to bypass the issue:
After moving the file, the update process went smoothly and I'm now running v 14.0.0 beta 3 I've attached the contents of thee "index.php" script here. |
usually was fixed by nextcloud/updater@1128773 🤔 |
In theory, yes. But it wasn't there. I ran into the very same issue when I tried to upgrade from beta 1 (or was it 2?) to beta 3. Is there any possibility that the updater does not replace the |
Usually not ... :/ anything in the updater.log in the data dir? |
My log from the day where I had the issue:
|
My logs above tell me that exactly that has happened. It failed to replace the updater. |
Yes ... I have seen this more often in the past, that random files could not be replaced, but no further details why it failed. Is there anything in your syslog? |
I don't have access to those anymore. |
Here's an extract for the day of the update from my I've checked the system log for that date and have not found anything relevant.
|
The log looks good. The errors are in the step where it checks for files and permissions - so this is all fine. |
I've also checked the On the other hand, I still have the
|
This is totally fine, because it needs to be there ;)
It logs already everything. ;) |
I have successfully updated to v14.0.0 beta 4 via the web UI and no error was reported. I made some preliminary tests after the update to beta 4 and so far so good. :)
|
Also the log looks good 👍 |
The underlying problem: The updater replaced everything but the Thanks for the feedback. |
@janvlug you tried #10677 (comment)? |
@danielkesselberg No not yet. Actually I waited a bit with trying to fix this, because maybe @MorrisJobke is interested in debugging. |
Reopened to get more debug info. |
I seriously have no idea why the old updater is not properly replaced. Could you check the old updater.log in your data directory? Maybe it has some more information. :( |
Sorry for the late reply. Here is a snippet from the updater.log: 2018-10-15T17:39:05+0200 eOKFDxUpZn [info] end of checkForUpdate() Update to Nextcloud 14.0.3 available. (channel: "stable") Here is the only file (index.php) that resides in the directory ocm-provider (I zipped it to be able to upload it here): |
Could you upload |
ls -al ./web/nextcloud/updater/index.php -rw-r--r-- 1 http http 62109 Aug 30 19:02 ./web/nextcloud/updater/index.php |
Big question also is, why the signature check does not trigger the code integrity problem. 🤔 |
Is there anything you would like me to test? Otherwise I will try to do the update after a few days by following the suggested workarounds. |
I removed the extra directory as suggested here: #10677 (comment). |
The better approach is to use the correct version of the updater from https://github.com/nextcloud/updater/tree/stable14 (just download Then the update should work fine. No idea why the updater was not properly replaced at all. |
I already went for the removal of the extra directory and file.
|
Because those files are actually code that we need. Thus the removal is not good. It's basically killing a feature. The problem here was the outdated updater script that was wrong in saying "extra directory ocm-provider" which is a totally valid directory in Nextcloud 14. |
I also encountered this problem, according to your method, I solved the problem perfectly, thank you! |
Very simple.. for fixed this issue. |
Please don't do this, but instead re-download the updater, because it somehow got not updated correctly :/ See #10677 (comment) |
thanks @MorrisJobke cd /var/www/nextcloud/updater After that the installer worked as expected. |
Steps to reproduce
Expected behaviour
The NC update should be implemented
Actual behaviour
I receive an error at the first step of the update ("Check for expected files") stating that an extra file has been found ("ocm-provider")
Server configuration
Operating system: Raspbian Strech 9.4
Web server: Apache/2.4.25 (Raspbian)
Database: mysql Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
PHP version: PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Nextcloud version: Nextcloud 14.0.0 beta 1
Updated from an older Nextcloud/ownCloud or fresh install: updated
Where did you install Nextcloud from: The official site
Signing status:
Signing status
List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
:~# sudo -u www-data php /var/www/nextcloud/occ config:list
{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"REMOVED SENSITIVE VALUE",
"192.168.1.12"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "http://nimbus.go.ro/nextcloud",
"dbtype": "mysql",
"version": "14.0.0.13",
"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\APCu",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"dbindex": 0,
"timeout": 1.5
},
"memcache.locking": "\OC\Memcache\Redis",
"maintenance": false,
"log_type": "file",
"logfile": "/var/log/nextcloud.log",
"log_level": 0,
"logtimezone": "Europe/Bucharest",
"log_rotate_size": "104857600",
"theme": "",
"updater.release.channel": "beta",
"loglevel": 2,
"updater.secret": "REMOVED SENSITIVE VALUE"
},
"apps": {
"accessibility": {
"enabled": "yes",
"installed_version": "1.0.1",
"types": ""
},
"activity": {
"enabled": "yes",
"installed_version": "2.7.0",
"notify_email_calendar": "0",
"notify_email_calendar_event": "0",
"notify_email_calendar_todo": "0",
"notify_email_comments": "0",
"notify_email_favorite": "0",
"notify_email_file_changed": "0",
"notify_email_file_created": "0",
"notify_email_file_deleted": "0",
"notify_email_file_restored": "0",
"notify_email_public_links": "0",
"notify_email_remote_share": "0",
"notify_email_shared": "0",
"notify_email_systemtags": "0",
"notify_setting_batchtime": "604800",
"notify_setting_self": "1",
"notify_setting_selfemail": "0",
"notify_stream_calendar": "1",
"notify_stream_calendar_event": "1",
"notify_stream_calendar_todo": "1",
"notify_stream_comments": "1",
"notify_stream_favorite": "1",
"notify_stream_file_changed": "1",
"notify_stream_file_created": "1",
"notify_stream_file_deleted": "1",
"notify_stream_file_favorite": "0",
"notify_stream_file_restored": "1",
"notify_stream_public_links": "1",
"notify_stream_remote_share": "1",
"notify_stream_shared": "1",
"notify_stream_systemtags": "1",
"types": "filesystem"
},
"backgroundjob": {
"lastjob": "42"
},
"bruteforcesettings": {
"enabled": "yes",
"installed_version": "1.1.0",
"types": ""
},
"calendar": {
"enabled": "yes",
"installed_version": "1.6.1",
"types": ""
},
"cloud_federation_api": {
"enabled": "yes",
"installed_version": "0.0.1",
"types": "filesystem"
},
"comments": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "logging"
},
"core": {
"backgroundjobs_mode": "cron",
"installed.bundles": "["CoreBundle"]",
"installedat": "1522146265.8253",
"lastcron": "1534177801",
"lastupdateResult": "{"version":"14.0.0.15","versionstring":"Nextcloud 14.0.0 Beta 3","url":"https:\/\/download.nextcloud.com\/server\/prereleases\/nextcloud-14.0.0beta3.zip","web":"https:\/\/docs.nextcloud.com\/server\/13\/admin_manual\/maintenance\/upgrade.html","changes":"","autoupdater":"1","eol":"0"}",
"lastupdatedat": "1534177621",
"moveavatarsdone": "yes",
"oc.integritycheck.checker": "[]",
"previewsCleanedUp": "1",
"public_files": "files_sharing/public.php",
"public_webdav": "dav/appinfo/v1/publicwebdav.php",
"scss.variables": "77aa2c892fabd342d0d904f3d66da905",
"updater.secret.created": "1534177637",
"vendor": "nextcloud"
},
"dav": {
"buildCalendarSearchIndex": "yes",
"enabled": "yes",
"installed_version": "1.6.0",
"sendInvitations": "no",
"types": "filesystem"
},
"federatedfilesharing": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": ""
},
"federation": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "authentication"
},
"files": {
"cronjob_scan_files": "500",
"enabled": "yes",
"installed_version": "1.9.0",
"types": "filesystem"
},
"files_pdfviewer": {
"enabled": "yes",
"installed_version": "1.3.2",
"types": ""
},
"files_sharing": {
"enabled": "yes",
"installed_version": "1.6.2",
"types": "filesystem"
},
"files_texteditor": {
"enabled": "yes",
"installed_version": "2.6.0",
"types": ""
},
"files_trashbin": {
"enabled": "yes",
"installed_version": "1.4.1",
"types": "filesystem,dav"
},
"files_versions": {
"enabled": "yes",
"installed_version": "1.7.1",
"types": "filesystem,dav"
},
"files_videoplayer": {
"enabled": "yes",
"installed_version": "1.3.0",
"types": ""
},
"firstrunwizard": {
"enabled": "yes",
"installed_version": "2.3.0",
"types": "logging"
},
"gallery": {
"enabled": "yes",
"installed_version": "18.1.0",
"types": ""
},
"logreader": {
"enabled": "yes",
"installed_version": "2.0.0",
"ocsid": "170871",
"types": ""
},
"lookup_server_connector": {
"enabled": "yes",
"installed_version": "1.2.0",
"types": "authentication"
},
"nextcloud_announcements": {
"enabled": "yes",
"installed_version": "1.3.0",
"pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
"types": "logging"
},
"notifications": {
"enabled": "yes",
"installed_version": "2.2.1",
"types": "logging"
},
"oauth2": {
"enabled": "yes",
"installed_version": "1.2.1",
"types": "authentication"
},
"password_policy": {
"enabled": "yes",
"enforceNumericCharacters": "1",
"enforceSpecialCharacters": "1",
"enforceUpperLowerCase": "1",
"installed_version": "1.4.0",
"types": ""
},
"provisioning_api": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "prevent_group_restriction"
},
"quota_warning": {
"enabled": "no",
"installed_version": "1.2.0",
"types": "filesystem"
},
"ransomware_protection": {
"enabled": "no",
"installed_version": "1.1.1",
"types": "logging"
},
"serverinfo": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": ""
},
"sharebymail": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "filesystem"
},
"support": {
"enabled": "yes",
"installed_version": "1.0.0",
"types": ""
},
"survey_client": {
"enabled": "yes",
"installed_version": "1.2.0",
"types": ""
},
"systemtags": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "logging"
},
"theming": {
"cachebuster": "40",
"color": "#111111",
"enabled": "yes",
"installed_version": "1.5.0",
"name": "Nimbus",
"slogan": "Nothing to see here, move along.",
"types": "logging",
"url": "https://piska.go.ro/"
},
"twofactor_backupcodes": {
"enabled": "yes",
"installed_version": "1.3.0",
"types": ""
},
"updatenotification": {
"bruteforcesettings": "1.1.0",
"core": "14.0.0.15",
"enabled": "yes",
"files_pdfviewer": "1.2.1",
"installed_version": "1.4.1",
"theming": "1.4.5",
"types": "",
"update_check_errors": "0"
},
"workflowengine": {
"enabled": "yes",
"installed_version": "1.4.0",
"types": "filesystem"
}
}
}
~:#
Are you using external storage, if yes which one: /mnt/store
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Mozilla Firefox Quantum 59.0.2 for Fedora
Operating system: Fedora 27 Workstation
Logs
Web server error log
No error logged in Apache2's error log.
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
I doubt it has anything to do with the browser.
The text was updated successfully, but these errors were encountered: