home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.26k stars 30.6k forks source link

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 with Local VLC #82360

Closed lexhobbi closed 1 year ago

lexhobbi commented 1 year ago

The problem

When I launch Local VLC plugin the following error showing: dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

What version of Home Assistant Core has the issue?

2022.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Local VLC plugin

Link to integration documentation on our website

https://www.home-assistant.io/integrations/vlc_telnet

Diagnostics information

[0000007f98f7c990] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

[0000007f98f7c990] main interface error: no suitable interface module
[0000007f990c6b50] main libvlc error: interface "dbus,none" initialization failed
[0000007f94b5e850] main interface error: no suitable interface module
[0000007f990c6b50] main libvlc error: interface "globalhotkeys,none" initialization failed
[0000007f98fa99d0] main playlist: playlist is empty
[0000007f94b5ecd0] [http] lua interface: Lua HTTP interface
[0000007f98f7cae0] [telnet] lua interface: Listening on host "telnet://:4212".

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @rodripf, @martinhjelmare, mind taking a look at this issue as it has been labeled with an integration (vlc_telnet) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `vlc_telnet` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign vlc_telnet` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


vlc_telnet documentation vlc_telnet source (message by IssueLinks)

MartinHjelmare commented 1 year ago

It's unclear to me what you are are trying to do and which integration you're using.

Are you using the VLC telnet integration or the VLC integration?

https://www.home-assistant.io/integrations/vlc_telnet/

https://www.home-assistant.io/integrations/vlc/

What do you mean when you say "Local VLC plugin"?

Are you using an add-on to run VLC or are you running VLC directly on the host?

lexhobbi commented 1 year ago

Dear Martin!I am using VLC_Telnet plugin but that name is here Local VLC 🤪 and I am just tried to start that. I sent the log before.Here are the printscreens: -------- Eredeti üzenet --------Feladó: Martin Hjelmare @.> Dátum: 2022. 11. 19. 13:09 (GMT+01:00) Címzett: home-assistant/core @.> Másolatot kap: lexhobbi @.>, Author @.> Tárgy: Re: [home-assistant/core] Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 with Local VLC (Issue #82360) It's unclear to me what you are are trying to do and which integration you're using. Are you using the VLC telnet integration or the VLC integration? https://www.home-assistant.io/integrations/vlc_telnet/ https://www.home-assistant.io/integrations/vlc/ What do you mean when you say "Local VLC plugin"? Are you using an add-on to run VLC or are you running VLC directly on the host?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

MartinHjelmare commented 1 year ago

Please reply via GitHub web interface instead of email.

lexhobbi commented 1 year ago

Dear Martin!

Excuse me, here are my answer from email: I am using VLC_Telnet plugin but that name is here Local VLC 🤪 and I am just tried to start that. I sent the log before. It is needed to use my automations with voice (google text to speech service) and other else tasks (Spotify, local music, own alarm system).

Here are the printscreens: Screenshot_20221119_133447_Home Assistant Screenshot_20221119_133418_Home Assistant Screenshot_20221119_220908_Home Assistant Screenshot_20221119_220928_Home Assistant Screenshot_20221119_221022_Home Assistant

lexhobbi commented 1 year ago

Ah sorry! It is a Hass.io add-on! Screenshot_20221120_074923_Home Assistant

lexhobbi commented 1 year ago

Here is the official VLC plugin, but I got the same error: Screenshot_20221120_080705_Home Assistant Screenshot_20221120_080654_Home Assistant

MartinHjelmare commented 1 year ago

Please go to the System Info page found by going to Settings > System > Repairs and clicking the three dots menu, and copy and paste all the information in a comment here.

https://my.home-assistant.io/redirect/system_health/

MartinHjelmare commented 1 year ago

This is the add-on log from one of my test instances:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] ingress.sh: executing... 
[cont-init.d] ingress.sh: exited 0.
[cont-init.d] secret.sh: executing... 
[cont-init.d] secret.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022/11/20 10:23:07 [notice] 246#246: using the "epoll" event method
2022/11/20 10:23:07 [notice] 246#246: nginx/1.18.0
2022/11/20 10:23:07 [notice] 246#246: OS: Linux 5.15.74
2022/11/20 10:23:07 [notice] 246#246: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2022/11/20 10:23:07 [notice] 246#246: start worker processes
2022/11/20 10:23:07 [notice] 246#246: start worker process 277
[0000ffffb577e570] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0000ffffb577e570] main interface error: no suitable interface module
[0000ffffb58c2b50] main libvlc error: interface "dbus,none" initialization failed
[0000ffffb133f850] main interface error: no suitable interface module
[0000ffffb58c2b50] main libvlc error: interface "globalhotkeys,none" initialization failed
[0000ffffb57a59d0] main playlist: playlist is empty
[0000ffffb133f970] [http] lua interface: Lua HTTP interface
[0000ffffb577e6a0] [telnet] lua interface: Listening on host "telnet://:4212".
[11:23:08] INFO: Successfully send discovery information to Home Assistant.

The integration works just fine anyway.

What have you tried doing with the integration that doesn't work?

lexhobbi commented 1 year ago

Please go to the System Info page found by going to Settings > System > Repairs and clicking the three dots menu, and copy and paste all the information in a comment here.

https://my.home-assistant.io/redirect/system_health/

Here is that page:

System Information

version core-2022.11.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Budapest
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4810 Installed Version | 1.28.3 Stage | running Available Repositories | 1208 Downloaded Repositories | 28
AccuWeather can_reach_server | ok -- | -- remaining_requests | 27
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 9.3 -- | -- update_channel | stable supervisor_version | supervisor-2022.10.2 agent_version | 1.4.1 docker_version | 20.10.18 disk_total | 116.5 GB disk_used | 19.7 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.4.2), Terminal & SSH (9.6.1), Git pull (7.13.1), Let's Encrypt (4.12.7), MariaDB (2.5.1), Samba share (10.0.0), phpMyAdmin (0.8.2), RPC Shutdown (2.2), Mosquitto broker (6.1.3), Zigbee2mqtt Edge (edge), NGINX Home Assistant SSL proxy (3.1.5), Local VLC (18), Home Assistant Google Drive Backup (0.105.2), Spotify Connect (0.12.2), Piwigo (13.2.0), AppDaemon (0.10.1), VLC (0.1.3)
Dashboards dashboards | 1 -- | -- resources | 8 views | 4 mode | storage
Recorder oldest_recorder_run | 2022. november 12. 20:52 -- | -- current_recorder_run | 2022. november 20. 08:35 estimated_db_size | 551.59 MiB database_engine | mysql database_version | 10.6.8
Xiaomi Miot Auto component_version | 0.7.1 -- | -- can_reach_server | ok can_reach_spec | ok logged_accounts | 1 total_devices | 28
lexhobbi commented 1 year ago

Okay! Everything is fine! Sorry for that! I had to restart the system and after that it worked properly.