owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.36k stars 178 forks source link

Can't edit files with only office (6.2 + PosixFS + Onlyoffice) #9823

Open abrasher opened 4 weeks ago

abrasher commented 4 weeks ago

Describe the bug

Unable to create or edit files with Onlyoffice with PosixFS

Steps to reproduce

  1. Deploy with posixfs storage driver
  2. Create a spreadsheet file
  3. Error popups and file is greyed out and can't be opened

Expected behavior

Able to edit and open files in only office

Actual behavior

Office files are greyed out and fail to create, the file is created on the disk, but is empty.

Setup

The setup is here: https://github.com/abrasher/ocis-posix-bug-example

It is based on the ocis_full example for v6.2

There are two setups

I can add my traefik setup if required.

Additional context

I followed the posix documentation here: https://github.com/owncloud/ocis/blob/master/docs/architecture/posixfs-storage-driver.md

The ocis container only shows error logs:

rg/reva/v2@v2.22.0/internal/grpc/services/authprovider/authprovider.go:145 pkg=rgrpc service=auth-machine traceid=b7eea80e1b1d7ecb092eb6a0c8c88ce3
2024-08-15T21:52:04Z WRN http end="15/Aug/2024:21:52:04 +0000" host=127.0.0.1 line=github.com/cs3org/reva/v2@v2.22.0/internal/http/interceptors/log/log.go:112 method=POST pkg=rhttp proto=HTTP/1.1 service=frontend size=105 start="15/Aug/2024:21:52:04 +0000" status=425 time_ns=2316203 traceid=a39e87c8f3b756aa2a29a77143209079 uri=/app/open?file_id=da7bdce8-df70-4866-860d-4fe092e0b972%2431ed43d8-de1d-4301-9056-b1cf3f6e2121%21b66b735c-c178-435d-98c0-c5af418d41f9&lang=en&app_name=OnlyOffice&view_mode=write url=/open?file_id=da7bdce8-df70-4866-860d-4fe092e0b972%2431ed43d8-de1d-4301-9056-b1cf3f6e2121%21b66b735c-c178-435d-98c0-c5af418d41f9&lang=en&app_name=OnlyOffice&view_mode=write
2024-08-15T21:52:04Z INF access-log bytes=105 duration=4.654421 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=POST path=/app/open proto=HTTP/1.1 remote-addr=192.168.50.135 request-id=e951d9bc-b736-46a4-bb58-3299b8f70d1b service=proxy status=425 traceid=73618428a5df6682997106c869e6d82c
2024-08-15T21:52:04Z INF access-log bytes=581 duration=5.965678 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=PROPFIND path=/remote.php/dav/meta/da7bdce8-df70-4866-860d-4fe092e0b972$31ed43d8-de1d-4301-9056-b1cf3f6e2121!b66b735c-c178-435d-98c0-c5af418d41f9/v proto=HTTP/1.1 remote-addr=192.168.50.135 request-id=247be48d-9781-4361-8288-4ee61bdbb882 service=proxy status=207 traceid=b7eea80e1b1d7ecb092eb6a0c8c88ce3
{"level":"error","error":"could not find space for path /data/posix-storage/uploads/c3acebc2-e9c5-4d85-adca-f29cf19a5a5c","path":"/data/posix-storage/uploads/c3acebc2-e9c5-4d85-adca-f29cf19a5a5c","time":"2024-08-15T21:52:04Z","message":"failed to assimilate item"}
{"level":"error","error":"could not find space for path /data/posix-storage/uploads","path":"/data/posix-storage/uploads","time":"2024-08-15T21:52:04Z","message":"failed to assimilate item"}
2024/08/15 21:52:04 /data/posix-storage/users/,CREATE,admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/admin/,CREATE,New file.xlsx.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,"CLOSE_WRITE,CLOSE",admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,DELETE,admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,"CLOSE_WRITE,CLOSE",admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,CREATE,admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,"CLOSE_WRITE,CLOSE",admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/,DELETE,admin.mlock
2024/08/15 21:52:04 /data/posix-storage/users/admin/,"CLOSE_WRITE,CLOSE",New file.xlsx.mlock
2024/08/15 21:52:04 /data/posix-storage/users/admin/,DELETE,New file.xlsx.mlock
2024-08-15T21:52:15Z ERR failed to authenticate the request error="failed to verify access token: crypto/rsa: verification error" authenticator=oidc client.address=192.168.50.92 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/oidc_auth.go:194 network.peer.address= network.peer.port= path=/ocs/v2.php/apps/notifications/api/v1/notifications/sse service=proxy user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
abrasher commented 3 weeks ago

I have this working by changing the version from 6.2 to 6.1.

There must be an issue with the changes since 6.1

NeroPcStation commented 3 weeks ago

For me, version 6.1 works, but versions 6.2 and 6.3 do not. I'm using Collabora

micbar commented 2 weeks ago

@aduffeck @butonic Did you see this?