Open ericlinagora opened 1 month ago
Issue goes away with STORAGE_S3_HOME_DIRECTORY=tdrive
, but reappears with STORAGE_S3_HOME_DIRECTORY=plop
:
during_upload_with_plop_home.log
It searches for:
plop/files/d56f4e70-2342-11ef-8d0f-238afbd3c611/d5611da0-2342-11ef-8d0f-238afbd3c611/bc277481-05ad-4055-b8b7-b7846608ea67/chunk1
This time the bucket name is missing, it should be
tdrive-dev/plop/files...
Issue probably here https://github.com/linagora/twake-drive/blob/main/tdrive/backend/node/src/core/platform/services/storage/index.ts#L75 , value read before and after getConnector was called, because it changes during the run without the var/config set from '/tdrive'
to 'tdrive-dev'
Describe the bug Using the following environment (or any environment with S3 and without
STORAGE_S3_HOME_DIRECTORY=tdrive
):S3Error
s with the following file path not found:There is however a file in the FS of the bucket at:
{"statusCode":500,"error":"Internal Server Error","message":"Failed to download file"}
. Logs: during_download_attempt.log