-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 15.0.1 upgrade error #13499
Comments
I had the very same issue, in the same circumstances (15.0 always updated with online installer), and this was my output Done |
@mightyBroccoli Were you able to find any fix or workaround for this issue? |
For what its worth, this seems to happen for 14.0.4 -> 14.0.5 also.. Done updated using the updater.phar cli tool, with no issues reported up until that point. |
There might be a but in the code introduced by #13439. Maybe you could try to replace |
updated /usr/share/nextcloud/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php lines 78 and 108 as mentioned... TypeError: Argument 1 passed to OCA\DAV\Migration\RemoveClassifiedEventActivity::getPrincipal() must be of the type string, null given, called in /usr/share/nextcloud/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php on line 78 and defined in /usr/share/nextcloud/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php:120 |
Thanks - we are looking into it - we stopped the updater for now |
I guess no-op'ing the loop at line 78 is a reasonable bandaid until we figure out what is going on? (for me, it means the difference between a broken nextcloud, and one that responds!)
|
Urgh, this error basically means you have events which don't have a calendar anymore :/ |
ah so diffeernt than what I tought |
You can find the PR here: #13503 |
Fix is in #13503 |
Forgive my ignorance, how can I apply the fix to my installation, so as to proceed with the upgrade and restore function? |
Download the file in #13503 and replace it. |
Alternatively, apply the patch: https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/13503.patch |
Thank you!!! |
FYI: patch applied and then ran;
it's referring to this function: no big deal, but just through you guys might like to know. |
Install 15.0.2 and run the update there. Then it should work fine |
previous comment was after upgrading from 14.0.5 to 14.0.6, and then running the maintenance:repair. just upgraded to 15.0.2, still seeing the same error... fyi:
|
so, to recap, currently the fix is;
Which includes a null check. However, the followup issue occurring is where $row['principaluri'] is not actually null, but not of the form we expect.
updating this to:
And we get the output:
hope this helps someone! |
Can you try replacing:
with: return array_pop($uri); |
ran through as expected. no issues. |
Steps to reproduce
Expected behaviour
Upgrade should run proṕerly
Actual behaviour
This error appeared.
Server configuration
Operating system:
Debian 9.6
Web server:
nginx
Database:
MariaDB - 10.1.37-0+deb9u1
PHP version:
7.0.33-1
Nextcloud version: (see Nextcloud admin page)
15.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
upgraded all steps until today
Where did you install Nextcloud from:
website
List of activated apps:
App list
Enabled: - accessibility: 1.1.0 - activity: 2.8.2 - admin_audit: 1.5.0 - announcementcenter: 3.4.0 - calendar: 1.6.4 - cloud_federation_api: 0.1.0 - comments: 1.5.0 - contacts: 3.0.1 - data_request: 1.2.0 - dav: 1.8.0 - federatedfilesharing: 1.5.0 - federation: 1.5.0 - files: 1.10.0 - files_accesscontrol: 1.5.0 - files_external: 1.6.0 - files_markdown: 2.0.5 - files_pdfviewer: 1.4.0 - files_retention: 1.4.0 - files_sharing: 1.7.0 - files_texteditor: 2.7.0 - files_trashbin: 1.5.0 - files_versions: 1.8.0 - firstrunwizard: 2.4.0 - gallery: 18.2.0 - groupfolders: 2.0.2 - impersonate: 1.2.0 - logreader: 2.0.0 - lookup_server_connector: 1.3.0 - nextcloud_announcements: 1.4.0 - notifications: 2.3.0 - oauth2: 1.3.0 - password_policy: 1.5.0 - polls: 0.9.5 - provisioning_api: 1.5.0 - quota_warning: 1.4.0 - ransomware_protection: 1.3.0 - serverinfo: 1.5.0 - sharebymail: 1.5.0 - support: 1.0.0 - systemtags: 1.5.0 - tasks: 0.9.8 - theming: 1.6.0 - twofactor_backupcodes: 1.4.1 - twofactor_nextcloud_notification: 1.0.2 - twofactor_totp: 2.1.0 - twofactor_u2f: 2.1.0 - updatenotification: 1.5.0 - workflowengine: 1.5.0 Disabled: - encryption - files_rightclick - files_videoplayer - socialsharing_email - survey_client - user_external - user_ldapNextcloud configuration:
Config report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.example.tld", "www.cloud.example.tld" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "version": "15.0.0.10", "installed": true, "cipher": "AES-256-CFB", "dbtype": "mysql", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "mysql.utf8mb4": true, "default_language": "de", "defaultapp": "files", "enable_avatars": true, "allow_user_to_change_display_name": true, "updater.release.channel": "stable", "upgrade.disable-web": false, "check_for_working_webdav": true, "htaccess.RewriteBase": "\/", "trashbin_retention_obligation": "auto, 60", "versions_retention_obligation": "auto", "activity_expire_days": 90, "filesystem_check_changes": 0, "theme": "", "maintenance": true, "singleuser": false, "data-fingerprint": "16b42c01070fc24c2086fb974eda1d16", "overwriteprotocol": "https", "overwrite.cli.url": "https:\/\/cloud.example.tld", "mail_smtpmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpauthtype": "LOGIN", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "tls", "logdateformat": "d.m.Y - H:i:s", "logtimezone": "Europe\/Berlin", "log_rotate_size": false, "loglevel": 0, "logfile": "\/var\/log\/nextcloud\/nextcloud.log", "filelocking.enabled": "true", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "dbindex": 1, "port": 0, "timeout": 1.5 }, "enable_previews": true, "preview_max_x": 1024, "preview_max_y": 1024, "preview_max_scale_factor": 1, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "sharing.minSearchStringLength": 3, "updater.secret": "***REMOVED SENSITIVE VALUE***" } }Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
The text was updated successfully, but these errors were encountered: