Commit d80ea42f authored by Nick Busey's avatar Nick Busey

Update CHANGELOG.md

parent 7bbedb19
Pipeline #24312347 passed with stages
in 1 minute and 46 seconds
......@@ -2,6 +2,7 @@
* Added Automated Apple Health Import
* Added Tor Onion Services
* Added Automated HTTPS via LetsEncrypt
# 0.2
......
  • Syntax error with Tor on initial installation:

    ansible-playbook -i hosts homelabos.yml
    
    ERROR! the role 'toke.tor' was not found in /home/peter/HomelabOS/roles:/home/peter/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/peter/HomelabOS
    
    The error appears to have been in '/home/peter/HomelabOS/homelabos.yml': line 25, column 7, but may
    be elsewhere in the file depending on the exact syntax problem.
    
    The offending line appears to be:
    
        # Configure a TOR hidden service for remote access without a public IP
        - role: toke.tor
          ^ here
    Edited by pomkos
  • Ah, need to add an extra step of ansible-galaxy install toke.tor to the Makefile.

  • @pomkos I just pushed a new commit with this fixed. make deploy or make should automatically install the needed package for you.

  • Awesome, that seems to have worked. Unfortunately after doing 'make' inside the homelabos folder it installs everything correctly except for tor:

    TASK [common : Ensure locale en_US.UTF-8 locale is present] **********************
    ok: [myserver]
    
    TASK [common : Disable resolved service to make room for pihole] *****************
    changed: [myserver]
    
    TASK [toke.tor : Tor packages] ***************************************************
    fatal: [myserver]: FAILED! => {"cache_update_time": 1529595526, "cache_updated": f                                                                                                                                                           alse, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-                                                                                                                                                           confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'tor'' failed: E: Fai                                                                                                                                                           led to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/t/tor/tor_0.3.2.10-                                                                                                                                                           1_amd64.deb  Could not resolve 'us.archive.ubuntu.com'\nE: Failed to fetch http://                                                                                                                                                           us.archive.ubuntu.com/ubuntu/pool/universe/t/torsocks/torsocks_2.2.0-2_amd64.deb                                                                                                                                                             Could not resolve 'us.archive.ubuntu.com'\nE: Failed to fetch http://us.archive.ub                                                                                                                                                           untu.com/ubuntu/pool/universe/t/tor/tor-geoipdb_0.3.2.10-1_all.deb  Could not reso                                                                                                                                                           lve 'us.archive.ubuntu.com'\nE: Unable to fetch some archives, maybe run apt-get u                                                                                                                                                           pdate or try with --fix-missing?\n", "rc": 100, "stderr": "E: Failed to fetch http                                                                                                                                                           ://us.archive.ubuntu.com/ubuntu/pool/universe/t/tor/tor_0.3.2.10-1_amd64.deb  Coul                                                                                                                                                           d not resolve 'us.archive.ubuntu.com'\nE: Failed to fetch http://us.archive.ubuntu                                                                                                                                                           .com/ubuntu/pool/universe/t/torsocks/torsocks_2.2.0-2_amd64.deb  Could not resolve                                                                                                                                                            'us.archive.ubuntu.com'\nE: Failed to fetch http://us.archive.ubuntu.com/ubuntu/p                                                                                                                                                           ool/universe/t/tor/tor-geoipdb_0.3.2.10-1_all.deb  Could not resolve 'us.archive.u                                                                                                                                                           buntu.com'\nE: Unable to fetch some archives, maybe run apt-get update or try with                                                                                                                                                            --fix-missing?\n", "stderr_lines": ["E: Failed to fetch http://us.archive.ubuntu.                                                                                                                                                           com/ubuntu/pool/universe/t/tor/tor_0.3.2.10-1_amd64.deb  Could not resolve 'us.arc                                                                                                                                                           hive.ubuntu.com'", "E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/un                                                                                                                                                           iverse/t/torsocks/torsocks_2.2.0-2_amd64.deb  Could not resolve 'us.archive.ubuntu                                                                                                                                                           .com'", "E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/t/to                                                                                                                                                           r/tor-geoipdb_0.3.2.10-1_all.deb  Could not resolve 'us.archive.ubuntu.com'", "E:                                                                                                                                                            Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                                                                                                                                           "], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading stat                                                                                                                                                           e information...\nThe following additional packages will be installed:\n  tor-geoi                                                                                                                                                           pdb torsocks\nSuggested packages:\n  mixmaster torbrowser-launcher tor-arm apparmo                                                                                                                                                           r-utils obfs4proxy\nThe following NEW packages will be installed:\n  tor tor-geoip                                                                                                                                                           db torsocks\n0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.\nNeed                                                                                                                                                            to get 2111 kB of archives.\nAfter this operation, 11.1 MB of additional disk spac                                                                                                                                                           e will be used.\nErr:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 t                                                                                                                                                           or amd64 0.3.2.10-1\n  Could not resolve 'us.archive.ubuntu.com'\nErr:2 http://us.                                                                                                                                                           archive.ubuntu.com/ubuntu bionic/universe amd64 torsocks amd64 2.2.0-2\n  Could no                                                                                                                                                           t resolve 'us.archive.ubuntu.com'\nIgn:3 http://us.archive.ubuntu.com/ubuntu bioni                                                                                                                                                           c/universe amd64 tor-geoipdb all 0.3.2.10-1\nErr:3 http://us.archive.ubuntu.com/ub                                                                                                                                                           untu bionic/universe amd64 tor-geoipdb all 0.3.2.10-1\n  Could not resolve 'us.arc                                                                                                                                                           hive.ubuntu.com'\n", "stdout_lines": ["Reading package lists...", "Building depend                                                                                                                                                           ency tree...", "Reading state information...", "The following additional packages                                                                                                                                                            will be installed:", "  tor-geoipdb torsocks", "Suggested packages:", "  mixmaster                                                                                                                                                            torbrowser-launcher tor-arm apparmor-utils obfs4proxy", "The following NEW packag                                                                                                                                                           es will be installed:", "  tor tor-geoipdb torsocks", "0 upgraded, 3 newly install                                                                                                                                                           ed, 0 to remove and 0 not upgraded.", "Need to get 2111 kB of archives.", "After t                                                                                                                                                           his operation, 11.1 MB of additional disk space will be used.", "Err:1 http://us.a                                                                                                                                                           rchive.ubuntu.com/ubuntu bionic/universe amd64 tor amd64 0.3.2.10-1", "  Could not                                                                                                                                                            resolve 'us.archive.ubuntu.com'", "Err:2 http://us.archive.ubuntu.com/ubuntu bion                                                                                                                                                           ic/universe amd64 torsocks amd64 2.2.0-2", "  Could not resolve 'us.archive.ubuntu                                                                                                                                                           .com'", "Ign:3 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 tor-geoip                                                                                                                                                           db all 0.3.2.10-1", "Err:3 http://us.archive.ubuntu.com/ubuntu bionic/universe amd                                                                                                                                                           64 tor-geoipdb all 0.3.2.10-1", "  Could not resolve 'us.archive.ubuntu.com'"]}
            to retry, use: --limit @/home/peter/HomelabOS/homelabos.retry
    
    PLAY RECAP ***********************************************************************
    myserver                   : ok=10   changed=4    unreachable=0    failed=1
    
    Makefile:5: recipe for target 'deploy' failed
    make: *** [deploy] Error 2
  • @pomkos Sorry about that, try running the following

    ansible all -i hosts -m command -a "sudo systemctl enable systemd-resolved"
    ansible all -i hosts -m command -a "sudo systemctl start systemd-resolved"

    then update to latest master and run make again

  • I feel like I'm only bringing bad news here, sorry about that. That did work, but now I get:

     TASK [homelabos : Restart HomelabOS service.] **********************************
     fatal: [myserver]: FAILED! => {"changed": false, "msg": "Unable to restart service homelabos: Job for homelabos.service failed because of unavailable resources or another system error.\nSee \"systemctl status homelabos.service\" and \"journalctl -xe\" for details.\n"}
             to retry, use: --limit @/home/peter/HomelabOS/homelabos.retry
     
     PLAY RECAP *********************************************************************
     myserver                   : ok=36   changed=10   unreachable=0    failed=1
     
     Makefile:5: recipe for target 'deploy' failed
     make: *** [deploy] Error 2

    I did try again on a brand new install of ubuntu 18.04, but same error.

  • Sorry that you keep hitting these issues, that's what comes with early software though, heh.

    Ok this should be a quick manual fix. SSH in to your server, and edit /var/homelabos/docker/docker-compose.yml and comment out or delete line 10 EnvironmentFile=/var/homelabos/docker/.env

    Then run systemctl daemon-reload then systemctl start homelabos.

    After a few minutes run docker ps and you should see a bunch of containers running.

    Or systemctl status homelabos.service will give you an error if there is one. If so could you paste that in here?

    Once that is good to go, you should be able to hit your domain name and get access to your dashboard.

  • Went ahead and nano-ed into docker-compose.yml, but that line doesn't appear to be there. systemctl start homelab os gives me the error:

    Job for homelabos.service failed because of unavailable resources or another system error.
    See "systemctl status homelabos.service" and "journalctl -xe" for details.

    and docker ps doesn't show any containers running. Status command has the result:

     homelabos.service - HomelabOS Service
       Loaded: loaded (/etc/systemd/system/homelabos.service; enabled; vendor preset: enabled)
       Active: activating (auto-restart) (Result: resources) since Sun 2018-06-24 21:05:12 UTC; 920ms ago
    ~
  • Try running the docker-compose command by hand and seeing what error it gives you.

    /usr/bin/docker-compose -f /var/homelabos/docker/docker-compose.yml -p homelabos up

  • For unrelated reasons I had to reinstall my Ubuntu instance, a fresh installation of latest homelabos went ahead with no obvious errors.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment