Code: Select all
Incorrect parameter
Configuration is locked
EDIT: 'solved' by removing sabnzbd.ini and creating a new one via the SAB wizard.
Code: Select all
Incorrect parameter
Configuration is locked
Yes, complete_dir is in [misc]. See below. Maybe sabRE does not like the relative path? Or the space?realgeizt wrote:Just pushed an update, that bug is fixed. I always tested by enqueueing URLs...
The problem you have when importing from SABnzbd is strange, it works here. sabRE parses the ini file and searches for the key "complete_dir" in the section "misc". Does your ini file have this line? If you want to play around with the settings import just look into settings.coffee, on the top of the file is the definition what settings will be imported from what key in the ini file (no coding required).
Code: Select all
$ grep -i -n -e '\[' -e complete_dir ~/.sabnzbd/sabnzbd.ini
2:[misc]
101:complete_dir = Downloads/complete
149:[logging]
155:[growl]
162:[nzbmatrix]
166:[newzbin]
173:[nzbxxx]
176:[servers]
177:[[newszilla6.xs4all.nl]]
190:[[newsreader3.eweka.nl]]
203:[categories]
204:[[*]]
Same result:realgeizt wrote:It's the relative path. Should be fixed with latest push, sabRE now interprets the path relative to /home/user/.sabnzbd/.
Code: Select all
sander@flappie:~/git/sabRE$ git pull
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 4 (delta 3), reused 4 (delta 3)
Unpacking objects: 100% (4/4), done.
From https://github.com/realgeizt/sabRE
cf40871..1d2e60d master -> origin/master
Updating cf40871..1d2e60d
Fast-forward
cs_app/settings.coffee | 3 +++
1 file changed, 3 insertions(+)
sander@flappie:~/git/sabRE$ ./run.sh
info: starting up...
--------------------------------------------------------------------------------
----------------------------- welcome to sabRE -----------------------------
--------------------------------------------------------------------------------
it seems this is the first start of the application because no configuration
file could be found. also it seems that SABnzbd is configured on this system,
which makes it possible to setup sabRE automatically because most things can be
read from sabnzbd.ini.
do you want to run the configuration wizard now? (Y/n)
reading from /home/sander/.sabnzbd/sabnzbd.ini...
set "sabPort" to "8080"
set "sabApiKey" to "b463b755ad289e4fd2e2e7319ab6eacf"
it seems some settings could not be read from sabnzbd.ini.
you need to configure them using the wizard.
do you want to run the wizard now to configure other settings? (Y/n)
Code: Select all
git clone https://github.com/realgeizt/sabRE.git
cd sabRE/
npm install
chmod +x run.sh
./run.sh
No, in my case: /home/sander/Downloads/complete/ . In general: ~/Downloads/complete/realgeizt wrote:Hmm, how does your SABnzbd interpret the relative path? If you use "Downloads/complete", where get your files saved? On my setup, they would get saved to "/home/user/.sabnzbd/Downloads/complete". Also the directory has to exist when importing settings.
Default Base Folder: /home/sander
...
Downloads/complete
The webGUI shows my_home, which is determined by sabnzbd.DIR_HOME, which has an detailed process how it is determinedrealgeizt wrote:It makes sense what you say, and I would have thought that it works this way. But why does my SABnzbd not behave this way? In Settings->Folders, SABnzbd states on top of the page: "Default Base Folder: /home/user/.sabnzbd" and I read the only way to change this folder is by running SABnzbd with a special argument on startup, but I did not append any arguments... The behavior of that "Default Base Folder" is a little strange I think. I set it to use a config file by specifying the path "/home/user/.sabnzbd/sabnzbd.ini", the "Base Folder" gets "/home/user/.sabnzbd/". If I don't specify a path, the "Base Folder" is "/home/services/sabnzbd/", which is where SABnzbd is installed, but "services" is not the user SABnzbd is run as... Any idea? I will investigate this further the next days.
Code: Select all
sander@haring:~/git/sabnzbd$ grep -ir "sabnzbd.DIR_HOME" *
sabnzbd/misc.py: path = path.replace('~', os.environ.get('HOME', sabnzbd.DIR_HOME), 1)
sabnzbd/utils/pathbrowser.py: path = sabnzbd.misc.real_path(sabnzbd.DIR_HOME, path)
sabnzbd/api.py: header['my_home'] = sabnzbd.DIR_HOME
sabnzbd/interface.py: conf['my_home'] = sabnzbd.DIR_HOME
SABnzbd.py: sabnzbd.DIR_HOME = sabnzbd.DIR_PROG
SABnzbd.py: sabnzbd.DIR_HOME = specials['Personal']
SABnzbd.py: sabnzbd.DIR_HOME = '%s\\Documents' % user
SABnzbd.py: sabnzbd.DIR_HOME = root
SABnzbd.py: sabnzbd.DIR_HOME = sabnzbd.DIR_HOME.encode(codepage)
SABnzbd.py: sabnzbd.DIR_HOME = win32api.GetShortPathName(sabnzbd.DIR_HOME)
SABnzbd.py: sabnzbd.DIR_HOME = home
SABnzbd.py: sabnzbd.DIR_HOME = home
SABnzbd.py: sabnzbd.DIR_HOME = os.path.dirname(inifile)
SABnzbd.py: sabnzbd.cfg.set_root_folders(sabnzbd.DIR_HOME, sabnzbd.DIR_LCLDATA)
sander@haring:~/git/sabnzbd$
Code: Select all
$ curl --silent 'http://localhost:11111/api?mode=queue&start=START&limit=LIMIT&output=xml' | grep -i my_home
<my_home>/home/sander</my_home>
The files need to be put into a tar archive for easy downloading. Additionally SABnzbd's extraction of passworded rar files did never work for me, so this can also be done by sabRE. Of course that could by changed by integrating a small file explorer into sabRE and let the user browse the directories that SABnzbd created for each download, but it is not needed for my purposes.I still don't understand why sabRE needs it's own scripts. Why can't SABnzbd handle it in the regular way, and then sabRE finds what the result is?
Ah, do you mean this: the separate files of a download are packed into one tar file, which makes remote downloading via een webinterface easier?realgeizt wrote: The files need to be put into a tar archive for easy downloading.
Exactly. It does not run on a local LAN for me and is only reachable using HTTP, so I needed an easy way to let users download files.Ah, do you mean this: the separate files of a download are packed into one tar file, which makes remote downloading via een webinterface easier?