-
Hello @potemkin_ai
Like with every Nextcloud update apps installed within Nextcloud can cause issues like this.
Please see: https://docs.cloudron.io/packages/nextcloud#fixing-a-broken-install@james it's a stock NextCloud with not a single plugin / app enabled on top.
Also in this case - it seems like I will have to disable oauth plugin - meaning I won't be able to login.
None of my other Cloudron/NextCloud instances has this problem - probably just yet, so I thought I would rather raise this to you.
-
Hello @potemkin_ai
Please put the failing Nextcloud into recovery mode.
Enter the Web Terminal and run/app/pkg/start.shfrom the web terminal.
If thestart.shfails at a point, please send the log.
If you'd like you can edit the/app/pkg/start.shand changeset -eutoset -euxwhich will print every command run.
This verbose output could help us identify at which exact point it is failing. -
Hello @potemkin_ai
Please put the failing Nextcloud into recovery mode.
Enter the Web Terminal and run/app/pkg/start.shfrom the web terminal.
If thestart.shfails at a point, please send the log.
If you'd like you can edit the/app/pkg/start.shand changeset -eutoset -euxwhich will print every command run.
This verbose output could help us identify at which exact point it is failing.@james thank you. The thing is that it is the log from manual shell script execution…
-
Hello @potemkin_ai
Can you run withset -euxand share the output please?@james apologies for the delay and yes, sure:
onnecting... root@6216bec8-a24b-4a21-bf06-46c8e76505c4:/app/code# vi /app/pkg/start.sh root@6216bec8-a24b-4a21-bf06-46c8e76505c4:/app/code# head /app/pkg/start.sh #!/bin/bash set -eux readonly occ="sudo -u www-data php /app/code/occ" export mail_from_sub=$(echo $CLOUDRON_MAIL_FROM | cut -d \@ -f 1) export mail_domain_sub=$(echo $CLOUDRON_MAIL_FROM | cut -d \@ -f 2) mkdir -p /run/nextcloud/sessions /tmp/nextcloud root@6216bec8-a24b-4a21-bf06-46c8e76505c4:/app/code# /app/pkg/start.sh + readonly 'occ=sudo -u www-data php /app/code/occ' + occ='sudo -u www-data php /app/code/occ' ++ echo cld.app@mydomain.com ++ cut -d @ -f 1 + export mail_from_sub=cld.app + mail_from_sub=cld.app ++ echo cld.app@mydomain.com ++ cut -d @ -f 2 + export mail_domain_sub=mydomain.com + mail_domain_sub=mydomain.com + mkdir -p /run/nextcloud/sessions /tmp/nextcloud ++ ls -A /app/data + [[ -z apache apps config core data data.orig-migrated htaccess php.ini ]] + NEW_APPS=/app/pkg/apps_template + OLD_APPS=/app/data/apps + echo '==> Updating apps' ==> Updating apps + echo '==> Old apps:' ==> Old apps: + ls /app/pkg/apps_template/ activity contactsinteraction files_external logreader privacy support twofactor_totp admin_audit dashboard files_lock lookup_server_connector profile survey_client updatenotification app_api dav files_pdfviewer nextcloud_announcements provisioning_api suspicious_login user_ldap appstore encryption files_reminders notifications recommendations systemtags user_status bruteforcesettings federatedfilesharing files_sharing oauth2 related_resources text viewer circles federation files_trashbin office serverinfo theming weather_status cloud_federation_api files files_versions password_policy settings twofactor_backupcodes webhook_listeners comments files_downloadlimit firstrunwizard photos sharebymail twofactor_nextcloud_notification workflowengine + ls /app/data/apps/ activity contactsinteraction files_external logreader privacy spreed twofactor_backupcodes weather_status admin_audit dashboard files_lock lookup_server_connector profile support twofactor_nextcloud_notification webhook_listeners app_api dav files_pdfviewer nextcloud_announcements provisioning_api survey_client twofactor_totp workflowengine appstore encryption files_reminders notifications recommendations suspicious_login updatenotification bruteforcesettings federatedfilesharing files_sharing oauth2 related_resources systemtags user_ldap circles federation files_trashbin office serverinfo testing user_oidc cloud_federation_api files files_versions password_policy settings text user_status comments files_downloadlimit firstrunwizard photos sharebymail theming viewer ++ find /app/pkg/apps_template/activity /app/pkg/apps_template/admin_audit /app/pkg/apps_template/app_api /app/pkg/apps_template/appstore /app/pkg/apps_template/bruteforcesettings /app/pkg/apps_template/circles /app/pkg/apps_template/cloud_federation_api /app/pkg/apps_template/comments /app/pkg/apps_template/contactsinteraction /app/pkg/apps_template/dashboard /app/pkg/apps_template/dav /app/pkg/apps_template/encryption /app/pkg/apps_template/federatedfilesharing /app/pkg/apps_template/federation /app/pkg/apps_template/files /app/pkg/apps_template/files_downloadlimit /app/pkg/apps_template/files_external /app/pkg/apps_template/files_lock /app/pkg/apps_template/files_pdfviewer /app/pkg/apps_template/files_reminders /app/pkg/apps_template/files_sharing /app/pkg/apps_template/files_trashbin /app/pkg/apps_template/files_versions /app/pkg/apps_template/firstrunwizard /app/pkg/apps_template/logreader /app/pkg/apps_template/lookup_server_connector /app/pkg/apps_template/nextcloud_announcements /app/pkg/apps_template/notifications /app/pkg/apps_template/oauth2 /app/pkg/apps_template/office /app/pkg/apps_template/password_policy /app/pkg/apps_template/photos /app/pkg/apps_template/privacy /app/pkg/apps_template/profile /app/pkg/apps_template/provisioning_api /app/pkg/apps_template/recommendations /app/pkg/apps_template/related_resources /app/pkg/apps_template/serverinfo /app/pkg/apps_template/settings /app/pkg/apps_template/sharebymail /app/pkg/apps_template/support /app/pkg/apps_template/survey_client /app/pkg/apps_template/suspicious_login /app/pkg/apps_template/systemtags /app/pkg/apps_template/text /app/pkg/apps_template/theming /app/pkg/apps_template/twofactor_backupcodes /app/pkg/apps_template/twofactor_nextcloud_notification /app/pkg/apps_template/twofactor_totp /app/pkg/apps_template/updatenotification /app/pkg/apps_template/user_ldap /app/pkg/apps_template/user_status /app/pkg/apps_template/viewer /app/pkg/apps_template/weather_status /app/pkg/apps_template/webhook_listeners /app/pkg/apps_template/workflowengine -maxdepth 0 -type d -printf '%f\n' + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: activity' ==> Update app: activity + rm -rf /app/data/apps/activity + cp -rf /app/pkg/apps_template/activity /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: admin_audit' ==> Update app: admin_audit + rm -rf /app/data/apps/admin_audit + cp -rf /app/pkg/apps_template/admin_audit /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: app_api' ==> Update app: app_api + rm -rf /app/data/apps/app_api + cp -rf /app/pkg/apps_template/app_api /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: appstore' ==> Update app: appstore + rm -rf /app/data/apps/appstore + cp -rf /app/pkg/apps_template/appstore /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: bruteforcesettings' ==> Update app: bruteforcesettings + rm -rf /app/data/apps/bruteforcesettings + cp -rf /app/pkg/apps_template/bruteforcesettings /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: circles' ==> Update app: circles + rm -rf /app/data/apps/circles + cp -rf /app/pkg/apps_template/circles /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: cloud_federation_api' ==> Update app: cloud_federation_api + rm -rf /app/data/apps/cloud_federation_api + cp -rf /app/pkg/apps_template/cloud_federation_api /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: comments' ==> Update app: comments + rm -rf /app/data/apps/comments + cp -rf /app/pkg/apps_template/comments /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: contactsinteraction' ==> Update app: contactsinteraction + rm -rf /app/data/apps/contactsinteraction + cp -rf /app/pkg/apps_template/contactsinteraction /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: dashboard' ==> Update app: dashboard + rm -rf /app/data/apps/dashboard + cp -rf /app/pkg/apps_template/dashboard /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: dav' ==> Update app: dav + rm -rf /app/data/apps/dav + cp -rf /app/pkg/apps_template/dav /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: encryption' ==> Update app: encryption + rm -rf /app/data/apps/encryption + cp -rf /app/pkg/apps_template/encryption /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: federatedfilesharing' ==> Update app: federatedfilesharing + rm -rf /app/data/apps/federatedfilesharing + cp -rf /app/pkg/apps_template/federatedfilesharing /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: federation' ==> Update app: federation + rm -rf /app/data/apps/federation + cp -rf /app/pkg/apps_template/federation /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files' ==> Update app: files + rm -rf /app/data/apps/files + cp -rf /app/pkg/apps_template/files /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_downloadlimit' ==> Update app: files_downloadlimit + rm -rf /app/data/apps/files_downloadlimit + cp -rf /app/pkg/apps_template/files_downloadlimit /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_external' ==> Update app: files_external + rm -rf /app/data/apps/files_external + cp -rf /app/pkg/apps_template/files_external /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_lock' ==> Update app: files_lock + rm -rf /app/data/apps/files_lock + cp -rf /app/pkg/apps_template/files_lock /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_pdfviewer' ==> Update app: files_pdfviewer + rm -rf /app/data/apps/files_pdfviewer + cp -rf /app/pkg/apps_template/files_pdfviewer /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_reminders' ==> Update app: files_reminders + rm -rf /app/data/apps/files_reminders + cp -rf /app/pkg/apps_template/files_reminders /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_sharing' ==> Update app: files_sharing + rm -rf /app/data/apps/files_sharing + cp -rf /app/pkg/apps_template/files_sharing /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_trashbin' ==> Update app: files_trashbin + rm -rf /app/data/apps/files_trashbin + cp -rf /app/pkg/apps_template/files_trashbin /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: files_versions' ==> Update app: files_versions + rm -rf /app/data/apps/files_versions + cp -rf /app/pkg/apps_template/files_versions /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: firstrunwizard' ==> Update app: firstrunwizard + rm -rf /app/data/apps/firstrunwizard + cp -rf /app/pkg/apps_template/firstrunwizard /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: logreader' ==> Update app: logreader + rm -rf /app/data/apps/logreader + cp -rf /app/pkg/apps_template/logreader /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: lookup_server_connector' ==> Update app: lookup_server_connector + rm -rf /app/data/apps/lookup_server_connector + cp -rf /app/pkg/apps_template/lookup_server_connector /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: nextcloud_announcements' ==> Update app: nextcloud_announcements + rm -rf /app/data/apps/nextcloud_announcements + cp -rf /app/pkg/apps_template/nextcloud_announcements /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: notifications' ==> Update app: notifications + rm -rf /app/data/apps/notifications + cp -rf /app/pkg/apps_template/notifications /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: oauth2' ==> Update app: oauth2 + rm -rf /app/data/apps/oauth2 + cp -rf /app/pkg/apps_template/oauth2 /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: office' ==> Update app: office + rm -rf /app/data/apps/office + cp -rf /app/pkg/apps_template/office /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: password_policy' ==> Update app: password_policy + rm -rf /app/data/apps/password_policy + cp -rf /app/pkg/apps_template/password_policy /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: photos' ==> Update app: photos + rm -rf /app/data/apps/photos + cp -rf /app/pkg/apps_template/photos /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: privacy' ==> Update app: privacy + rm -rf /app/data/apps/privacy + cp -rf /app/pkg/apps_template/privacy /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: profile' ==> Update app: profile + rm -rf /app/data/apps/profile + cp -rf /app/pkg/apps_template/profile /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: provisioning_api' ==> Update app: provisioning_api + rm -rf /app/data/apps/provisioning_api + cp -rf /app/pkg/apps_template/provisioning_api /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: recommendations' ==> Update app: recommendations + rm -rf /app/data/apps/recommendations + cp -rf /app/pkg/apps_template/recommendations /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: related_resources' ==> Update app: related_resources + rm -rf /app/data/apps/related_resources + cp -rf /app/pkg/apps_template/related_resources /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: serverinfo' ==> Update app: serverinfo + rm -rf /app/data/apps/serverinfo + cp -rf /app/pkg/apps_template/serverinfo /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: settings' ==> Update app: settings + rm -rf /app/data/apps/settings + cp -rf /app/pkg/apps_template/settings /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: sharebymail' ==> Update app: sharebymail + rm -rf /app/data/apps/sharebymail + cp -rf /app/pkg/apps_template/sharebymail /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: support' ==> Update app: support + rm -rf /app/data/apps/support + cp -rf /app/pkg/apps_template/support /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: survey_client' ==> Update app: survey_client + rm -rf /app/data/apps/survey_client + cp -rf /app/pkg/apps_template/survey_client /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: suspicious_login' ==> Update app: suspicious_login + rm -rf /app/data/apps/suspicious_login + cp -rf /app/pkg/apps_template/suspicious_login /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: systemtags' ==> Update app: systemtags + rm -rf /app/data/apps/systemtags + cp -rf /app/pkg/apps_template/systemtags /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: text' ==> Update app: text + rm -rf /app/data/apps/text + cp -rf /app/pkg/apps_template/text /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: theming' ==> Update app: theming + rm -rf /app/data/apps/theming + cp -rf /app/pkg/apps_template/theming /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: twofactor_backupcodes' ==> Update app: twofactor_backupcodes + rm -rf /app/data/apps/twofactor_backupcodes + cp -rf /app/pkg/apps_template/twofactor_backupcodes /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: twofactor_nextcloud_notification' ==> Update app: twofactor_nextcloud_notification + rm -rf /app/data/apps/twofactor_nextcloud_notification + cp -rf /app/pkg/apps_template/twofactor_nextcloud_notification /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: twofactor_totp' ==> Update app: twofactor_totp + rm -rf /app/data/apps/twofactor_totp + cp -rf /app/pkg/apps_template/twofactor_totp /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: updatenotification' ==> Update app: updatenotification + rm -rf /app/data/apps/updatenotification + cp -rf /app/pkg/apps_template/updatenotification /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: user_ldap' ==> Update app: user_ldap + rm -rf /app/data/apps/user_ldap + cp -rf /app/pkg/apps_template/user_ldap /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: user_status' ==> Update app: user_status + rm -rf /app/data/apps/user_status + cp -rf /app/pkg/apps_template/user_status /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: viewer' ==> Update app: viewer + rm -rf /app/data/apps/viewer + cp -rf /app/pkg/apps_template/viewer /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: weather_status' ==> Update app: weather_status + rm -rf /app/data/apps/weather_status + cp -rf /app/pkg/apps_template/weather_status /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: webhook_listeners' ==> Update app: webhook_listeners + rm -rf /app/data/apps/webhook_listeners + cp -rf /app/pkg/apps_template/webhook_listeners /app/data/apps + for app in `find "${NEW_APPS}"/* -maxdepth 0 -type d -printf "%f\n"` + echo '==> Update app: workflowengine' ==> Update app: workflowengine + rm -rf /app/data/apps/workflowengine + cp -rf /app/pkg/apps_template/workflowengine /app/data/apps + echo '==> New apps:' ==> New apps: + ls /app/pkg/apps_template/ activity contactsinteraction files_external logreader privacy support twofactor_totp admin_audit dashboard files_lock lookup_server_connector profile survey_client updatenotification app_api dav files_pdfviewer nextcloud_announcements provisioning_api suspicious_login user_ldap appstore encryption files_reminders notifications recommendations systemtags user_status bruteforcesettings federatedfilesharing files_sharing oauth2 related_resources text viewer circles federation files_trashbin office serverinfo theming weather_status cloud_federation_api files files_versions password_policy settings twofactor_backupcodes webhook_listeners comments files_downloadlimit firstrunwizard photos sharebymail twofactor_nextcloud_notification workflowengine + ls /app/data/apps/ activity contactsinteraction files_external logreader privacy spreed twofactor_backupcodes weather_status admin_audit dashboard files_lock lookup_server_connector profile support twofactor_nextcloud_notification webhook_listeners app_api dav files_pdfviewer nextcloud_announcements provisioning_api survey_client twofactor_totp workflowengine appstore encryption files_reminders notifications recommendations suspicious_login updatenotification bruteforcesettings federatedfilesharing files_sharing oauth2 related_resources systemtags user_ldap circles federation files_trashbin office serverinfo testing user_oidc cloud_federation_api files files_versions password_policy settings text user_status comments files_downloadlimit firstrunwizard photos sharebymail theming viewer + echo '==> Copying htaccess' ==> Copying htaccess + cp /app/pkg/htaccess.template /app/data/htaccess + rm -f /app/data/core + ln -s /app/code/core /app/data/core + chown -R www-data:www-data /app/data/config /app/data/apps /app/data/htaccess /tmp/nextcloud + chown www-data:www-data /app/data + [[ -d /app/data/data ]] + chown www-data:www-data /app/data/data + echo '==> update config' ==> update config + sudo -u www-data --preserve-env php + [[ ! -f /app/data/php.ini ]] + mkdir -p /app/data/apache + [[ ! -f /app/data/apache/mpm_prefork.conf ]] + echo '==> turning off maintenance mode' ==> turning off maintenance mode + sudo -u www-data php /app/code/occ maintenance:mode --off Maintenance mode already disabled + echo '==> running upgrade' ==> running upgrade + sudo -u www-data php /app/code/occ upgrade No upgrade required. Note: This command triggers the upgrade actions associated with a new version. The new version's updated source files must be deployed in advance. See the upgrade documentation: https://docs.nextcloud.com/server/34/go.php?to=admin-update for more information. + sudo -u www-data php /app/code/occ db:convert-filecache-bigint --no-interaction All tables already up to date! + sudo -u www-data php /app/code/occ maintenance:update:htaccess .htaccess has been updated + sudo -u www-data php /app/code/occ maintenance:repair --include-expensive - Repair MySQL collation - Not a mysql database -> nothing to do - Clean tags and favorites - 0 tags of deleted users have been removed. - 0 tags for delete files have been removed. - 0 tag entries for deleted tags have been removed. - 0 tags with no entries have been removed. - Repair invalid shares - Move .step file of updater to backup location - Add move avatar background job - Repair step already executed - Add preview cleanup background jobs - Migrate oc_properties table to nextcloud schema - oc_properties table does not exist. - Migrate oauth2_clients table to nextcloud schema - Update the oauth2_access_tokens table schema. - Update the oauth2_clients table schema. - Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with * - Repair language codes - Add log rotate job - Clear frontend caches - Image cache cleared - JS cache cleared - Clear every generated avatar - Add preview background cleanup job - Queue a one-time job to cleanup old backups of the updater - Cleanup invalid photocache files for carddav - Add background job to cleanup login flow v2 tokens - Remove potentially over exposing share links - No need to remove link shares. - Clear access cache of projects - Reset generated avatar flag - Keep legacy encryption enabled - Check encryption key format - Remove old dashboard app config data - Add job to cleanup the bruteforce entries - Queue a one-time job to check for user uploaded certificates - Repair DAV shares - Add background job to set the lookup server share state for users - Add token cleanup job - Clean up abandoned apps - Add possibly missing system config - Add AI tasks cleanup jobs - Queue a job to generate metadata - Cache logo dimension to fix size in emails on Outlook - Theming is not used to provide a logo - Remove legacy ".ocdata" file - Add cleanup-deleted-users background job - Validate account properties and store phone numbers in a known format for search - Queued background to validate account properties. - Queue a job to move the preview - Migrate config keys - Cleanup completed background jobs - Remove shares of old group memberships - Remove broken DAV object properties - 0 broken object properties removed - Repair mime types - AppAPI Daemons configuration GPU params update - Daemons configuration GPU params updated: 0 - Upgrading Circles App - Sync groups with their circles - Fix component of birthday calendars - 6 birthday calendars updated. - Regenerating birthday calendars to use new icons and fix old birthday events without year - Repair step already executed - Fix broken values of calendar objects 0 [->--------------------------] - Registering building of calendar search index as background job - Repair step already executed - Register building of social profile search index as background job - Repair step already executed - Disable system address book - Skipping repair step system address book has less than the threshold 5000 of contacts no need to disable - Registering background jobs to update cache for webcal calendars - Added 0 background jobs to update webcal calendars - Registering building of calendar reminder index as background job - Repair step already executed - Register a background job to update rooms and resources - Queue jobs to clean up orphan event and contact data - Remove activity entries of private events - Clean up old calendar subscriptions from deleted users that were not cleaned-up 0 [----->----------------------] - 0 calendar subscriptions without an user have been cleaned up - Handle outdated scheduling events - Cleaning up old scheduling events - Remove invalid object properties - 0 invalid object properties removed. - Write default encryption module configuration to the database - Fix the share type of guest shares when migrating from ownCloud - Copy the share password into the dedicated column - Set existing shares as accepted - Cleanup share names with false conflicts - Update OAuth token expiration times - Force-reset all Text document sessions - Initialize migration of background images from dashboard to theming app - Add background job to check for backup codes - Populating added database structures for workflows + sed -e 's,caldav /,caldav https:\/\/%{HTTP_HOST}/,' -e 's,carddav /,carddav https:\/\/%{HTTP_HOST}/,' -i /app/data/htaccess + sudo -u www-data php /app/code/occ db:add-missing-indices + sudo -u www-data php /app/code/occ db:add-missing-columns Done. + sudo -u www-data php /app/code/occ db:add-missing-primary-keys Done. + echo '==> Changing ownership' ==> Changing ownership + chown -R www-data:www-data /run/nextcloud + [[ ! -f /run/nextcloud/chowned ]] ++ stat -c %U /app/data/php.ini + [[ www-data != \w\w\w\-\d\a\t\a ]] + touch /run/nextcloud/chowned + [[ -n https://my.mydomain.com/openid ]] + echo '==> Ensure OIDC settings' ==> Ensure OIDC settings + sudo -u www-data php /app/code/occ app:install user_oidc user_oidc already installed + true + sudo -u www-data php /app/code/occ user_oidc:provider Cloudron --clientid=6216bec8-a24b-4a21-bf06-46c8e76505c4-oidc --clientsecret=a422f388470776a5f3755a802d85a667c41e0dbe8c1205220b9e968e8117a2e3 --discoveryuri=https://my.mydomain.com/openid/.well-known/openid-configuration '--scope=openid email profile groups' --mapping-groups=groups --unique-uid=0 --mapping-uid=sub There are no commands defined in the "user_oidc" namespace. root@6216bec8-a24b-4a21-bf06-46c8e76505c4:/app/code# -
Could it be that you have disabled the OIDC plugin? Clearly it's installed (the lines above it). Can you use the occ tool to enable the plugin manually?
Could it be that you have disabled the OIDC plugin? Clearly it's installed (the lines above it).
99.9999% not. I'll leave 0.0001% for the case if UFO manipulated my brain somehow...
Can you use the occ tool to enable the plugin manually?
I've changed the script with vi and executed it - so, yeah, I guess I can

Would you mind guiding me?
-
Hello @potemkin_ai
Here you can find instructions on how to enable or disable apps in Nextcloud https://docs.cloudron.io/packages/nextcloud#fixing-a-broken-install -
I am thinking may be
sudo -u www-data php /app/code/occ app:enable user_oidc. @james should we fix the package to always enable oidc (not just install)?@joseph thank you!
I've tried that (during LLM research phase):# sudo -u www-data php /app/code/occ app:enable user_oidc App "OpenID Connect user backend" cannot be installed because it is not compatible with this version of the server.We got stuck with LLM - from what I recall, we didn't find why the extension can't be updated to support the latest version as well.
-
J joseph moved this topic from Support
-
J joseph marked this topic as a regular topic
-
@potemkin_ai strange . i cannot reproduce this here - nextcloud 34.0.1 supports the latest oidc app .
@potemkin_ai strange . i cannot reproduce this here - nextcloud 34.0.1 supports the latest oidc app .
I can't reproduce it anywhere (and I have some instances running)!
What do I do to restore that / to get it working?

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login