How to install Nextcloud 13 in FreeNAS with all checks passed updated to use iocage

Chrisrehn

Dabbler
Joined
Mar 16, 2018
Messages
14
The reason is that your default editor is "VI" a very difficult, cryptic word editor that i personally despise.

run these commmands

pkg install nano

then

setenv VISUAL /usr/local/bin/nano
setenv EDITOR /usr/local/bin/nano

Thanks! Worked perfect!
 

irs

Dabbler
Joined
Jun 24, 2017
Messages
17
Hold down
Code:
Cntl+C
to stop the script

Then enter the following Command

/usr/local/etc/rc.d/mysql-server stop
Then Enter this Command
mysqld_safe --skip-grant-tables &
/usr/local/etc/rc.d/mysql-server start
Once Again Hold down
Code:
Cntl+C
to stop the script
Run Wizard Script

where is the Wizard script?
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
I had some problems:
I could not run the "Jail iocage". Installation seems to be going well but I wanted to run it was full of errors (I would send the errors but I deleted this jail)

So at the end I went and created a normal jail and everything was excellent but I noticed that I had missing two files that I could not create or find them redis.sock and mysql.sock

And I think that because I do not have two / one of these files after installing the nextcloud, on its first setup screen (where I define the admin user) I have this error:

"PHP GD module is not installed.
Ask your server administrator to install the module.
PHP modules installed but still listed as missing?
You must ask your server administrator to restart the Web server".

Can you help me understand what I did wrong? I followed the guide really well.
 

dureal99d

Contributor
Joined
Aug 3, 2017
Messages
156
I had some problems:
I could not run the "Jail iocage". Installation seems to be going well but I wanted to run it was full of errors (I would send the errors but I deleted this jail)

So at the end I went and created a normal jail and everything was excellent but I noticed that I had missing two files that I could not create or find them redis.sock and mysql.sock

And I think that because I do not have two / one of these files after installing the nextcloud, on its first setup screen (where I define the admin user) I have this error:

"PHP GD module is not installed.
Ask your server administrator to install the module.
PHP modules installed but still listed as missing?
You must ask your server administrator to restart the Web server".

Can you help me understand what I did wrong? I followed the guide really well.
When you say you could not run the iocage jail what command did you use to run or create the iocage jail? It would really be helpful if you gave me details of command you used and errors you received in sequence so that you can receive help with whatever it is that you are experiencing

Sent from my HUAWEI NXT-AL10 using Tapatalk
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
Try installing the missing module ? its
php71-gd or
php72-gd or
php70-gd, depending on your version.
 

ideal2545

Dabbler
Joined
Jun 1, 2015
Messages
25
Has anyone had any luck enabling http2? I enabled LoadModule http2_module libexec/apache24/mod_http2.so and i added "Protocols h2 http:/1.1" into the Virtualhost for 443, but no luck.
 

ideal2545

Dabbler
Joined
Jun 1, 2015
Messages
25
Thanks, it turned out to be such a pain I just ended moving over to nginx to make it go faster/easier. I'll report in if I have issues with http2/nginx and nextcloud. I followed the guide except for the apache part, and even then I structured the file system similarly just to make it easy.
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
When you say you could not run the iocage jail what command did you use to run or create the iocage jail? It would really be helpful if you gave me details of command you used and errors you received in sequence so that you can receive help with whatever it is that you are experiencing

Sent from my HUAWEI NXT-AL10 using Tapatalk
I will install everything from scratch (of course, will be linked to the guide) and sent where some commands do not work
 

dureal99d

Contributor
Joined
Aug 3, 2017
Messages
156
I will install everything from scratch (of course, will be linked to the guide) and sent where some commands do not work
i just set this up for a client last night and everything worked fine. Also im going to create a guide using nginx to reverse proxy and handle the ssl/cert rather than nextcloud itself being the client to handle it (apache)
 

wbali

