{"action":"created","issue":{"url":"https://api.github.com/repos/freedombox/Plinth/issues/113","labels_url":"https://api.github.com/repos/freedombox/Plinth/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/freedombox/Plinth/issues/113/comments","events_url":"https://api.github.com/repos/freedombox/Plinth/issues/113/events","html_url":"https://github.com/freedombox/Plinth/issues/113","id":58722287,"number":113,"title":"[768666] plinth: Fail to enable hidden services on freshly created FreedomBox","user":{"login":"FedericoCeratto","id":91576,"avatar_url":"https://avatars.githubusercontent.com/u/91576?v=3","gravatar_id":"","url":"https://api.github.com/users/FedericoCeratto","html_url":"https://github.com/FedericoCeratto","followers_url":"https://api.github.com/users/FedericoCeratto/followers","following_url":"https://api.github.com/users/FedericoCeratto/following{/other_user}","gists_url":"https://api.github.com/users/FedericoCeratto/gists{/gist_id}","starred_url":"https://api.github.com/users/FedericoCeratto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FedericoCeratto/subscriptions","organizations_url":"https://api.github.com/users/FedericoCeratto/orgs","repos_url":"https://api.github.com/users/FedericoCeratto/repos","events_url":"https://api.github.com/users/FedericoCeratto/events{/privacy}","received_events_url":"https://api.github.com/users/FedericoCeratto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/freedombox/Plinth/labels/debian-bts","name":"debian-bts","color":"800000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-24T10:54:17Z","updated_at":"2015-02-27T18:11:11Z","closed_at":"2015-02-24T17:21:18Z","body":null},"comment":{"url":"https://api.github.com/repos/freedombox/Plinth/issues/comments/76443003","html_url":"https://github.com/freedombox/Plinth/issues/113#issuecomment-76443003","issue_url":"https://api.github.com/repos/freedombox/Plinth/issues/113","id":76443003,"user":{"login":"FedericoCeratto","id":91576,"avatar_url":"https://avatars.githubusercontent.com/u/91576?v=3","gravatar_id":"","url":"https://api.github.com/users/FedericoCeratto","html_url":"https://github.com/FedericoCeratto","followers_url":"https://api.github.com/users/FedericoCeratto/followers","following_url":"https://api.github.com/users/FedericoCeratto/following{/other_user}","gists_url":"https://api.github.com/users/FedericoCeratto/gists{/gist_id}","starred_url":"https://api.github.com/users/FedericoCeratto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FedericoCeratto/subscriptions","organizations_url":"https://api.github.com/users/FedericoCeratto/orgs","repos_url":"https://api.github.com/users/FedericoCeratto/repos","events_url":"https://api.github.com/users/FedericoCeratto/events{/privacy}","received_events_url":"https://api.github.com/users/FedericoCeratto/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T18:11:11Z","updated_at":"2015-02-27T18:11:11Z","body":"BTS_msg_id: <2fl61eovrbc.fsf@diskless.uio.no>\nBTS author: Petter Reinholdtsen <pere@hungry.com>\n\nPackage: plinth\nVersion: 0.4.1-1\n\nWhen trying to configure a tor hidden service on the fresly configured\nFreedombox based on unstable, plinth gave this exception:\n\n[2014-11-08 22:31:58,204] plinth.actions ERROR    Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/tor', 'get-hs'], , Traceback (most recent call last):\n  File \"/usr/share/plinth/actions/tor\", line 194, in <module>\n    main()\n  File \"/usr/share/plinth/actions/tor\", line 190, in main\n    subcommand_method(arguments)\n  File \"/usr/share/plinth/actions/tor\", line 90, in subcommand_get_hs\n    print(get_hidden_service())\n  File \"/usr/share/plinth/actions/tor\", line 178, in get_hidden_service\n    with open(os.path.join(hs_dir, 'hostname'), 'r') as conf_file:\nFileNotFoundError: [Errno 2] No such file or directory: '/var/lib/tor/hidden_service/hostname'\n\nI was running plinth manually because it did not seem to work properly\nwhen running from the boot system.\n\nI tried running\n\n  mkdir /var/lib/tor/hidden_service\n  chown debian-tor:debian-tor /var/lib/tor/hidden_service\n  service tor restart\n\nbut this did not work becuase this change was done to /etc/tor/torrc,\nand the 10.0.2.16 IP address were not available on the Freedombox\nmachine.  Only the 192.168.122.102 address were active at the time.\n\ndiff --git a/tor/torrc b/tor/torrc\nindex 7af855e..0ff6f55 100644\n--- a/tor/torrc\n+++ b/tor/torrc\n@@ -14,3 +14,9 @@ AutomapHostsOnResolve 1\n TransPort 127.0.0.1:9040\n DNSPort 127.0.0.1:53\n \n+SocksPort 10.0.2.16:9050\n+TransPort 10.0.2.16:9040\n+DNSPort 10.0.2.16:53\n+SocksPort 192.168.122.102:9050\n+TransPort 192.168.122.102:9040\n+DNSPort 192.168.122.102:53\n\nAfter removing the lines with 10.0.2.16 and restarting, plinth was back\nto showing the tor status web page again.\n\n-- \nHappy hacking\nPetter Reinholdtsen\n\n"}}