Owncloud desktop fails to connect with OCIS with 404

Dear all,

I have set up Owncloud Infinite Scale (OCIS) on my Debian 12 server mostly following the instructions for bare metal setup with systemd (the forum won’t let me link to it?!). I deviated from the instructions in so far that I used a pre-existing OpenLDAP server for authenticating users. Logging in to the web interface works, and so does the mobile app.

What does not work is logging into the Owncloud desktop application. If I try, I am asked to authenticate via the web browser, which I do and after which I am notified that authentication was successful both in the web browser and in Owncloud desktop. However, it will then show the “Preparing account” message forever. If I quit Owncloud desktop and restart it, it will not connect either; hovering over the tray icon reveals the message “The server replied ‘404 Not Found’ to PROPFIND (Resource not found)”.

I have read troubleshooting.html and specifically checked “Ensure the WebDAV API is working”. When I try to browse to <https://<<myserver>>/owncloud/remote.php/webdav> I am asked for credentials, and after the “you are being logged in” message all I see is an empty page. However, I noticed that the URL deviates from what Owncloud desktop actually requests. As per the HTTP server log files, this is

PROPFIND /remote.php/webdav/ HTTP/1.1" 404 201 "-" "Mozilla/5.0 (Linux) mirall/5.2.1 (ownCloud, arch-6.8.2-arch2-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)

which does not contain the path fragment /owncloud. If I leave that one out and browse to <https://<<myserver>>/remote.php/webdav> instead I get a straight white page served with HTTP status code 401.

Owncloud desktop is version 5.2.1. On the server runs:

# ocis version
Version: 5.0.0
Compiled: 2024-03-18 00:00:00 +0000 UTC

+---------+-----------------+--------------------------------------------------------------------------+
| Version |     Address     |                                    Id                                    |
+---------+-----------------+--------------------------------------------------------------------------+
| 5.0.0   | 127.0.0.1:9142  | com.owncloud.api.gateway-3595c912-a196-49e2-b032-2cfbd386b07a            |
| 5.0.0   | 127.0.0.1:9160  | com.owncloud.api.groups-13200ba3-754a-4502-a70c-66bbea3cac3e             |
| 5.0.0   | 127.0.0.1:9164  | com.owncloud.api.app-provider-8f91595c-1c3a-42f8-a092-4e3d49493467       |
| 5.0.0   | 127.0.0.1:9242  | com.owncloud.api.app-registry-53da1ce5-02ce-4800-8eaf-934cb8268d5d       |
| 5.0.0   | 127.0.0.1:9166  | com.owncloud.api.auth-machine-540f6de5-3220-4ffd-ba8c-d1f75d84e987       |
| 5.0.0   | 127.0.0.1:9199  | com.owncloud.api.auth-service-379f0735-fc5b-40ce-830d-b2950e353f8e       |
| 5.0.0   | 127.0.0.1:9178  | com.owncloud.api.storage-publiclink-c74dda6a-af58-4b48-87d0-9cf9fe534358 |
| 5.0.0   | 127.0.0.1:9144  | com.owncloud.api.users-e021664b-829c-4990-9989-213b47a04b0f              |
| 5.0.0   | 127.0.0.1:9150  | com.owncloud.api.sharing-27c6f6e5-6a9d-4358-af8b-6fa7d5710735            |
| 5.0.0   | 127.0.0.1:9282  | com.owncloud.api.ocm-dbe10625-c127-47b5-abb6-59d09c3e1e93                |
| 5.0.0   | 127.0.0.1:37525 | com.owncloud.web.webfinger-92b77d07-faf6-4f58-bd9e-007ea62ad394          |
| 5.0.0   | 127.0.0.1:9215  | com.owncloud.api.storage-system-bc8ecee3-16a0-4205-9f61-57682c8f97c9     |
| 5.0.0   | 127.0.0.1:9146  | com.owncloud.api.auth-basic-802d1a4c-5465-4973-8e57-dfc6b6858ff8         |
| 5.0.0   | 127.0.0.1:9216  | com.owncloud.web.storage-system-d3d21557-caa3-4b25-ad91-8cedef1f5dea     |
| 5.0.0   | 127.0.0.1:9280  | com.owncloud.web.ocm-97233817-211c-4f47-9147-9f5a7dcc43bb                |
| 5.0.0   | 127.0.0.1:9154  | com.owncloud.api.storage-shares-22f2cb3b-b54e-4925-84a1-dfa1feaa252a     |
| 5.0.0   | 127.0.0.1:9157  | com.owncloud.api.storage-users-2d868426-f792-435c-951f-edc7cd4a7061      |
| 10.11.0 | 127.0.0.1:35091 | com.owncloud.web.ocdav-92b77d07-faf6-4f58-bd9e-007ea62ad394              |
| 5.0.0   | 127.0.0.1:9140  | com.owncloud.web.frontend-0dfab1a4-9a0e-4bc3-a39a-86c43ad0eed4           |
| 5.0.0   | 127.0.0.1:9200  | com.owncloud.web.proxy-92b77d07-faf6-4f58-bd9e-007ea62ad394              |
| 5.0.0   | 127.0.0.1:9190  | com.owncloud.web.settings-92b77d07-faf6-4f58-bd9e-007ea62ad394           |
| 5.0.0   | 127.0.0.1:9191  | com.owncloud.api.settings-92b77d07-faf6-4f58-bd9e-007ea62ad394           |
| 5.0.0   | 127.0.0.1:9110  | com.owncloud.web.ocs-92b77d07-faf6-4f58-bd9e-007ea62ad394                |
| 5.0.0   | 127.0.0.1:36569 | com.owncloud.sse.sse-92b77d07-faf6-4f58-bd9e-007ea62ad394                |
| 5.0.0   | 127.0.0.1:9115  | com.owncloud.web.webdav-92b77d07-faf6-4f58-bd9e-007ea62ad394             |
| 5.0.0   | 127.0.0.1:9100  | com.owncloud.web.web-92b77d07-faf6-4f58-bd9e-007ea62ad394                |
| 5.0.0   | 127.0.0.1:9120  | com.owncloud.graph.graph-92b77d07-faf6-4f58-bd9e-007ea62ad394            |
| 5.0.0   | 127.0.0.1:9185  | com.owncloud.api.thumbnails-92b77d07-faf6-4f58-bd9e-007ea62ad394         |
| 5.0.0   | 127.0.0.1:9186  | com.owncloud.web.thumbnails-92b77d07-faf6-4f58-bd9e-007ea62ad394         |
| 5.0.0   | 127.0.0.1:9130  | com.owncloud.web.idp-92b77d07-faf6-4f58-bd9e-007ea62ad394                |
| 5.0.0   | 127.0.0.1:9220  | com.owncloud.api.search-92b77d07-faf6-4f58-bd9e-007ea62ad394             |
| 5.0.0   | 127.0.0.1:38681 | com.owncloud.userlog.userlog-92b77d07-faf6-4f58-bd9e-007ea62ad394        |
| 5.0.0   | 127.0.0.1:44891 | com.owncloud.api.eventhistory-92b77d07-faf6-4f58-bd9e-007ea62ad394       |
+---------+-----------------+--------------------------------------------------------------------------+

