postgres running and connectable, when setting up data source, grafana crashes
Hello, I have several grafana (free server version) running with postgres already.
Now, for the first time I have installed postgres in the automated way from our installation server. Obviously, there are many differences and it will be hardly possible to set up everything identical to the manual installation.
Up to now, setting up a postgres datasource was quite easy.
In the current installation, I can set it up. Then, when I click on “Save and Test”, Grafana crashes with following logging (see below, note: dots . substituted by underscore _, as I am not allowed to paste more than 2 “links”)
Grafana V. 7.3.1
Postgres 10.12
OS: SLES 12.5 (other installations are 12.4 or 12.2)
Note: I do not use a pg_service.conf file.
In the current installation I cannot find a pg_config
panic: setting PGSERVICEFILE not supported
goroutine 251 [running]:
github_com/lib/pq_parseEnviron_func2()
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/conn_go:1848
github_com/lib/pq_parseEnviron(0xc00014bc00, 0x62, 0x62, 0xc000b51aa0)
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/conn_go:1871 +0x1177
github_com/lib/pq_NewConnector(0xc00096eae0, 0x4c, 0xc000ab3798, 0xc000a82d80, 0xc000a82d80)
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/connector_go:56 +0x13e
github_com/lib/pq_DialOpen(0x220f540, 0xc000a82d80, 0xc00096eae0, 0x4c, 0x6e696f6a2e29297d, 0x652c292922202228, 0x6f6974636e75667d, 0x767b29742861206e)
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/conn_go:271 +0x39
github_com/lib/pq_Open()
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/conn_go:266
github_com/lib/pq_(*Driver)Open(0x33c1d78, 0xc00096eae0, 0x4c, 0x0, 0x0, 0x3d6f662072617600, 0x30212c2222280000)
/root/go/pkg/mod/github_com/lib/pq@v1_2_0/conn_go:48 +0x9a
database/sql_dsnConnector_Connect(_)
/usr/local/go/src/database/sql/sql_go:688
database/sql(*DB)conn(0xc000b2c300, 0x2223a40, 0xc0000ce010, 0x203001, 0x44747f, 0xc00005d800, 0x8)
/usr/local/go/src/database/sql/sql_go:1228 +0x201
database/sql(*DB)_query(0xc000b2c300, 0x2223a40, 0xc0000ce010, 0xc000698900, 0x35, 0x0, 0x0, 0x0, 0xc0005e0101, 0xc000072a80, __)
/usr/local/go/src/database/sql/sql_go:1565 +0x66
database/sql(*DB)_QueryContext(0xc000b2c300, 0x2223a40, 0xc0000ce010, 0xc000698900, 0x35, 0x0, 0x0, 0x0, 0xc000ab3b01, 0xc000b51a40, __)
/usr/local/go/src/database/sql/sql_go:1547 +0xd1
xorm_io/core(*DB)QueryContext(0xc0005e7b00, 0x2223a40, 0xc0000ce010, 0xc000698900, 0x35, 0x0, 0x0, 0x0, 0x0, 0x0, )
/root/go/pkg/mod/xorm_io/core@v0_7_3/db_go:121 +0x90
xorm_io/core(*DB)Query()
/root/go/pkg/mod/xorm_io/core@v0_7_3/db_go:133
github_com/grafana/grafana/pkg/tsdb/sqleng(*sqlQueryEndpoint)Query_func1(0xc0002186d0, 0xc000142000, 0xc0005e79c0, 0xc000698900, 0x35, 0xc0005e7a00, 0xc0005e1e80)
/root/project/pkg/tsdb/sqleng/sql_engine_go:169 +0x17d
created by github_com/grafana/grafana/pkg/tsdb/sqleng(*sqlQueryEndpoint)_Query
/root/project/pkg/tsdb/sqleng/sql_engine_go:163 +0x435