Rutorrent settings not saved?

peshua19

Member
May 25, 2018
897
0
16
Hello

I've been using Rutorrent for a while and it's a really neat piece of software.
I have encountered one problem though: When I've changed the setting in Rutorrent (for example, which columns I want to see in the torrent view, their order, UI refresh rate, date-time format et.c.) they are only kept for the current UI-instance, and are lost if I for example refresh the web browser.

I don't know if that can be of any importance or not but I haven't set up any sort of account for accessing Rutorrent so I guess that I'm accessing it as an anonymous user.

How can I make Rutorrent save my changed settings? I asked in the IRC channel and someone said that this could be done through the rtorrent.rc file somehow.
 

randac56

Member
May 25, 2018
915
0
16
Check permissions of rutorrent/share folder (and below). Web-server and rtorrent users must have access for read/write here.
 

peshua19

Member
May 25, 2018
897
0
16
Permissions seems to be ok to me. I'll post details about the setup. My setup of rtorrent/rutorrent is pretty basic and I have mainly followed "Subsy's Seedbox Setup Guide" but I'm running it on a local desktop computer and only a single user(myself) is supposed to use it.

What file(s) control the user inferface, is it uisettings.json alone? I'm thinking of simply locking that sucker down so noone can ruin it.

I'm using Fedora where the web-root is /var/www/html, so rutorrent is located in /var/www/html/rutorrent.
Code:
drwxr-xr-x. 12 user1 user1 4096 Jul 13 17:28 rutorrent/

ls rutorrent/
total 60
drwxr-xr-x. 3 user1 user1 4096 Jul 13 17:07 conf/
drwxr-xr-x. 2 user1 user1 4096 Jul 13 16:29 css/
-rwxr-xr-x. 1 user1 user1 5430 Jul 13 16:29 favicon.ico*
drwxr-xr-x. 2 user1 user1 4096 Jul 13 16:29 images/
-rwxr-xr-x. 1 user1 user1 12694 Jul 13 16:29 index.html*
drwxr-xr-x. 2 user1 user1 4096 Jul 13 16:29 js/
drwxr-xr-x. 2 user1 user1 4096 Jul 13 16:29 lang/
drwxr-xr-x. 2 user1 user1 4096 Jul 13 16:29 php/
drwxr-xr-x. 42 user1 user1 4096 Jul 13 16:29 plugins/
drwxrwxr-x. 5 user1 apache 4096 Jul 13 16:29 share/
drwxr-xr-x. 2 user1 apache 4096 Jul 21 11:19 tmp/

ls rutorrent/share/
drwxrwxr-x. 7 user1 apache 4096 Jul 21 11:28 settings/
drwxrwxr-x. 2 user1 apache 4096 Jul 20 12:43 torrents/
drwxrwxr-x. 2 user1 apache 4096 Jul 13 16:29 users/

settings/:
total 100
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 102122568mediainfo.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 1348964600php.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 1377757066unzip.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 16:51 1504544092php.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 16:51 1563246947unrar.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 2104064542unrar.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 16:51 317147900curl.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 16:51 317237948unzip.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 760566818pgrep.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 797993235ffmpeg.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 16:51 821038597pgrep.found*
-rwxrwxr-x. 1 user1 apache 0 Jul 13 17:07 853853307curl.found*
-rw-rw-rw-. 1 apache apache 66 Jul 21 11:33 cookies.dat
-rw-rw-rw-. 1 apache apache 56 Jul 13 17:15 cpu.dat
drwxrwxrwx. 2 apache apache 4096 Jul 21 11:35 erasedata/
-rw-rw-rw-. 1 apache apache 43644 Jul 21 11:33 extsearch.dat
-rw-rw-rw-. 1 apache apache 258 Jul 21 11:33 ffmpeg.dat
-rw-rw-rw-. 1 user1 apache 7954 Jul 20 13:44 history_data.dat
drwxrwxrwx. 2 apache apache 4096 Jul 21 11:16 httprpc/
-rw-rw-rw-. 1 apache apache 3544 Jul 21 11:33 loginmgr.dat
drwxrwxrwx. 3 apache apache 4096 Jul 21 11:30 rss/
-rw-rw-rw-. 1 apache apache 1710 Jul 21 11:33 rtorrent.dat
-rw-rw-rw-. 1 user1 user1 1765 Jul 21 11:34 scheduler.dat
drwxrwxrwx. 2 apache apache 4096 Jul 20 12:43 trackers/
drwxrwxrwx. 4 apache apache 4096 Jul 13 17:45 trafic/
-rw-r--r--. 1 apache apache 2782 Jul 21 11:34 uisettings.json

torrents/:
total 644
-rw-rw-rw-. 1 apache apache 11019 Jul 20 12:43 Here_is_a.torrent

users/:
total 0
 

peshua19

Member
May 25, 2018
897
0
16
I just noticed that there seems to be some problem with "repeated" writes to the uisettings file. For example if I open the settings tab and change the GUI refresh rate to some value this will be saved. If I try to alter the file again by for example by rearranging a column in the torrent view the uisettings file will be completely wiped, and only contain two empty brackets, '{ }'.
 

saroos1

Member
May 25, 2018
718
0
16
I use rutorrent for 3 years and it definitely loses its settings from time to time.

How can I check it myself?

Open your browser. Open https://your-rutorrent-ip/rutorrent
1. Reorder the columns as you like. Don’t close the page.
2. Stop your rtorrent client (/etc/init.d/your_rtorrent_init_script stop). (If you set up crontab to restart rtorrent than elso comment that line.)
3. Refresh your browser rutorrent page (F5). You must see now the message: "Torrent list not yet available, connection to rTorrent not yet established."
4. Start your rtorrent. (Uncomment crontab resart if needed).
5. Refresh your browser rutorrent page (F5). Now you will see the settings will be reseted.
 

randac56

Member
May 25, 2018
915
0
16
The reason of this is a simple. You have a *different* set of columns when rtorrent is started and when it is stopped.
 

saroos1

Member
May 25, 2018
718
0
16
Ok but I consider this as a bug because when rtorrent is not running the columns configuration has no sense and MUST NOT rewrite uisettings file.
Usually my rutorrent page is open for long period of time and sometimes rtorrent crashes. It leads to a rest of my settings that is not what I expect. It annoys me very much in any case.

Therefore I would like to know how I can change this. There must be a sort of condition which checks the state of rtorrent. If it is not available it must not save the settings, especially ones which control the UI.
 

randac56

Member
May 25, 2018
915
0
16
Ok but I consider this as a bug because when rtorrent is not running the columns configuration has no sense
This is a wrong assumption. Settings in the uisettings.json can contain a lot of things, which hasn't relation to the rtorrent state. Parameters of the result tables of the 'extsearch' plugin, for example.
Anyway, i don't see a simple way to fix this.

It annoys me very much in any case.​
Try to configure your server by the right way. As result, may be, your rtorrent will run 24/7 without crashing. How it must.​
 

saroos1

Member
May 25, 2018
718
0
16
Try to configure your server by the right way. As result, may be, your rtorrent will run 24/7 without crashing. How it must.​
Well, You make an assumption that rtorrent or the system is bug-free which is clearly false. The installation i'm using is running for 2 years now. It crashes from time to time in different scenarios, sometimes because of a corrupted torrent file, sometimes because of a random segfault, etc.

But any way i think it is a strange behaviour to reset my UI settings just because rtorrent stops working for some random reason.