CHAINLINK 节点 - 启动问题 - 无法初始化 ORM
CHAINLINK NODE - Start up Issues - Unable to Initialize ORM
正在尝试启动我的节点但出现错误。下面是错误信息。供参考:使用 GCP、Ubuntu、Postgres Public db、Docker 0.9.4 和 Infura。在错误消息中用 PASSWORD 替换了我的密码,但在测试期间输入正确。我很接近,我相信,只需要一些帮助来克服最后的障碍。谢谢!
cd ~/.chainlink-kovan && docker run -p 6688:6688 -v ~/.chainlink-kovan:/chainlink -it --env-file=.env smartcontract/chainlink:0.9.4 local n
2021-07-12T20:46:51Z [INFO] Starting Chainlink Node 0.9.4 at commit b7d22afdae61fc9146136e8518c221d406d10d6d cmd/local_client.go:51
2021-07-12T20:46:51Z [INFO] Locking postgres for exclusive access with 500ms timeout orm/orm.go:69
2021-07-12T20:49:01Z [ERROR] unable to lock ORM: dial tcp 35.222.48.64:5432: connect: connection timed out logger/default.go:155 stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorf
/chainlink/core/logger/default.go:155
github.com/smartcontractkit/chainlink/core/store/orm.(*ORM).MustEnsureAdvisoryLock
/chainlink/core/store/orm/orm.go:91
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:75
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
2021-07-12T20:51:12Z [FATAL] Unable to initialize ORM: dial tcp 35.222.48.64:5432: connect: connection timed out
unable to open postgresql://chainlink-db-user:PASSWORD@35.222.48.64:5432/chainlink-kovan-db for gorm DB
github.com/smartcontractkit/chainlink/core/store/orm.Connection.initializeDatabase
/chainlink/core/store/orm/orm.go:1618
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:77
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374
unable to init DB
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:79
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374
initializeORM#NewORM
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:178
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374 store/store.go:80 stacktrace=github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:80
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
如果您的 Chainlink 节点虚拟机 (Ubuntu) 和您的 PostgreSQL 服务器及其数据库托管在 GCP 上的同一虚拟私有云中,那么建议取出 public postgres 服务器的 IP 并创建一个内部 IP。您可以在“连接”下的 postgres 设置中更改此设置。然后将此私有 IP (10.x.x.x
) 添加到环境文件中的 DATABASE_URL
配置中。 Chainlink 节点现在应该能够建立连接。请确保在重新初始化之前删除 Chainlink 节点。
- 您可以使用以下命令检查所有当前容器(包括已杀死的容器):
docker ps -a
- 杀死一个容器:
docker kill <container-name>
- 删除容器:
docker rm <container-name>
然后最后使用您的 运行 命令重新初始化节点。
正在尝试启动我的节点但出现错误。下面是错误信息。供参考:使用 GCP、Ubuntu、Postgres Public db、Docker 0.9.4 和 Infura。在错误消息中用 PASSWORD 替换了我的密码,但在测试期间输入正确。我很接近,我相信,只需要一些帮助来克服最后的障碍。谢谢!
cd ~/.chainlink-kovan && docker run -p 6688:6688 -v ~/.chainlink-kovan:/chainlink -it --env-file=.env smartcontract/chainlink:0.9.4 local n
2021-07-12T20:46:51Z [INFO] Starting Chainlink Node 0.9.4 at commit b7d22afdae61fc9146136e8518c221d406d10d6d cmd/local_client.go:51
2021-07-12T20:46:51Z [INFO] Locking postgres for exclusive access with 500ms timeout orm/orm.go:69
2021-07-12T20:49:01Z [ERROR] unable to lock ORM: dial tcp 35.222.48.64:5432: connect: connection timed out logger/default.go:155 stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorf
/chainlink/core/logger/default.go:155
github.com/smartcontractkit/chainlink/core/store/orm.(*ORM).MustEnsureAdvisoryLock
/chainlink/core/store/orm/orm.go:91
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:75
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
2021-07-12T20:51:12Z [FATAL] Unable to initialize ORM: dial tcp 35.222.48.64:5432: connect: connection timed out
unable to open postgresql://chainlink-db-user:PASSWORD@35.222.48.64:5432/chainlink-kovan-db for gorm DB
github.com/smartcontractkit/chainlink/core/store/orm.Connection.initializeDatabase
/chainlink/core/store/orm/orm.go:1618
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:77
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374
unable to init DB
github.com/smartcontractkit/chainlink/core/store/orm.NewORM
/chainlink/core/store/orm/orm.go:79
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:176
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374
initializeORM#NewORM
github.com/smartcontractkit/chainlink/core/store.initializeORM
/chainlink/core/store/store.go:178
github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:78
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374 store/store.go:80 stacktrace=github.com/smartcontractkit/chainlink/core/store.newStoreWithKeyStore
/chainlink/core/store/store.go:80
github.com/smartcontractkit/chainlink/core/store.NewStore
/chainlink/core/store/store.go:57
github.com/smartcontractkit/chainlink/core/services/chainlink.NewApplication
/chainlink/core/services/chainlink/application.go:97
github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
/chainlink/core/cmd/client.go:84
github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunNode
/chainlink/core/cmd/local_client.go:53
github.com/urfave/cli.HandleAction
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:526
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174
github.com/urfave/cli.(*App).RunAsSubcommand
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:407
github.com/urfave/cli.Command.startApp
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:373
github.com/urfave/cli.Command.Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:102
github.com/urfave/cli.(*App).Run
/go/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279
main.Run
/chainlink/core/main.go:18
main.main
/chainlink/core/main.go:12
runtime.main
/usr/local/go/src/runtime/proc.go:204
如果您的 Chainlink 节点虚拟机 (Ubuntu) 和您的 PostgreSQL 服务器及其数据库托管在 GCP 上的同一虚拟私有云中,那么建议取出 public postgres 服务器的 IP 并创建一个内部 IP。您可以在“连接”下的 postgres 设置中更改此设置。然后将此私有 IP (10.x.x.x
) 添加到环境文件中的 DATABASE_URL
配置中。 Chainlink 节点现在应该能够建立连接。请确保在重新初始化之前删除 Chainlink 节点。
- 您可以使用以下命令检查所有当前容器(包括已杀死的容器):
docker ps -a
- 杀死一个容器:
docker kill <container-name>
- 删除容器:
docker rm <container-name>
然后最后使用您的 运行 命令重新初始化节点。