Error: "Invalid UI version in the JSON-RPC response"

Please copy a error stack-trace from the window with gateway when gateway is shutdown itself. Please post the error stack trace here between two new lines with three backticks like this:

logs lines here

I have the same problem,and there are the logs

@jeremy , I installed the working Gateway binary

gateway version
2023-03-07T00:59:42.326-0800 INFO Anonymized tracing enabled
Release build
Version: v1.8.3
Build timestamp: 22 Dec 22 03:50 PST
Git commit: 4b74c3b

satellite-core/0 00:48:40.147 | DEBUG core-zombie-deletion zombiedeletion/chore.go:80 deleting zombie objects
gateway/0 00:48:47.166 | unexpected fault address 0x0
| fatal error: fault
gateway/0 00:48:47.170 | [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x469b9f]
| goroutine 88 [running]:
| runtime.throw({0x1c58f57?, 0x18?})
| /usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0xc000a878a8 sp=0xc000a87878 pc=0x4380dd
| runtime.sigpanic()
| /usr/local/go/src/runtime/signal_unix.go:842 +0x2c5


Hello @Alexey @jeremy

There are many lines. Here I am staging some of their for your reference.

unexpected fault address 0xffffffffffffffff                                                                                                                                    fatal error: fault                                                                                                                                                             [signal 0xc0000005 code=0x0 addr=0xffffffffffffffff pc=0x6ba9ff]                                                                                                                                                                                                                                                                                              goroutine 40 [running]:                                                                                                                                                        runtime.throw({0x1eb499c?, 0x265c67d0598?})                                                                                                                                            /usr/local/go/src/runtime/panic.go:1047 +0x65 fp=0xc0003558b0 sp=0xc000355880 pc=0x68b645                                                                              runtime.sigpanic()                                                                                                                                                                     /usr/local/go/src/runtime/signal_windows.go:261 +0x125 fp=0xc0003558f8 sp=0xc0003558b0 pc=0x6a0245                                                                     aeshashbody()                                                                                                                                                                          /usr/local/go/src/runtime/asm_amd64.s:1366 +0x39f fp=0xc000355900 sp=0xc0003558f8 pc=0x6ba9ff                                                                          runtime.mapiternext(0xc000c88f80)                                                                                                                                                      /usr/local/go/src/runtime/map.go:936 +0x2eb fp=0xc000355970 sp=0xc000355900 pc=0x66090b                                                                                runtime.mapiterinit(0x0?, 0x6?, 0x1?)                                                                                                                                                  /usr/local/go/src/runtime/map.go:863 +0x236 fp=0xc000355990 sp=0xc000355970 pc=0x6605d6                                                                                reflect.mapiterinit(0x1ac48ac?, 0xc000355a18?, 0x6b3a85?)                                                                                                                              /usr/local/go/src/runtime/map.go:1375 +0x19 fp=0xc0003559b8 sp=0xc000355990 pc=0x6b6639                                                                      *UnsafeMapType).UnsafeIterate(...)                                                                                                                      /go/pkg/mod/                                                                                           *sortKeysMapEncoder).Encode(0xc000281470, 0xc000b4b480, 0xc000b4b500)                                                                                     /go/pkg/mod/ +0x236 fp=0xc000355b28 sp=0xc0003559b8 pc=0xc729f6                                        *structFieldEncoder).Encode(0xc000281830, 0x1a8c85a?, 0xc000b4b500)                                                                                       /go/pkg/mod/ +0x56 fp=0xc000355ba0 sp=0xc000355b28 pc=0xc80236                              *structEncoder).Encode(0xc000281a40, 0x0?, 0xc000b4b500)                                                                                                  /go/pkg/mod/ +0x765 fp=0xc000355c88 sp=0xc000355ba0 pc=0xc80c45                             *OptionalEncoder).Encode(0xc00008de00?, 0x0?, 0x0?)                                                                                                       /go/pkg/mod/ +0xb0 fp=0xc000355cd8 sp=0xc000355c88 pc=0xc77dd0                                     *onePtrEncoder).Encode(0xc000b831f0, 0xc000b4b440, 0xc000280bd0?)                                                                                                                                                                                             /usr/local/go/src/net/http/server.go:2109 +0x2f fp=0xc0004af568 sp=0xc0004af540 pc=0xbd926f                                                                  {0x2780970?, 0xc00016a700?}, 0xc000024a00?)                                                                                                  /go/pkg/mod/ +0x3ca fp=0xc0004af6c8 sp=0xc0004af568 pc=0x17dd24a                          net/http.HandlerFunc.ServeHTTP(0x65e09f?, {0x2780970?, 0xc00016a700?}, 0xc00026b170?)                                                                                                  /usr/local/go/src/net/http/server.go:2109 +0x2f fp=0xc0004af6f0 sp=0xc0004af6c8 pc=0xbd926f                                                                  {0x2780970, 0xc00016a700}, 0xc000024a00)                                                                                                                                                                         *HeaderConn).Read(0x5fb?, {0xc00045ec00?, 0x1ccc301?, 0xc0004a1040?})                                                                                       <autogenerated>:1 +0x2f fp=0xc000bc77d8 sp=0xc000bc77a8 pc=0xa5290f                                                                                          *closeTrackingConn).Read(0xc00045ec05?, {0xc00045ec00?, 0x5fb?, 0xc00045ec00?})                                                                               <autogenerated>:1 +0x2f fp=0xc000bc7808 sp=0xc000bc77d8 pc=0xa51e0f                                                                                          *timedConn).Read(0xc0000085b8, {0xc00045ec00?, 0x30001?, 0xc0?})                                                                                                  /go/pkg/mod/ +0x89 fp=0xc000bc7870 sp=0xc000bc7808 pc=0xa5f589                                      crypto/tls.(*atLeastReader).Read(0xc000008a08, {0xc00045ec00?, 0x0?, 0x2?})                                                                                                            /usr/local/go/src/crypto/tls/conn.go:787 +0x3d fp=0xc000bc78b8 sp=0xc000bc7870 pc=0x8b319d                                                                             bytes.(*Buffer).ReadFrom(0xc0004b8278, {0x2771380, 0xc000008a08})                                                                                                                      /usr/local/go/src/bytes/buffer.go:202 +0x98 fp=0xc000bc7910 sp=0xc000bc78b8 pc=0x7b6b18                                                                                crypto/tls.(*Conn).readFromUntil(0xc0004b8000, {0x265c689ca68?, 0xc0000085b8}, 0x600?)                                                                                                 /usr/local/go/src/crypto/tls/conn.go:809 +0xe5 fp=0xc000bc7950 sp=0xc000bc7910 pc=0x8b3385                                                                             crypto/tls.(*Conn).readRecordOrCCS(0xc0004b8000, 0x0)                                                                                                                                  /usr/local/go/src/crypto/tls/conn.go:616 +0x116 fp=0xc000bc7cd8 sp=0xc000bc7950 pc=0x8b07d6                                                                            crypto/tls.(*Conn).readRecord(...)                                                                                                                                                     /usr/local/go/src/crypto/tls/conn.go:582                                                                                                                               crypto/tls.(*Conn).Read(0xc0004b8000, {0xc000c0f000, 0x1000, 0x0?})                                                                                                                    /usr/local/go/src/crypto/tls/conn.go:1287 +0x16f fp=0xc000bc7d48 sp=0xc000bc7cd8 pc=0x8b642f                                                                 *Reader).ReadPacketUsing(0xc0000029c0, {0xc000ade4e0?, 0x0?, 0x30?})                                                                                           /go/pkg/mod/ +0x4d2 fp=0xc000bc7e78 sp=0xc000bc7d48 pc=0xa544f2                                                   *Manager).manageReader(0xc000452540)                                                                                                                        /go/pkg/mod/ +0xdf fp=0xc000bc7fc8 sp=0xc000bc7e78 pc=0xa5c47f                                                                                                                                                                                      /go/pkg/mod/ +0x26 fp=0xc000bc7fe0 sp=0xc000bc7fc8 pc=0xa5bc86                                                         runtime.goexit()                                                                                                                                                                       /usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000bc7fe8 sp=0xc000bc7fe0 pc=0x6bd761                                                                            created by                                                                                                                                    /go/pkg/mod/ +0x416                                                                                                                                                                                                                                                                                   goroutine 93 [runnable]:                                                                                                                                                       net/http.(*connReader).startBackgroundRead.func2()                                                                                                                                     /usr/local/go/src/net/http/server.go:674 fp=0xc000cd9fe0 sp=0xc000cd9fd8 pc=0xbd19e0                                                                                   runtime.goexit()                                                                                                                                                                       /usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000cd9fe8 sp=0xc000cd9fe0 pc=0x6bd761                                                                            created by net/http.(*connReader).startBackgroundRead                                                                                                                                  /usr/local/go/src/net/http/server.go:674 +0xca                                                                                                                                                                                                                                                                                                        goroutine 100 [IO wait]:                                                                                                                                                       runtime.gopark(0x0?, 0xc000b34298?, 0x48?, 0x43?, 0xc000b342c8?)                                                                                                                       /usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000bc5d80 sp=0xc000bc5d60 pc=0x68e116                                                                                runtime.netpollblock(0x30002?, 0xbc5d50?, 0xc0?)                                                                                                                                       /usr/local/go/src/runtime/netpoll.go:526 +0xf7 fp=0xc000bc5db8 sp=0xc000bc5d80 pc=0x684137                                                                             internal/poll.runtime_pollWait(0x265c689c440, 0x72)                                                                                                                                    /usr/local/go/src/runtime/netpoll.go:305 +0x89 fp=0xc000bc5dd8 sp=0xc000bc5db8 pc=0x6b7009                                                                             internal/poll.(*pollDesc).wait(0xffff?, 0x8?, 0x0)                                                                                                                                     /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc000bc5e00 sp=0xc000bc5dd8 pc=0x714992                                                                internal/poll.execIO(0xc000b34298, 0x24a4218)                                                                                                                                          /usr/local/go/src/internal/poll/fd_windows.go:175 +0xe5 fp=0xc000bc5e58 sp=0xc000bc5e00 pc=0x715fc5                                                                    internal/poll.(*FD).Read(0xc000b34280, {0xc000434131, 0x1, 0x1})                                                                                                                       /usr/local/go/src/internal/poll/fd_windows.go:441 +0x26b fp=0xc000bc5ee8 sp=0xc000bc5e58 pc=0x716e4b                                                                   net.(*netFD).Read(0xc000b34280, {0xc000434131?, 0xc000254298?, 0xc000bc5f68?})                                                                                                         /usr/local/go/src/net/fd_posix.go:55 +0x29 fp=0xc000bc5f30 sp=0xc000bc5ee8 pc=0x7548a9                                                                                 net.(*conn).Read(0xc000c86240, {0xc000434131?, 0xc000b5a230?, 0x1?})                                                                                                                   /usr/local/go/src/net/net.go:183 +0x45 fp=0xc000bc5f78 sp=0xc000bc5f30 pc=0x76bac5                                                                                     net/http.(*connReader).backgroundRead(0xc000434120)                                                                                                                                    /usr/local/go/src/net/http/server.go:678 +0x3f fp=0xc000bc5fc8 sp=0xc000bc5f78 pc=0xbd1adf                                                                             net/http.(*connReader).startBackgroundRead.func2()                                                                                                                                     /usr/local/go/src/net/http/server.go:674 +0x26 fp=0xc000bc5fe0 sp=0xc000bc5fc8 pc=0xbd1a06                                                                             runtime.goexit()                                                                                                                                                                       /usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000bc5fe8 sp=0xc000bc5fe0 pc=0x6bd761                                                                            created by net/http.(*connReader).startBackgroundRead                                                                                                                                  /usr/local/go/src/net/http/server.go:674 +0xca

