无法连接到总线:地址不包含冒号

bus*_*guy 6 circleci cypress

当我的 Circleci 工作正在构建我的 cypress 测试时,我收到此错误:

[432:0312/154643.301773:错误:bus.cc(392)]无法连接到总线:无法连接到套接字/var/run/dbus/system_bus_socket:没有这样的文件或目录[432:0312/154643.303582:错误:bus.cc(392)] 无法连接到总线:地址不包含冒号 [432:0312/154643.303623:ERROR:bus.cc(392)] 无法连接到总线:地址不包含冒号[619:0312/154643.361540:错误:gpu_init.cc(453)]不支持直通,GL是swiftshader,ANGLE是

有谁知道我如何解决这个问题?

pet*_*nek 8

请尝试以下步骤:

如果没有安装dbus,请安装

# UBUNTU:
apt update && apt install -y dbus

# MAC: 
brew update && brew install dbus
Run Code Online (Sandbox Code Playgroud)

然后运行下面的命令

# UBUNTU:
mkdir -p /var/run/dbus

dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address

# MAC: 
mkdir -p /var/run/dbus

dbus-daemon --config-file=/opt/homebrew/share/dbus-1/system.conf --print-address
Run Code Online (Sandbox Code Playgroud)

来源:https://georgik.rocks/how-to-start-d-bus-in-docker-container/


And*_*scu 1

这似乎是一个已知的 Cypress 问题。有关更多详细信息,请参阅官方 GitHub 存储库中的此问题。

即使所有测试都正确通过,这些错误仍然会存在。我在 GitHub Actions 中也遇到类似的错误。似乎大多数用户都忽略了它们。一位用户在 2021 年 4 月建议修复,但对于修复是否有效或可能导致其他并发症尚未达成共识。

这些错误似乎对故障排除没有帮助,因为即使在所有规范都通过的情况下,即使赛普拉斯官方采取了行动,这些错误也会发生。如果您的测试失败,这些错误可能不是原因。