Closed domicm closed 1 year ago
I'll look at it more later, but you've shared your Cloudflare API token. I'd recommend you revoke that token and generate a new one, because anyone who has it can do pretty much anything to your DNS records.
Whoops, that was pretty stupid of me. Thanks for catching that.
For reference, here is the log file of what happens when I leave the INTERFACE setting at defaults:
Command: ./nextcloud-jail.sh
JAIL_INTERFACES not set, defaulting to: vnet0:bridge0
nextcloud successfully created!
Testing Host DNS response to pkg.freebsd.org
DNS Exception: The DNS operation timed out after 30.118759870529175 seconds
pkg.freebsd.org could not be reached via DNS, check your network
Failed to create jail
Command exit status: 1
Script done on Sun Mar 19 10:48:53 2023
Maybe something is up with the bridge? I'm not well versed in this networking stuff so I'm not sure what I could do about it.
I was able to get around this issue by disabling VNET and setting the interface to the network card of the TrueNAS system.
First off, thank you @danb35 for the script. You have saved me and many others hours of troubleshooting.
When I ran the script in the configuration most suitable to my needs, I originally received an error in the script: "pkg.freebsd.org could not be reached via DNS, check your network"
I was able to get around this by adding INTERFACE="em0" in the config file, which resulted in freebsd being able to be downloaded and installed. However, I now receive the error that the jail was stopped due to a VNET failure, and the script failed to create the jail.
Here is my config file:
And the nextcloud.log:
It seems that there is something screwy happening in the beginning of the script according to the log... not sure what "cannot open 'Creating': dataset does not exist" is all about. In any case, I am not able to access nextcloud via the jail IP, but it can successfully be pinged to from another system.