Hi Natasha and Barak,
Have you been able to figure this out? I'm trying to run LakeFS in an Azure Container Instance and connecting to Azure Datalake Gen2 blob storage and think I'm having a similar issue... I'm getting the same Metadata timeout and related warning about not being able to fetch the Azure subscription ID on start-up. Then, whenever I try to create a repo in the LakeFS web UI, I get below nil pointer dereference error.
Thanks in advance for any assistance or info provided!
2023/08/06 04
0008 http: panic serving <MY-IP>
64413 runtime error: invalid memory address or nil pointer dereference
goroutine 1285 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1850 +0xbf
panic({0x1d48820, 0x63f5ac0})
/usr/local/go/src/runtime/panic.go:890 +0x262
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/base.InnerClient[...](0x100?)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v0.6.1/internal/base/clients.go:21
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/service.(*Client).generated(...)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v0.6.1/service/client.go:111
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/service.(*Client).NewContainerClient(0xc0004a53e0?, {0xc0071e8132?, 0x0?})
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/azblob@v0.6.1/service/client.go:126 +0x3f
github.com/treeverse/lakefs/pkg/block/azure.(*ClientCache).NewContainerClient.func1()
/build/pkg/block/azure/client_cache.go:56 +0x90
github.com/puzpuzpuz/xsync.(*MapOf[...]).doStore(0xc0003c92d0, {0xc0076d1890, 0x15}, 0xc007e3e2e8, 0x1)
/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.5.2/mapof.go:238 +0x63e
github.com/puzpuzpuz/xsync.(*MapOf[...]).LoadOrCompute(0x5?, {0xc0076d1890?, 0x2?}, 0x2?)
/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.5.2/mapof.go:161 +0x28
github.com/treeverse/lakefs/pkg/block/azure.(*ClientCache).NewContainerClient(0xc0004a53e0, {0xc0071e8108, 0x14}, {0xc0071e8132, 0x0})
/build/pkg/block/azure/client_cache.go:50 +0x156
github.com/treeverse/lakefs/pkg/block/azure.(*Adapter).Download(0xc0007fadb0, {0x5565290, 0xc0077e6540}, {{0xc0071e8100, 0x33}, {0x20af1b4, 0x5}, 0x1}, 0x0, 0x0)
/build/pkg/block/azure/adapter.go:285 +0x169
github.com/treeverse/lakefs/pkg/block/azure.(*Adapter).Get(0x14?, {0x5565290, 0xc0077e6540}, {{0xc0071e8100, 0x33}, {0x20af1b4, 0x5}, 0x1}, 0xc0075d4600?)
/build/pkg/block/azure/adapter.go:195 +0x145
github.com/treeverse/lakefs/pkg/api.(*Controller).ensureStorageNamespace(0xc00721b500, {0x5565290, 0xc0077e6540}, {0xc0071e8100, 0x33})
/build/pkg/api/controller.go:1620 +0xcf
github.com/treeverse/lakefs/pkg/api.(*Controller).CreateRepository(0xc00721b500, {0x55632d0, 0xc0073d2090}, 0xc0075d4600, {0xc007d48140, {0xc0008521a0, 0xc}, 0xc00085213c, {0xc0071e8100, 0x33}}, ...)
/build/pkg/api/controller.go:1542 +0x572
github.com/treeverse/lakefs/pkg/api.(*ServerInterfaceWrapper).CreateRepository.func1({0x55632d0?, 0xc0073d2090?}, 0x20a0001?)
/build/pkg/api/lakefs.gen.go:21059 +0x65
github.com/treeverse/lakefs/pkg/api.(*ServerInterfaceWrapper).CreateRepository(0xc00753a810, {0x55632d0, 0xc0073d2090}, 0xc0075d4500)
/build/pkg/api/lakefs.gen.go:21066 +0x5b0
net/http.HandlerFunc.ServeHTTP(0xc007b41970?, {0x55632d0?, 0xc0073d2090?}, 0xc0077e6330?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/treeverse/lakefs/pkg/api.MetricsMiddleware.func1.1({0x7f0be1471348?, 0xc0077e6330}, 0x5563300?)
/build/pkg/api/metrics_middleware.go:27 +0xf3
net/http.HandlerFunc.ServeHTTP(0x5563300?, {0x7f0be1471348?, 0xc0077e6330?}, 0xc0075d4500?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x5563300?, 0xc007d7c620?}, 0xc0075d4500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.15.1/prometheus/promhttp/instrument_server.go:147 +0xc5
net/http.HandlerFunc.ServeHTTP(0x5565290?, {0x5563300?, 0xc007d7c620?}, 0x5540fe0?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/treeverse/lakefs/pkg/api.AuthMiddleware.func1.1({0x5563300, 0xc007d7c620}, 0xc00747e800)
/build/pkg/api/auth_middleware.go:93 +0x4b0
net/http.HandlerFunc.ServeHTTP(0x1f08860?, {0x5563300?, 0xc007d7c620?}, 0xc?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/treeverse/lakefs/pkg/httputil.DefaultLoggingMiddleware.func1.1({0x5563c00?, 0xc0073f4000}, 0xffffffffffffff01?)
/build/pkg/httputil/logging.go:87 +0x645
net/http.HandlerFunc.ServeHTTP(0xc00747e500?, {0x5563c00?, 0xc0073f4000?}, 0xc0074f8c50?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/treeverse/lakefs/pkg/api.OapiRequestValidatorWithOptions.func1.1({0x5563c00, 0xc0073f4000}, 0xc00747e400)
/build/pkg/api/serve.go:168 +0x2e3
net/http.HandlerFunc.ServeHTTP(0xc007b21f80?, {0x5563c00?, 0xc0073f4000?}, 0xc0080e8a38?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/go-chi/chi/v5.(*ChainHandler).ServeHTTP(0x1d20d00?, {0x5563c00?, 0xc0073f4000?}, 0xc007170005?)
/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.0/chain.go:31 +0x2c
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc00011d080, {0x5563c00, 0xc0073f4000}, 0xc00747e400)
/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.0/mux.go:436 +0x1f9
net/http.HandlerFunc.ServeHTTP(0x55651e8?, {0x5563c00?, 0xc0073f4000?}, 0x63f54b0?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc00011d080, {0x5563c00, 0xc0073f4000}, 0xc007495b00)
/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.0/mux.go:87 +0x32a
github.com/treeverse/lakefs/cmd/lakefs/cmd.glob..func8.3({0x5563c00, 0xc0073f4000}, 0xc0077d86f0?)
/build/cmd/lakefs/cmd/run.go:325 +0x102
net/http.HandlerFunc.ServeHTTP(0x0?, {0x5563c00?, 0xc0073f4000?}, 0x866854?)
/usr/local/go/src/net/http/server.go:2109 +0x2f
net/http.serverHandler.ServeHTTP({0x555e340?}, {0x5563c00, 0xc0073f4000}, 0xc007495b00)
/usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc007c47b80, {0x5565290, 0xc008102ff0})
/usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3102 +0x4db