supervisor: DNS problems [solved by disabling apparmor]
Good morning and good job. I have installed hassio with docker on Ubuntu. All work ok except the dns resolution of “homeassistant” container.
I tried to reinstall all the containers but I did not solve them
After some days digging in internet and looking for a solution in the sources… i have found the problem. The hassio_supervisor container does not start socat for forward dns (but why you need a dns forwarder to docker dns instead use docker dns directly when launching homeassistant container?)
Running socat command manually or change homeassistant configuration in order to use directly 127.0.0.11 instead hassio_supervisior for dns resolution solve the problem
here some logs and info
$ docker --version
Docker version 17.12.0-ce, build c97c6d6
$ cat /etc/issue
Ubuntu 17.10 \n \l
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
homeassistant/qemux86-64-homeassistant 0.70.1 690b4c1aea5f 5 days ago 1.19GB
homeassistant/qemux86-64-homeassistant latest 690b4c1aea5f 5 days ago 1.19GB
homeassistant/amd64-hassio-supervisor 105 a3db136dfcae 7 days ago 129MB
homeassistant/amd64-hassio-supervisor latest a3db136dfcae 7 days ago 129MB
hassioaddons/influxdb-amd64 0.1.0 062066be9f4e 9 days ago 435MB
hassioaddons/influxdb-amd64 latest 062066be9f4e 9 days ago 435MB
hassioaddons/ide-amd64 0.2.0 3d81fc0d19ef 3 weeks ago 331MB
hassioaddons/ide-amd64 latest 3d81fc0d19ef 3 weeks ago 331MB
hassioaddons/shinobi-amd64 0.2.0 1787ba14db62 3 weeks ago 296MB
hassioaddons/shinobi-amd64 latest 1787ba14db62 3 weeks ago 296MB
hassioaddons/control-panel-amd64 1.1.0 138bb80dca5a 3 weeks ago 23.4MB
hassioaddons/control-panel-amd64 latest 138bb80dca5a 3 weeks ago 23.4MB
hassioaddons/aircast-amd64 0.4.0 7d21f00cf152 3 weeks ago 137MB
hassioaddons/aircast-amd64 latest 7d21f00cf152 3 weeks ago 137MB
$ docker exec -i -t hassio_supervisor cat /etc/resolv.conf
search newhome.lan
nameserver 127.0.0.11
options ndots:0
$ docker exec -i -t hassio_supervisor ping -c1 www.google.com
PING www.google.com (216.58.198.4): 56 data bytes
64 bytes from 216.58.198.4: seq=0 ttl=57 time=24.156 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 24.156/24.156/24.156 ms
$ docker exec -i -t homeassistant cat /etc/resolv.conf
nameserver 172.30.32.2
options ndots:0
$ docker exec -i -t homeassistant ping -c1 www.google.com
ping: bad address 'www.google.com'
18-06-06 09:53:19 INFO (MainThread) [__main__] Initialize Hassio setup
18-06-06 09:53:19 INFO (MainThread) [__main__] Setup HassIO
18-06-06 09:53:19 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.systemd1 on /org/freedesktop/systemd1
18-06-06 09:53:19 ERROR (MainThread) [hassio.utils.gdbus] DBus return error: b'Error loading shared library libgio-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libgobject-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libglib-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libintl.so.8: Permission denied (needed by /usr/bin/gdbus)\nError relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied\nError relocating /usr/bin/gdbus: g_option_context_get_help: symbol not found\nError relocating /usr/bin/gdbus: g_variant_parse: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_new_for_xml: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_unref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_checked_: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_description: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_add_main_entries: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_add_value: symbol not found\nError relocating /usr/bin/gdbus: g_string_new: symbol not found\nError relocating /usr/bin/gdbus: g_object_unref: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_new_for_address_sync: symbol not found\nError relocating /usr/bin/gdbus: g_free: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_get_unique_name: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_is_of_type: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_signal_subscribe: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_unref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_clear: symbol not found\nError relocating /usr/bin/gdbus: g_str_equal: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_end: symbol not found\nError relocating /usr/bin/gdbus: g_print: symbol not found\nError relocating /usr/bin/gdbus: libintl_textdomain: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_unref: symbol not found\nError relocating /usr/bin/gdbus: g_printerr: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_lookup: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_dup_string: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_unref: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_add_group: symbol not found\nError relocating /usr/bin/gdbus: g_variant_print: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_summary: symbol not found\nError relocating /usr/bin/gdbus: g_list_sort: symbol not found\nError relocating /usr/bin/gdbus: g_variant_is_object_path: symbol not found\nError relocating /usr/bin/gdbus: g_set_error: symbol not found\nError relocating /usr/bin/gdbus: g_assertion_message_expr: symbol not found\nError relocating /usr/bin/gdbus: g_io_error_quark: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_unique_name: symbol not found\nError relocating /usr/bin/gdbus: libintl_bind_textdomain_codeset: symbol not found\nError relocating /usr/bin/gdbus: g_string_free: symbol not found\nError relocating /usr/bin/gdbus: libintl_bindtextdomain: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_flush_sync: symbol not found\nError relocating /usr/bin/gdbus: g_bus_get_sync: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_init: symbol not found\nError relocating /usr/bin/gdbus: g_strcmp0: symbol not found\nError relocating /usr/bin/gdbus: g_variant_ref_sink: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_add: symbol not found\nError relocating /usr/bin/gdbus: g_strdup_printf: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_get_keys: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_signal_unsubscribe: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_new_with_free_func: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_new_full: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_help_enabled: symbol not found\nError relocating /usr/bin/gdbus: g_source_remove: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_add_entries: symbol not found\nError relocating /usr/bin/gdbus: g_bus_watch_name_on_connection: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_peek_string: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_name: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_new: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_error_quark: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_run: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_insert: symbol not found\nError relocating /usr/bin/gdbus: g_shell_parse_argv: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_unref: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_call_sync: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_free: symbol not found\nError relocating /usr/bin/gdbus: g_bus_unwatch_name: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_lookup_interface: symbol not found\nError relocating /usr/bin/gdbus: g_variant_ref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_next_value: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_parse: symbol not found\nError relocating /usr/bin/gdbus: g_list_free: symbol not found\nError relocating /usr/bin/gdbus: g_str_hash: symbol not found\nError relocating /usr/bin/gdbus: g_string_append: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_set_translation_domain: symbol not found\nError relocating /usr/bin/gdbus: g_main_context_iteration: symbol not found\nError relocating /usr/bin/gdbus: g_str_has_prefix: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_new: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_loop: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_interface_name: symbol not found\nError relocating /usr/bin/gdbus: g_variant_new: symbol not found\nError relocating /usr/bin/gdbus: g_variant_get: symbol not found\nError relocating /usr/bin/gdbus: g_strdup: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_emit_signal: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_new: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_ignore_unknown_options: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_new: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_member_name: symbol not found\nError relocating /usr/bin/gdbus: g_path_get_basename: symbol not found\nError relocating /usr/bin/gdbus: g_timeout_add: symbol not found\nError relocating /usr/bin/gdbus: g_error_matches: symbol not found\nError relocating /usr/bin/gdbus: g_strndup: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_get_string_length: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_interface_info_lookup_method: symbol not found\nError relocating /usr/bin/gdbus: g_string_append_len: symbol not found\nError relocating /usr/bin/gdbus: g_string_insert_c: symbol not found\nError relocating /usr/bin/gdbus: libintl_gettext: symbol not found\nError relocating /usr/bin/gdbus: g_error_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_parse_error_print_context: symbol not found\nError relocating /usr/bin/gdbus: g_ascii_table: symbol not found\nError relocating /usr/bin/gdbus: RELRO protection failed: Permission denied\n'
18-06-06 09:53:19 WARNING (MainThread) [hassio.dbus.systemd] Can't connect to systemd
18-06-06 09:53:19 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
18-06-06 09:53:19 ERROR (MainThread) [hassio.utils.gdbus] DBus return error: b'Error loading shared library libgio-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libgobject-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libglib-2.0.so.0: Permission denied (needed by /usr/bin/gdbus)\nError loading shared library libintl.so.8: Permission denied (needed by /usr/bin/gdbus)\nError relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied\nError relocating /usr/bin/gdbus: g_option_context_get_help: symbol not found\nError relocating /usr/bin/gdbus: g_variant_parse: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_new_for_xml: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_unref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_checked_: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_description: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_add_main_entries: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_add_value: symbol not found\nError relocating /usr/bin/gdbus: g_string_new: symbol not found\nError relocating /usr/bin/gdbus: g_object_unref: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_new_for_address_sync: symbol not found\nError relocating /usr/bin/gdbus: g_free: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_get_unique_name: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_is_of_type: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_signal_subscribe: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_unref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_clear: symbol not found\nError relocating /usr/bin/gdbus: g_str_equal: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_end: symbol not found\nError relocating /usr/bin/gdbus: g_print: symbol not found\nError relocating /usr/bin/gdbus: libintl_textdomain: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_unref: symbol not found\nError relocating /usr/bin/gdbus: g_printerr: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_lookup: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_dup_string: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_unref: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_add_group: symbol not found\nError relocating /usr/bin/gdbus: g_variant_print: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_summary: symbol not found\nError relocating /usr/bin/gdbus: g_list_sort: symbol not found\nError relocating /usr/bin/gdbus: g_variant_is_object_path: symbol not found\nError relocating /usr/bin/gdbus: g_set_error: symbol not found\nError relocating /usr/bin/gdbus: g_assertion_message_expr: symbol not found\nError relocating /usr/bin/gdbus: g_io_error_quark: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_unique_name: symbol not found\nError relocating /usr/bin/gdbus: libintl_bind_textdomain_codeset: symbol not found\nError relocating /usr/bin/gdbus: g_string_free: symbol not found\nError relocating /usr/bin/gdbus: libintl_bindtextdomain: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_flush_sync: symbol not found\nError relocating /usr/bin/gdbus: g_bus_get_sync: symbol not found\nError relocating /usr/bin/gdbus: g_variant_builder_init: symbol not found\nError relocating /usr/bin/gdbus: g_strcmp0: symbol not found\nError relocating /usr/bin/gdbus: g_variant_ref_sink: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_add: symbol not found\nError relocating /usr/bin/gdbus: g_strdup_printf: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_get_keys: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_signal_unsubscribe: symbol not found\nError relocating /usr/bin/gdbus: g_ptr_array_new_with_free_func: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_new_full: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_help_enabled: symbol not found\nError relocating /usr/bin/gdbus: g_source_remove: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_add_entries: symbol not found\nError relocating /usr/bin/gdbus: g_bus_watch_name_on_connection: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_peek_string: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_name: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_new: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_error_quark: symbol not found\nError relocating /usr/bin/gdbus: g_main_loop_run: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_insert: symbol not found\nError relocating /usr/bin/gdbus: g_shell_parse_argv: symbol not found\nError relocating /usr/bin/gdbus: g_hash_table_unref: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_call_sync: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_free: symbol not found\nError relocating /usr/bin/gdbus: g_bus_unwatch_name: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_node_info_lookup_interface: symbol not found\nError relocating /usr/bin/gdbus: g_variant_ref: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_next_value: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_parse: symbol not found\nError relocating /usr/bin/gdbus: g_list_free: symbol not found\nError relocating /usr/bin/gdbus: g_str_hash: symbol not found\nError relocating /usr/bin/gdbus: g_string_append: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_set_translation_domain: symbol not found\nError relocating /usr/bin/gdbus: g_main_context_iteration: symbol not found\nError relocating /usr/bin/gdbus: g_str_has_prefix: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_new: symbol not found\nError relocating /usr/bin/gdbus: g_variant_iter_loop: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_interface_name: symbol not found\nError relocating /usr/bin/gdbus: g_variant_new: symbol not found\nError relocating /usr/bin/gdbus: g_variant_get: symbol not found\nError relocating /usr/bin/gdbus: g_strdup: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_connection_emit_signal: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_new: symbol not found\nError relocating /usr/bin/gdbus: g_option_context_set_ignore_unknown_options: symbol not found\nError relocating /usr/bin/gdbus: g_option_group_new: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_is_member_name: symbol not found\nError relocating /usr/bin/gdbus: g_path_get_basename: symbol not found\nError relocating /usr/bin/gdbus: g_timeout_add: symbol not found\nError relocating /usr/bin/gdbus: g_error_matches: symbol not found\nError relocating /usr/bin/gdbus: g_strndup: symbol not found\nError relocating /usr/bin/gdbus: g_variant_type_get_string_length: symbol not found\nError relocating /usr/bin/gdbus: g_dbus_interface_info_lookup_method: symbol not found\nError relocating /usr/bin/gdbus: g_string_append_len: symbol not found\nError relocating /usr/bin/gdbus: g_string_insert_c: symbol not found\nError relocating /usr/bin/gdbus: libintl_gettext: symbol not found\nError relocating /usr/bin/gdbus: g_error_free: symbol not found\nError relocating /usr/bin/gdbus: g_variant_parse_error_print_context: symbol not found\nError relocating /usr/bin/gdbus: g_ascii_table: symbol not found\nError relocating /usr/bin/gdbus: RELRO protection failed: Permission denied\n'
18-06-06 09:53:19 WARNING (MainThread) [hassio.dbus.hostname] Can't connect to hostname
18-06-06 09:53:19 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to supervisor homeassistant/amd64-hassio-supervisor with version 105
18-06-06 09:53:19 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image homeassistant/qemux86-64-homeassistant with version 0.70.1
18-06-06 09:53:19 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/core repository
18-06-06 09:53:19 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/git/a0d7b954 repository
18-06-06 09:53:19 INFO (MainThread) [hassio.addons] Load addons: 19 all - 19 new - 0 remove
18-06-06 09:53:19 INFO (SyncWorker_2) [hassio.docker.interface] Attach to image hassioaddons/shinobi-amd64 with version 0.2.0
18-06-06 09:53:19 INFO (SyncWorker_3) [hassio.docker.interface] Attach to image hassioaddons/influxdb-amd64 with version 0.1.0
18-06-06 09:53:19 INFO (SyncWorker_0) [hassio.docker.interface] Attach to image hassioaddons/ide-amd64 with version 0.2.0
18-06-06 09:53:19 INFO (SyncWorker_1) [hassio.docker.interface] Attach to image hassioaddons/aircast-amd64 with version 0.4.0
18-06-06 09:53:19 INFO (SyncWorker_4) [hassio.docker.interface] Attach to image hassioaddons/control-panel-amd64 with version 1.1.0
18-06-06 09:53:20 INFO (MainThread) [hassio.updater] Fetch update data from https://s3.amazonaws.com/hassio-version/stable.json
18-06-06 09:53:20 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
18-06-06 09:53:20 INFO (MainThread) [__main__] Run HassIO
18-06-06 09:53:20 INFO (MainThread) [hassio.misc.dns] Start DNS port forwarding for host add-ons
18-06-06 09:53:20 INFO (MainThread) [hassio.core] Ignore Hass.io auto updates on dev channel
18-06-06 09:53:20 INFO (MainThread) [hassio.core] Start API on 172.30.32.2
18-06-06 09:53:20 INFO (MainThread) [hassio.addons] Startup initialize run 0 addons
18-06-06 09:53:20 INFO (MainThread) [hassio.core] Hass.io reboot detected
18-06-06 09:53:20 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
18-06-06 09:53:20 INFO (MainThread) [hassio.core] Hass.io is up and running
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (6 by maintainers)
create a file called
/etc/docker/daemon.json
P.s. the above case is my personal setting and contains a DNS server in my local network (the Pi-Hole add-on). Be sure to customize this matching your network.
Afterwards run:
service docker restart
Did not work for me, I installed fresh docker version yesterday, and hass.io is updated to 0.86.4 and I still can’t get DNS to work. I have to go into container and edit resolv.conf manually each time. I tried eidting daemon.json and restarting docker, restarting the whole server, still no luck.
Am I missing any steps? Do I have to reinstall hass container for it to update something?
Here the log