Cadet
Joined
Apr 13, 2018
Messages
3
Hi I have problem with cache. When I execute the commands I got:
Code:
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"'
System config value memcache.local set to string \OC\Memcache\APCu
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"'
System config value memcache.locking set to string \OC\Memcache\Redis
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"'
An unhandled exception has been thrown:
RedisException: Connection refused in /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php:84
Stack trace:
#0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0)
#1 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(100): OC\RedisFactory->create()
#2 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance()
#3 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Factory.php(134): OC\Memcache\Redis->__construct('e3012fe6c576217...')
#4 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(854): OC\Memcache\Factory->createLocking('lock')
#5 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#6 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
#7 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...')
#8 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
#9 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#10 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('LockingProvider')
#11 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider')
#12 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1765): OC\ServerContainer->query('LockingProvider')
#13 /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php(114): OC\Server->getLockingProvider()
#14 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(193): OC\Files\View->__construct()
#15 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#16 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('EncryptionManag...')
#17 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...')
#18 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1229): OC\ServerContainer->query('EncryptionManag...')
#19 /usr/local/www/apache24/data/nextcloud/lib/base.php(865): OC\Server->getEncryptionManager()
#20 /usr/local/www/apache24/data/nextcloud/lib/base.php(737): OC::registerEncryptionWrapper()
#21 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init()
#22 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...')
#23 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')
#24 {main}root@nextcloudjail:~ #

After jail reboot i got:
Code:
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"'
An unhandled exception has been thrown:
RedisException: Redis server went away in /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php:54
Stack trace:
#0 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(54): Redis->get('e3012fe6c576217...')
#1 /usr/local/www/apache24/data/nextcloud/lib/private/App/InfoParser.php(57): OC\Memcache\Redis->get('/usr/local/www/...')
#2 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(621): OC\App\InfoParser->parse('/usr/local/www/...')
#3 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php(62): OC_App::getAppInfo('files')
#4 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(220): OC\AppFramework\App::buildAppNamespace('files')
#5 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(119): OC_App::registerAutoloading('files', '/usr/local/www/...')
#6 /usr/local/www/apache24/data/nextcloud/lib/base.php(661): OC_App::loadApps(Array)
#7 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init()
#8 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...')
#9 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')
#10 {main}root@nextcloudjail:~ #

redis.sock is present in /tmp
Can anybody help me?

Edit1: When I manualy added
Code:
  'redis' =>
   array (
	'host' => '/tmp/redis.sock',
   ),
to config.php and Ignore "Additional steps for php 7.1" so I left 'memcache.local' => '\\OC\\Memcache\\APCu', It seems to work... But I don't think it's ok.

Edit2: Wll it is not ok. Here is piece of nextcloud log:
Code:

RedisException: Redis server went away
  1. /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php - line 114: Redis->incrBy('e3012fe6c576217...', 1)
  2. /usr/local/www/apache24/data/nextcloud/lib/private/Lock/MemcacheLockingProvider.php - line 73: OC\Memcache\Redis->inc('files/04107a50f...')
  3. /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Common.php - line 709: OC\Lock\MemcacheLockingProvider->acquireLock('files/04107a50f...', 1)
  4. /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 592: OC\Files\Storage\Common->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
  5. /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1926: OC\Files\Storage\Wrapper\Wrapper->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
  6. /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 2036: OC\Files\View->lockPath('/root/files/gal...', 1, false)
  7. /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1321: OC\Files\View->lockFile('/root/files/gal...', 1)
  8. /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1371: OC\Files\View->getCacheEntry(Object(OCA\Files_Trashbin\Storage), 'files/gallery.c...', '/root/files/gal...')
  9. /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Root.php - line 198: OC\Files\View->getFileInfo('/root/files/gal...')
  10. /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 133: OC\Files\Node\Root->get('/root/files/gal...')
  11. /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 142: OC\Files\Node\Folder->get('gallery.cnf')
  12. /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 191: OC\Files\Node\Folder->nodeExists('gallery.cnf')
  13. /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 101: OCA\Gallery\Service\ConfigService->configExists(Object(OC\Files\Node\Folder))
  14. /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/Config.php - line 47: OCA\Gallery\Service\ConfigService->getFeaturesList()
  15. /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/ConfigController.php - line 64: OCA\Gallery\Controller\ConfigController->getConfig(true)
  16. [internal function] OCA\Gallery\Controller\ConfigController->get(true)
  17. /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
  18. /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Gallery\Controller\ConfigController), 'get')
  19. /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Gallery\Controller\ConfigController), 'get')
  20. /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ConfigControlle...', 'get', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
  21. [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
  22. /usr/local/www/apache24/data/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
  23. /usr/local/www/apache24/data/nextcloud/lib/base.php - line 998: OC\Route\Router->match('/apps/gallery/c...')
  24. /usr/local/www/apache24/data/nextcloud/index.php - line 37: OC handleRequest()
  25. {main}

Edit4: Well I'm probably idiot but i try again commands after third restart and it works!
I changed networking (vnet) so maybe it was the problem?
 
Last edited:

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
When you say you could not run the iocage jail what command did you use to run or create the iocage jail? It would really be helpful if you gave me details of command you used and errors you received in sequence so that you can receive help with whatever it is that you are experiencing

Sent from my HUAWEI NXT-AL10 using Tapatalk

I reinstalled iocage jail and already there are problems with the installation and I think that is the problem that caused it all

iocage create -n nextcloud_13 ip4_addr="em0|192.168.1.29/24" -r 11.1-RELEASE

Code:
Creating NAS/iocage
Creating NAS/iocage/download
Creating NAS/iocage/images
Creating NAS/iocage/jails
Creating NAS/iocage/log
Creating NAS/iocage/releases
Creating NAS/iocage/templates
Fetching: 11.1-RELEASE

Downloading : MANIFEST [####################] 100% 0Mbit/s
Downloading : base.txz [####################] 100%  7.23Mbit/s
Downloading : lib32.txz [####################] 100%  7.29Mbit/s
Downloading : doc.txz [####################] 100%  7.62Mbit/s
Downloading : src.txz [####################] 100%  7.28Mbit/s
 7.28Mbit/sExtracting: base.txz...
Extracting: lib32.txz...
Extracting: doc.txz...
Extracting: src.txz...

* Updating 11.1-RELEASE to the latest patch level...
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update6.freebsd.org... done.
Fetching metadata signature for 11.1-RELEASE from update6.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 151 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150 done.
Applying patches... done.

The following files will be updated as part of updating to 11.1-RELEASE-p9:
/bin/freebsd-version
/bin/pgrep
/bin/pkill
/bin/ps
/lib/libcrypto.so.8
/lib/libkvm.so.7
/lib/libutil.so.9
/rescue/[
/rescue/atmconfig
/rescue/badsect
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rcp
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/sbin/ipresend
/usr/bin/file
/usr/bin/fstat
/usr/bin/fuser
/usr/bin/gcore
/usr/bin/kdump
/usr/bin/kgdb
/usr/bin/killall
/usr/bin/limits
/usr/bin/netstat
/usr/bin/ntpq
/usr/bin/openssl
/usr/bin/procstat
/usr/bin/sockstat
/usr/bin/systat
/usr/bin/top
/usr/bin/truss
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w
/usr/include/machine/asmacros.h
/usr/include/machine/frame.h
/usr/include/machine/intr_machdep.h
/usr/include/machine/md_var.h
/usr/include/machine/pcb.h
/usr/include/machine/pcpu.h
/usr/include/machine/pmap.h
/usr/include/machine/smp.h
/usr/include/magic.h
/usr/include/openssl/ssl.h
/usr/include/sys/cpuctl.h
/usr/include/x86/apicvar.h
/usr/include/x86/specialreg.h
/usr/include/x86/x86_smp.h
/usr/include/x86/x86_var.h
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libkvm.a
/usr/lib/libkvm_p.a
/usr/lib/libmagic.a
/usr/lib/libmagic.so.4
/usr/lib/libmagic_p.a
/usr/lib/libprocstat.a
/usr/lib/libprocstat.so.1
/usr/lib/libprocstat_p.a
/usr/lib/librtld_db.so.2
/usr/lib/libssl.a
/usr/lib/libssl.so.8
/usr/lib/libssl_p.a
/usr/lib/libsysdecode.a
/usr/lib/libsysdecode.so.5
/usr/lib/libsysdecode_p.a
/usr/lib/snmp_hostres.so.6
/usr/lib32/libcrypto.a
/usr/lib32/libcrypto.so.8
/usr/lib32/libcrypto_p.a
/usr/lib32/libmagic.a
/usr/lib32/libmagic.so.4
/usr/lib32/libmagic_p.a
/usr/lib32/libssl.a
/usr/lib32/libssl.so.8
/usr/lib32/libssl_p.a
/usr/lib32/libsysdecode.a
/usr/lib32/libsysdecode.so.5
/usr/lib32/libsysdecode_p.a
/usr/libexec/sendmail/sendmail
/usr/sbin/cpucontrol
/usr/sbin/hostapd
/usr/sbin/jail
/usr/sbin/ntp-keygen
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpdc
/usr/sbin/ntptime
/usr/sbin/pmcstat
/usr/sbin/sntp
/usr/sbin/sshd
/usr/sbin/wpa_supplicant
/usr/share/doc/ntp/access.html
/usr/share/doc/ntp/accopt.html
/usr/share/doc/ntp/authentic.html
/usr/share/doc/ntp/drivers/driver18.html
/usr/share/doc/ntp/drivers/driver40.html
/usr/share/doc/ntp/keygen.html
/usr/share/doc/ntp/miscopt.html
/usr/share/doc/ntp/monopt.html
/usr/share/doc/ntp/ntp-keygen.html
/usr/share/doc/ntp/ntp.conf.html
/usr/share/doc/ntp/ntp.keys.html
/usr/share/doc/ntp/ntpq.html
/usr/share/doc/ntp/ntpsnmpd.html
/usr/share/man/man1/file.1.gz
/usr/share/man/man3/libmagic.3.gz
/usr/share/man/man5/magic.5.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/cpucontrol.8.gz
/usr/share/man/man8/ntp-keygen.8.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpdc.8.gz
/usr/share/man/man8/ntpq.8.gz
/usr/share/man/man8/sntp.8.gz
/usr/share/man/mandoc.db
/usr/share/misc/magic
/usr/share/misc/magic.mgc
/usr/share/zoneinfo/Africa/Bissau
/usr/share/zoneinfo/Africa/Juba
/usr/share/zoneinfo/Africa/Khartoum
/usr/share/zoneinfo/Africa/Sao_Tome
/usr/share/zoneinfo/Africa/Windhoek
/usr/share/zoneinfo/America/Adak
/usr/share/zoneinfo/America/Anchorage
/usr/share/zoneinfo/America/Campo_Grande
/usr/share/zoneinfo/America/Cuiaba
/usr/share/zoneinfo/America/Detroit
/usr/share/zoneinfo/America/Grand_Turk
/usr/share/zoneinfo/America/Jamaica
/usr/share/zoneinfo/America/Juneau
/usr/share/zoneinfo/America/La_Paz
/usr/share/zoneinfo/America/Metlakatla
/usr/share/zoneinfo/America/Montevideo
/usr/share/zoneinfo/America/Nome
/usr/share/zoneinfo/America/Sao_Paulo
/usr/share/zoneinfo/America/Sitka
/usr/share/zoneinfo/America/Yakutat
/usr/share/zoneinfo/Antarctica/Casey
/usr/share/zoneinfo/Asia/Famagusta
/usr/share/zoneinfo/Asia/Gaza
/usr/share/zoneinfo/Asia/Hebron
/usr/share/zoneinfo/Asia/Kolkata
/usr/share/zoneinfo/Asia/Macau
/usr/share/zoneinfo/Asia/Tokyo
/usr/share/zoneinfo/Asia/Yangon
/usr/share/zoneinfo/Asia/Yerevan
/usr/share/zoneinfo/Atlantic/Azores
/usr/share/zoneinfo/Atlantic/Cape_Verde
/usr/share/zoneinfo/Atlantic/Madeira
/usr/share/zoneinfo/Europe/Dublin
/usr/share/zoneinfo/Europe/Lisbon
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Enderbury
/usr/share/zoneinfo/Pacific/Fiji
/usr/share/zoneinfo/Pacific/Kiritimati
/usr/share/zoneinfo/Pacific/Midway
/usr/share/zoneinfo/Pacific/Pago_Pago
/usr/share/zoneinfo/Pacific/Tongatapu
/usr/share/zoneinfo/zone.tab
src component not installed, skipped
Installing updates... done.
nextcloud_13 successfully created!


Iocage Start "nextcloud_13"

Code:
Iocage: Command not found.


please help
 

wbali

Cadet
Joined
Apr 13, 2018
Messages
3
I reinstalled iocage jail and already there are problems with the installation and I think that is the problem that caused it all

iocage create -n nextcloud_13 ip4_addr="em0|192.168.1.29/24" -r 11.1-RELEASE

Code:
Creating NAS/iocage
Creating NAS/iocage/download
Creating NAS/iocage/images
Creating NAS/iocage/jails
Creating NAS/iocage/log
Creating NAS/iocage/releases
Creating NAS/iocage/templates
Fetching: 11.1-RELEASE

Downloading : MANIFEST [####################] 100% 0Mbit/s
Downloading : base.txz [####################] 100%  7.23Mbit/s
Downloading : lib32.txz [####################] 100%  7.29Mbit/s
Downloading : doc.txz [####################] 100%  7.62Mbit/s
Downloading : src.txz [####################] 100%  7.28Mbit/s
 7.28Mbit/sExtracting: base.txz...
Extracting: lib32.txz...
Extracting: doc.txz...
Extracting: src.txz...

* Updating 11.1-RELEASE to the latest patch level...
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update6.freebsd.org... done.
Fetching metadata signature for 11.1-RELEASE from update6.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 151 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150 done.
Applying patches... done.

The following files will be updated as part of updating to 11.1-RELEASE-p9:
/bin/freebsd-version
/bin/pgrep
/bin/pkill
/bin/ps
/lib/libcrypto.so.8
/lib/libkvm.so.7
/lib/libutil.so.9
/rescue/[
/rescue/atmconfig
/rescue/badsect
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rcp
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/sbin/ipresend
/usr/bin/file
/usr/bin/fstat
/usr/bin/fuser
/usr/bin/gcore
/usr/bin/kdump
/usr/bin/kgdb
/usr/bin/killall
/usr/bin/limits
/usr/bin/netstat
/usr/bin/ntpq
/usr/bin/openssl
/usr/bin/procstat
/usr/bin/sockstat
/usr/bin/systat
/usr/bin/top
/usr/bin/truss
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w
/usr/include/machine/asmacros.h
/usr/include/machine/frame.h
/usr/include/machine/intr_machdep.h
/usr/include/machine/md_var.h
/usr/include/machine/pcb.h
/usr/include/machine/pcpu.h
/usr/include/machine/pmap.h
/usr/include/machine/smp.h
/usr/include/magic.h
/usr/include/openssl/ssl.h
/usr/include/sys/cpuctl.h
/usr/include/x86/apicvar.h
/usr/include/x86/specialreg.h
/usr/include/x86/x86_smp.h
/usr/include/x86/x86_var.h
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libkvm.a
/usr/lib/libkvm_p.a
/usr/lib/libmagic.a
/usr/lib/libmagic.so.4
/usr/lib/libmagic_p.a
/usr/lib/libprocstat.a
/usr/lib/libprocstat.so.1
/usr/lib/libprocstat_p.a
/usr/lib/librtld_db.so.2
/usr/lib/libssl.a
/usr/lib/libssl.so.8
/usr/lib/libssl_p.a
/usr/lib/libsysdecode.a
/usr/lib/libsysdecode.so.5
/usr/lib/libsysdecode_p.a
/usr/lib/snmp_hostres.so.6
/usr/lib32/libcrypto.a
/usr/lib32/libcrypto.so.8
/usr/lib32/libcrypto_p.a
/usr/lib32/libmagic.a
/usr/lib32/libmagic.so.4
/usr/lib32/libmagic_p.a
/usr/lib32/libssl.a
/usr/lib32/libssl.so.8
/usr/lib32/libssl_p.a
/usr/lib32/libsysdecode.a
/usr/lib32/libsysdecode.so.5
/usr/lib32/libsysdecode_p.a
/usr/libexec/sendmail/sendmail
/usr/sbin/cpucontrol
/usr/sbin/hostapd
/usr/sbin/jail
/usr/sbin/ntp-keygen
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpdc
/usr/sbin/ntptime
/usr/sbin/pmcstat
/usr/sbin/sntp
/usr/sbin/sshd
/usr/sbin/wpa_supplicant
/usr/share/doc/ntp/access.html
/usr/share/doc/ntp/accopt.html
/usr/share/doc/ntp/authentic.html
/usr/share/doc/ntp/drivers/driver18.html
/usr/share/doc/ntp/drivers/driver40.html
/usr/share/doc/ntp/keygen.html
/usr/share/doc/ntp/miscopt.html
/usr/share/doc/ntp/monopt.html
/usr/share/doc/ntp/ntp-keygen.html
/usr/share/doc/ntp/ntp.conf.html
/usr/share/doc/ntp/ntp.keys.html
/usr/share/doc/ntp/ntpq.html
/usr/share/doc/ntp/ntpsnmpd.html
/usr/share/man/man1/file.1.gz
/usr/share/man/man3/libmagic.3.gz
/usr/share/man/man5/magic.5.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/cpucontrol.8.gz
/usr/share/man/man8/ntp-keygen.8.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpdc.8.gz
/usr/share/man/man8/ntpq.8.gz
/usr/share/man/man8/sntp.8.gz
/usr/share/man/mandoc.db
/usr/share/misc/magic
/usr/share/misc/magic.mgc
/usr/share/zoneinfo/Africa/Bissau
/usr/share/zoneinfo/Africa/Juba
/usr/share/zoneinfo/Africa/Khartoum
/usr/share/zoneinfo/Africa/Sao_Tome
/usr/share/zoneinfo/Africa/Windhoek
/usr/share/zoneinfo/America/Adak
/usr/share/zoneinfo/America/Anchorage
/usr/share/zoneinfo/America/Campo_Grande
/usr/share/zoneinfo/America/Cuiaba
/usr/share/zoneinfo/America/Detroit
/usr/share/zoneinfo/America/Grand_Turk
/usr/share/zoneinfo/America/Jamaica
/usr/share/zoneinfo/America/Juneau
/usr/share/zoneinfo/America/La_Paz
/usr/share/zoneinfo/America/Metlakatla
/usr/share/zoneinfo/America/Montevideo
/usr/share/zoneinfo/America/Nome
/usr/share/zoneinfo/America/Sao_Paulo
/usr/share/zoneinfo/America/Sitka
/usr/share/zoneinfo/America/Yakutat
/usr/share/zoneinfo/Antarctica/Casey
/usr/share/zoneinfo/Asia/Famagusta
/usr/share/zoneinfo/Asia/Gaza
/usr/share/zoneinfo/Asia/Hebron
/usr/share/zoneinfo/Asia/Kolkata
/usr/share/zoneinfo/Asia/Macau
/usr/share/zoneinfo/Asia/Tokyo
/usr/share/zoneinfo/Asia/Yangon
/usr/share/zoneinfo/Asia/Yerevan
/usr/share/zoneinfo/Atlantic/Azores
/usr/share/zoneinfo/Atlantic/Cape_Verde
/usr/share/zoneinfo/Atlantic/Madeira
/usr/share/zoneinfo/Europe/Dublin
/usr/share/zoneinfo/Europe/Lisbon
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Enderbury
/usr/share/zoneinfo/Pacific/Fiji
/usr/share/zoneinfo/Pacific/Kiritimati
/usr/share/zoneinfo/Pacific/Midway
/usr/share/zoneinfo/Pacific/Pago_Pago
/usr/share/zoneinfo/Pacific/Tongatapu
/usr/share/zoneinfo/zone.tab
src component not installed, skipped
Installing updates... done.
nextcloud_13 successfully created!


Iocage Start "nextcloud_13"

Code:
Iocage: Command not found.


please help

That command is "iocage" not "Iocage" ;-)
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
That command is "iocage" not "Iocage" ;-)

And that's what came out

iocage start "nextcloud_13"

Code:
Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
	sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __ca																																							 ll__
	return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
	rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in inv																																							 oke
	return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invo																																							 ke
	return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invo																																							 ke
	return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/iocage/cli/start.py", line 54, in																																							  cli
	ioc.IOCage(exit_on_error=True, jail=jail, rc=rc).start()
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1637,																																							  in start
	exit_on_error=self.exit_on_error)
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_start.py", line 64																																							 , in __init__
	self.__start_jail__()
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_start.py", line 12																																							 7, in __start_jail__
	vnet_interfaces = self.conf["vnet_interfaces"]
KeyError: 'vnet_interfaces'



Pay attention to installation procedures I've seen that he skipped something out there
 

wbali

Cadet
Joined
Apr 13, 2018
Messages
3
And that's what came out

iocage start "nextcloud_13"

Code:
Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
	sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __ca																																							 ll__
	return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
	rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in inv																																							 oke
	return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invo																																							 ke
	return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invo																																							 ke
	return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/iocage/cli/start.py", line 54, in																																							  cli
	ioc.IOCage(exit_on_error=True, jail=jail, rc=rc).start()
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1637,																																							  in start
	exit_on_error=self.exit_on_error)
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_start.py", line 64																																							 , in __init__
	self.__start_jail__()
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_start.py", line 12																																							 7, in __start_jail__
	vnet_interfaces = self.conf["vnet_interfaces"]
KeyError: 'vnet_interfaces'



Pay attention to installation procedures I've seen that he skipped something out there

I think i had the same log. Did you tried https://forums.freenas.org/index.ph...pdated-to-use-iocage.61934/page-4#post-449964 ??
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
Try creating the iocage jail with vnet like :
Code:
iocage create -n nextcloud -r 11.1-RELEASE ip4_addr="vnet0|192.168.1.11/24" defaultrouter="192.168.1.2" vnet="on" allow_raw_sockets="1" boot="on"

Change the ip address and default router to match your setup.
 

spotcatbug

Dabbler
Joined
Nov 6, 2017
Messages
43
I went through the entire guide (so awesome) and got almost everything working. I have a few questions though.

First question:

Like others, I had to do the certbot standalone fix to get the certificate files so that apache would start correctly (it started, but there was the error about the missing pem files). Now that it's working correctly, I want a "real" certificate. Is there a way I can force the renewal? I tried:

/usr/local/bin/certbot renew

But it says the certificate isn't up for renewal until July and then it doesn't do the renewal. I don't want to wait until July.

Second question:

Speaking of certificate renewal... the guide shows adding a cron job like so:

* 1 * * 1 ./usr/local/bin/certbot renew --quiet

Is that right? Should there be a dot at the front of the certbot path?

Third question:

In my Nextcloud settings it says "No memory cache has been configured..." I followed the steps in the guide, under "Let's Cache!!!" I didn't see any errors while doing it, however there's the part in the guide "then execute the following commands:" I didn't do any of those commands. I installed php 7.2. Is that correct that I don't do anything else? It says "for php 7.0 and php 7.1" and then further "Additional steps for php 7.1" Nothing for 7.2?

Last question:

This part of the guide:
I don't know what the below command does but it works:
nano /etc/make.conf
Then add to the 2nd line of the file
DEFAULT_VERSIONS+=php7.0

There was no /etc/make.conf file. I made one, but it's weird that I'm then supposed to put the text on the 2nd line of the empty file. I think somebody mentioned that it was really supposed to be
/usr/local/etc/apache24/httpd.conf, not /etc/make.conf. But putting "DEFAULT_VERSIONS+=php7.0" as the second line in that file (also weird - there's a giant block comment at the start of that file) results in syntax error.

My question is: what is the deal with this step of the guide? What's it for? "I don't know what the below command does but it works" What works? Something wasn't working and this fixes it? What didn't work without doing this? This has something to do with SSL?
 
Top