Google Authentication Fails Please guide to solve error

Hello Guruz,
I find myself facing an issue where I’m attempting to connect my locally hosted Grafana instance with Google authentication. I’ve followed all the necessary steps attentively, but I’m struggling to pinpoint where I might be making a mistake.Below, you can find my server and Gmail OAuth configurations.

Please follow instruction on your screen: check the Grafana server logs

Dear,
nothing much visible in logs please check below.
logger=settings t=2023-10-05T09:12:54.1427868+05:00 level=info msg=“Starting Grafana” version=9.0.0-beta1 commit=f89df6e171 branch=HEAD compiled=2022-05-24T14:43:30+05:00
logger=settings t=2023-10-05T09:12:54.1447949+05:00 level=info msg=“The state of unified alerting is still not defined. The decision will be made during as we run the database migrations”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Config loaded from” file=“C:\Program Files\GrafanaLabs\grafana/conf/defaults.ini”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Path Home” path=“C:\Program Files\GrafanaLabs\grafana”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Path Data” path=“C:\Program Files\GrafanaLabs\grafana\data”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Path Logs” path=“C:\Program Files\GrafanaLabs\grafana\data\log”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Path Plugins” path=“C:\Program Files\GrafanaLabs\grafana\data\plugins”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Path Provisioning” path=“C:\Program Files\GrafanaLabs\grafana\conf\provisioning”
logger=settings t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“App mode production”
logger=sqlstore t=2023-10-05T09:12:54.1461183+05:00 level=info msg=“Connecting to DB” dbtype=sqlite3
logger=sqlstore t=2023-10-05T09:12:54.148349+05:00 level=warn msg=“SQLite database file has broader permissions than it should” path=“C:\Program Files\GrafanaLabs\grafana\data\grafana.db” mode=-rw-rw-rw- expected=-rw-r-----
logger=migrator t=2023-10-05T09:12:54.2298519+05:00 level=info msg=“Starting DB migrations”
logger=migrator t=2023-10-05T09:12:54.2558691+05:00 level=info msg=“migrations completed” performed=0 skipped=417 duration=996.9µs
logger=grafanaStorageLogger t=2023-10-05T09:12:54.2602296+05:00 level=warn msg=“error loading storage” prefix=public-static err=“open blob.Bucket: parse "file://C:\\Program Files\\GrafanaLabs\\grafana\\public": invalid port ":\\Program Files\\GrafanaLabs\\grafana\\public" after host”
logger=plugin.manager t=2023-10-05T09:12:54.5130517+05:00 level=info msg=“Plugin registered” pluginId=input
logger=plugin.manager t=2023-10-05T09:12:54.5130517+05:00 level=info msg=“Plugin registered” pluginId=jasonlashua-prtg-datasource
logger=plugin.manager t=2023-10-05T09:12:54.5751+05:00 level=info msg=“Plugin registered” pluginId=dalvany-image-panel
logger=secrets t=2023-10-05T09:12:54.5761034+05:00 level=info msg=“Envelope encryption state” enabled=true currentprovider=secretKey.v1
logger=query_data t=2023-10-05T09:12:54.6011414+05:00 level=info msg=“Query Service initialization”
logger=live.push_http t=2023-10-05T09:12:54.6241566+05:00 level=info msg=“Live Push Gateway initialization”
logger=infra.usagestats.collector t=2023-10-05T09:12:55.2236115+05:00 level=info msg=“registering usage stat providers” usageStatsProvidersLen=2
logger=grafanaStorageLogger t=2023-10-05T09:12:55.2292969+05:00 level=info msg=“storage starting”
logger=ngalert t=2023-10-05T09:12:55.2292969+05:00 level=info msg=“warming cache for startup”
logger=http.server t=2023-10-05T09:12:55.2505881+05:00 level=info msg=“HTTP Server Listen” address=[::]:3000 protocol=http subUrl= socket=
logger=ngalert.multiorg.alertmanager t=2023-10-05T09:12:55.2546348+05:00 level=info msg=“starting MultiOrg Alertmanager”
logger=context traceID=00000000000000000000000000000000 userId=11 orgId=1 uname=atif t=2023-10-05T09:12:56.6107591+05:00 level=info msg=“Request Completed” method=GET path=/api/live/ws status=0 remote_addr=103.244.174.194 time_ms=25 duration=25.7778ms size=0 referer= traceID=00000000000000000000000000000000
logger=live t=2023-10-05T09:12:56.6273665+05:00 level=info msg=“Initialized channel handler” channel=grafana/dashboard/uid/BBpP_LDVk_Khi address=grafana/dashboard/uid/BBpP_LDVk_Khi
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:12:59.7860844+05:00 level=info msg=“Request Completed” method=GET path=/ status=302 remote_addr=202.69.56.91 time_ms=3 duration=3.1233ms size=29 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:12:59.8043347+05:00 level=info msg=“Request Completed” method=GET path=/login status=200 remote_addr=202.69.56.91 time_ms=15 duration=15.7372ms size=29429 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:13:01.7786724+05:00 level=error msg=“Request error” error=“runtime error: invalid memory address or nil pointer dereference” stack=“/usr/local/go/src/runtime/panic.go:221 (0xff091c)\n/usr/local/go/src/runtime/signal_windows.go:254 (0xff08ec)\n/drone/src/pkg/api/response/web_hack.go:45 (0x1c90b9a)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/middleware/csp.go:22 (0x23b6a72)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/web/render.go:44 (0x1affd66)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/middleware/csrf.go:21 (0x23b6e8f)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23b9fca)\n/drone/src/pkg/middleware/recovery.go:168 (0x23b9fc1)\n/drone/src/pkg/api/response/web_hack.go:49 (0x1c90ad3)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23b7b44)\n/drone/src/pkg/middleware/logger.go:35 (0x23b7b30)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23bacaf)\n/drone/src/pkg/middleware/request_metrics.go:60 (0x23bac9e)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23bc439)\n/drone/src/pkg/middleware/request_tracing.go:60 (0x23bc428)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/router.go:156 (0x1b015dd)\n/drone/src/pkg/web/router.go:223 (0x1b02271)\n/drone/src/pkg/web/macaron.go:176 (0x1aff6b0)\n/usr/local/go/src/net/http/server.go:2879 (0x1279e5a)\n/usr/local/go/src/net/http/server.go:1930 (0x12759c7)\n/usr/local/go/src/runtime/asm_amd64.s:1581 (0x100eba0)\n”
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:13:01.7786724+05:00 level=info msg=“Request Completed” method=GET path=/login/google status=302 remote_addr=202.69.56.91 time_ms=29 duration=29.3876ms size=479 referer=http://complaints.pphisindh.org:3000/login traceID=00000000000000000000000000000000
logger=oauth t=2023-10-05T09:13:02.4236684+05:00 level=info msg=“state check” queryState=1a08a2d8fcae6d52f0272f309684dbe4b69e3cc9d044cbe3cd56c2c460582642 cookieState=1a08a2d8fcae6d52f0272f309684dbe4b69e3cc9d044cbe3cd56c2c460582642
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:13:02.4246526+05:00 level=error msg=login.OAuthLogin(NewTransportWithCode) error=“Post "": unsupported protocol scheme ""”
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:13:02.4367734+05:00 level=error msg=“Request error” error=“runtime error: invalid memory address or nil pointer dereference” stack=“/usr/local/go/src/runtime/panic.go:221 (0xff091c)\n/usr/local/go/src/runtime/signal_windows.go:254 (0xff08ec)\n/drone/src/pkg/api/response/web_hack.go:45 (0x1c90b9a)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/middleware/csp.go:22 (0x23b6a72)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/web/render.go:44 (0x1affd66)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x1b04fba)\n/drone/src/pkg/web/macaron.go:141 (0x1b04fac)\n/usr/local/go/src/net/http/server.go:2047 (0x12768ee)\n/drone/src/pkg/middleware/csrf.go:21 (0x23b6e8f)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23b9fca)\n/drone/src/pkg/middleware/recovery.go:168 (0x23b9fc1)\n/drone/src/pkg/api/response/web_hack.go:49 (0x1c90ad3)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23b7b44)\n/drone/src/pkg/middleware/logger.go:35 (0x23b7b30)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23bacaf)\n/drone/src/pkg/middleware/request_metrics.go:60 (0x23bac9e)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/context.go:66 (0x23bc439)\n/drone/src/pkg/middleware/request_tracing.go:60 (0x23bc428)\n/drone/src/pkg/api/response/web_hack.go:31 (0x1c90e34)\n/usr/local/go/src/reflect/value.go:556 (0x1096ae4)\n/usr/local/go/src/reflect/value.go:339 (0x1096064)\n/drone/src/pkg/web/inject.go:159 (0x1afe286)\n/drone/src/pkg/web/inject.go:119 (0x1afded4)\n/drone/src/pkg/web/context.go:71 (0x1afd16b)\n/drone/src/pkg/web/router.go:156 (0x1b015dd)\n/drone/src/pkg/web/router.go:223 (0x1b02271)\n/drone/src/pkg/web/macaron.go:176 (0x1aff6b0)\n/usr/local/go/src/net/http/server.go:2879 (0x1279e5a)\n/usr/local/go/src/net/http/server.go:1930 (0x12759c7)\n/usr/local/go/src/runtime/asm_amd64.s:1581 (0x100eba0)\n”
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2023-10-05T09:13:02.4377738+05:00 level=error msg=“Request Completed” method=GET path=/login/google status=500 remote_addr=202.69.56.91 time_ms=16 duration=16.0078ms size=1365 referer=http://complaints.pphisindh.org:3000/ traceID=00000000000000000000000000000000

No, your log contains exact error:

I bet Token_url should be token_url.

GURU ,
You have eagle eyes , Thumbs Up. Its working.
Thanks for your guidance