1

(519 odpowiedzi, napisanych Oprogramowanie / Software)

secam7 napisał/a:
djchester22 napisał/a:

Witam

Mam pytanie odnośnie NEXX WT3020. Wgrałem Gargoyle. Oczywiście żeby modem E3372 w wersji Hlink działał stabilnie potrzebny jest Hub. Moje pytanie jest czy możemy podłączyć Hub do routera, w niego wpiąć modem i z tego Hub'a podać również zasilanie do routera kablem micro usb. Może miał ktoś już taką przygodę??

Jeśli potrzebujesz tylko jeden port USB to NEXX nie potrzebuje Huba, 5V na porcie  USB jest bezpośrednio z zasilacza.
Potrzebujesz tylko porządny zasilacz i kabel usb.

Ładowarkę podłączyłem która ma ponad 2A i powiem ze jak robiłem speed test to zrywało połączenie. Po zastosowaniu hub z zasilaczem również ponad 2 A problemy zniknęły nawet na ładowarce 0.8 A, która zasilała router

2

(519 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Zrobiłeś kabelek od huba do zasilania nexna do microusb?

Cezary podłączałem tak iż hub wpiąłem w usb w nexx i drugi kabel  poszedł z jednego z portów  hub do zasilania microusb do nexx. Nic się nie działo. Jak podłączyłem kabel z microusb do ładowarki router sie odpalił.

3

(519 odpowiedzi, napisanych Oprogramowanie / Software)

No i nie działa. Trzeba podłaczyć do innego zasilania router. W pętli to jednak nie działa. Nie wzbudza routera

4

(519 odpowiedzi, napisanych Oprogramowanie / Software)

Witam

Mam pytanie odnośnie NEXX WT3020. Wgrałem Gargoyle. Oczywiście żeby modem E3372 w wersji Hlink działał stabilnie potrzebny jest Hub. Moje pytanie jest czy możemy podłączyć Hub do routera, w niego wpiąć modem i z tego Hub'a podać również zasilanie do routera kablem micro usb. Może miał ktoś już taką przygodę??

5

(26 odpowiedzi, napisanych Oprogramowanie / Software)

A powiedz czy startowy mam dobrze zrobiony

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2012 OpenWrt.org

START=99

start() {
        rm -f /tmp/rtorrent.socket || true
        rm -f /mnt/torrent/session/rtorrent.lock || true
        HOME=/root screen -dmS torrenty rtorrent
}

stop() {
        killall -2 rtorrent
}

6

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Mam jeszcze jeden problem. Nieraz po restarcie ciagle wywala mi taki błąd i rtorrent w ogole sie nie uruchamia


root@OpenWrt:~# rtorrent
rtorrent: Could not lock session directory: "/mnt/dysk/torrenty/session/", held by "OpenWrt:+2386".

7

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Nadal sypie błędami. Ale pozatym wszystko działa. Mozna dodać, pobiera itp.

Dzięki wielkie za pomoc:)

[04.04.2017 22:21:31] WebUI started.
[04.04.2017 22:21:36] rutracker_check: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] history: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] retrackers: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] autotools: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] scheduler: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] unpack: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] ratio: Niektóre funkcjonalności będą niedostępne. User rTorrenta nie ma dostępu do zewnętrznych programów. (php).
[04.04.2017 22:21:36] datadir: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] loginmgr: Niektóre funkcjonalności będą niedostępne. User rTorrenta nie ma dostępu do zewnętrznych programów. (php).
[04.04.2017 22:21:36] create: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] trafic: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] rss: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:21:36] mediainfo: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (mediainfo).

Można wiedzieć jeszcze co może być tego przyczyna

[04.04.2017 22:36:37] Bad response from server: (503 [error,getratios]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>503 - Service Not Available</title> </head> <body> <h1>503 - Service Not Available</h1> </body> </html>

8

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Teraz już widać wszystko lecz wywala w dzienniku takie bledy

[04.04.2017 22:07:01] User Webservera nie ma dostępu do programu 'stat'. ruTorrent może mieć problemy z funkcjonalnością.
[04.04.2017 22:07:01] rss: Niektóre funkcjonalności będą niedostępne. User Webservera nie ma dostępu do zewnętrznych programów (curl).
[04.04.2017 22:07:01] User rTorrenta nie ma dostępu do programu 'stat'. Niektóre funkcjonalności mogą być niedostępne.
[04.04.2017 22:07:01] rutracker_check: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] history: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] retrackers: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] autotools: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] scheduler: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] unpack: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] ratio: Niektóre funkcjonalności będą niedostępne. User rTorrenta nie ma dostępu do zewnętrznych programów. (php).
[04.04.2017 22:07:01] datadir: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] loginmgr: Niektóre funkcjonalności będą niedostępne. User rTorrenta nie ma dostępu do zewnętrznych programów. (php).
[04.04.2017 22:07:01] create: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] trafic: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] rss: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (php).
[04.04.2017 22:07:01] mediainfo: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (mediainfo).
[04.04.2017 22:07:01] screenshots: Plugin nie zadziała. User rTorrent nie ma dostępu do zewnętrznego programu (ffmpeg).
[04.04.2017 22:07:01] rss: Niektóre funkcjonalności będą niedostępne. User rTorrenta nie ma dostępu do zewnętrznych programów. (curl).

9

(26 odpowiedzi, napisanych Oprogramowanie / Software)

teraz

root@OpenWrt:~# cat /var/log/lighttpd/error.log
2017-04-04 20:33:31: (log.c.194) server started
2017-04-04 21:45:22: (mod_fastcgi.c.2520) FastCGI-stderr: PHP Warning:  getdate(                                                                                                                     ): It is not safe to rely on the system's timezone settings. You are *required*                                                                                                                      to use the date.timezone setting or the date_default_timezone_set() function. In                                                                                                                      case you used any of those methods and you are still getting this warning, you                                                                                                                      most likely misspelled the timezone identifier. We selected the timezone 'UTC' f                                                                                                                     or now, but please set date.timezone to select your timezone. in /www/rutorrent/                                                                                                                     php/settings.php on line 269
2017-04-04 21:45:22: (mod_fastcgi.c.2520) FastCGI-stderr: PHP Fatal error:  getd                                                                                                                     ate(): Timezone database is corrupt - this should *never* happen! in /www/rutorr                                                                                                                     ent/php/settings.php on line 269

10

(26 odpowiedzi, napisanych Oprogramowanie / Software)

root@OpenWrt:~# cat /var/log/lighttpd/error.log
2017-04-04 20:23:41: (log.c.194) server started
2017-04-04 20:35:33: (server.c.1572) server stopped by UID = 0 PID = 3714
2017-04-04 20:36:04: (log.c.194) server started
2017-04-04 20:39:57: (mod_fastcgi.c.2520) FastCGI-stderr: PHP Fatal error:  Call to und                                           efined function json_encode() in /www/rutorrent/plugins/lookat/lookat.php on line 60
2017-04-04 21:31:30: (server.c.1572) server stopped by UID = 0 PID = 4865
2017-04-04 21:32:02: (log.c.194) server started

11

(26 odpowiedzi, napisanych Oprogramowanie / Software)

2017-04-04 20:23:41: (log.c.194) server started
2017-04-04 20:35:33: (server.c.1572) server stopped by UID = 0 PID = 3714
2017-04-04 20:36:04: (log.c.194) server started

12

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Używam lighttpd

z pliku

/etc/lighttpd/lighttpd.conf

server.modules = (
   "mod_access",
   "mod_auth",
   "mod_fastcgi",
   "mod_scgi"
)

server.network-backend = "write"
server.document-root = "/www/rutorrent/"
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )

mimetype.assign = (
   ".pdf"   => "application/pdf",
   ".class" => "application/octet-stream",
   ".pac"   => "application/x-ns-proxy-autoconfig",
   ".swf"   => "application/x-shockwave-flash",
   ".wav"   => "audio/x-wav",
   ".gif"   => "image/gif",
   ".jpg"   => "image/jpeg",
   ".jpeg"  => "image/jpeg",
   ".png"   => "image/png",
   ".css"   => "text/css",
   ".html"  => "text/html",
   ".htm"   => "text/html",
   ".js"    => "text/javascript",
   ".txt"   => "text/plain",
   ".dtd"   => "text/xml",
   ".xml"   => "text/xml"
)

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

server.port = 9092
server.pid-file = "/var/run/lighttpd.pid"

fastcgi.server = (
      ".php" => ((
      "host" => "127.0.0.1",
      "port" => 1026,
       ))
)

auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"

auth.require = (
   "/" =>
        (
         "method"  => "basic",
         "realm"   => "rutorrent",
         "require" => "user=admin"
         )
)

scgi.server = (
     "/RPC2" =>
          ( "127.0.0.1" =>
               (
        "socket" => "/tmp/rtorrent.socket",
        "check-local" => "disable",
        "disable-time" => 0,
                )
         )
)
server.event-handler = "poll"


z /www/rutorrent/conf/config.php



<?php
    // configuration parameters

    // for snoopy client
    @define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
    @define('HTTP_TIME_OUT', 30, true);    // in seconds
    @define('HTTP_USE_GZIP', true, true);
    $httpIP = null;                // IP string. Or null for any.

    @define('RPC_TIME_OUT', 5, true);    // in seconds

    @define('LOG_RPC_CALLS', false, true);
    @define('LOG_RPC_FAULTS', true, true);

    // for php   
    @define('PHP_USE_GZIP', false, true);
    @define('PHP_GZIP_LEVEL', 2, true);

    $schedule_rand = 10;            // rand for schedulers start, +0..X seconds

    $do_diagnostic = true;
    $log_file = '/tmp/errors.log';        // path to log file (comment or leave blank to disable logging)

    $saveUploadedTorrents = true;        // Save uploaded torrents to profile/torrents directory or not
    $overwriteUploadedTorrents = false;     // Overwrite existing uploaded torrents in profile/torrents directory or make unique name

    $topDirectory = '/';            // Upper available directory. Absolute path with trail slash.
    $forbidUserSettings = false;

     $scgi_port = 0;
        $scgi_host = "unix:///tmp/rtorrent.socket";

    // For web->rtorrent link through unix domain socket
    // (scgi_local in rtorrent conf file), change variables
    // above to something like this:
    //
    // $scgi_port = 0;
    // $scgi_host = "unix:///tmp/rpc.socket";

    $XMLRPCMountPoint = "/RPC2";        // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!

    $pathToExternals = array(
        "php"     => '',            // Something like /usr/bin/php. If empty, will be found in PATH.
        "curl"    => '',            // Something like /usr/bin/curl. If empty, will be found in PATH.
        "gzip"    => '',            // Something like /usr/bin/gzip. If empty, will be found in PATH.
        "id"    => '',            // Something like /usr/bin/id. If empty, will be found in PATH.
        "stat"    => '',            // Something like /usr/bin/stat. If empty, will be found in PATH.
    );

    $localhosts = array(             // list of local interfaces
        "127.0.0.1",
        "localhost",
    );

    $profilePath = '../share';        // Path to user profiles
    $profileMask = 0777;            // Mask for files and directory creation in user profiles.
                        // Both Webserver and rtorrent users must have read-write access to it.
                        // For example, if Webserver and rtorrent users are in the same group then the value may be 0770.

    $tempDirectory = null;            // Temp directory. Absolute path with trail slash. If null, then autodetect will be used.

    $canUseXSendFile = true;        // Use X-Sendfile feature if it exist

    $locale = "UTF8";

13

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Konfiguracje mam taka

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2012 OpenWrt.org

START=99

start() {
        rm -f /tmp/rtorrent.socket || true
        rm -f /mnt/dysk/torrenty/session/rtorrent.lock || true
        HOME=/root screen -dmS torrenty rtorrent
}

stop() {
        killall -2 rtorrent
}

A co do drugiego można to gdzieś ustawić żeby nasłuchiwał również na odpowiednim porcie??

Bo na tą chwilę dodać plik mogę w folderze, który dodałem do konfiguracji

schedule = watch_directory,5,5,"load.start=/mnt/dysk/torrenty/watch/*.torrent"

A chciałbym jednak dodawać z www.

14

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Dobra , dałem sobie spokój z GUI rtorrenta.

Pytanie do bardziej ogarnietych w temacie rtorrenta.

1. Jak można ustawic rtorrent aby nie był zabijany przez system, jeśli wyjdę z konsoli.
2. Co może być przyczyna jeśli rtorrent jest odpalony(uruchomiony) a nie pokazuje w rutorencie z pod www. Screen poniżej:

http://imgur.com/a/QUh3d

15

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Zrób netstat -apn


root@OpenWrt:~# netstat -apn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State                                                                                                                            PID/Program name
tcp        0      0 0.0.0.0:1026            0.0.0.0:*               LISTEN                                                                                                                           1646/php-fcgi
tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN                                                                                                                           2619/transmission-d
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN                                                                                                                           2181/smbd
tcp        0      0 0.0.0.0:50800           0.0.0.0:*               LISTEN                                                                                                                           2354/rtorrent
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN                                                                                                                           1995/uhttpd
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN                                                                                                                           2648/dnsmasq
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN                                                                                                                           2619/transmission-d
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN                                                                                                                           1601/dropbear
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN                                                                                                                           1995/uhttpd
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN                                                                                                                           2181/smbd
tcp        1      0 192.168.0.10:41451      109.201.134.8:3660      CLOSE_WAIT                                                                                                                       2619/transmission-d
tcp        0      0 192.168.0.10:22         192.168.1.184:7681      ESTABLISHED                                                                                                                      2940/dropbear
tcp        0      0 :::139                  :::*                    LISTEN                                                                                                                           2181/smbd
tcp        0      0 :::80                   :::*                    LISTEN                                                                                                                           1995/uhttpd
tcp        0      0 :::53                   :::*                    LISTEN                                                                                                                           2648/dnsmasq
tcp        0      0 :::51413                :::*                    LISTEN                                                                                                                           2619/transmission-d
tcp        0      0 :::22                   :::*                    LISTEN                                                                                                                           1601/dropbear
tcp        0      0 :::443                  :::*                    LISTEN                                                                                                                           1995/uhttpd
tcp        0      0 :::445                  :::*                    LISTEN                                                                                                                           2181/smbd
udp        0      0 0.0.0.0:53              0.0.0.0:*                                                                                                                                                2648/dnsmasq
udp        0      0 0.0.0.0:67              0.0.0.0:*                                                                                                                                                2648/dnsmasq
udp        0      0 0.0.0.0:43887           0.0.0.0:*                                                                                                                                                2619/transmission-d
udp        0      0 192.168.1.255:137       0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 192.168.1.1:137         0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 192.168.1.255:138       0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 192.168.1.1:138         0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                                                                                                                                                2182/nmbd
udp        0      0 0.0.0.0:51413           0.0.0.0:*                                                                                                                                                2619/transmission-d
udp        0      0 :::547                  :::*                                                                                                                                                     1557/odhcpd
udp        0      0 :::53                   :::*                                                                                                                                                     2648/dnsmasq
raw        0      0 ::%4426340:58           ::%4432908:*            58                                                                                                                               1557/odhcpd
raw        0      0 ::%4426340:58           ::%4432908:*            58                                                                                                                               1557/odhcpd
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Pat                                                                                                                     h
unix  2      [ ACC ]     STREAM     LISTENING       3889 2354/rtorrent       /tm                                                                                                                     p/rtorrent.socket
unix  2      [ ACC ]     STREAM     LISTENING        312 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  2      [ ]         DGRAM                      3642 2375/hostapd        /va                                                                                                                     r/run/hostapd/wlan0
unix  6      [ ]         DGRAM                      2400 1482/logd           /de                                                                                                                     v/log
unix  2      [ ACC ]     STREAM     LISTENING       3721 2352/SCREEN         /tm                                                                                                                     p/screens/S-root/2352.torrenty
unix  2      [ ACC ]     STREAM     LISTENING       3474 2182/nmbd           /va                                                                                                                     r/nmbd/unexpected
unix  2      [ ]         DGRAM                      3821 2386/wpa_supplicant /va                                                                                                                     r/run/wpa_supplicant/wlan1
unix  2      [ ]         DGRAM                      2606 1601/dropbear
unix  3      [ ]         STREAM     CONNECTED       3810 2354/rtorrent
unix  3      [ ]         STREAM     CONNECTED       2402 1482/logd
unix  3      [ ]         STREAM     CONNECTED       3807 2354/rtorrent
unix  3      [ ]         STREAM     CONNECTED       2403 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       3808 2354/rtorrent
unix  3      [ ]         STREAM     CONNECTED       3809 2354/rtorrent
unix  2      [ ]         DGRAM                      4048 2648/dnsmasq
unix  3      [ ]         STREAM     CONNECTED       3645 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       3986 2619/transmission-d
unix  3      [ ]         STREAM     CONNECTED       2531 1557/odhcpd
unix  3      [ ]         STREAM     CONNECTED       3985 2619/transmission-d
unix  3      [ ]         STREAM     CONNECTED       3644 2375/hostapd
unix  3      [ ]         STREAM     CONNECTED       3832 2354/rtorrent
unix  3      [ ]         STREAM     CONNECTED       3982 2619/transmission-d
unix  3      [ ]         STREAM     CONNECTED       3833 2354/rtorrent
unix  2      [ ]         DGRAM                      3036 1525/netifd
unix  3      [ ]         STREAM     CONNECTED       3983 2619/transmission-d
unix  3      [ ]         STREAM     CONNECTED        366 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED        365 1/procd
unix  2      [ ]         DGRAM                      3089 1525/netifd
unix  3      [ ]         STREAM     CONNECTED       3241 1995/uhttpd
unix  2      [ ]         DGRAM                      3328 1557/odhcpd
unix  3      [ ]         STREAM     CONNECTED       2421 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       3242 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       2420 1491/rpcd
unix  3      [ ]         STREAM     CONNECTED       2532 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       2477 541/ubusd           /va                                                                                                                     r/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       2476 1525/netifd

16

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Possible reasons:
- not the rpc version of rtorrent is installed
- scgi port is not defined in .rtorrent.rc (scgi_port = 127.0.0.1:5000)
- rtorrent is not running (ps | grep rtorrent)

Napisał co masz sprawdzić.


Po komendzie:

opkg list-installed:

rtorrent-rpc - 0.9.4-git-0-7343e33a6a0d279179b304a380bf011f1c8be64a
Więc napewno jest zainstalowany

w .rtorrent.rc również dodana linia

scgi_port = 127.0.0.1:5000

Polecenie

root@OpenWrt:~# ps | grep rtorrent
2504 root      1464 S    {screen} /usr/sbin/SCREEN -dm -t rtorrent nice -19 /
2507 root     11060 S N  /usr/bin/rtorrent
3166 root      1360 S    grep rtorrent

17

(26 odpowiedzi, napisanych Oprogramowanie / Software)

Witam

Prosba o pomoc w odpaleniu rtorrenta na CC . Posiłkowalem sie tym poradnikiem http://eko.one.pl/forum/viewtopic.php?id=5243 + dodałem opcje w GUI. Jednak wywala mi poniższy błąd

/usr/lib/lua/luci/dispatcher.lua:360: Failed to execute cbi dispatcher target for entry '/admin/rtorrent/admin'.
The called action terminated with an exception:
/usr/lib/lua/rtorrent.lua:48:

Failed to connect to rtorrent: rpc port not reachable!
Possible reasons:
- not the rpc version of rtorrent is installed
- scgi port is not defined in .rtorrent.rc (scgi_port = 127.0.0.1:5000)
- rtorrent is not running (ps | grep rtorrent)

stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:360: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:135: in function </usr/lib/lua/luci/dispatcher.lua:134>

Cezary napisał/a:

Jak chcesz. Od początku był jako root, możesz zrobić własnego usera i tak go uruchamiać. Różnicy nie ma.


Cezary już nie mam siły na ten problem. Próbowałem wszystkiego i nadal z tym jednym trackerem nie chce sie połączyć. Z innych wszystko śmiga. Może coś trzeba doinstalować. Nawet po wyłączenie na trackerze opcji poniżej nic nie daje.

(Torrenty pobrane po włączeniu tej opcji będą używały szyfrowanego połączenia z trackerem)

Dodaj iż kiedyś na mogłem bez problemu pobierać z tego trackera za pomocą Transmissiona. Po zmianie od IPS modemu na router dopiero zaczeły się problemy z tym trackerem.

Ps. Możliwe jest jeszcze inne sprawdzenie tego ??

Cezary napisał/a:

Np. pakiet ca-certificates zainstaluj, choć to by było dziwne.

Nadal nie działa. Cezary przeszedłem na Luci i również ten sam problem. Na kompie podłączonym do tego routera spokojnie sie pobiera, jednak na transmission nie. Jednak musze zapodać info na trackerze. Mozo ktoś tam ma pomysł

Pytanie z innej beczki. Czy transmission ma by uruchamiany jako root czy jako daemon??

Wracam do tematu gdyż jak sie okazało transmission nie pobiera z jednego trackera. Z info jakie uzyskałem ma to co ponizej:

twój router ma nieaktualną bazę urzędów wydających certyfikaty, więc nie ma w nim CA Let's Encrypt.

Można ktoś coś więcej powiedzieć.

Czyli

config rule
    option name 'transmission'
    option src 'wan'
    option target 'ACCEPT'
    option proto 'tcp'
    option dest_port '51413'

Nadal nie pobiera. Może gdzie indziej jest problem. Tracker widzi pliki, które wrzucam i mam seedowane. Ciekawe jednak dlaczego nadal nie pobiera.

Czyli takie cos wystarczy wklepać

config redirect
    option target 'DNAT'
    option src 'wan'
    option src_dport '51413'
    option dest_port '51413'
    option name 'transmision'
    option dest 'wan'
    option proto 'tcp udp'

Czy

config rule
    option target 'ACCEPT'
    option src 'wan'
    option dest_port '51413'
    option name 'tr'
    option family 'ipv4'
    option proto 'tcp'

Router dostaje takie IP z Arisa.

Cezary napisał/a:

Odblokuj odpowiednie porty na wanie gargoyle (odblokuj -  nie przekieruj, z konsoli) oraz włącz "zdalny dostęp".

Masz w gargoyle zwykłego wana z natem, firewall cię trzyma.


Zobiłem i nadal problem z pobieraniem. Powyżej konfiguracja firewall, transmission. Może cos tutaj jest nie tak.

Powiem iż z komputera podłączonego do tego routera wszystko jest ok i pobiera.

Dziwne bo nawet z Arisa nie moge sie dostać na giu wdr4300. Dodatkowo nie chce mi się nic pobierać w Transmission. Jak wrzucam plik programu na kompie podłączonym do routera wszystko śmiga. W transmission nie odnajduje peer'ów. Nie chce sie nic pobrac. Co może być nie tak ???

Ponizej daje info z

root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sdb1 on /tmp/usb_mount/d22fa98a-01 type ext3 (rw,noatime,data=ordered)
/dev/sdb1 on /tmp/share_home/anonymous/Dysk type ext3 (rw,noatime,data=ordered)

root@Gargoyle:~# uci show transmission
transmission.@transmission[0]=transmission
transmission.@transmission[0].blocklist_enabled='false'
transmission.@transmission[0].cache_size_mb='8'
transmission.@transmission[0].idle_seeding_limit_enabled='false'
transmission.@transmission[0].incomplete_dir_enabled='false'
transmission.@transmission[0].lpd_enabled='false'
transmission.@transmission[0].peer_port='51413'
transmission.@transmission[0].peer_socket_tos='default'
transmission.@transmission[0].pex_enabled='false'
transmission.@transmission[0].port_forwarding_enabled='true'
transmission.@transmission[0].ratio_limit_enabled='false'
transmission.@transmission[0].rpc_enabled='true'
transmission.@transmission[0].rpc_port='9091'
transmission.@transmission[0].rpc_whitelist_enabled='false'
transmission.@transmission[0].script_torrent_done_enabled='false'
transmission.@transmission[0].seed_queue_enabled='false'
transmission.@transmission[0].speed_limit_down_enabled='false'
transmission.@transmission[0].speed_limit_up_enabled='false'
transmission.@transmission[0].start_added_torrents='true'
transmission.@transmission[0].trash_original_torrent_files='false'
transmission.@transmission[0].umask='0'
transmission.@transmission[0].scrape_paused_torrents='false'
transmission.@transmission[0].watch_dir_enabled='false'
transmission.@transmission[0].enabled='1'
transmission.@transmission[0].download_dir='/tmp/usb_mount/d22fa98a-01/torrenty'
transmission.@transmission[0].config_dir='/tmp/usb_mount/d22fa98a-01/torrenty/konfiguracja'
transmission.@transmission[0].rename_partial_files='false'
transmission.@transmission[0].dht_enabled='false'
transmission.@transmission[0].upload_slots_per_torrent='14'
transmission.@transmission[0].utp_enabled='true'
transmission.@transmission[0].peer_limit_global='200'
transmission.@transmission[0].peer_limit_per_torrent='200'
transmission.@transmission[0].rpc_authentication_required='true'
transmission.@transmission[0].download_queue_enabled='false'
transmission.@transmission[0].queue_stalled_enabled='false'
transmission.@transmission[0].rpc_username=
transmission.@transmission[0].rpc_password=
transmission.@transmission[0].preallocation='0'
transmission.@transmission[0].lazy_bitfield_enabled='false'
transmission.@transmission[0].encryption='0'
transmission.@transmission[0].message_level='0'
transmission.@transmission[0].scrape_paused_torrents_enabled='false'


root@Gargoyle:~# uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].network='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].network='wan' 'wan6'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].src_ip='fe80::/10'
firewall.@rule[3].src_port='547'
firewall.@rule[3].dest_ip='fe80::/10'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@include[0].reload='1'
firewall.@rule[7]=rule
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@include[1]=include
firewall.@include[1].type='script'
firewall.@include[1].path='/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
firewall.@include[1].family='IPv4'
firewall.@include[1].reload='1'
firewall.openvpn_include_file=include
firewall.openvpn_include_file.path='/etc/openvpn.firewall'
firewall.openvpn_include_file.reload='1'
firewall.wan_ftp_server_command=remote_accept
firewall.wan_ftp_server_command.proto='tcp'
firewall.wan_ftp_server_command.zone='wan'
firewall.wan_ftp_server_command.local_port='21'
firewall.wan_ftp_server_command.remote_port='21'
firewall.@rule[9]=rule
firewall.@rule[9].name='transmission'
firewall.@rule[9].src='wan'
firewall.@rule[9].target='ACCEPT'
firewall.@rule[9].proto='tcp'
firewall.@rule[9].dest_port='51413'
firewall.@rule[10]=rule
firewall.@rule[10].name='transmission'
firewall.@rule[10].src='wan'
firewall.@rule[10].target='ACCEPT'
firewall.@rule[10].proto='udp'
firewall.@rule[10].dest_port='51413'
firewall.@rule[11]=rule
firewall.@rule[11].name='transmission_wan'
firewall.@rule[11].src='wan'
firewall.@rule[11].target='ACCEPT'
firewall.@rule[11].proto='tcp'
firewall.@rule[11].dest_port='9091'
firewall.ra_22_22=remote_accept
firewall.ra_22_22.local_port='22'
firewall.ra_22_22.remote_port='22'
firewall.ra_22_22.proto='tcp'
firewall.ra_22_22.zone='wan'
firewall.redirect_enabled_number_0=redirect
firewall.redirect_enabled_number_0.name='FTP'
firewall.redirect_enabled_number_0.src='wan'
firewall.redirect_enabled_number_0.dest='lan'
firewall.redirect_enabled_number_0.proto='tcp'
firewall.redirect_enabled_number_0.src_dport='21'
firewall.redirect_enabled_number_0.dest_ip='192.168.0.10'
firewall.redirect_enabled_number_0.dest_port='21'
firewall.redirect_enabled_number_1=redirect
firewall.redirect_enabled_number_1.name='FTP'
firewall.redirect_enabled_number_1.src='wan'
firewall.redirect_enabled_number_1.dest='lan'
firewall.redirect_enabled_number_1.proto='udp'
firewall.redirect_enabled_number_1.src_dport='21'
firewall.redirect_enabled_number_1.dest_ip='192.168.1.1'
firewall.redirect_enabled_number_1.dest_port='21'
firewall.redirect_enabled_number_2=redirect
firewall.redirect_enabled_number_2.name='tor'
firewall.redirect_enabled_number_2.src='wan'
firewall.redirect_enabled_number_2.dest='lan'
firewall.redirect_enabled_number_2.proto='tcp'
firewall.redirect_enabled_number_2.src_dport='51413'
firewall.redirect_enabled_number_2.dest_ip='192.168.0.10'
firewall.redirect_enabled_number_2.dest_port='51413'
firewall.redirect_enabled_number_3=redirect
firewall.redirect_enabled_number_3.name='tor'
firewall.redirect_enabled_number_3.src='wan'
firewall.redirect_enabled_number_3.dest='lan'
firewall.redirect_enabled_number_3.proto='udp'
firewall.redirect_enabled_number_3.src_dport='51413'
firewall.redirect_enabled_number_3.dest_ip='192.168.0.10'
firewall.redirect_enabled_number_3.dest_port='51413'