Plugins on UFS sytem?

Status
Not open for further replies.

sgk

Dabbler
Joined
Aug 26, 2011
Messages
21
I have a low memory (now 512 MB, but cannot go more than 1 GB) single HDD 1 TB UFS system (Fujitsu Siemens SCALEO C small factor PC). Can I install Jail PBI and the minDLNA plugin on my FreeNAS UFS system? and how? because the instructions are only for ZFS systems. What about us poor guys who cannot afford 8GB, 4TB 4-core CPU monsters to run ZFS?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I don't think nobody has tried with UFS yet, but it should work.
The only thing to take care is to DO NOT use the plugins path as a subfolder of the plugins jail path...
 

sgk

Dabbler
Joined
Aug 26, 2011
Messages
21
Well, I tried to install the Plugins Jail on a UFS system and it failed. It crushed the browser (both Chromium and Firefox) when attempted to install the Jail PBI. I created two subdirectories (/mnt/volumename/Jails and /mnt/volumename/Plugins] on the UFS volume. Then I downloaded the plugins_jail-x86.pbi (and the miniDLNA pbi) and followed the instructions to install the plugins jail. I tried twice but both times the attempt failed (the browser crushed when I chose the plugins_jail pbi file). One strange thing is that during the second stage of the process of plugins_jail installation when the system asks for the plugins_jail pbi file the form does not include a field for the file's sha256 key. Then as soon as you press the button "upload jail PBI" the browser crashes.
The FreeNAS vesion that I have installed is 8.2-beta3 (upgraded from 8.0.4-RELEASE-p1).
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
What you mean browser crashes?

That doesn't seem to be an issue with freenas at all, a browser can't simply "crash" on a website.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
William, I've seen a couple other complaints of this happening also. I wasn't able to get the user to elaborate either.

@sgk, Beta-3 does not require the SHA256 checksums anymore. Other than that the video shouldn't be much different. I'll update it once we get to the RC release stage.
 

sgk

Dabbler
Joined
Aug 26, 2011
Messages
21
@William Grzybowski. Thanks a lot for the attempts to help. On the other hand, it seems that a browser can actually crash during an operation like the one I described. Probably the WEB inteface for FreeNAS interacts with the browser during the "Upload Jail PBI" operation and crashes the browser. At first I thought it was something wrong with Chromium, so I switched to Firefox and tried again. Well, it happened again during the same operation. So, it probably has to do with the operation and not the browsers.
Maybe it was not discovered (and reported) until now, because, maybe, no one had tried to initialize the Plugins in FreeNAS 8.2.x in a UFS environment. But I strongly believe that excluding the UFS environment would be really bad, because most people use FreeNAS as a cheaper alternative to other NAS systems, which means that they probably use low cost PCs that don't have or cannot take more than 1 or 2 GB of RAM, which in turn excludes ZFS. Now, does that mean that these people will never have the "luxury" of plugins?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I've tried to set up plugins with UFS.

It does not work, but it does not crash the browser, that's a problem on your end.

The reason for it not working is that the plugins jail is trying to create char files under the jail /dev and /proc, which should not be inside the .pbi.
I've successfully hacked the system to remove it and then it worked flawlessly. So yes, you will be able to use plugins with UFS, in 8.2-RELEASE.
 

dzasta

Cadet
Joined
Apr 24, 2012
Messages
2
I've successfully hacked the system to remove it and then it worked flawlessly. So yes, you will be able to use plugins with UFS, in 8.2-RELEASE.

Care to show us how you hacked the system to remove creating char files in the /dev and /proc folders? It would be most appreciated!
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Something like:

# mkdir -p /mnt/tank/jail/jailname
# mkdir -p /mnt/tank/plugins
# tail +9 pbifile.pbi|tar xf - -C /mnt/tank/jail/jailname --exclude "./dev/*" --exclude "./proc/*"
# mkdir /mnt/tank/jail/jailname/dev
# mkdir /mnt/tank/jail/jailname/proc

Be sure to have an Alias configured for your itnerface, then:

# sqlite3 /data/freenas-v1.db "insert into services_pluginsjail values ('/mnt/tank/jail', 1, '/mnt/tank/plugins', 'jailname', 1)"

Now go to GUI and try to start Plugins service.

I wrote this on the top of my head, I won't make any promises...
 

dzasta

