Broken Installation with IPv6 only
The output of these commands is helpful to debug deployment errors:
❯ sudo stackspin-version-info.sh
+ cat /var/lib/Stackspin/version.txt
VERSION: 0.8.0
modified up to: e1cd499a13466a1e14a0a5a8aa6f4d22b17af45f
https://open.greenhost.net/stackspin/stackspin/commit/e1cd499a13466a1e14a0a5a8aa6f4d22b17af45f
+ kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.4", GitCommit:"e6c093d87ea4cbb530a7b2ae91e54c0842d8308a", GitTreeState:"clean", BuildDate:"2022-02-18T02:26:27Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
+ kubectl plugin list
error: unable to find any kubectl plugins in your PATH
+ k3s --version
k3s version v1.23.3+k3s1 (5fb370e5)
go version go1.17.5
+ helm version
version.BuildInfo{Version:"v3.7.0", GitCommit:"eeac83883cb4014fe60267ec6373570374ce770b", GitTreeState:"clean", GoVersion:"go1.16.8"}
+ helm plugin list
NAME VERSION DESCRIPTION
+ helm ls
Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version?timeout=32s": dial tcp [::1]:8080: connect: connection refused
❯ sudo kubectl get pods -A
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Are you running Stackspin via IPv6 already?
I followed the setup with Nextcloud as only application and after some complications outlined in #1174 (closed) all seemed fine. But nothing works.
The tests ended full of errors:
pytest/test_resources.py:128: AssertionError
================================================================================= short test summary info ==================================================================================
FAILED pytest/test_certs.py::test_cert_validation[ansible://DOMAIN] - SystemExit: 1
FAILED pytest/test_dns.py::test_dns[ansible://DOMAIN] - dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: DOMAIN. IN A
FAILED pytest/test_prometheus.py::test_prometheus_alerts[ansible://DOMAIN] - AssertionError: Please export BASIC_AUTH_PW env var!
FAILED pytest/test_resources.py::test_kustomizations - AssertionError: Error: 4 resources not ready (['dashboard', 'single-sign-on', 'nextcloud', 'nginx'])!
=============================================================================== 4 failed, 1 passed in 2.75s ================================================================================
It seems that it only accepts A records, which is inacceptable since IPv4s, as we all know, are running out and getting expensive (I am still shocked how many seemingly modern services have not acted on that...).
Anyways, I am running Stackspin on a domain where other things run at various subdomains, meaning I add DNS entries for each service rather than wildcards.
For example for nextcloud I added cloud.DOMAIN
, but actually I dunno where Stackspin expects the record.
Please document which subdomains are used for which service and how to adjust them.
So after all I don't know whether IPv6 is the primary issue here, but it seems pretty likely.