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!

[HOWTO] Install Owncloud inside a Jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by jasch »

Ok working
And i Must put Ash over my Head again for not reading through the whole conf file.
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

vish74
NewUser
NewUser
Posts: 4
Joined: 18 Oct 2013 09:54
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by vish74 »

How to put lighttpd process for auto start when start jail using theBrig?

oleost
NewUser
NewUser
Posts: 12
Joined: 11 Sep 2012 10:15
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by oleost »

Made a mistake installing this in wrong jail :/

Any advice how to remove the stuff the installer installed?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

oleost wrote:Made a mistake installing this in wrong jail :/

Any advice how to remove the stuff the installer installed?
deleted affected jail and create new one , using thebrig is really easy.
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

oleost
NewUser
NewUser
Posts: 12
Joined: 11 Sep 2012 10:15
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by oleost »

raulfg3 wrote:
oleost wrote:Made a mistake installing this in wrong jail :/

Any advice how to remove the stuff the installer installed?
deleted affected jail and create new one , using thebrig is really easy.
Well, the issue was that I installed all this on my jail that had Plexmediacenter and PlecConnect running, and I want to have that jail as clean as possible. Anyway, I just deleted everything and made a new jail from scratch.

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

Hi to All,
I have managed to install owncloud inside jail.It is working but I will need help with increasing max upload size,what do I need to edit?
Thanks to all

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

answer some post ago: viewtopic.php?f=79&t=1565#p25818
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

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

Hi Raul,
I tried that but is not functioning.i created via the na4free file editor .user.ini file and put inside upload_max_filesize = "512M" restart the webserv but max upload fili size is 2MB. Did I do corect?
Thanks

I installed owncloud 5.0.13

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

please do a ls -l to see that is created in the correct path and that have correct owner and permission
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

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

this are prtscn of the folders www/owncloud
You do not have the required permissions to view the files attached to this post.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

both screen captures DO NOT works to see what I need.

please open a shell ( using putty if your desktop PC is windows), and do a ls -l in both paths to see permissions and owner

you need a minimun unix knowledge to operate a BSD system.
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

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

Sorry Raul,
But I am learning, this is the prtscn that you want to look.
thanks
You do not have the required permissions to view the files attached to this post.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

take control of .user.ini :

Code: Select all

chown www.www .user.ini
chmod 777 .user.ini

and edit using embeded file editor on Advanced|File Editor to edit desired value (actual .user.ini is 0 size so I suspect that is clear = no content)
this may work

so stop your jail, wait a bit and restart, this time must work
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

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

Hi Raul,
I did everything like you told me but max I can get is 8MB even do I put in .user.ini upload_max_filesize = "512M"

do i need to do something else
thanks
You do not have the required permissions to view the files attached to this post.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

guljo wrote:do i need to do something else
no, sorry i'm out of ideas, perhaps some other user can help you.
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

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 538
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by crest »

guljo wrote:Hi Raul,
I tried that but is not functioning.i created via the na4free file editor .user.ini file and put inside upload_max_filesize = "512M" restart the webserv but max upload fili size is 2MB. Did I do corect?
Thanks

