Jump to content

Settings not Persistent


Quick

Recommended Posts

I am running Ubuntu 12.04 64-bit and I have installed the corresponding utorrent.

 

When changing the settings via the webui the settings do not persist if I restart utorrent. Also, I don't see a settings file being created anywhere. I am supplying a directory path to the -settingspath argument, but no utserver.conf file appears.

 

Any help is much appreciated,

Quick

Link to comment
Share on other sites

I'm running the same os and it works. Make sure the user id which is running utserver has permission to write to the settings file and settings file directory. I'm using the latest 3.3 version, but the prior one worked too.

 

 

The output of 'ps aux' shows it is running as my user (james):

USER    PID %CPU %MEM  VSZ   RSS TTY      STAT START   TIME COMMAND
james     1310  0.0  0.2  37960  1304 ?        Ss   10:43   0:00 su james -c /home/james/utorrent-server/utserver -settingspath /home/james/utorrent-server -logfile /home/james/log/utorrent.log
james     1312  1.3  0.5 289056  2588 ?        Sl   10:43   0:00 /home/james/utorrent-server/utserver -settingspath /home/james/utorrent-server -logfile /home/james/log/utorrent.log
 
 
It is interesting though that there are 2 entries. When I stared the service it said it was starting as PID 1310 so I am not sure where process 1312 came from. 
The permissions for /home/james/utorrent-server/ are drwxrwxrwx and james is the owner.
 
And here is what the log shows:
[10:49:14] Locale en_US.UTF-8[10:49:14] File not found during integrity check: /home/james/utorrent-server/settings.dat[10:49:14] File not found during integrity check: /home/james/utorrent-server/settings.dat.new[10:49:14] File not found during integrity check: /home/james/utorrent-server/settings.dat.old[20140312 10:49:14] computer id: D9AC13F252B03454BF1B22052788CB6E0E8BE994[20140312 10:49:14] total physical memory 536870912 max disk cache 33554432[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//dht.dat[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//dht.dat.new[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//dht.dat.old[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//rss.dat[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//rss.dat.new[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//rss.dat.old[20140312 10:49:14] Using IP address 192.168.1.11[20140312 10:49:14] IPv6 is installed[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//resume.dat[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//resume.dat.new[20140312 10:49:14] File not found during integrity check: /home/james/utorrent-server//resume.dat.old[20140312 10:49:15] File not found during integrity check: /home/james/utorrent-server//webcache.dat[20140312 10:49:15] File not found during integrity check: /home/james/utorrent-server//webcache.dat.new[20140312 10:49:15] File not found during integrity check: /home/james/utorrent-server//webcache.dat.old

I don't know where those double slashes are coming from, or if they matter.

 

Here is the /etc/init/utserver.conf that I am using to start the service:

env LOGFILE=/home/james/log/utorrent.logenv UTORRENT_PATH=/home/james/utorrent-serverenv EXEC=utserverstart on (local-filesystems and net-device-up IFACE=eth0)stop on runlevel [016]exec su james -c "$UTORRENT_PATH/$EXEC -settingspath $UTORRENT_PATH -logfile $LOGFILE"post-start script	#bind validation	while [ ! -e $LOGFILE ]; do		sleep 1 #Wait for file to be generated	done	while [ ! -n "$(cat $LOGFILE|grep 'IPv6 is installed')" ]; do		#wait until utorrent has finished bootup (IPv6 MESSAGE is the last message)		sleep 1	done	RESULT=$(cat $LOGFILE|grep 'bind failed')        if [ -n "$RESULT" ]; then		#bind failure stop the job		exit 3        fiend scriptpost-stop script	#block process until server is completed shutting down fully	while [ -n "$(pidof "$EXEC")" ]; do		sleep 1	done	rm $LOGFILEend script

This problem really has me stumped. I can't figure out why the settings.dat is not being created. I really appreciate any help.

Link to comment
Share on other sites

My init startup script is much simpler.  It basically just does these two commands:

 

        cd /home/w6t/.utorrent

        exec su w6t -c "/home/w6t/.utorrent/utserver -logfile /home/w6t/.utorrent/utserver.log"

 

Maybe the cd is useful because I didn't have to specify the settings path. And as DreadWingKnight says check the permission on that directory.

 

steve

Link to comment
Share on other sites

  • 4 months later...

Randomly, I had this same issue. I noticed it when I tried to get systemd to start utserver for me. Noticed that it actually created the files in / instead of /opt/utserver, which is where I've placed mine. This is finally how I got mine to work well.

I created a startup for utserver in my rc.local.

 

root@utorrent:/var/log# cat /etc/rc.local#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing./opt/utserver/utserver -configfile /opt/utserver/config -settingspath /opt/utserver -daemonexit 0
I created another startup script just to run when I need to manually.
 
 
root@utorrent:/var/log# cat /opt/utserver/startup.sh#!/bin/bashcd /opt/utserver//opt/utserver/utserver -configfile '/opt/utserver/config' -logfile /var/log/utorrent.log -daemon
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...