Tor bug when hs directory is missing
Trying to create an onion service with missing directory /var/lib/tor/hidden_services
shows:
Error creating directory /var/lib/tor/hidden_services/hs1: No such file or directory
tor_bug_occurred_(): Bug: ../src/or/hs_service.c:1009: load_service_keys: Non-fatal assertion !(hs_check_service_private_dir(get_options()->User, config->directory_path, config->dir_group_readable, 1) < 0) failed. (on Tor 0.3.4.6-rc )
Bug: Non-fatal assertion !(hs_check_service_private_dir(get_options()->User, config->directory_path, config->dir_group_readable, 1) < 0) failed in load_service_keys at ../src/or/hs_service.c:1009. Stack trace: (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(log_backtrace+0x42) [0x55b0ef49ce92] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(tor_bug_occurred_+0xb9) [0x55b0ef4b7d59] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(hs_service_load_all_keys+0x4f5) [0x55b0ef48aa75] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(set_options+0xf11) [0x55b0ef41aa71] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(options_init_from_string+0x37e) [0x55b0ef41c77e] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(options_init_from_torrc+0x433) [0x55b0ef41cdd3] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(tor_init+0x2f0) [0x55b0ef36c370] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(tor_run_main+0x65) [0x55b0ef36ce25] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(tor_main+0x3a) [0x55b0ef365e4a] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(main+0x19) [0x55b0ef365bb9] (on Tor 0.3.4.6-rc )
Bug: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f57e9f12830] (on Tor 0.3.4.6-rc )
Bug: /usr/bin/tor(_start+0x29) [0x55b0ef365c09] (on Tor 0.3.4.6-rc )
Instead the directory should be automatically created.
apt repository:
deb https://deb.torproject.org/torproject.org xenial main
deb-src https://deb.torproject.org/torproject.org xenial main
deb https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-xenial main
deb-src https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-xenial main