CloudNetService / CloudNet

A modern application that can dynamically and easily deliver Minecraft oriented software
https://cloudnetservice.eu
Apache License 2.0
373 stars 116 forks source link

Cannot copy template into S3 storage #1076

Open phm07 opened 1 year ago

phm07 commented 1 year ago

Stacktrace

https://gist.github.com/pauhull/aa334eb6b253f664ac84288636273646

Actions to reproduce

CloudNet version

[17.01 18:50:12.528] INFO:  
[17.01 18:50:12.534] INFO: CloudNet Blizzard 4.0.0-RC5 4ec2a84d
[17.01 18:50:12.536] INFO: Discord: <https://discord.cloudnetservice.eu/>
[17.01 18:50:12.538] INFO:  
[17.01 18:50:12.539] INFO: ClusterId: b524d946-****-45c6-****-4a8fcdf47225
[17.01 18:50:12.541] INFO: NodeId: Node-1
[17.01 18:50:12.553] INFO: Head-NodeId: Node-2
[17.01 18:50:12.557] INFO: CPU usage: (P/S) 2.05/100/100%
[17.01 18:50:12.560] INFO: Node services memory allocation (U/R/M): 10240/10240/25600 MB
[17.01 18:50:12.563] INFO: Threads: 79
[17.01 18:50:12.568] INFO: Heap usage: 78/456MB
[17.01 18:50:12.572] INFO: JVM: Debian 17 (OpenJDK 64-Bit Server VM 17.0.4+8-Debian-1deb11u1)
[17.01 18:50:12.577] INFO: Update Repo: CloudNetService/launchermeta, Update Branch: beta
[17.01 18:50:12.580] INFO: 

Other

When trying to copy a local template into S3 storage the attached error occurs. No files are copied altough the command says it completed successfully.

The storage server is a locally hosted MinIO instance. Output of minio --version:

minio version RELEASE.2023-01-12T02-06-16Z (commit-id=7bc95c47a322971aff7d4d4c270dcf28a933e84b)
Runtime: go1.19.4 linux/amd64
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Copyright: 2015-2023 MinIO, Inc.

Contents of /modules/CloudNet-Storage-S3/config.json:

{
  "name": "s3",
  "bucket": "cloudnet",
  "region": "eu",
  "accessKey": "<redacted>",
  "secretKey": "<redacted>",
  "endpointOverride": "https://storage.novusmc.eu/",
  "accelerateMode": false,
  "pathStyleAccess": true,
  "chunkedEncoding": false,
  "checksumValidation": false,
  "dualstackEndpointEnabled": false
}

Issue uniqueness

GiantTreeLP commented 1 month ago

FWIW I have found that the success message is printed, even if the internal deployment step, ie. the step that uploads the template to the S3 bucket, fails: https://github.com/CloudNetService/CloudNet/blob/18530b6bf2c5340e1e1898a29f8b3c45e4004684/node/src/main/java/eu/cloudnetservice/node/command/sub/TemplateCommand.java#L259-L260

GiantTreeLP commented 1 month ago

Due to the fact that the gist is no longer available, I can not analyze the stacktrace anymore.

Do you happen to know, whether the region in MinIO is set correctly?

A quick test on my setup revealed that S3 templates do indeed work.