Amazon Linux 2 で、ec2-userで Chromium を起動する方法をまとめました。
Chromium-browserの実行エラー
1 2 |
$ sudo chromium-browser [4841:4841:0611/182134.269567:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. |
うーん。。。。??
解決策、Chromiumの実行方法
調べてみたところ
--no-sandboxでChromiumを実行することでエラーを回避できます。
1 2 3 4 5 6 7 8 9 10 11 12 |
$ sudo chromium-browser --no-sandbox [4967:4967:0611/182636.445897:ERROR:edid_parser.cc(102)] Too short EDID data: manufacturer id [4967:4993:0611/182636.592509:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [4967:4993:0611/182636.592578:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") ATTENTION: default value of option allow_rgb10_configs overridden by environment. [4967:4993:0611/182636.679027:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [4967:4993:0611/182636.679114:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [4987:4987:0611/182636.692583:ERROR:viz_main_impl.cc(159)] Exiting GPU process due to errors during initialization [4967:4967:0611/182636.739699:ERROR:browser_switcher_service.cc(238)] XXX Init() [4967:5040:0611/182637.002978:ERROR:object_proxy.cc(632)] 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 [4967:5040:0611/182637.003201:ERROR:object_proxy.cc(632)] 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 [4967:5040:0611/182637.003630:ERROR:object_proxy.cc(632)] 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 |
なんかエラーがいっぱい出たけどChromiumが起動した。
コメント