Yes, it's on your router.where would I look for Services -> DNS Resolver? Is this in my router
Really? What did you put in the nextcloud-config file, which is where I told you to look in the post you quoted?I am not sure where to look for the HOST_NAME
No, it wouldn't.I did set the IP of my Nextcloud LAN IP to nextcloud.local but that did not work.
I thought exactly as rfanch3r did as I was convinced the file would be stored in the jail itself.Does that file exist in your FreeNAS installation? It wouldn't be in the jail.
True. My intent had been that the file would be saved within the jail, but the redirect wasn't working that way and I just didn't want to spend too much time figuring it out. Might need to reconsider that.One issue with this approach is that the file content is being replaced with the passwords from the last ran script.
I had it name the files based on the jail name so if I ran the script again to create a 2nd nextcloud jail to experiment with it wouldn't wipe out the original.True. My intent had been that the file would be saved within the jail, but the redirect wasn't working that way and I just didn't want to spend too much time figuring it out. Might need to reconsider that.
# Save passwords for later reference iocage exec ${JAIL_NAME} echo "MySQL root password is ${DB_ROOT_PASSWORD}" > /root/${JAIL_NAME}_db_password.txt iocage exec ${JAIL_NAME} echo "Nextcloud database password is ${DB_PASSWORD}" >> /root/${JAIL_NAME}_db_password.txt iocage exec ${JAIL_NAME} echo "Nextcloud Administrator password is ${ADMIN_PASSWORD}" >> /root/${JAIL_NAME}_db_password.txt chmod 600 /root/${JAIL_NAME}_db_password.txt
Yes, it's on your router.
Really? What did you put in the nextcloud-config file, which is where I told you to look in the post you quoted?
No, it wouldn't.
Does that file exist in your FreeNAS installation? It wouldn't be in the jail.
True. My intent had been that the file would be saved within the jail, but the redirect wasn't working that way and I just didn't want to spend too much time figuring it out. Might need to reconsider that.
I had it name the files based on the jail name so if I ran the script again to create a 2nd nextcloud jail to experiment with it wouldn't wipe out the original.
Code:# Save passwords for later reference iocage exec ${JAIL_NAME} echo "MySQL root password is ${DB_ROOT_PASSWORD}" > /root/${JAIL_NAME}_db_password.txt iocage exec ${JAIL_NAME} echo "Nextcloud database password is ${DB_PASSWORD}" >> /root/${JAIL_NAME}_db_password.txt iocage exec ${JAIL_NAME} echo "Nextcloud Administrator password is ${ADMIN_PASSWORD}" >> /root/${JAIL_NAME}_db_password.txt chmod 600 /root/${JAIL_NAME}_db_password.txt
danb35 does your scipt still work with 11.1 being EOL? I had to change my fork of the pkg to release_2 and comment out the lines that install pecl-redis and pecl-APCu as the ports tree won't work till ver 11.2.
I guess it could be clearer, but really it should be pretty clear as it is:Now that I know where it's at I think you just need to change either the verbiage or the location.
I've never touched HAproxy in pfSense (or elsewhere, for that matter). A simpler way to handle the (presumed) DNS issue is to enter the FQDN as a host override under Services -> DNS Resolver.
@danb35 Yeah I do not have HAproxy/pfSense installed, where would I look for Services -> DNS Resolver? Is this in my router? NextCloud? Jail? FreeNAS? I just looked in FreeNAS and while I do have Services I do not have a DNS Resolver. I have something similar on my router though (Static DNS) and I did set the IP of my Nextcloud LAN IP to nextcloud.local but that did not work.
What errors did you get when you ran the script? What version of FreeNAS are you running?Any suggestions?
No, the script doesn't generate a log file--you need to keep an eye on it to track any errors. The note about the staging certificate is to be expected if you told it to get a test cert (it defaults to this unless you tell it otherwise), and wouldn't be causing this problem.Is there a log file to find the errors.
iocage console nextcloud
and then run mysql
inside the jail?...and deleted your earlier messages. Please don't do that.I wiped my drives, reinstalled Freenass 11.1-U6 and ran your script again.
Yes, that's normal--iocage jails don't appear in the legacy GUI, though they should show in the new GUI.No jail was created in the Freenas GUI.
If you're going to recommend pre-release software, wouldn't you want to recommend the most recent version? 11.2-RC2 has been out for a few days now.Upgrade to 11.2-RC1 and you should be fine.
Fixed. @kwessel, please use the edit button instead of deleting messages. It's easier for you and for others.deleted your earlier messages. Please don't do that.