owncloud / ocis

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

Background save not working #7890

Closed inferno-umar closed 11 months ago

inferno-umar commented 11 months ago

Whenever I work with OnlyOffice docs or Draw.io diagram it is expected the changes are saved durably in the background to the storage. But the changes are not saved durably as soon as I close my working file all the changes made are vanished. Although the files are still visible in the file-tree with size of 0 byte.

Steps to reproduce

  1. Setup Ocis with below config & version
  2. Test whether files are stored after changes are made

Expected behavior

OnlyOffice Docs & Draw.io files must be saved durably to the storage in background.

Actual behavior

OnlyOffice Docs & Draw.io files are not saving in the background.

Setup

Herebelow is my docker-compose file to reproduce the behavior

```--- version: "3.7" services: ocis: image: owncloud/ocis:latest networks: ocis-net: entrypoint: - /bin/sh command: ["-c", "ocis server"] environment: OCIS_URL: https://${OCIS_DOMAIN:-drive.pingolia.com} PROXY_HTTP_ADDR: 0.0.0.0:9200 PROXY_TLS: "false" # do not use SSL between Traefik and oCIS GATEWAY_GRPC_ADDR: 0.0.0.0:9142 # make the REVA gateway accessible to the app drivers # SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998 # FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true" STORAGE_USERS_DRIVER: s3ng STORAGE_USERS_S3NG_ACCESS_KEY: STORAGE_USERS_S3NG_SECRET_KEY: STORAGE_USERS_S3NG_ENDPOINT: STORAGE_USERS_S3NG_BUCKET: OCIS_BASE_DATA_PATH: /data WEB_UI_THEME_PATH: /data/web/dist/themes/owncloud/theme.json WEB_UI_CONFIG_FILE: /data/web/dist/config.json WEB_ASSET_PATH: /data/web/dist # make the registry available to the app provider containers MICRO_REGISTRY: "mdns" volumes: - ./config/ocis/app-registry.yaml:/etc/ocis/app-registry.yaml - ./config/ocis/ocis.yaml:/etc/ocis/ocis.yaml - ./ocis-data:/data ports: - "127.0.0.1:9200:9200" logging: driver: "local" restart: always wopiserver: image: cs3org/wopiserver:v10.2.0 networks: ocis-net: entrypoint: - /bin/sh - /entrypoint-override.sh environment: WOPISERVER_INSECURE: "${INSECURE:-true}" WOPISECRET: ${WOPI_JWT_SECRET:-abracadabra} WOPISERVER_DOMAIN: wopiserver.pingolia.com volumes: - ./config/wopiserver/entrypoint-override.sh:/entrypoint-override.sh - ./config/wopiserver/wopiserver.conf.dist:/etc/wopi/wopiserver.conf.dist - wopi-recovery:/var/spool/wopirecovery ports: - "3008:8880" logging: driver: "local" restart: always ocis-appprovider-onlyoffice: image: owncloud/ocis:latest networks: ocis-net: user: "0" entrypoint: - /bin/sh - /entrypoint-override.sh #command: app-provider server environment: APP_PROVIDER_WOPI_INSECURE: "true" # use the internal service name of the gateway REVA_GATEWAY: ${REVA_GATEWAY:-com.owncloud.api.gateway} APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164 # configure the service name to avoid collision with collabora APP_PROVIDER_SERVICE_NAME: app-provider-onlyoffice # use the internal service name APP_PROVIDER_EXTERNAL_ADDR: com.owncloud.api.app-provider-onlyoffice APP_PROVIDER_DRIVER: wopi APP_PROVIDER_WOPI_APP_NAME: OnlyOffice APP_PROVIDER_WOPI_APP_ICON_URI: https://office.pingolia.com/web-apps/apps/documenteditor/main/resources/img/favicon.ico APP_PROVIDER_WOPI_APP_URL: https://office.pingolia.com APP_PROVIDER_WOPI_WOPI_SERVER_EXTERNAL_URL: https://wopiserver.pingolia.com APP_PROVIDER_WOPI_FOLDER_URL_BASE_URL: https://drive.pingolia.com/ # share the registry with the ocis container MICRO_REGISTRY: "mdns" volumes: - ./config/ocis-appprovider-onlyoffice/entrypoint-override.sh:/entrypoint-override.sh - ./config/ocis/ocis.yaml:/etc/ocis/ocis.yaml logging: driver: "local" restart: always onlyoffice: image: onlyoffice/documentserver:7.5.0 extra_hosts: - "database:" networks: ocis-net: entrypoint: - /bin/sh - /entrypoint-override.sh environment: WOPI_ENABLED: "true" USE_UNAUTHORIZED_STORAGE: "${INSECURE:-true}" # self signed certificates DB_PORT: 5437 ONLYOFFICE_DOMAIN: office.pingolia.com ports: - "3007:80" volumes: - ./config/onlyoffice/entrypoint-override.sh:/entrypoint-override.sh - ./config/onlyoffice/local.json:/etc/onlyoffice/documentserver/local.dist.json logging: driver: "local" restart: always # tika: # image: ${TIKA_IMAGE:-apache/tika:latest-full} # networks: # ocis-net: # restart: always volumes: wopi-recovery: networks: ocis-net: ```

Additionals

I use Nginx on host machine as proxy & have a working local DNS server setup mapped to the desired endpoints.

Ocis Version: 5.0.0-alpha.3+d37cea3a5
Web frontend version: 8.0.0-alpha.12
inferno-umar commented 11 months ago

Fixed this error it was occuring due to self-signed certificate which wasn't supplied to the ocis container pointing to my S3 compatible cluster.

If somebody has this kind of error regarding self-signed certificate try appending this in your volumes section for "ocis" node in docker-compose.yml file - <CERT_PATH>/<CERT_NAME>.crt:/etc/ssl/certs/ca-certificates.crt

Volume may vary depending upon your distro