0
Under review

Ubooquity don't save settings

Ponch 4 years ago updated by Tom 4 years ago 4

Hi,

I installed your product on my NAS Dlink DNS-320L (http://dlink.vtverdohleb.org.ua/Add-On/), and I meet 2 problems:
- First, after every restart of the nas, all the parameters are lost and it is necessary to me to re-configure everything
- As it is limited in number of imported books, because after more than 2000 imports, interface shows me no more book, she is black and empties, the system is slow and it is necessary to me to restart the nas and one returns to the problem n°1...


Actually, a strange thing which I find in the installation of the software: the arborescence of the program is in the path / mnt / HD / HD_a2 / Nas_Prog / Ubooquity, while the file log, themes and préférences.xml are in the root of the nas!
But, the logs or preferences.xml are'nt not save after reboot...
The permissions the folder seems good :
drwxrwxrwx 7 root root 4096 Mar 3 13:12 Ubooquity
drwxrwxrwx 2 root root 4096 Mar 2 23:58 _install
drwxrwxrwx 6 root root 4096 Feb 29 11:43 java8
drwxrwxrwx 10 root root 4096 Mar 2 21:00 sshd
And the content of Ubooquity :
-rwxr-xr-x 1 root root 20648745 Mar 3 11:25 Ubooquity.jar
-rw-r--r-- 1 root root 17793844 Mar 2 23:58 Ubooquity.jar.old
-rwxr-xr-x 1 root root 746 Mar 2 23:58 apkg.rc
-rw-r--r-- 1 root root 32 Mar 2 23:58 apkg.sign
-rw-r--r-- 1 root root 951 Mar 2 23:58 apkg.xml
drwxr-xr-x 2 root root 4096 Mar 2 23:58 bin
-rwxr-xr-x 1 root root 99 Mar 2 23:58 clean.sh
-rw-r--r-- 1 root root 886 Mar 2 23:58 detail.xml
-rwxr-xr-x 1 root root 1007 Mar 2 23:58 init.sh
-rwxr-xr-x 1 root root 62 Mar 2 23:58 install.sh
drwxr-xr-x 2 root root 4096 Mar 2 23:58 logs
-rwxr-xr-x 1 root root 35 Mar 2 23:58 preinst.sh
-rwxr-xr-x 1 root root 361 Mar 2 23:58 remove.sh
-rwxr-xr-x 1 root root 763 Mar 2 23:58 start.sh
-rwxr-xr-x 1 root root 271 Mar 2 23:58 stop.sh
drwxr-xr-x 7 root root 4096 Mar 3 18:32 themes
drwxrwxrwx 2 root root 4096 Mar 3 18:03 tmp
drwxr-xr-x 5 root root 4096 Mar 2 23:58 web
And the content of the root :
drwxr-xr-x 2 root root 2048 Mar 3 18:02 bin
drwxr-xr-x 4 root root 1024 Mar 3 18:03 cache
drwxrwxrwt 3 root root 3680 Mar 3 18:02 dev
drwxr-xr-x 15 root root 2048 Mar 3 18:03 etc
drwxr-xr-x 2 root root 1024 Mar 3 18:03 fonts
drwxr-xr-x 4 root root 1024 Jul 28 2015 home
drwxr-xr-x 2 root root 6144 Jan 1 2000 lib
lrwxrwxrwx 1 root root 11 Jul 28 2015 linuxrc -> bin/busybox
drwxr-xr-x 2 root root 1024 Mar 3 18:03 logs
drwx------ 2 root root 12288 Jul 28 2015 lost+found
drwxr-xr-x 8 root root 1024 Mar 3 18:02 mnt
drwxrwxrwt 2 root root 180 Jan 1 2000 mydlink
drwxr-xr-x 2 root root 1024 Jan 1 2000 opt
-rw-r--r-- 1 root root 1712 Mar 3 20:12 preferences.xml
dr-xr-xr-x 91 root root 0 Jan 1 1970 proc
drwxr-xr-x 2 root root 1024 Jul 28 2015 root
drwxr-xr-x 2 root root 1024 Jan 1 2000 sbin
drwxr-xr-x 11 root root 0 Jan 1 1970 sys
drwxr-xr-x 3 root root 1024 Mar 3 18:08 themes
drwxr-xr-x 5 root root 1024 Mar 3 21:30 tmp
-rw-r--r-- 1 root root 7360512 Mar 3 20:13 ubooquity-4.h2.db
-rw-r--r-- 1 root root 99 Mar 3 18:03 ubooquity-4.lock.db
drwxr-xr-x 7 root root 1024 Jan 1 2000 usr
drwxr-xr-x 10 root root 1024 Mar 3 19:47 var
-rw-r--r-- 1 root root 64 Mar 3 18:04 webadmin.cred
I had changed the rights on files " préférences.xml " but it put back to me the default permissions... May I copy this file (and the other files of Ubooquity) in the Nas_Prog / Ubooquity folder and ask the program to use these? If yes, where to inform this parameter?

Can you help me please to solve my problems, because this product is very good and corresponds exactly to what I looked for!

Thank you.
Ponch.

Under review

I'll post here the answer I sent you by email so that other users can build upon it if they have other ideas.


Installation directory (where you put Ubooquity.jar) and working directory are not necessarily the same. It depends on where you launch Ubooquity from.

Running any application in a system directory is not a good idea, your working directory should be a user directory you have created somewhere in your own files (not the OS files), and for which the user running Ubooquity has writing permission.

To do that you can either "cd" in your working directory before launching Ubooquity, or use the "-workdir" command line option: it allows you to specify where Ubooquity should create its own files (database, logs, preferences, cache, etc).

I don't know how to install Ubooquity on my NAS in command lines... How to install a .jar, by defining all the installation in the same directory? JAVA is installed on my NAS, but it tells me that the java -jar command does not exist ...

I preferred to describe my whole problem to be the most precise and obtain the help the most adapted by an user who would have met the same difficulties... Thanks !!

Hi,

After days of searches I found this link,: http://forums.dlink.com/index.php?topic=63392.0 which demonstrates that the problem is not specific to me even, but seems general! I do not know who develops the addon for Dlink, but it does not seem stable. Damage... Furthermore, I noticed that the fact of installing Ubooquity on my NAS, does not allow me any more to reach my network readers who pontent towards the NAS, with the message: "Connection was not restored because the name is already used", and impossible to reach it... Thanks.

I don't know either who has developed the DLink addon.

But installing Ubooquity manually on a NAS should not be complicated provided you have some knowledge of the Linux command line. The only problem could come from specific features of the different brands of NAS.


There are already tutorials for Synology and Asustor NAS on the wiki.