Hi danb35, thanks for you great work and support. I'm struggling to get the script running using FreeNAS-11.2-RC1.
My config:
OS: FreeNAS-11.2-RC1
Board+CPU: Supermicro A2SDi-H-TF + Intel® Atom® Processor C3758
RAM: 32GB Samsung DDR4 2400MHz ECC
LAN: connected to Interface ix0,
Problem:
nextcloud-config:
Code:
JAIL_IP="172.28.5.8"
DEFAULT_GW_IP="172.28.5.1"
INTERFACE="ix0"
VNET="off"
POOL_PATH="/mnt/PATH/tank"
JAIL_NAME="nextcloud"
TIME_ZONE="Europe/Berlin" # See http://php.net/manual/en/timezones.php
HOST_NAME="nextcloud.mydomain.com" # reachable from internet
STANDALONE_CERT=1
DNS_CERT=0
SELFSIGNED_CERT=0
NO_CERT=0
TEST_CERT="--test"
The script does its job and starts by installing the packages:
Code:
Testing SRV response to FreeBSD
Testing DNSSEC response to FreeBSD
Installing pkg...
The script finishs successfully, but if when try to access Nextcloud, I get the FreeNAS Web Gui. I therefore followed your advice:
Strange--which version of FreeNAS are you running? IIRC,
@cunningorb reported the same thing under 11.1-U2, but said it worked under 11.1-U4. I haven't seen this behavior under either version.
Can you try using virtual networking? Change the interface to "vnet0" and set VNET="yes" in
nextcloud-config, clear out the db/ dataset, destroy the jail (
iocage destroy -f nextcloud
), and run the script again.
In this case, the script finishs also without errors, but when I try to access nextcloud (tried with hostname/ip/port80 and 443), the connection is refused "ERR_CONNECTION_REFUSEDERR_CONNECTION_REFUSED"
ifconfig after the last step:
Code:
ix0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=a400b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6>
ether ac:1f:6b:41:2a:e2
hwaddr ac:1f:6b:41:2a:e2
inet 172.28.5.3 netmask 0xffffff00 broadcast 172.28.5.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (1000baseT <full-duplex,rxpause,txpause>)
status: active
ix1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:41:2a:e3
hwaddr ac:1f:6b:41:2a:e3
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:5a:9d:cf:6a:00
nd6 options=1<PERFORMNUD>
groups: bridge
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: vnet0:16 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000
member: vnet0:5 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000
member: ix0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000
vnet0:5: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: plexmediaserver-plexpass
options=8<VLAN_MTU>
ether 02:ff:60:42:a9:22
hwaddr 02:1a:d0:00:05:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
vnet0:16: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: nextcloud
options=8<VLAN_MTU>
ether 02:ff:60:76:13:ed
hwaddr 02:1a:d0:00:06:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
Do you have any advices, that could help me to solve this? Or do you need more informations? Thanks in advance!
EDIT:
I guessed apache is not running, which is right:
Code:
/usr/local/etc/rc.d/apache24 start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 27 of /usr/local/etc/apache24/Includes/nextcloud.mydomain.com.conf:
SSLCertificateFile: file '/usr/local/etc/pki/tls/certs/fullchain.pem' does not exist or is empty
Starting apache24.
AH00526: Syntax error on line 27 of /usr/local/etc/apache24/Includes/nextcloud.mydomain.com.conf:
SSLCertificateFile: file '/usr/local/etc/pki/tls/certs/fullchain.pem' does not exist or is empty
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
I will check again the cert settings...