storj / gateway-st

Single-tenant, S3-compatible server to interact with the Storj network
Apache License 2.0
71 stars 19 forks source link

Invalid UI version in the JSON-RPC response #65

Closed CatInAHatIsBack closed 1 year ago

CatInAHatIsBack commented 2 years ago

What version of Gateway-ST are you using (gateway version)?

Unsure of how to commit a tree hash or a docker image digest.

$ gateway version
Development build 

What operating system and processor architecture are you using (uname -mrsv)?

uname -mrsv Output
$ uname -mrsv
Darwin 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101 arm64

What did you do?

2022-07-17T20:09:01.191+0800 DEBUG process/exec_conf.go:394 Unrecoverable error {"error": "gateway configuration: failed parsing access config: uplink: invalid access grant format", "errorVerbose": "gateway configuration: failed parsing access config: uplink: invalid access grant format\n\tmain.checkCfg:183\n\tmain.cmdRun:163\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(Command).execute:852\n\tgithub.com/spf13/cobra.(Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.main:449\n\truntime.main:250"}

amwolff commented 2 years ago

Hi @CatInAHatIsBack! Thanks for the report.

We are aware of the issue of the object browser not working for Gateway-ST started through storj-sim. However, it will correctly function if you grab the release binary from the releases page. I will raise the issue of the malfunctioning object browser for Gateway-ST started through storj-sim internally.

One thing to note is that the object browser isn't for setting up credentials; it's only for operating on buckets and objects through a simple UI.

For the second issue, how are you trying to set credentials? Can you paste exact commands?

CatInAHatIsBack commented 2 years ago

gateway run --minio.access-key 4Vfgr9g1jMFp26XVrdsx5AqzMHAB --minio.secret-key XXXXXXXXXXXXXXXXXX Does the release binary work for setting up the test-netwrok?

amwolff commented 2 years ago

Yes, it should work as long as it can reach storj-sim's satellite (e.g., you are running it on the same network).

I noticed that you might need to specify --access $(storj-sim network env GATEWAY_0_ACCESS) along with already specified --minio.access-key and --minio.secret-key (Gateway-ST needs the access grant that storj-sim exposes).

halkyon commented 2 years ago

If this helps, this is the command I use myself when running a release Gateway-ST for an existing storj-sim:

gateway run \
--access "$(storj-sim network env GATEWAY_0_ACCESS)" \
--minio.access-key "$(storj-sim network env GATEWAY_0_ACCESS_KEY)" \
--minio.secret-key "$(storj-sim network env GATEWAY_0_SECRET_KEY)" \
--server.address 127.0.0.1:7777