Plugins on UFS sytem?

Discussion in 'Plugins' started by sgk, Apr 21, 2012.

  1. sgk New Member

    Member Since:
    Aug 26, 2011
    Message Count:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sgk, Apr 21, 2012

    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?
  2. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, Apr 21, 2012

    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...
  3. sgk New Member

    Member Since:
    Aug 26, 2011
    Message Count:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sgk, Apr 23, 2012

    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).
  4. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, Apr 23, 2012

    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.
  5. ProtoSD Active Member

    Member Since:
    Jul 1, 2011
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 23, 2012

    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.
  6. sgk New Member

    Member Since:
    Aug 26, 2011
    Message Count:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sgk, Apr 24, 2012

    @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?
  7. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, Apr 24, 2012

    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.
  8. sgk New Member

    Member Since:
    Aug 26, 2011
    Message Count:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sgk, Apr 24, 2012

    Thanks a lot man! I'll be waiting for 8.2-RELEASE
  9. dzasta New Member

    Member Since:
    Apr 24, 2012
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    0
    dzasta, Apr 24, 2012

    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!
  10. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, Apr 25, 2012

    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...
  11. dzasta New Member

    Member Since:
    Apr 24, 2012
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    0
    dzasta, Apr 25, 2012

    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~
  12. Emidio Reggiani New Member

    Member Since:
    Apr 30, 2012
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Italy
    Emidio Reggiani, May 1, 2012

    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.
  13. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, May 1, 2012

    tail +9 is for amd64, for i386 I _think_ it is tail +6
  14. Emidio Reggiani New Member

    Member Since:
    Apr 30, 2012
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Italy
    Emidio Reggiani, May 1, 2012

    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!
  15. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, May 1, 2012

    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"
  16. Emidio Reggiani New Member

    Member Since:
    Apr 30, 2012
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Italy
    Emidio Reggiani, May 1, 2012

    #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.
  17. PrincePaul Member

    Member Since:
    Feb 26, 2012
    Message Count:
    180
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Germany
    Home page:
    PrincePaul, Jun 10, 2012


    I cant belive ... it works :D
    THX.
  18. yamaha_764 New Member

    Member Since:
    Oct 9, 2012
    Message Count:
    3
    Likes Received:
    0
    Trophy Points:
    0
    yamaha_764, Oct 9, 2012

    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!
  19. William Grzybowski Active Member

    Member Since:
    May 27, 2011
    Message Count:
    1,657
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    Curitiba, Brazil
    William Grzybowski, Oct 9, 2012

    Does any other plugin work? transmission, minidlna, firefly?
  20. yamaha_764 New Member

    Member Since:
    Oct 9, 2012
    Message Count:
    3
    Likes Received:
    0
    Trophy Points:
    0
    yamaha_764, Oct 9, 2012

    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...

Share This Page