尝试启动链接节点时收到无效的数据库URL



我正试图在rinkeby testnet中启动一个链接节点。我在AWS中设置了一个postgres数据库。数据库URL已给定。下面是我尝试启动节点时的错误。

[ERROR] invalid database url %spostgresql://postgres:Bounty2000%@database-1.ciiecd8szsuh.us-west-1.rd
s.amazonaws.com:5432/db_sar_rinkeby orm/config.go:283 
[ERROR] failed to initialize database, got error failed to connect to `host=/tmp user=root database=`
: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory) orm/orm.go:82 
[ERROR] failed to initialize database, got error failed to connect to `host=/tmp user=root database=`
: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory) orm/orm.go:82 

我尝试更改AWS前端的一些设置,但没有任何帮助。。如果有人有任何线索,请帮我起来。

根据文档;s";在postgres URL前面,尝试在.env文件中删除它。同时尝试将数据库名称替换为IP地址+端口。应该取代$DATABASE的是";postgres";。最后尝试添加?sslmode=disable,如果您没有在数据库中激活ssl(不建议用于生产节点(。

.env:中的示例

DATABASE_URL=postgresql://me1234:password1234@10.10.100.100:3000/postgres?sslmode=disable

相关内容

最新更新