error while menshen initial run
https://0xacab.org/leap/menshen/-/blob/main/pkg/api/registry.go?ref_type=heads#L150
config:
opts=( --env=FLOAT_CONTAINER_IMAGE=registry.0xacab.org/leap/menshen:fix-dockerfile --env=FLOAT_CONTAINER_NAME=menshen-sgk-menshen-sgk --env=MENSHEN_FROM_EIP_FILE=/etc/leap/config/vpnweb/3/eip-service.json --env=MENSHEN_CLIENT_CERT_URL=https://api.*.org/ca.crt --env=MENSHEN_CA_FILE=/etc/leap/config/menshen_ca.crt --env=FLOAT_INSTANCE_NAME=floatapp1.menshen-sgk.*.org --env=MENSHEN_DB_FILE=/etc/leap/menshen_sqlite.db --env=FLOAT_SERVICE=menshen-sgk.float.*.org --env=INSECURE_API=false --env=MENSHEN_API=https://api.*.org --env=MENSHEN_METRICS_PORT=9102 --env=MENSHEN_PORT=9101 --env=MENSHEN_VERBOSE=true --read-only --mount=type=bind,source=/var/lib/GeoIP,destination=/var/lib/GeoIP/ --mount=type=tmpfs,destination=/run,tmpfs-mode=01777,tmpfs-size=16M,exec=true,notmpcopyup --mount=type=bind,source=/dev/log,destination=/dev/log --mount=type=bind,source=/etc/credentials/system,destination=/etc/ssl/certs --mount=type=bind,source=/etc/menshen,destination=/etc/leap --network=host --expose=9101 --security-opt=no-new-privileges --cap-drop=all
Logs:
Apr 08 05:16:35 : <E2><87><A8> http server started on [::]:9102
Apr 08 05:16:35 : panic: runtime error: invalid memory address or nil pointer dereference
Apr 08 05:16:35 : [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xcc9e40]
Apr 08 05:16:35 :
Apr 08 05:16:35 : goroutine 1 [running]:
Apr 08 05:16:35 : 0xacab.org/leap/menshen/pkg/api.newRegistry(0xc0001b1220)
Apr 08 05:16:35 : /src/pkg/api/registry.go:150 +0x15e0
Apr 08 05:16:35 : 0xacab.org/leap/menshen/pkg/api.InitServer(0xc0001b1220)
Apr 08 05:16:35 : /src/pkg/api/api.go:61 +0x5f3
Apr 08 05:16:35 : main.main()
Apr 08 05:16:35 : /src/cmd/menshen/main.go:182 +0x14e8
Edited by sgk