There are more lines but as forum wont allow more than 32000 so i have picked random from logs please refer this.

So these message I got in terminal and in web I got “MinIO server is unreachable”


Anything goes up?

Please help me with this…


1 Like

I believe it’s a bug in Gateway-ST. Would you mind to open a GitHub issue?

Did you try storj-up?

I tested myself, all versions of Gateway-ST are broken after 9b3a957-go1.17.12 (I used a docker image for tests).
The working binary is Release v1.8.2 · storj/gateway-st · GitHub


I’ve created an issue to track this here: segfault when using minio browser · Issue #73 · storj/gateway-st · GitHub

@kar1 You can safely skip the login with your web brower step and test storj locally using any s3 compatible tool such as the aws-cli or rclone.


Hello @Alexey .

Thank you so much for your support.
Yes using this solution I get rid of this Invalid ui version error.

Now I can login in localhost:11000/minio/login.

I also run gateway on 7777 port, connect to satellite web project that was on port :10002 .

Yes I can create bucket and upload files using gateway and uplink bur still I can not create bucket using satellite web.

I got stuck in this error.

Here I am attaching screenshot of that please refer and help me out .


Hello @kar1,

There are some additional steps you’ll have to take to get the file browser to work.

  1. Install the Storj Edge Services.
    • Clone the storj/gateway-mt repository.
    • While within the directory you cloned it into, run go install -v ./....
  2. Destroy and restart your local Storj network.
    • You must run storj-sim using the storj-sim network run --no-gateways command.
  3. Get your local satellite’s node URL.
    • Run storj-sim network env SATELLITE_0_URL.
  4. Run authservice.
    • Replacing SAT_NODE_URL with the satellite node URL from the previous step, run:
    authservice run ^
       --allowed-satellites SAT_NODE_URL ^
       --auth-token my-test-auth-token ^
       --endpoint http://localhost:8002 ^
       --listen-addr :8000 ^
       --kv-backend badger://
    (If you are using PowerShell, replace the carets (^) with backticks (`).)
  5. Run gateway-mt.
    •  gateway-mt run ^
         --auth.token my-test-auth-token ^
         --auth.base-url http://localhost:8000 ^
         --domain-name localhost ^
         --server.address localhost:8002 ^

Please let me know if you have any questions.

1 Like

Any specific gateway-mt version?

And one more thing why should I need gateway-mt instead of gateway-st?

I have done folllowing but showing same as before ERROR

storj-sim network destroy

storj-sim network setup --postgres=postgres://postgres:postgres@localhost:5432/teststorj?sslmode=disable

storj-sim network run --no-gateways

storj-sim network env SATELLITE_0_URL = 12TiRqWsp1M39TZZUcUmfpLjMjiED1Xumx3peTbaZyH6UX566Sd@

authservice run ^
   --allowed-satellites 12TiRqWsp1M39TZZUcUmfpLjMjiED1Xumx3peTbaZyH6UX566Sd@ ^
   --auth-token my-test-auth-token ^
   --endpoint http://localhost:7777 ^
   --listen-addr : 7772^
   --kv-backend badger://
 gateway-mt run ^
   --auth.token my-test-auth-token ^
   --auth.base-url http://localhost:7772 ^
   --domain-name localhost ^
   --server.address localhost:7777 ^

Am i missing something ?

Please reach me out asap…!

@jeremy @Alexey

If you run gateway-st on port 7777, you need to stop it and either use a different port or do not run it at all.

For web UI you need to use Gateway-MT instead of Gateway-ST.

1 Like

@Alexey @jeremy

Yes ofcourse, I have stopped gateway-st and then run gateway-mt on port 777

Still this occur

In the screenshot with “Cannot get gateway credentials” can you show the Response tab of the error in the DevTools? It should show an error in there corresponding to the 400 Bad Request.

1 Like

Yes you are absolutely right .

It showing 400 Bad Request

What to do next?

Since you are using a port (7772) other than the default (8000) for authservice, you will need to add this to your satellite config:

console.gateway-credentials-request-url: http://localhost:7772

Your config should be located at %appdata%\Storj\Local-Network\satellite\0\config.yaml. Once you’ve added that line, you should restart storj-sim for it to take effect.


Hello @jeremy I have done the same as you instruct but got the same result.

One more question. If you see Request URL: http://localhost:7777/v1/access
in above Picture
Then why we should add 7772 port to satellite config.

That’s because the Gateway credentials request URL should match the listen address of authservice. You’re getting an error when trying to contact http://localhost:7777 because authservice isn’t listening there; that’s gateway-mt’s address.

Hello @jeremy

As you have said I have update the console.gateway-credentials-request-url: http://localhost:7772 so now the Request url is “http://localhost:7772/v1/access

I have ran both authservice and gateway-mt as shown in this

And one more question how satellite fetch gateway credentials from port 7772 as we havent set anything on that …

Is there should be appear on 7772 because in my system nothing is there on 7772 port.

So I am little bit of confused

@kar1 The satellite is able to fetch Gateway credentials from port 7772 because you specified --listen-addr :7772 when executing authservice run. This allows authservice to handle any requests directed to http://localhost:7772.

Hello guys…

First of all I want to thank you all for you humble co-operation and help that you have provided.

I am now able to run storj locally I can now do all operations locally using satellite web and gateway.

Thanks all…!!

Have a Good Day…!