The environment configuration is as follows:

OCIS_CONFIG_DIR=/etc/owncloud
OCIS_BASE_DATA_PATH=/var/local/owncloud
OCIS_URL=https://owncloud.<<redacted>>
OCIS_INSCURE=false
PROXY_TLS=false
PROXY_HTTP_ADDR=127.0.0.1:9200
OCIS_LDAP_URI=ldap://localhost:389
OCIS_LDAP_BIND_DN="uid=owncloud,<<redacted>>"
OCIS_LDAP_BIND_PASSWORD="<<redacted>>"
OCIS_LDAP_USER_BASE_DN="<<redacted>>"
OCIS_LDAP_USER_SCHEMA_ID=uid
IDP_LDAP_UUID_ATTRIBUTE=uid
OCIS_LDAP_USER_SCHEMA_DISPLAYNAME=cn
OCIS_LDAP_GROUP_BASE_DN="<<redacted>>"
OCIS_LDAP_GROUP_SCHEMA_ID=uid
OCIS_LDAP_DISABLE_USER_MECHANISM="none"
LDAP_USER_FILTER=""
IDP_LOGIN_ATTRIBUTE=uid
LDAP_LOGIN_ATTRIBUTE=uid
OCIS_LDAP_USER_SCHEMA_USERNAME=uid
OCIS_ADMIN_USER_ID=<<redacted>>
OCIS_EXCLUDE_RUN_SERVICES=idm
OCIS_LDAP_SERVER_WRITE_ENABLED=false
OCIS_LDAP_USER_ENABLED_ATTRIBUTE=uid
OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD=false

/etc/owncloud/ocis.yaml:

token_manager:
  jwt_secret: <<redacted>>
machine_auth_api_key: <<redacted>>
system_user_api_key: <<redacted>>
transfer_secret: <<redacted>>
system_user_id: <<redacted>>
admin_user_id: <<redacted>>
graph:
  application:
    id: <<redacted>>
  events:
    tls_insecure: false
  spaces:
    insecure: false
  identity:
    ldap:
      bind_password: <<recated>>
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
idp:
  ldap:
    bind_password: <<redacted>>
idm:
  service_user_passwords:
    admin_password: <<redacted>>
    idm_password: <<redacted>>
    reva_password: <<redacted>>
    idp_password: <<redacted>>
proxy:
  oidc:
    insecure: false
  insecure_backends: false
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
frontend:
  app_handler:
    insecure: false
  archiver:
    insecure: false
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
auth_basic:
  auth_providers:
    ldap:
      bind_password: <<redacted>>
auth_bearer:
  auth_providers:
    oidc:
      insecure: false
users:
  drivers:
    ldap:
      bind_password: <<redacted>>
groups:
  drivers:
    ldap:
      bind_password: <<redacted>>
ocdav:
  insecure: false
ocm:
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
thumbnails:
  thumbnail:
    transfer_secret: <<redacted>>
    webdav_allow_insecure: false
    cs3_allow_insecure: false
search:
  events:
    tls_insecure: false
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
audit:
  events:
    tls_insecure: false
settings:
  service_account_ids:
  - <<redacted>>
sharing:
  events:
    tls_insecure: false
storage_users:
  events:
    tls_insecure: false
  mount_id: <<redacted>>
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
notifications:
  notifications:
    events:
      tls_insecure: false
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
nats:
  nats:
    tls_skip_verify_client_cert: false
gateway:
  storage_registry:
    storage_users_mount_id: <<redacted>>
userlog:
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
auth_service:
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
clientlog:
  service_account:
    service_account_id: <<redacted>>
    service_account_secret: <<redacted>>
log:
  level: info
  pretty: true

I would have attached log files, but the forum does not let me do so. Since it also does not let me link to external sites, I cannot provide links to the log files either. You should rethink your forum organisation.

Any pointers?