Skip to content

frontend or gitserver API not available

Created by: Wikunia

I followed the instructions of local installation in the guide but get:

[35m12:31:50 ctags-image | [mBuilding ctags docker image
[35m12:31:50 ctags-image | [mTerminating ctags-image
[32m12:31:50        yarn | [myarn install v1.22.10
[36m12:31:50  go-install | [mGo race detector disabled. You can enable it for specific commands by setting GORACED (e.g. GORACED=frontend,searcher or GORACED=all for all commands)
[32m12:31:50        yarn | [m[1/5] Validating package.json...
[32m12:31:50        yarn | [m[2/5] Resolving packages...
[32m12:31:51        yarn | [mwarning Resolution field "[email protected]" is incompatible with requested version "history@^4.9.0"
[32m12:31:51        yarn | [mwarning Resolution field "[email protected]" is incompatible with requested version "history@^4.9.0"
[36m12:31:51  go-install | [m# github.com/mattn/go-sqlite3
[36m12:31:51  go-install | [msqlite3-binding.c: In function ‘sqlite3SelectNew’:
[36m12:31:51  go-install | [msqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
[36m12:31:51  go-install | [m128049 |   return pNew;
[36m12:31:51  go-install | [m       |          ^~~~
[36m12:31:51  go-install | [msqlite3-binding.c:128009:10: note: declared here
[36m12:31:51  go-install | [m128009 |   Select standin;
[36m12:31:51  go-install | [m       |          ^~~~~~~
[36m12:31:51  go-install | [mTerminating go-install
[32m12:31:52        yarn | [msuccess Already up-to-date.
[32m12:31:52        yarn | [mDone in 1.73s.
[32m12:31:52        yarn | [mTerminating yarn
[34m12:31:52            executor-queue | [mTerminating executor-queue
[36m12:31:52                     minio | [mTerminating minio
[31m12:31:52        codeintel-executor | [mTerminating codeintel-executor
[32m12:31:52 precise-code-intel-worker | [mTerminating precise-code-intel-worker
[32m12:31:52       zoekt-indexserver-1 | [m2021/03/28 12:31:52 tmpfriend: Removing /home/ole/.sourcegraph/zoekt/index-1/.indexserver.tmp/tmpfriend-51682-672095686
[33m12:31:52         postgres_exporter | [mBuilding pg_exporter docker image
[31m12:31:52              github-proxy | [m[36mINFO[0m github-proxy: listening, addr: 127.0.0.1:3180
[34m12:31:52                  keycloak | [mNot using Keycloak. Keycloak authentication providers will not work.
[34m12:31:52                  keycloak | [mTerminating keycloak
[31m12:31:52       zoekt-indexserver-0 | [m2021/03/28 12:31:52 tmpfriend: Removing /home/ole/.sourcegraph/zoekt/index-0/.indexserver.tmp/tmpfriend-51707-399025495
[32m12:31:52                   docsite | [m# Doc site is available at http://localhost:5080
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.5402493,"msg":"using provided configuration","config_file":"dev/Caddyfile","config_adapter":""}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.5450919,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.5458865,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000242770"}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.5581698,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":3081}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.558986,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["sourcegraph.test"]}
[35m12:31:52                     caddy | [m{"level":"warn","ts":1616927512.5601878,"logger":"tls","msg":"stapling OCSP","error":"no OCSP stapling for [sourcegraph.test]: no OCSP server specified in certificate"}
[33m12:31:52                  searcher | [m[36mINFO[0m searcher: listening, addr: 127.0.0.1:3181
[33m12:31:52           codeinsights-db | [mcodeinsights-db: building sourcegraph/codeinsights-db:dev...
[35m12:31:52                   grafana | [mGrafana: building sourcegraph/grafana:dev...
[32m12:31:52                  frontend | [m[36mINFO[0m opentracing: Jaeger disabled
[32m12:31:52                  frontend | [mtmpfriend: Removing /tmp/tmpfriend-51805-889344055
[36m12:31:52                prometheus | [mPrometheus: building sourcegraph/prometheus:dev...
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.6756392,"logger":"pki.ca.local","msg":"root certificate is already trusted by system","path":"storage:pki/authorities/local/root.crt"}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.6760323,"msg":"autosaved config","file":"/home/ole/.config/caddy/autosave.json"}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.6761866,"msg":"serving initial configuration"}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.676429,"logger":"watcher","msg":"watching config file for changes","config_file":"dev/Caddyfile"}
[35m12:31:52                     caddy | [m{"level":"info","ts":1616927512.6774833,"logger":"tls","msg":"cleaned up storage units"}
[33m12:31:52         postgres_exporter | [mWARNING: Published ports are discarded when using host network mode
[33m12:31:52         postgres_exporter | [mtime="2021-03-28T10:31:52Z" level=info msg="Established new database connection to \"localhost:5432\"." source="postgres_exporter.go:814"
[33m12:31:53         postgres_exporter | [mtime="2021-03-28T10:31:53Z" level=info msg="Semantic Version Changed on \"localhost:5432\": 0.0.0 -> 13.2.0" source="postgres_exporter.go:1335"
[33m12:31:53         postgres_exporter | [mtime="2021-03-28T10:31:53Z" level=info msg="Starting Server: :9187" source="postgres_exporter.go:1576"
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker command: env ROCKET_PORT={{.Port}} /syntect_server
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14: started on port 34437
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14: Configured for production.
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => address: 0.0.0.0
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => port: 34437
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => log: critical
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => workers: 32
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => secret key: provided
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => limits: forms = 32KiB, json* = 10MiB
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => keep-alive: disabled
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14:     => tls: disabled
[34m12:31:53            syntect_server | [m2021/03/28 10:31:53 worker 14: Rocket has launched from http://0.0.0.0:34437
[33m12:31:53           codeinsights-db | [mcodeinsights-db: serving on http://localhost:5435
[33m12:31:53           codeinsights-db | [mcodeinsights-db: note that logs are piped to /home/ole/.sourcegraph-dev/logs/codeinsights-db/codeinsights-db.log
[34m12:31:53                   symbols | [m[36mINFO[0m symbols: listening, addr: 127.0.0.1:3184
[35m12:31:54                   grafana | [mGrafana: serving on http://localhost:3370
[35m12:31:54                   grafana | [mGrafana: note that logs are piped to /home/ole/.sourcegraph-dev/logs/grafana/grafana.log
[36m12:32:06                prometheus | [mPrometheus: serving on http://localhost:9090
[36m12:32:06                prometheus | [mPrometheus: note that logs are piped to /home/ole/.sourcegraph-dev/logs/prometheus/prometheus.log
[32m12:32:07       zoekt-indexserver-1 | [m2021/03/28 12:32:07 frontend or gitserver API not available, will try again: GET http://localhost:3090/.internal/ping?service=gitserver giving up after 5 attempt(s): Get "http://localhost:3090/.internal/ping?service=gitserver": dial tcp [::1]:3090: connect: connection refused
[31m12:32:07       zoekt-indexserver-0 | [m2021/03/28 12:32:07 frontend or gitserver API not available, will try again: GET http://localhost:3090/.internal/ping?service=gitserver giving up after 5 attempt(s): Get "http://localhost:3090/.internal/ping?service=gitserver": dial tcp [::1]:3090: connect: connection refused
[33m12:32:07                  searcher | [mreceived error during background config update, err: unable to fetch new configuration: Post "http://localhost:3090/.internal/configuration": dial tcp [::1]:3090: connect: connection refused
[35m12:32:08              repo-updater | [m2021/03/28 10:32:08 received error during background config update, err: unable to fetch new configuration: Post "http://localhost:3090/.internal/configuration": dial tcp [::1]:3090: connect: connection refused
[33m12:32:08                       web | [m[34mℹ[39m [90m「wds」[39m: Project is running at [1m[34mhttp://localhost:3080/[39m[22m
[33m12:32:08                       web | [m[34mℹ[39m [90m「wds」[39m: webpack output is served from [1m[34m/.assets/[39m[22m
[33m12:32:08                       web | [m[34mℹ[39m [90m「wds」[39m: Content not from webpack is served from [1m[34m./ui/assets[39m[22m

More system information:

  • git hash of sourcegraph: 17e00b63e61d8ee883d5d8aa1b292732fb526ba9
  • operating system: Arch Linux 5.11.9-arch1-1
  • Redis server v=6.2.1
  • postgres (PostgreSQL) 13.

Unfortunately I wasn't able to find anything about this in the issue tracker or online