owncloud / ocis

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

Config pitfalls after v4 upgrade #7176

Open xoxys opened 1 year ago

xoxys commented 1 year ago

Describe the bug

image

micbar commented 1 year ago

@ScharfViktor Could we just run an new upgrade from 3.0.0 to 4.0.0 with the WOPI example and docuement the step-by-step process.

@dragonchaser We should prefix that LDAP_BIND_PASSWORD with ocis and include it in the 4.0.1 patch release.

micbar commented 1 year ago

Outcome should be an updated / enhaced upgrade guide https://doc.owncloud.com/ocis/next/migration/upgrading-ocis.html

Please ping @xoxys for review.

micbar commented 1 year ago

@mmattel FYI

ScharfViktor commented 1 year ago

Upgrade test process

for upgrade test I use https://github.com/owncloud/ocis/blob/stable-3.0/deployments/examples/ocis_wopi/docker-compose.yml for 3.0.0 version and https://github.com/owncloud/ocis/blob/stable-4.0/deployments/examples/ocis_wopi/docker-compose.yml for 4.0.0 version and of course read docs: https://doc.owncloud.com/ocis/next/migration/upgrading_3.0.0_4.0.0.html

v3.0 and v4.0 comparison

remarks:

file couldn't open in collabora using cs3org/wopiserver:v10.0.1 version. v9.4.0 works correct

log:

ERR  WOPI::GetFile [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit] failed with Status Code: 500| wsd/Storage.cpp:1172

wsd-00001-00128 2023-09-01 11:59:30.630312 +0000 [ docbroker_00f ] ERR  Cannot download document from WOPI storage uri [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit]. Error: WOPI::GetFile [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit] failed: {"message": "Failed to fetch file from storage"}| wsd/Storage.cpp:1103

wsd-00001-00128 2023-09-01 11:59:30.630381 +0000 [ docbroker_00f ] ERR  loading document exception: WOPI::GetFile [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit] failed: {"message": "Failed to fetch file from storage"}| wsd/DocumentBroker.cpp:2510

wsd-00001-00128 2023-09-01 11:59:30.630403 +0000 [ docbroker_00f ] ERR  Failed to add session to [https://wopiserver.owncloud.test:443/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk] with URI [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiJleUpoYkdjaU9pSklVekkxTmlJc0luUjVjQ0k2SWtwWFZDSjkuZXlKaGRXUWlPaUp5WlhaaElpd2laWGh3SWpveE5qa3pOalUxT1RZMUxDSnBZWFFpT2pFMk9UTTFOamsxTmpVc0ltbHpjeUk2SW1oMGRIQnpPaTh2YjJOcGN5NXZkMjVqYkc5MVpDNTBaWE4wSWl3aWRYTmxjaUk2ZXlKcFpDSTZleUpwWkhBaU9pSm9kSFJ3Y3pvdkwyOWphWE11YjNkdVkyeHZkV1F1ZEdWemRDSXNJbTl3WVhGMVpWOXBaQ0k2SWpZMU1tUXdaVFl6TFRjeVptRXRORFl4TVMxaE5EazNMVGxsWkRWbVlqWmhNek01WlNJc0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iODI0ZTMtYzIwYy00ZmVkLTg3ZDktZmVjYTJjMjI4ODhmJDY1MmQwZTYzLTcyZmEtNDYxMS1hNDk3LTllZDVmYjZhMzM5ZSIsImFwcG5hbWUiOiJDb2xsYWJvcmEiLCJhcHBlZGl0dXJsIjoiaHR0cHM6Ly9jb2xsYWJvcmEub3duY2xvdWQudGVzdC9icm93c2VyL2MzNjAwMTE4MTUvY29vbC5odG1sPyIsImFwcHZpZXd1cmwiOiJodHRwczovL2NvbGxhYm9yYS5vd25jbG91ZC50ZXN0L2Jyb3dzZXIvYzM2MDAxMTgxNS9jb29sLmh0bWw_IiwiZXhwIjoxNjkzNjU1OTY1LCJpc3MiOiJjczNvcmc6d29waXNlcnZlcjoifQ.9kncuBXc981T0LGjEVn042r48Y1dhfe3aM1UMbjgcr8&access_token_ttl=1693655965000&permission=edit]: WOPI::GetFile [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit] failed: {"message": "Failed to fetch file from storage"}| wsd/DocumentBroker.cpp:2472

wsd-00001-00128 2023-09-01 11:59:30.630486 +0000 [ docbroker_00f ] ERR  Storage error while starting session on https://wopiserver.owncloud.test:443/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk for socket #28. Terminating connection. Error: WOPI::GetFile [https://wopiserver.owncloud.test/wopi/files/3bb824e3-c20c-4fed-87d9-feca2c22888f%21ZTcwNmI3YzAtZDI0OS00ZTRiLWFhMTctNGQ2ZjVlMDNjYWJk/contents?access_token=&access_token_ttl=1693655965000&permission=edit] failed: {"message": "Failed to fetch file from storage"}| wsd/COOLWSD.cpp:4929

wsd-00001-00128 2023-09-01 11:59:30.631016 +0000 [ docbroker_00f ] ERR  #28: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1442

wsd-00001-00128 2023-09-01 11:59:30.644172 +0000 [ docbroker_00f ] ERR  #29: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1136

wsd-00001-00128 2023-09-01 11:59:30.644265 +0000 [ docbroker_00f ] WRN  #29: Unassociated Kit (127) disconnected unexpectedly| wsd/COOLWSD.cpp:3409
xoxys commented 1 year ago

Where is MICRO_REGISTRY specified in the docs? Its not in https://doc.owncloud.com/ocis/next/migration/upgrading_3.0.0_4.0.0.html

ScharfViktor commented 1 year ago

yes, on this page we haven't. indicated and added here https://doc.owncloud.com/ocis/next/deployment/services/env-vars-special-scope.html

xoxys commented 1 year ago

Ok, but this page doesn't even mention what this env var is used for. And things like Only change on supervision of ownCloud Support. in the docs are just bad... No chance that a user knows this is required for office integrations now and according to the docs MICRO_REGISTRY doesn't have a default, so user have to explicitly set it.

zjean commented 1 year ago

any updates on this? I want to migrate from 3.0 to 4.0.1, but am hesitant to do so.

ScharfViktor commented 11 months ago

OCIS_LDAP_BIND_PASSWORD not working and must use LDAP_BIND_PASSWORD while all other LDAP env vars were prefixed with OCIS_

fixed here https://github.com/owncloud/ocis/pull/7313

It will be available again in ocis 4.0.2