Your comments

Just to clarify, are you asking the OP or me? I ask because I did mention an auto start script.

Sorry,


Yes even though it is made for Nas4Free, It helped me install it for FreeNAS. You have to do the additional steps I put in there though.


My server is still running strong. I even have Comixology Theme by Scott running on it, with the self registration and everything.

I have found many, many, I mean many, of people giving just a little of what I needed to get this running. But a couple of days ago, I got everything down, had it working earlier but now it's working like a plug in. I take no credit and the best tutorial I can find would be here: http://forums.nas4free.org/viewtopic.php?t=11425


It's the 3rd post down.


Problem 1: It's not in English. (Google translate!)

Problem 2: No one really seems to tells you how to properly do the mounts.

It's outside the jail and you would mount inside of it. Like:

What the install tells you to do:

mount -t fdescfs fdesc /dev/fd

What you need to do from outside the jail:

mount -t fdescfs fdesc /mnt/Test/jails/Ubooquity/dev/fd

Problem 3: If your NAS restarts, you will have to go in and startup Ubooquity all over again. No one has any info on how to set it up as a service, like the rest of the plugins. This took me forever to figure out. I had to mod it off another project I was working here: https://forums.freenas.org/index.php?threads/how-to-install-plexconnect-for-atv.18315/

In Part 2: Creating Boot Script (change names where needed)


I guess I should try and take the time to make a tutorial here, but, it's possible someone can do it better.

I realize that it's been a while. I would like to add that I have found a way to prevent this error.


To explain, I am not taking credit for this just telling you how it happened. A friend and co-worker of mine liked my idea and began work on this. He was able to pull a string off of the main files here and tweaked it in some way and made it work. In a addition to this there was an issue with installing the jdk and doing the necessary mounts. We found that it needs to be done outside the jail and mounted within it.


Here is the string:

nohup java -Xmx512M -Xms512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar Ubooquity.jar -port 2202 -webadmin 2 > 1 &


The catch to the string is that it needs to be one line. The reliable way to run it is to save it in a SH file as one line then run the file.


Here is the example of preforming the mount:

What the install tells you to do (and most guides you will find):

mount -t fdescfs fdesc /dev/fd

What you need to do from outside the jail:

mount -t fdescfs fdesc /mnt/Test/jails/Ubooquity/dev/fd


P.S. Also found a way to make it auto start as a service within the jail, but that's not what this post is about. I'll post if asked. That took me some research and reverse engineering (changing some words really) of someone else's start up for another project I was doing.

OK!


So, my own ignorance was the cause of my problems. For what ever reason, your updated file was not moving over and I never noticed. In addition to this, I spent more time focusing on the Tampermonkey then reading here, cause it works without it. I did have one problem with the proxyPrefix+"/theme/entrypoint.js. I changed it to proxyPrefix+"/themes/entrypoint.js and it worked flawlessly. So, once again my day was ruined by my own eyes.


Thanks for making this, and thanks for the quick responses to my dumb questions.

Ok, so I found that it couldn't find ubooquity/scripts/sha256-min.js. I changed this to my servers location of that file and the register page creates the hash. This is probably due to me not making those changes that you suggested yet.


Additionally, I feel that the tampermonkey does not work because it is looking for /ubooquity/theme/webadmin.js. I don't have that file, I do have webadmin.css.


Side note, I don't have a "theme" folder. I have a "themes" folder. I know it's a small change but you wouldn't believe how many times I missed that while I was attempting to mod my own theme. I stopped modding that when I saw how awesome this one is. Which is why I need it to work. Lol.


Side side note, you renamed inject.js to entrypoint,js, that confused me.

For me, neither the injector nor the register.htm page work. From what I can tell, it is looking for hard coded files that I do not possess.

I know that this is pretty old, but I have a very similar issue. Here is the error I can find in the logs:


20161024 08:30:29 [main] ERROR com.ubooquity.Ubooquity - Exiting application because of exception
java.io.IOException: Bad file descriptor
   at java.io.FileInputStream.available(Native Method) ~[na:1.8.0_102]
   at java.io.BufferedInputStream.available(BufferedInputStream.java:410) ~[na:1.8.0_102]
   at com.ubooquity.Ubooquity.main(SourceFile:283) ~[Ubooquity.jar:1.10.1]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_102]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_102]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102]
   at com.ubooquity.e.c.a(SourceFile:823) [Ubooquity.jar:1.10.1]
   at com.ubooquity.Launcher.main(SourceFile:10) [Ubooquity.jar:1.10.1]



I'm sure this is of my own doing but I'm not sure where to take it from here.