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

[Bug]: ocm-provider is missing from nextcloud-27.1.2.zip #40920

Closed
5 of 8 tasks
simmarn opened this issue Oct 14, 2023 · 6 comments
Closed
5 of 8 tasks

[Bug]: ocm-provider is missing from nextcloud-27.1.2.zip #40920

simmarn opened this issue Oct 14, 2023 · 6 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug

Comments

@simmarn
Copy link

simmarn commented Oct 14, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

I upgraded Nextcloud from 27.1.1 to 27.1.2 using updater.phar. After upgrade I get a warning in admin/overview:

There are some warnings regarding your setup.

Your web server is not properly set up to resolve "/nextcloud/ocm-provider/". This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx at it's [documentation page ↗](https://docs.nextcloud.com/server/27/go.php?to=admin-nginx). On Nginx those are typically the lines starting with "location ~" that need an update.

It turns out that ocm-provider folder is missing from my /var/www/nextcloud folder. When I check inside the downloaded nextcloud-27.1.2.zip (https://download.nextcloud.com/server/releases/nextcloud-27.1.2.zip), I see that ocm-provider folder is missing.

Steps to reproduce

  1. On Nextcloud 27.1.1 running on Ubuntu 22.04.3 LTS. No issues in admin/overview
  2. Upgrade Nextcloud using updater.phar
  3. After upgrade ocm-provider folder is missing

Expected behavior

ocm-folder shall be kept or reinstalled during upgraede

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 22.1 to 22.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "updatechecker": false,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.31.211",
            "***REMOVED SENSITIVE VALUE**"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE**",
        "dbtype": "mysql",
        "version": "27.1.2.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Stockholm",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "logtype": "owncloud",
        "logfile": "\/media\/ocdata\/nextcloud.log",
        "theme": "",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "1125",
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "calendar"
        ],
        "updater.release.channel": "stable",
        "default_phone_region": "SE"
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - bruteforcesettings: 2.7.0
  - calendar: 4.5.2
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.4.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.4.2
  - notes: 4.8.1
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - qownnotesapi: 23.6.0
  - recommendations: 1.6.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
  - suspicious_login: 5.0.0
  - systemtags: 1.17.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - encryption: 2.15.0
  - files_external: 1.19.0
  - files_markdown: 2.4.1 (installed 2.4.1)
  - nextcloud_announcements: 1.16.0 (installed 1.5.0)
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

@simmarn simmarn added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Oct 14, 2023
@solracsf
Copy link
Member

This is expected. #40586
You need to fix your webserver.

@simmarn
Copy link
Author

simmarn commented Oct 15, 2023

Fix how? The admin/overview warning says that webserver is not set up to resolve ocm-provider. How can I set up apache2 to resolve ocm-provider when it is removed?

@chlarsen
Copy link

There is a simple reason for this error, as described here: here. Since Nextcloud version 27.1.2, there is no more /ocm-provider folder. Looks like an obsolete error check plus message to me, unless I got it all wrong!

@joshtrichards
Copy link
Member

joshtrichards commented Oct 15, 2023

Is your installation in a subfolder (e.g. https://domain.com/nextcloud rather than https://domain.com/)? If so, it may need the fix pending in #40843/#40856 for the bundled .htaccess file. It'll be released in v27.1.3.

You can manually fix it for now by removing the slash in front of index.php as shown here:

https://github.com/nextcloud/server/pull/40856/files

Note: Only applicable to Apache based installations

@joshtrichards
Copy link
Member

Fixed in #40843

@dd5fz
Copy link

dd5fz commented Dec 5, 2023

Reposting here, because it might fit better:

#40803 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug
Projects
None yet
Development

No branches or pull requests

6 participants