Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Running Into Issue After Issue #5

@dinosaw

Description

@dinosaw

Hello,

After doing all the manual configuration for the files like traefik.toml and pihole.env etc, I attempt to run ./bootstrap.sh and get errors.

At first is stated:

# ./bootstrap.sh
  [INFO]  creating files for docker-compose...
creating /opt/skyhole/docker/vol/traefik/.htpasswd...
touch: cannot touch '/opt/skyhole/docker/vol/traefik/.htpasswd': No such file or directory

So I created that directory and ran it again but got:

# mkdir -p /opt/skyhole/docker/vol/traefik/

# ./bootstrap.sh
  [INFO]  creating files for docker-compose...
creating /opt/skyhole/docker/vol/traefik/.htpasswd...
./bootstrap.sh: line 62: htpasswd: command not found

Then I looked to see what package the htpasswd command is part of which was apache2-utils. I installed that and then ran bootstrap.sh again:

# ./bootstrap.sh
  [INFO]  creating files for docker-compose...
existing /opt/skyhole/docker/vol/traefik/.htpasswd...
existing /opt/skyhole/docker/vol/traefik/acme.json...
  [INFO]  getting runtime WAN IP configuration...
  [INFO]  beginning container creation...
./bootstrap.sh: line 106: docker-compose: command not found

Then I installed docker-compose and ran it again and got:

# ./bootstrap.sh
  [INFO]  creating files for docker-compose...
existing /opt/skyhole/docker/vol/traefik/.htpasswd...
creating /opt/skyhole/docker/vol/traefik/acme.json...
  [INFO]  getting runtime WAN IP configuration...
  [INFO]  beginning container creation...
ERROR:
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml

# pwd
/root/skyhole

# ls -l
total 24
-rwxr-xr-x 1 root root  4056 Dec  9 21:22 bootstrap.sh
drwxr-xr-x 5 root root  4096 Dec  9 21:30 docker
-rw-r--r-- 1 root root 15471 Dec  9 21:22 readme.md

# ls -l docker/
total 24
-rw-r--r-- 1 root root 9254 Dec  9 21:30 docker-compose.yaml
drwxr-xr-x 2 root root 4096 Dec  9 21:26 env
drwxr-xr-x 4 root root 4096 Dec  9 21:22 helpers
drwxr-xr-x 5 root root 4096 Dec  9 21:22 vol

So honestly it's just one error after another. Is this still a working application? Is there something I'm missing? Is there a list of pre-requisites needing to be installed before running bootstrap.sh other than the configuration files?

# cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions