Jump to content

Problem initiation server


angelo16m

Recommended Posts

When i run utserver appear the next error

root@193846 [/home/myaccount/public_html/utorrent/utorrent-server-v3_0]# ./utserver
server started
GetNodeID failed, using /dev/random
File not found during integrity check: ./dht.dat
File not found during integrity check: ./dht.dat.new
File not found during integrity check: ./dht.dat.old
File not found during integrity check: ./rss.dat
File not found during integrity check: ./rss.dat.new
File not found during integrity check: ./rss.dat.old
TCP port bind failed 0.0.0.0:6881: (98) Address already in use
IPv6 is installed

My config file is the next

# Application Settings
# Settings fall into two categories:

# internal settings, whose values can only be set in the utserver.conf file;
# regular settings, whose values can be set in the utserver.conf file or the /api/app-settings-set RPC API call.

# A setting can be of one of three types:

# string (requires "" around values(?))
# integer
# Boolean value (1 for true and 0 for false)

#################################################################
## Regular Settings ##
#################################################################

#> bind_port (integer):
# Default value: 6881
# Port used for BitTorrent protocol. This can be any value in the range 1025-65000.
#bind_port: 9001

#> max_ul_rate (integer):
# Default value: -1
# Maximum total upload rate in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
#max_ul_rate: 1337

#> max_ul_rate_seed (integer):
# Default value: -1
# Maximum per-torrent upload rate when seeding, in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
#max_ul_rate_seed: 1337

#> ul_slots_per_torrent (integer):
# Default value: 4
# Maximum number of peers that can download a given torrent at the same time.
#ul_slots_per_torrent: 10

#> conns_per_torrent (integer):
# Default value: 50
# Maximum number of connections for a given torrent.
#conns_per_torrent: 100

#> max_total_connections (integer):
# Default value: 200
# Maximum number of connection opened at the same time.
#max_total_connections: 1000

#> auto_bandwidth_management (boolean):
# Default value: true
# If true, upload bandwidth is automatically throttled in order to not impact other applications using TCP/IP.
#auto_bandwidth_management: 0

#> max_dl_rate (integer):
# Default value: -1
# Maximum total download rate in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
#max_dl_rate: 9001

#> seed_ratio (integer):
# Default value: 0
# Seed ratio in percent (%) (e.g. 100 means 100%). If not 0, seeding will stop after reaching this upload/download ratio.
#seed_ratio: 100

#> seed_time (integer):
# Default value: 0
# Time after which seeding will stop, in seconds. 0 means seeding won't stop.
#seed_time: 86400

#################################################################
## Internal Settings ##
#################################################################

#> bind_ip (string):
# Default value: ""
# IP address to use for socket connections. If not provided, a default IP address will be used. We do not recommend changing this
value.
#bind_ip: ""

#> ut_webui_port (integer):
# Default value: 8080
# Port number where the utserver process accepts HTTP RPC API calls to support the µTorrent-compatible HTTP interface. If the
utserver process also serves HTML files (see webui_server_files setting), also the port of HTTP server.
#ut_webui_port: 8080

#> webui_serve_files (boolean):
# Default value: true
# If true, the utserver process will act as an HTTP server and serve HTML, CSS and JavaScript files needed for webui. When set to
false, the web UI files will be served by a stand-alone HTTP server (like Apache).
#webui_serve_files: true

#> webui_dir_files (string):
# Default value: "webui"
# Name of the directory with HTML, CSS and JavaScript files that constitute the web UI. It can be an absolute path (recommended) or
set relative to the current directory of the bt process.
#webui_dir_files: "webui"

#> webui_root (string):
# Default value: "/"
# If the utserver process also acts as an HTTP server, this value represents the prefix for the web UI. For example, if webui_root is
"/foo/", a request for "/foo/bar.html" will make the utserver process return the file bar.html from the webui_dir_files directory.
#webui_root: ""

#> token_auth_enable (boolean)
# Default value: true
# If true, the µTorrent HTTP interface defends against cross-site request forgeries by requiring that a short-lived token be obtained
from the µTorrent HTTP interface and included at the beginning of the parameter list of any request made to that interface. If false,
the µTorrent HTTP interface will not be protected in this manner.
#token_auth_enable: 0

#> dir_active (string):
# Default value: "./"
# Directory in which currently downloaded data is saved. Can be an absolute path or a relative path. If it is a relative path, the
value is relative to dir_root or the current working directory if dir_root is not defined or an empty string. It is recommended that
this directory be hidden from users (i.e. not exported through Samba).
#dir_active: "./"

#> dir_completed (string):
# Default value: ""
# Directory where completed downloads are stored. If the value is an empty string, the value of dir_active is used. This value must
represent a path that is accessible to users (e.g. exported through Samba). It also has to be on the same volume as dir_active.
#dir_completed: "downloads/completed"

#> dir_download (string):
# Default value: ""
# Optional directory where completed downloads can be stored, instead of in dir_completed. If no value is specified for this setting,
the value of dir_completed is used. The value must represent a path that is accessible to users (e.g. exported through Samba). This
option can be specified multiple times in the file - once for each directory to be designated as such. This option can be used when
adding torrents via the µTorrent HTTP interface, not via the SDK interface. Use the action list-dirs to obtain a list of download
directories from the µTorrent HTTP interface. Use the option download_dir to specify which of these directories to use when adding a
torrent by URL or file through the µTorrent HTTP interface; specify the one-based index of the entry of interest. The index of each
entry will be in order in which each entry appears in utserver.conf, starting with 1 for the first entry, 2 for the second entry, and
so on. 0 indicates the default download directory should be used.
#dir_download: "/"

#> dir_torrent_files (string):
# Default value: ""
# Directory where torrent files are stored. If the empty string, the value of dir_active is used. It is recommended that this
directory be hidden from users (i.e. not exported through Samba).
#dir_torrent_files: ""

#> dir_temp_files (string):
# Default value: ""
# Directory where temporary files are stored. If the empty string, the value of dir_active is used. It is recommended that this
directory be hidden from users (i.e. not exported through Samba). Also, using a separate directory just for temporary files allows
for deleting the files in this directory on boot and/or periodically. The utserver process creates temporary files with a .utt
extension - if a value for this setting is specified, the utserver process will delete all files with that extension in that
directory at process startup. This setting applies only to POSIX systems. The value should specify a directory, not a symbolic link
to a directory.
#dir_temp_files: ""

#> dir_autoload (string):
# Default value: ""
# Directory where torrent files will be recognized and auto-loaded. If the empty string, auto-load is disabled.
#dir_autoload: ""

#> dir_autoload_delete (boolean):
# Default value: false
# If true, torrent files in the autoload directory will be deleted after being loaded, else they will be renamed with an extension of
.loaded. The dir_autoload setting must be specified for this setting to have an effect.
#dir_autoload_delete: 1

#> dir_request (string):
# Default value: ""
# Directory where maintenance request files will be recognized, loaded, and deleted. If the empty string, maintenance request
handling is disabled. This directory should be hidden from users (i.e., not exported through Samba). Your software running on your
device can create the following files in this directory in order to request the following maintenance procedures.
# If the file c.utmr is created in or moved into this directory, the credentials necessary to access the µTorrent HTTP interface will
be reset to username admin and a blank password. If the file wipl.utmr is created in or moved into this directory, the IP restriction
list that limits the IPs that can use the µTorrent HTTP interface is cleared, so that there will be no restrictions on IP address.
These maintenance operations provide a way to help a user who has either entered new credentials and then forgotten them, or who has
entered an IP range in the restricted list and can no longer access the µTorrent HTTP interface as a result.
#dir_request: "somewhere_safe"

#> upnp (boolean):
# Default value: true
# If true, UPNP functionality for mapping ports is used by utserver. We recommend setting this value to true.
#upnp: true

#> natpmp (boolean):
# Default value: true
# If true, NAT-PMP functionality for mapping ports is used by utserver. We recommend setting this value to true.
#natpmp: true

#> lsd (boolean):
# Default value: true
# If true, Local Service Discovery is enabled. We recommend setting this value to true.
#lsd: 0

#> dht (boolean):
# Default value: true
# If true, Distributed Hash Table extension is enabled. We recommend setting this value to true.
#dht: true

#> pex (boolean):
# Default value: true
# If true, Peer Exchange extension is enabled. We recommend setting this value to true.
#pex: 0

#> rate_limit_local_peers (boolean):
# Default value: false
# If true, rate limiting also applies to communications with peers in the local subnet. We recommend setting this value to false.
#rate_limit_local_peers: 1

#> dir_root (string):
# Default value: ""
# If not empty, dir_active, dir_completed, and dir_torrent_files are relative to this directory.
#dir_root: ""

#> disk_cache_max_size (integer):
# Default value: 0
# Maximum amount of memory used by each of the read, write, and piece caches. Value is in megabytes. If 0, accepts the SDK's default
choices on selecting sizes of disk caches. Maximum value is 512.
#disk_cache_max_size: 128

#> preferred_interface (string):
# Default value: ""
# If defined, name of network interface to be preferred when attempting to search among network interfaces for an external IP and
hardware address. If empty string, preferred interface is ignored. You need to provide a value for this setting if either 1) the
toolchain for your computer does not supply ifaddrs.h, or 2) you want the utserver process to choose a different interface than it
would choose on its own. You should set a value for this setting if you see an incorrect port mapping on a UPnP router for the subnet
to which the device belongs (the IP address of the device will not appear in the port mapping requested by the utserver process -
instead, the IP address associated with the mapping will be 0.0.0.0 with a device having a toolchain that does not include ifaddrs.h,
or some other IP address with a device having a toolchain that includes ipaddrs.h). The value of this setting will be applied every
time the utserver process starts.
#preferred_interface: "eth1"

Link to comment
Share on other sites

When i run utserver appear the next error

TCP port bind failed 0.0.0.0:6881: (98) Address already in use

My config file is the next

#> bind_port (integer):
# Default value: 6881
# Port used for BitTorrent protocol. This can be any value in the range 1025-65000.
#bind_port: 9001

Have you run netstat to see what's using port 6881? Have you tried setting a different value for bind_port in the configuration file (setting a value of 0 should get you a "random" port)?

Link to comment
Share on other sites

root@193846 [/home/myhost/public_html/utorrent/utorrent-server-v3_0]# ./utserver

server started

GetNodeID failed, using /dev/random

IPv6 is installed

I have this error now, how i fix?

Hello, I have this error as well; and when adding a torrent in the gui, appears:

uT HTTP torrent add of '/tmp/00000274-0001.utt' succeeded

but not downloading, Status: "Error ??"

Please advice,

Thank you.

Link to comment
Share on other sites

root@193846 [/home/myhost/public_html/utorrent/utorrent-server-v3_0]# ./utserver

server started

GetNodeID failed' date=' using /dev/random

IPv6 is installed[/quote']

Hello, I have this error as well; and when adding a torrent in the gui, appears:

uT HTTP torrent add of '/tmp/00000274-0001.utt' succeeded

but not downloading, Status: "Error ??"

You can help by trying the following:

1. run ifconfig, see which network interface holds the external IP for your computer (or if your computer has multiple interfaces each with its own external IP, choose one of those interfaces)

2. set the preferred_interface setting in utserver.conf to that interface

3. try running utserver again

4. post your results, along with the names of your network interfaces and the output of uname -a

Link to comment
Share on other sites

You can help by trying the following:

1. run ifconfig, see which network interface holds the external IP for your computer (or if your computer has multiple interfaces each with its own external IP, choose one of those interfaces)

2. set the preferred_interface setting in utserver.conf to that interface

3. try running utserver again

4. post your results, along with the names of your network interfaces and the output of uname -a

All done as you described, but still not downloading:

my interface is: venet0:0, (it is an OpenVZ container with debian distro:

Linux hostname 2.6.26-2-openvz-686 #1 SMP Thu Sep 16 22:16:19 UTC 2010 i686 GNU/Linux)

this is the conf file:

~$ cat utserver.conf
preferred_interface: venet0:0

This is the way I run utserver:

~$ ./utserver -configfile utserver.conf -logfile -daemon

Nothing new in the log file:

~$ tail utserver.log
[10:42:39] GetNodeID failed, using /dev/random
[10:42:39] IPv6 is installed
[10:44:34] uT HTTP torrent add of '/tmp/000002a9-0001.utt' succeeded

The ports are open as of nmap:

6881/tcp  open  bittorrent-tracker
8080/tcp open http-proxy

No firewall at this moment! [iptables -F]

Thank you for your support.

Cheers,

Link to comment
Share on other sites

  • 4 weeks later...

I am getting this error still and it's very easy to reproduce.

1. start with fresh Ubuntu 10.04 install

2. Download newest build (wget http://download.utorrent.com/linux/utorrent-server-3.0-23090.tar.gz)

3. Extract and run

4. Add any torrent

5. You get "Error: ??"

I had this happen on 2 separate boxes, both Ubuntu 10.04

I recommend rolling back the official download link until this is fixed :cool:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...