“失败:无法连接到服务器:连接被拒绝”在 TravisCI 中
我使用 TravisCI 在 GitHub 上测试拉取请求、分支和合并,直到上次更新(2022 年 3 月 1 日)为止一切正常,更新后我不断收到此错误:
DBIx::Class::Storage::DBI::catch {...} (): DBI 连接失败:DBI connect('dbname=test;host=127.0.0.1;port=15432','postgres' ,...)失败:无法连接到服务器:连接被拒绝
服务器是否在主机“127.0.0.1”上运行并接受
端口 15432 上的 TCP/IP 连接?在 /home/travis/build/local/lib/perl5/DBIx/Class/Storage/DBI.pm 第 1639 行。在 /home/travis/build/lib/PerlFile.pm 第 29 行
我正在处理的项目已完成与 Perl 5.30、Mojolicious 和 Postgresql 一起使用。
问题是,我不知道为什么 Travis 更新后会出现这个错误。我查看了他们所做的更改,但没有任何内容可能会损害项目或测试。我问这个问题的原因是我希望其他人也经历过同样的情况并可以帮助我。
需要注意的是,该项目于 2017 年启动,因此某些技术的版本相当旧,例如 Postgresql 版本 9.4,因为今天最新的是 13。我不确定旧版本是否会成为问题,但这这是我唯一能指出的。
I use TravisCI to test pull requests, branches and mergers on GitHub, everything works fine until the last update (March 1, 2022), after that update I keep getting this error:
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=test;host=127.0.0.1;port=15432','postgres',...) failed: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 15432? at /home/travis/build/local/lib/perl5/DBIx/Class/Storage/DBI.pm line 1639. at /home/travis/build/lib/PerlFile.pm line 29
The project I'm working on is made with Perl 5.30
, Mojolicious
and Postgresql
.
The problem is, I have no idea why this error occurred after this update on Travis. I've looked at the changes they've made, but there's nothing that could harm the projects or the tests. The reason I ask this question is that I hope someone else has gone through the same situation and could help me.
One note, the project started in 2017, so some of the technologies have a fairly old version, for example, Postgresql version 9.4, because today the newest is 13. I'm not sure if the older version would be a problem, but this it's the only thing I can point out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论