Skip to content

Instantly share code, notes, and snippets.

@ipochi
Created April 23, 2018 12:25
Show Gist options
  • Select an option

  • Save ipochi/eaf00c89205e0cc346ce6e98418b986e to your computer and use it in GitHub Desktop.

Select an option

Save ipochi/eaf00c89205e0cc346ce6e98418b986e to your computer and use it in GitHub Desktop.
postgres-operator - apiserver
time="2018-04-23T12:23:12Z" level=debug msg="clusterservice.ShowClusterHandler map[name:all]\n"
time="2018-04-23T12:23:12Z" level=debug msg="Authn Attempt ShowCluster username=[username]\n"
time="2018-04-23T12:23:12Z" level=info msg=" BasicAuthzCheck pgoadmin ShowCluster true\n"
time="2018-04-23T12:23:12Z" level=debug msg="Authn Success"
time="2018-04-23T12:23:12Z" level=debug msg="clusterservice.ShowClusterHandler GET called"
time="2018-04-23T12:23:12Z" level=debug msg="myselector is "
time="2018-04-23T12:23:12Z" level=debug msg="clusters found len is %d\n0"
time="2018-04-23T12:23:20Z" level=debug msg="clusterservice.CreateClusterHandler called"
time="2018-04-23T12:23:20Z" level=debug msg="Authn Attempt CreateCluster username=[username]\n"
time="2018-04-23T12:23:20Z" level=info msg=" BasicAuthzCheck pgoadmin CreateCluster true\n"
time="2018-04-23T12:23:20Z" level=debug msg="Authn Success"
time="2018-04-23T12:23:20Z" level=debug msg="create cluster called for testclusteralpha"
time="2018-04-23T12:23:20Z" level=debug msg="cluster testclusteralpha not found"
time="2018-04-23T12:23:20Z" level=debug msg="pgcluster testclusteralpha not found so we will create it"
time="2018-04-23T12:23:20Z" level=error msg="pgclusters.cr.client-go.k8s.io \"testclusteralpha\" not found"
time="2018-04-23T12:23:20Z" level=debug msg=userLabelsMap
time="2018-04-23T12:23:20Z" level=debug msg="map[crunchy_collect:false crunchy-pgpool:true pgpool-secret:]"
time="2018-04-23T12:23:20Z" level=error msg="configmaps \"pgo-custom-pg-config\" not found"
time="2018-04-23T12:23:20Z" level=error msg="pgo-custom-pg-config configmap not found "
2018/04/23 12:23:20 http: panic serving 10.244.0.0:51182: runtime error: invalid memory address or nil pointer dereference
goroutine 435 [running]:
net/http.(*conn).serve.func1(0xc420360000)
/usr/local/go/src/net/http/server.go:1721 +0xd0
panic(0x11280e0, 0x19879b0)
/usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/spf13/viper.(*Viper).find(0x0, 0xc4201768c0, 0xc, 0xc, 0x8)
/opt/cdev/src/github.com/spf13/viper/viper.go:889 +0x3a
github.com/spf13/viper.(*Viper).Get(0x0, 0x1269904, 0xc, 0x30, 0x0)
/opt/cdev/src/github.com/spf13/viper/viper.go:615 +0x7c
github.com/spf13/viper.(*Viper).GetString(0x0, 0x1269904, 0xc, 0x1264ee6, 0x8)
/opt/cdev/src/github.com/spf13/viper/viper.go:670 +0x3f
github.com/crunchydata/postgres-operator/util.GetStorageSpec(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/cdev/src/github.com/crunchydata/postgres-operator/util/util.go:340 +0x93
github.com/crunchydata/postgres-operator/apiserver/clusterservice.getClusterParams(0xc420242f00, 0xc4202d6d10, 0x10, 0xc42034bb30, 0x1)
/opt/cdev/src/github.com/crunchydata/postgres-operator/apiserver/clusterservice/clusterimpl.go:608 +0xb34
github.com/crunchydata/postgres-operator/apiserver/clusterservice.CreateCluster(0xc420242f00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/cdev/src/github.com/crunchydata/postgres-operator/apiserver/clusterservice/clusterimpl.go:537 +0x615
github.com/crunchydata/postgres-operator/apiserver/clusterservice.CreateClusterHandler(0x192aba0, 0xc4200de0e0, 0xc420242e00)
/opt/cdev/src/github.com/crunchydata/postgres-operator/apiserver/clusterservice/clusterservice.go:61 +0x2ac
net/http.HandlerFunc.ServeHTTP(0x12ddab8, 0x192aba0, 0xc4200de0e0, 0xc420242e00)
/usr/local/go/src/net/http/server.go:1942 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42036f9d0, 0x192aba0, 0xc4200de0e0, 0xc420242e00)
/opt/cdev/src/github.com/gorilla/mux/mux.go:159 +0x101
net/http.serverHandler.ServeHTTP(0xc420091a20, 0x192aba0, 0xc4200de0e0, 0xc420242600)
/usr/local/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc420360000, 0x192b960, 0xc42012a740)
/usr/local/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2668 +0x2ce
@jmccormick2001

Copy link
Copy Markdown

if you could show me the output from 'kubectl get pod postgres-operator' and also attach your pgo.yaml file it would be good for this debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment