Error: gateway setup error: uplink: invalid access grant format

In the docker log, I find the following: Error: gateway setup error: uplink: invalid access grant format

Perhaps your gateway was old and do not support the new access grant format which is used in latest version of libuplink library.
We have had a different format for the access grants, it’s called “scope”, now it’s called “access”.
You can replace the “scope:” to the “access:” in the gateway config file.
Make sure that you running the latest version of gateway:

./gateway version

or

docker pull storjlabs/gateway:latest
docker run -it --rm storjlabs/gateway version

It should return

2020-07-04T04:26:15.185Z        INFO    tracing disabled
Release build
Version: v1.1.3
Build timestamp: 02 Jun 20 11:58 UTC
Git commit: 013318992065521938ba09790988fe7b4ea85eb0