google-chrome起動時のエラー

google-chrome起動時のエラー

wsl2上のseleniumがうまく動かない(タイムアウト例外が上がってこない)という問題が発生してしまい、いろいろ調べているけどよくわからんので手近なエラーを対策しておこうと。

まず気になったのは以下のようなエラーが出ること。dbusがつながらんと。

$ google-chrome --disable-gpu
[9115:9208:0703/172316.391057:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

とりあえず起動スクリプトに /usr/sbin/service dbus start を足しておこう。でもまだなんかエラーでてるな。よくわからん。

[10563:10661:0703/174317.532793:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[10563:10661:0703/174317.532920:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[10563:10661:0703/174317.533090:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

結局よくわからんのでファイル落とすだけのときはcurlコマンド直叩きにしておく。

Leave a Reply

Your email address will not be published. Required fields are marked *