I installed owncloud 5.0.13
You should add post_max_size = "512M" to .user.ini (refered to viewtopic.php?f=79&t=1565#p25822 then it should work as expected.

crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

I did your suggestion but more then 8M ,I can not get it
guljo

luckyspiff
NewUser
NewUser
Posts: 8
Joined: 17 Nov 2013 12:09
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by luckyspiff »

Code: Select all

cgi.assign = ( ".php" => "/usr/local/bin/php-cgi" )
The above statement in lighttpd.conf results in the error message in /var/log/lighttpd/error.log:

Code: Select all

2013-11-23 20:25:54: (server.c.987) WARNING: unknown config-key: cgi.assign (ignored) 
I guess since we use fastcgi, it isn't needed and should be removed to not spam the error.log on every start.

guljo
NewUser
NewUser
Posts: 10
Joined: 06 Dec 2012 22:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by guljo »

Hi to all

Did somebody try to install seafile in a jail.It is Open Source Cloud Storage

mamat_do
NewUser
NewUser
Posts: 1
Joined: 13 Jul 2012 09:43
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by mamat_do »

Dear ...

I succesfuly to install owncloud6 in Nas4free via thebrig08 jail (virtualbox on win xp) using owncloud_injail.sh script from this forum. I also install samba36-smbclient package to enable external storage via samba in nas4free.

The problem is, I always have to manually restart the service lighttpd that ownCloud is not experiencing the error "Warning: smbclient is not installed".
After lighttpd service is manually restarted, then external storage via samba module becomes active
Please enlightenment, so that smbclient can be activated automatically

NB: in the /etc/rc.conf already a parameter lighttpd_enable = "YES"

Thank you for your attention
Sorry for my bad english

taurus
NewUser
NewUser
Posts: 1
Joined: 17 Feb 2014 23:35
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by taurus »

Hi,

I am building the home cloud... based on Nas4Free + owncloud in jail.
Read the forum a lot and probably the answer is: "you need VIMAGE..." but still would like to confirm this.

Short story:
client (phone/laptop/browser) looses connection to owncloud through forwarded port on router after ~20-60 minutes since server boot.
At the same time everything continues works perfectly into LAN.
Full reboot of server helps only.

Installed:
Nas4Free 9.2.0.1 embedded (revision 943), TheBrig 0.8, owncloud 6.0.1 (stable) into jail (type full) with mysql backend.

Full story:
As soon as server start, all the services works perfectly inside LAN and through forwarder ports as well.
After 20-60 minutes owncloud reachable via 10.0.0.101:443 but NOT via my.no-ip.info:443 (timeout).
I have installed another test jail with lighttpd only (without PHP/MySQL/... ) it has the same problem as above.
All the time the SSH and Nas4Free WEB were reachable through all the addresses:
my.no-ip.info:2222, 10.0.0.100:22, my.no-ip.info:1443 and 10.0.0.100:1443
jail/lighttpd/mysql/netif restarts gives nothing. Only server reboot fix the issue on some time.
Logs contains nothing interesting (as for me). TCPdump into jail says that packets stops comming.
TCPdump on host machine cannot be installed due to embedded installation. PF/IPFILTER/IPFW filters all are empty.

Do I need to kernel with VIMAGE? (It looks similar to DLNA problems.)

Configuration:
router has IP 10.0.0.1
server has IP 10.0.0.100 , nas4free listen on 1443, SSH listen on 22.
jail 1 with owncloud has IP 10.0.0.101, owncloud listens on 443.
jail 2 with test lighttpd has IP 10.0.0.102, listen on lighttpd 444

Routes updates dynamic DNS record on no-ip.info, port forwarding on routes is the following:
my.no-ip.info:2222 forward to 10.0.0.100:22
my.no-ip.info:1443 forward to 10.0.0.100:1443
my.no-ip.info:443 forward to 10.0.0.101:443
my.no-ip.info:444 forward to 10.0.0.102:444

Tnx in advance!

mrhanman
NewUser
NewUser
Posts: 6
Joined: 28 Feb 2014 15:38
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by mrhanman »

In case anyone was having trouble with the install script, I fixed a few small bugs in it dealing with the version, and not downloading a couple php modules required for thumbnail generation.
You do not have the required permissions to view the files attached to this post.

rhettabutler
NewUser
NewUser
Posts: 4
Joined: 06 Mar 2014 15:32
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by rhettabutler »

First off, many thanks to all contributors to this thread, and all contributors to the nas4free forum.

I am having a problem with mnt my pictures, media...in fstab for owncloud.

My Pictures resides at /mnt/WD500/Media/Pictures for example.

So in fstab in Jail settings I have listed:

/mnt/WD500/Media/Pictures /mnt/WD500/Jail/owncloud/mnt/Pictures nullfs rw 0 0

When I access owncloud, I cannot see Pictures. Not sure where I am messing up.

Thanks in advance for help.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

rhettabutler wrote:When I access owncloud, I cannot see Pictures. Not sure where I am messing up.
is not enought to mount with fstab folders inside the jail, you need to configure owncloud to know where are the folders, so you need to edit his config file.

search in the onwclod forum for more info: http://doc.owncloud.org/server/5.0/admi ... onfig.html

http://doc.owncloud.org/server/5.0/admin_manual/
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

inazr
NewUser
NewUser
Posts: 3
Joined: 07 Feb 2014 08:37
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by inazr »

Hi,

I am unable to start my lighttpd .

tried both:
/usr/local/etc/rc.d/lighttpd start
/usr/local/etc/rc.d/lighttpd onestart

Error: "(server.c.614) No configuration abailable. Try using -f option."

Jail IP: 192.168.1.41

Added:
modified install script
.../Jails/ownCloud/etc/rc.conf -> ...sh, conf not allowed
.../Jails/ownCloud/usr/local/etc/lighttpd/lighttpd.conf -> ...sh, conf not allowed
You do not have the required permissions to view the files attached to this post.

dundermiflin
Starter
Starter
Posts: 27
Joined: 12 Oct 2013 14:11
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by dundermiflin »

I cant finish the installation, it always get the message error lighttpd
Jail ip is 192.168.1.201, jail flavor is 9.1, full jail , and the mod script three posts before

All seems go well but lighttpd does not start

Ps:which will be the right path to test if own cloud is listening ?
Https://192.168.1.201:443 ??

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

dundermiflin wrote:I cant finish the installation, it always get the message error lighttpd
Jail ip is 192.168.1.201, jail flavor is 9.1, full jail , and the mod script three posts before

All seems go well but lighttpd does not start

Ps:which will be the right path to test if own cloud is listening ?
Https://192.168.1.201:443 ??
Prior to install , you need to edit script owncloud_injail.sh and configure for your NAS & your jail,

this are the first lines that explain what you need to configure:

Code: Select all

#!/bin/sh
######## START OF CONFIGURATION SECTION####################################


#   In order to use this script, the following variables must be defined 
#   	by the user:
#
#     server_port - This value is used to specify which port Owncloud 
#	will be listening to. This is necessary because some installations of 
#	N4F have had trouble with the administrative webgui showing up, even 
#	when browsing to the jail's IP.
#     
#	  server_ip - This value is used to specify which ip address Owncloud 
#	will be listening to. This is necessary because it keeps the jail from
#   listening on all ip's
#
#    owncloud_version - This is the version of owncloud you would like 
#	to download.


server_port="443"
server_ip="192.168.42.11"
owncloud_version="6.0.1"
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

dundermiflin
Starter
Starter
Posts: 27
Joined: 12 Oct 2013 14:11
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by dundermiflin »

raulfg3 wrote:
Prior to install , you need to edit script owncloud_injail.sh and configure for your NAS & your jail,

this are the first lines that explain what you need to configure:

It was correctly edited with my IP and jail.....anyway (Don't know why) now it's working but..... :

Image

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

sorry I din't see this error . so my suggest is to search for webdav problems in owncloud install to be sure what happens.

PD:perhaps do you install a more recent owncloud file that is used in this howto?
If yes please post what version do you install.
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

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Owncloud inside a Jail

Post by raulfg3 »

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

Post Reply

Return to “Jails”