Seadoc error on startup

Hello. I wanna see what seadoc is, so i am trying to launch it on my sefile server running using docker. I’ve done all steps and modifications from manual including creating database and stuff.
I am still getting error when trying ot reach https://myserver.com/sdoc-server

{“error_msg”:“You don’t have permission to access.”}

What can it be?

Can you try to create and open a .sdoc file in the Seafile web interface?

Created document and it opens

Is this behavior as intended or ?

Visiting https://myserver.com/sdoc-server directly is not supported yet. In a future version, a server version number will be returned instead of showing a permission error.

Okey so to be clear: if i can create, open and edit .sdoc file from seafile web interface → this means integration works?

What is the point of this feature? ))) Just a simple blank page with very poor editing options… or i misunderstand something? Documentaion says that its a wiki…

What make you think the editing options are poor?

This is all i see:

This is different from our screenshots from previous thread.

Can you try to force refresh the browser or clean the browser cache?

No changes.

Have you upgraded Seafile server to version 11.0.1?

Nope, its 10.0.1, is this a reason? )

From the Manual:

Seafile version 11.0 or later is required to work with SeaDoc.

I have finally upgraded seafile to 11.0.1. Now when i try to open .sdoc file i get a red error test : Error loading file contents… Where to dig? )

Can you check with the Chrome’s developer mode to see what error the server return? And you can also check the sdoc-server’s log.

Google says pretty straightforward… BUt i dont know where to fix it:

The page at ‘https://seafile.dc.com/lib/e8a0cc49-2769-4bfe-8876-ae30f1d6204e/file/hello.sdoc’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://seafile.dc.com/sdoc-server/api/v1/docs/721d56ff-3d91-4d2a-8f72-99de98c17e9a/’. This request has been blocked; the content must be served over HTTPS.

My nginx server is separate machinem i just added the location from manual.

Change the below config item to https should solve the issue:

Done, but now it showssame red text with different error:

Failed to load resource: the server responded with a status of 500 ()

Sdoc logs say:

[2023-11-02 12:40:39] [ERROR] document-controller.js[56] - ER_NO_SUCH_TABLE: Table ‘sdoc_db.operation_log’ doesn’t exist
[2023-11-02 12:40:39] [ERROR] document-controller.js[70] - Load hello.sdoc(721d56ff-3d91-4d2a-8f72-99de98c17e9a) doc content error

Please check the manual, there is a step to create the database table.

I am sorry. I’ve studied manual and i created the database sdoc_db, restarted containers but the error remains the same. I am a bit confused about DB_USER field in docker-compose, which user shall i specify? Manual says i need to grant privileges to seafile user, which i did.

MariaDB [(none)]> SHOW DATABASES;
±-------------------+
| Database |
±-------------------+
| ccnet_db |
| information_schema |
| mysql |
| performance_schema |
| sdoc_db |
| seafile_db |
| seahub_db |
±-------------------+
7 rows in set (0.048 sec)