Open Cloud Mesh not working on Seafile Pro 12.0.14

I’m trying to use OCM between two instances but there’s nothing on the files menu with the shared libraries.

I followed:

Open Cloud Mesh - Seafile Admin Manual

and used:

ENABLE_OCM = True
OCM_PROVIDER_ID = ‘instance_ID’
OCM_REMOTE_SERVERS = [
{
“server_name”: “instance_NAME”,
“server_url”: “https://instance.url/”,
},
]

On both servers (different IDs), but without any luck.

I can’t find any kind of error on the logs, but maybe i’m looking on the wrong logs.

Any help is more than welcome.

Thank you.

Just a quick update.
Apparently I was looking at the wrong log, this is the error on the seahub log:

[2025-07-01 12:41:29] [ERROR] django.request:241 log_response Internal Server Error: /api/v2.1/ocm/shares-prepare/
Traceback (most recent call last):
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/views/decorators/csrf.py", line 56, in wrapper_view
    return view_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/thirdpart/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-12.0.14/seahub/seahub/api2/endpoints/ocm.py", line 380, in post
    'shareType': consumer_protocol['resourceTypes']['shareTypes'][0],  # currently only support user type
                 ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'resourceTypes'

i’m no expert on this but in other similar scenarios I have found that the comma you have towards the end of your config can suggest another OCM_REMOTE_SERVERS entry follows and will error when it doesn’t find it.
It would mean that the manual page showing that comma is wrong though… but might be worth a try

Hi.
Thank you for the suggestion.
It was (more than) worth trying that, but unfortunately, it didn’t make a difference.

I tried first removing the last comma and latter the one inside the remote server but without any luck.