Cadet
Joined
Apr 24, 2012
Messages
2
I wrote this on the top of my head, I won't make any promises...

You are the man! I will try this as soon as I get home from work.

Edit: It worked! I had to SSH in through putty to get the sqlite3 command to work as it would not work through the shell.

One last question, is there a way to change the download directory to something outside of the /tank/Jail/ folder?

Thank you so much!~!! Cheers~
 
Joined
Apr 30, 2012
Messages
5
There's something I miss... when running:

tail +9 /mnt/Local/.freenas/pbifile.pbi | tar xf - -C /mnt/Local/jail/jailname --exclude "./dev/*" --exclude "./proc/*"

I got tar: Unrecognized archive format.
 
Joined
Apr 30, 2012
Messages
5
tail +1 for i386 - after extraction, mkdir and sqlite3 plugins still unable to start. Jail look properly configured from Plugins>Management>Settings. In messages i get:

May 1 16:04:11 freenas notifier: cp: /mnt/Local/jail/jailname/etc/resolv.conf: No such file or directory
May 1 16:04:11 freenas notifier: security.jail.allow_raw_sockets: 0 -> 1
May 1 16:04:11 freenas notifier: Configuring jails: sysvipc_allow=YES.
May 1 16:04:11 freenas notifier: Starting jails: cannot start jail "jailname":
May 1 16:04:11 freenas notifier: jail: getpwnam: root: No such file or directory
May 1 16:04:11 freenas notifier: .
May 1 16:04:12 freenas notifier: Stopping jails: cannot stop jail jailname. No jail id in /var/run

I had a look at the dirs, and found out which was the problem. It seems for i386 the destination dir is not properly renamed to the jail name - it was:

plugins_jail-x86 (or something similar... I already renamed :/ )

while it had to be "jailname" (or whatever name you gave to the jail) - so I renamed the dir, and then the plugins service started. At first I though it was ok to have the dir (plugins_jail-x86) named like this, what made me change my mind was the:

/mnt/Local/jail/jailname/etc/resolv.conf: No such file or directory


Thanks William for your help and your prompt replay!
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Somethins with the paths or database is not right...
Please paste:

#ls /mnt/Local/jail
#ls /mnt/Local/jail/jailname
#sqlite3 /data/freenas-v1.db "select * from services_pluginsjail"
 
Joined
Apr 30, 2012
Messages
5
#ls /mnt/Local/jail
./ ../ jailname/

#ls /mnt/Local/jail/jailname
./ .profile boot/ media/ sbin/
../ .sbin/ dev/ mnt/ sys@
.cshrc COPYRIGHT etc/ proc/ tmp/
.headerdir/ access.log lib/ rescue/ usr/
.pbi-hash-list bin/ libexec/ root/ var/

#sqlite3 /data/freenas-v1.db "select * from services_pluginsjail"
/mnt/Local/jail|1|/mnt/Local/plugins|jailname|1


Actually, after renaming it is working for me (and now struggling with minidlna :) ). The error was raised prior the renaming. But there's a bug somewhere for i386 jail pbi install procedure that keeps the name in archive (plugins_jail-x86 or whatever it was) instead of the jail name you gave in web configuration form. I had to rename correctly manually.
 

PrincePaul

Patron
Joined
Feb 26, 2012
Messages
225
Something like:

# sqlite3 /data/freenas-v1.db "insert into services_pluginsjail values ('/mnt/tank/jail', 1, '/mnt/tank/plugins', 'jailname', 1)"


I cant belive ... it works :D
THX.
 

yamaha_764

Cadet
Joined
Oct 9, 2012
Messages
3
Sorry to break in this topic and brining it up. I'm trying to run sabnzbd and sickbeard under freenas 8.2. I installend the jail phi, both the sabnzbd and sickbeard pbi's but when i try to switch them "on" it just gives me an error.. any thoughts why it may not work ? Reason i'm posting here is because i'm on UFS, I had it al working in ZFS but I really want to stick with UFS due to the lack of space otherwise. Thanks in advance!
 

yamaha_764

Cadet
Joined
Oct 9, 2012
Messages
3
No, neither of those plugins work, i tried them all. Tried all the latest versions, both freeness and the plugins.. It tells me the plugins are installend successfully and once I click them it gives me " some error error occurred ".. Have really no clue what i did wrong...
 
Status
Not open for further replies.
Top