Openprojects plugin

Environment

  • Nextcloud version: 31.0.8.1
  • Integration_openproject app version: 2.9.0
  • OpenProject version: 16.3.2
  • PHP version: 8.2.29

Problem Description

When trying to add Nextcloud storage in OpenProject (Administration → File Storages → New Storage), I enter the host URL https://no.domain.com/ but receive the error:

“Host could not be reached. Please ensure the host is reachable and the OpenProject integration app is installed.”

What I’ve Verified

  1. :white_check_mark: Nextcloud is accessible from OpenProject server
  2. :white_check_mark: OpenProject Integration app is installed and enabled in Nextcloud
  3. :white_check_mark: SSL certificates are valid
  4. :white_check_mark: No firewall between servers
  5. :white_check_mark: DNS resolution works both ways

Root Cause Found

OpenProject validates the host by checking:

/ocs/v2.php/apps/integration_openproject/api/v1/connected

But the integration app only provides OCS v1 endpoints, not v2:

bash

# From OpenProject server:
curl -I https://no.domain.com/ocs/v1.php/apps/integration_openproject/api/v1/connected
# Returns: HTTP 200 ✅

curl -I https://no.domain.com/ocs/v2.php/apps/integration_openproject/api/v1/connected  
# Returns: HTTP 404 ❌

What I’ve Tried

  1. Reinstalling the integration app
  2. Updating to latest version (2.9.0)
  3. Clearing all caches
  4. Apache rewrite rules to redirect v2 to v1 (didn’t work)

“OpenProject API error : Client error: GET https://no.domain.com//api/v3/users/me resulted in a 401 Unauthorized