This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[HOWTO] Install Owncloud inside a Jail
-
fizzgig656
- Advanced User

- Posts: 155
- Joined: 05 Dec 2012 16:10
- Location: england
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
Sorry not sure if its because im getting tired/late or just another dizzy newby moment. but this isnt working for me. Basically id like to install the latest Owncloud into a jail. Basically starting a fresh. ive setup a jail (not sure if correctly) and have followed the first page or two of this and i couldn't connect to the webpage. I have read further down and cant run pkg_add -r php5-extensions or any of the other pkg_add -r *********. is the script up to date for the latest version of owncloud? what else do i need to do. Shall i flatten the jail and start again?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.
- Nostalgist92
- experienced User

- Posts: 100
- Joined: 09 Feb 2013 00:04
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
Try this one viewtopic.php?p=59849#p57994
11.0.0.4 - Sayyadina (revision 3330) x64-full on Intel(R) Core(TM) i7-4820K CPU @ 4.20GHz | Corsair Vengeance Pro 64GB (4x8GB) CMY16GX3M2A1600C9 | 12 x 6TB WD RED RAIDZ2 + 2 x 256GB SSD Drives
-
fizzgig656
- Advanced User

- Posts: 155
- Joined: 05 Dec 2012 16:10
- Location: england
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
that seemed to be installing answering Y to most questions. but i get an error when trying to start. ive check the rc.conf within the jail and the lighttpd_enable=YES is in there.
and advise please.
heres my output.
and advise please.
heres my output.
Code: Select all
Attempting to start webserver.
If it fails and says Cannot 'start' lighttpd, manually add
lighttpd_enable=YES to /etc/rc.conf
Command being run here is:
/usr/local/etc/rc.d/lighttpd start
################################################
ps: /boot/kernel/kernel: No such file or directory
Starting lighttpd.
2015-11-04 18:28:41: (network.c.542) SSL: couldn't read X509 certificate from '/root/server.pem'
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd
################################################
It looks like we finished!!! NICE
Now you can head to your ip:port as defined at the start of this script
via your browser and complete your OwnCloud setup!
Thanks to fsbruva for creating the original script
Modifications made by Nostalgist92
################################################
root@OwnCloud:/ #
root@OwnCloud:/ # /usr/local/etc/rc.d/lighttpd start
ps: /boot/kernel/kernel: No such file or directory
Starting lighttpd.
2015-11-04 18:31:47: (network.c.542) SSL: couldn't read X509 certificate from '/root/server.pem'
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.
-
Ondalf
- NewUser

- Posts: 1
- Joined: 16 Oct 2015 14:51
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
Same happened me tonight as well. I have a great hunch, that is caused by not-enough-permissions-or-other-similar-stuff by jail manager. So, add "Enable mount devfs" (I assume urandom or similar is required for certificate creation, as openssl tended to crash by running the command myself from CLI). It was unable to ask for the password and that's why whole certificate -creation process in the install script will fail. Heh, seems I gave it "allow.chflags" as well, and now read, what it does from jail man page. After setting those things said, rebooted server, it surprised me and begun to work.
TL;DR OpenSSL bugs. More permissions, kthxbai.
TL;DR OpenSSL bugs. More permissions, kthxbai.
Nas4free 10.2.0.2 - Prester (revision 2545) with jails and CrashPlan
3U SC833, X7DBE, Xeon L5420, 20GB ECC, Dell Perc H310 flashed to generic LSI IT-mode, 8x4TB, 20TB usable
Coming soon(TM): 2x SSD for the rescue!
3U SC833, X7DBE, Xeon L5420, 20GB ECC, Dell Perc H310 flashed to generic LSI IT-mode, 8x4TB, 20TB usable
Coming soon(TM): 2x SSD for the rescue!
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
please read second Post by Nostalgist92 and use new howto: viewtopic.php?f=79&t=9383
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
papaschlumpf88
- Starter

- Posts: 17
- Joined: 25 Apr 2017 19:43
- Status: Offline
Re: [HOWTO] Install Owncloud inside a Jail
Now I got it.
jexec Cloud without the csh helps a lot. But I also have to change the Folder as well from
/usr/local/www/nextcloud/Backup_MySQL/nextcloud-sqlbkp.bak to
/mnt/SSD/thebrig/Cloud/usr/local/www/nextcloud/Backup_MySQL/nextcloud-sqlbkp.bak
Now I stop the cloud from the beginning to the end of the backup.
This is the CloudBackup.sh now
jexec Cloud without the csh helps a lot. But I also have to change the Folder as well from
/usr/local/www/nextcloud/Backup_MySQL/nextcloud-sqlbkp.bak to
/mnt/SSD/thebrig/Cloud/usr/local/www/nextcloud/Backup_MySQL/nextcloud-sqlbkp.bak
Now I stop the cloud from the beginning to the end of the backup.
This is the CloudBackup.sh now
Code: Select all
#!/bin/sh
echo // Stop Nextcloud
jexec Cloud /usr/local/etc/rc.d/lighttpd stop
echo // Create a backup from the MySQL database, to the Nextcloud folder /Backup_MySQL
jexec Cloud mysqldump --single-transaction -h localhost -u root -pPassword nextcloud > /mnt/SSD/thebrig/Cloud/usr/local/www/nextcloud/Backup_MySQL/nextcloud-sqlbkp.bak
echo // Sync the backup from the Cloud SSD with the RaidZ2 Cloud Backup Archiv
rsync -Aax /mnt/SSD/thebrig/Cloud/usr/local/www/nextcloud/ /mnt/RaidZ2/Backup_Cloud_komplett_inc_DB/nextcloud-backup_`date +"%Y%m"`/
echo // Start Nextcloud
jexec Cloud /usr/local/etc/rc.d/lighttpd start
echo // Done! Backup successful
11.2.0.4 - Omnius (Revision 6315) RootOnZFS | x64-full auf Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz | ASRockRack C236 WSI | 16223MiB ECC Kingston RAM | APC BackUPS Pro | 6 x 6TB WD RED RAIDZ2 | 2 x 1TB SSD Mirror