Hey,
@danb35, I'm having a bit of trouble with the nextcloud script.
Script spits out error like:
Code:
+ iocage create --name nextcloud -p /tmp/pkg.json -r 13.1-RELEASE 'interfaces=v>
Default mac_prefix specified in defaults.json 'ac1f6b' is invalid. Using 'ae1f6>
nextcloud successfully created!
Testing Host DNS response to pkg.freebsd.org
DNS Exception: A DNS label is empty.
pkg.freebsd.org could not be reached via DNS, check your network
+ echo 'Failed to create jail'
Failed to create jail
+ exit 1
Command exit status: 1
As is apparent in the log, the nextcloud jail was actually created successfully.
When I go to the Jails tab in the TrueNAS UI, it's there and up with full network access.
I tried fiddling with my host network config, but nothing helped get me past the DNS error.
DHCP on/off, NAT on/off, VNET on/off, BPF on/off made no difference.
With DHCP off, manually setting various valid configs made no difference.
Since the jails created by the script have network access,
can ping other local machines and www addresses just fine,
and can definitely
ping pkg.freebsd.org
without issue,
I tried to
dig
deeper, however, pkg was not initialized in the jails.
Looking at your script, it obviously relies on the
-p pkg.json
flag of
iocage create
,
which leads me to believe pkg SHOULD be initialized?
I think it has to do with
iocage create, either failing to init pkg,
or
import dns.resolver
, which is where I tracked the
DNS Exception: A DNS label is empty.
error to?
Any insight would be appreciated, been using your scripts for years.
You're like the Batman of the TrueNAS Gothamite.