*nix. Задай вопрос - получи ответ

Discussion in 'Linux, Freebsd, *nix' started by Xszz, 10 Jan 2008.

  1. fandor9

    fandor9 Reservists Of Antichat

    Joined:
    16 Nov 2018
    Messages:
    630
    Likes Received:
    1,050
    Reputations:
    47
    я не думаю, что у вас это стоит в конфиге. Он должен лежать под /etc/i2pd/i2pd.conf
    Вот как должен выглядеть конфиг, посмотрире офф. источник
    Code:
    config i2pd
        # Set where i2pd should store its data (netDB, certificates, addresses,
        # etc). By default we store it in RAM so no data is written to ROM.
        # If you store data permanently, you may want to enable
        # 'profiles = true' and 'addressbook = true' in i2pd.conf
        #### IMPORTANT! ####
        # Data is consistently rewritten. DO NOT POINT IT TO INNER ROM. Flash
        # will die.
        option data_dir '/var/lib/i2pd'
    
        # If you don't store i2pd data permanently, you can still choose to
        # store only addressbooks. If not, i2pd will be forced to do HTTP
        # reseeding on every start. Storing addressbook may be useful
        # if HTTP reseeding is not possible or blocked (by censorship).
        # Even addressbook doesn't take up too much space, extroot is still
        # strongly recommended to avoid flash wear-out.
        # Enable 'addressbook = true' in i2pd.conf to make it take effect.
        #option addressbook_dir '/etc/i2pd/addressbook'
     
    amanat777 likes this.
  2. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0

    Есть и у меня вонфиг /etc/i2pd/i2pd.conf

    Как же его запустить??
     
  3. altblitz

    altblitz Elder - Старейшина

    Joined:
    5 Jun 2009
    Messages:
    3,694
    Likes Received:
    3,149
    Reputations:
    236
    OpenWRT does depends on the router model.
    Для примера, открываю доступ к router. И там, в web-рожице, прописано на уровне железа - User Access Only.

    [​IMG]

    Хотя, и этого достаточно, открыть порта.
     
    amanat777 likes this.
  4. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    root@OpenWrt:~# /var/run/i2pd.pid
    -ash: /var/run/i2pd.pid: Permission denied

    Что-то не так с правами.
     
  5. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0

    Бро, у меня i2pd даже не устанавливается! Смысл что-то открывать браузером?
     
  6. altblitz

    altblitz Elder - Старейшина

    Joined:
    5 Jun 2009
    Messages:
    3,694
    Likes Received:
    3,149
    Reputations:
    236
    Ясно и понятно теперь. Выполни

    sudo mc
    F9 -> File -> Chmod

    [​IMG]

    Арч
    , соблюдает строго правила записи оригинальных файлов конфигурации, как оно и видится на КДПВ.

    Code:
    root@inode /var/run/i2p # ls /var/run/i2p
    total 0
    drwx------  2 i2p  i2p   40 Aug  5 15:49 ./
    Единствоенное, что можно сделать - удалить пакет i2p и переустановить его (или OS) целиком и полностью.
    Arch, позволяет делать такое, откат пакетов и возврат до нужного.
     
    #2466 altblitz, 6 Aug 2020
    Last edited: 6 Aug 2020
    amanat777 likes this.
  7. fandor9

    fandor9 Reservists Of Antichat

    Joined:
    16 Nov 2018
    Messages:
    630
    Likes Received:
    1,050
    Reputations:
    47
    .pid это файл с номером процесса, под которым запущен i2pd. Зачем вы пытаетесь его запустить? Вы можете его посмотреть с помощью: cat /var/run/i2pd.pid
     
    dmax0fw and amanat777 like this.
  8. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0

    Да просто отключил логику и сделал так,
    root@OpenWrt:~# /var/run/i2pd.pid
    -ash: /var/run/i2pd.pid: Permission denied

    Потом загуглил ошибку и нашел решение По запросу (-ash: /var/run/i2pd.pid: Permission denied) duckduckgo нашел только одну ссылку https://github.com/openwrt/packages/issues/5693 Я подставил в скрипт эти значения и вроде бы все запустилось..

    On my router (256 MB RAM) works perfectly:

    #!/bin/sh /etc/rc.common
    # Copyright (C) 2017 OpenWrt.org

    USE_PROCD=1

    START=90
    STOP=10

    PROG=/usr/sbin/i2pd
    USER="i2pd"
    GROUP="i2pd"
    PIDFILE=/var/run/i2pd.pid
    DATADIR=/var/lib/i2pd

    start_service() {
    ## RAM
    if [ ! -d $DATADIR ]; then
    mkdir -p $DATADIR
    ln -s /usr/share/i2pd/certificates $DATADIR/certificates
    ln -s /etc/i2pd/tunnels.conf $DATADIR/tunnels.conf
    fi

    ## We need permissions
    chown $USER:$GROUP $DATADIR
    touch $PIDFILE
    chown $USER:adm $PIDFILE

    procd_open_instance
    procd_set_param command $PROG --service --conf=/etc/i2pd/i2pd.conf --pidfile $PIDFILE
    ## Don't know about i2pd user's HOME
    procd_set_param env HOME=$DATADIR
    procd_set_param limits nofile=4096
    procd_set_param stdout 1
    procd_set_param stderr 1
    procd_set_param user $USER
    procd_set_param pidfile $PIDFILE
    procd_close_instance
    }

    Но все равно i2pd не работает.
     
  9. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Я работаю с виртуалки под управлением kali
     
  10. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Наконец-то смог зайти...
    Скрипт вроде отработал, больше нет ошибки

    root@OpenWrt:~# /etc/init.d/i2pd start
    mkdir: can't create directory '': No such file or directory
    ln: /certificates/certificates: File exists
    ln: /tunnels.conf: File exists
    chown: : No such file or directory
    chown: : No such file or directory

    Статус /etc/init.d/i2pdвыдает какие команды вводить

    root@OpenWrt:~# /etc/init.d/i2pd status
    Syntax: /etc/init.d/i2pd [command]

    Available commands:
    start Start the service
    stop Stop the service
    restart Restart the service
    reload Reload configuration files (or restart if service does not implement reload)
    enable с service autostart
    disable Disable service autostart

    Командой /etc/init.d/i2pd enable сервис даже ужалось поставить в автозагрузку, и i2pd появился в разделе http://192.168.1.1/cgi-bin/luci/admin/system/startup через вебторду..
    НО ВСЕ РОВНО СЕРВИС НЕ РАБОТАЕТ!!!

    По адресу http://192.168.1.1:7070/ ничего нет!

    Так же нет логов

    root@OpenWrt:~# ls /var/log/i2pd.log
    ls: /var/log/i2pd.log: No such file or directory

    Скорее всего нужно настраивать основной файл конфигурации.

    У теня по дефолту он выглядит так

    /etc/i2pd/i2pd.conf
    GNU nano 4.9.3 /etc/i2pd/i2pd.conf
    ## Configuration file for a typical i2pd user
    ## See https://i2pd.readthedocs.io/en/latest/user-guide/configuration/
    ## for more options you can use in this file.

    ## Lines that begin with "## " try to explain what's going on. Lines
    ## that begin with just "#" are disabled commands: you can enable them
    ## by removing the "#" symbol.

    ## Tunnels config file
    ## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf
    # tunconf = /var/lib/i2pd/tunnels.conf

    ## Tunnels config files path
    ## Use that path to store separated tunnels in different config files.
    ## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
    # tunnelsdir = /var/lib/i2pd/tunnels.conf.d

    ## Where to write pidfile (don't write by default)
    # pidfile = /var/run/i2pd.pid

    ## Logging configuration section
    ## By default logs go to stdout with level 'info' and higher
    ##
    ## Logs destination (valid values: stdout, file, syslog)
    ## * stdout - print log entries to stdout
    ## * file - log entries to a file
    ## * syslog - use syslog, see man 3 syslog
    # log = file
    ## Path to logfile (default - autodetect)
    # logfile = /var/log/i2pd.log
    ## Log messages above this level (debug, *info, warn, error, none)
    ## If you set it to none, logging will be disabled
    # loglevel = info
    ## Write full CLF-formatted date and time to log (default: write only time)
    # logclftime = true

    ## Daemon mode. Router will go to background after start
    # daemon = true

    ## Specify a family, router belongs to (default - none)
    # family =

    ## External IP address to listen for connections
    ## By default i2pd sets IP automatically
    # host = 1.2.3.4

    ## Port to listen for connections
    ## By default i2pd picks random port. You MUST pick a random number too,
    ## don't just uncomment this
    # port = 4567

    ## Enable communication through ipv4
    ipv4 = true
    ## Enable communication through ipv6
    ipv6 = false

    ## Network interface to bind to
    # ifname =
    ## You can specify different interfaces for IPv4 and IPv6
    # ifname4 =
    # ifname6 =

    ## Enable NTCP transport (default = true)
    # ntcp = true
    ## If you run i2pd behind a proxy server, you can only use NTCP transport with ntcpproxy option
    ## Should be http://address:port or socks://address:port
    # ntcpproxy = http://192.168.1.1:8118
    ## Enable SSU transport (default = true)
    # ssu = true

    ## Should we assume we are behind NAT? (false only in MeshNet)
    # nat = true

    ## Bandwidth configuration
    ## L limit bandwidth to 32KBs/sec, O - to 256KBs/sec, P - to 2048KBs/sec,
    ## X - unlimited
    ## Default is X for floodfill, L for regular node
    # bandwidth = L
    ## Max % of bandwidth limit for transit. 0-100. 100 by default
    # share = 100

    ## Router will not accept transit tunnels, disabling transit traffic completely
    ## (default = false)
    # notransit = true

    ## Router will be floodfill
    # floodfill = true

    [http]
    ## Web Console settings
    ## Uncomment and set to 'false' to disable Web Console
    # enabled = true
    ## Address and port service will listen on
    address = 192.168.1.1
    port = 7070
    ## Path to web console, default "/"
    # webroot = /
    ## Uncomment following lines to enable Web Console authentication
    # auth = true
    # user = i2pd
    # pass = changeme

    [httpproxy]
    ## Uncomment and set to 'false' to disable HTTP Proxy
    # enabled = true
    ## Address and port service will listen on
    address = 192.168.1.1
    port = 4444
    ## Optional keys file for proxy local destination
    # keys = http-proxy-keys.dat
    ## Enable address helper for adding .i2p domains with "jump URLs" (default: true)
    # addresshelper = true
    ## Address of a proxy server inside I2P, which is used to visit regular Internet
    # outproxy = http://false.i2p
    ## httpproxy section also accepts I2CP parameters, like "inbound.length" etc.

    [socksproxy]
    ## Uncomment and set to 'false' to disable SOCKS Proxy
    # enabled = true
    ## Address and port service will listen on
    address = 192.168.1.1
    port = 4447
    ## Optional keys file for proxy local destination
    # keys = socks-proxy-keys.dat
    ## Socks outproxy. Example below is set to use Tor for all connections except i2p
    ## Uncomment and set to 'true' to enable using of SOCKS outproxy
    # outproxy.enabled = false
    ## Address and port of outproxy
    # outproxy = 192.168.1.1
    # outproxyport = 9050
    ## socksproxy section also accepts I2CP parameters, like "inbound.length" etc.

    [sam]
    ## Uncomment and set to 'true' to enable SAM Bridge
    enabled = true
    ## Address and port service will listen on
    # address = 192.168.1.1
    # port = 7656

    [bob]
    ## Uncomment and set to 'true' to enable BOB command channel
    # enabled = false
    ## Address and port service will listen on
    # address = 192.168.1.1
    # port = 2827

    [i2cp]
    ## Uncomment and set to 'true' to enable I2CP protocol
    # enabled = false
    ## Address and port service will listen on
    # address = 192.168.1.1
    # port = 7654

    [i2pcontrol]
    ## Uncomment and set to 'true' to enable I2PControl protocol
    # enabled = false
    ## Address and port service will listen on
    # address = 192.168.1.1
    # port = 7650
    ## Authentication password. "itoopie" by default
    # password = itoopie
    [precomputation]
    ## Enable or disable elgamal precomputation table
    ## By default, enabled on i386 hosts
    # elgamal = true

    [upnp]
    ## Enable or disable UPnP: automatic port forwarding (enabled by default in WINDOWS, ANDROID)
    # enabled = false
    ## Name i2pd appears in UPnP forwardings list (default = I2Pd)
    # name = I2Pd

    [reseed]
    ## Options for bootstrapping into I2P network, aka reseeding
    ## Enable or disable reseed data verification.
    verify = true
    ## URLs to request reseed data from, separated by comma
    ## Default: "mainline" I2P Network reseeds
    # urls = https://reseed.i2p-projekt.de/,https://i2p.mooo.com/netDb/,https://netdb.i2p2.no/
    ## Path to local reseed data file (.su3) for manual reseeding
    # file = /path/to/i2pseeds.su3
    ## or HTTPS URL to reseed from
    # file = https://legit-website.com/i2pseeds.su3
    ## Path to local ZIP file or HTTPS URL to reseed from
    # zipfile = /path/to/netDb.zip
    ## If you run i2pd behind a proxy server, set proxy server for reseeding here
    ## Should be http://address:port or socks://address:port
    # proxy = http://192.168.1.1:8118
    ## Minimum number of known routers, below which i2pd triggers reseeding. 25 by default
    # threshold = 25


    [addressbook]
    ## AddressBook subscription URL for initial setup
    ## Default: inr.i2p at "mainline" I2P Network
    # defaulturl = http://joajgazyztfssty4w2on5oaqksz6tqoxbduy553y34mf4byv6gpq.b32.i2p/export/alive-hosts.txt
    ## Optional subscriptions URLs, separated by comma
    # subscriptions = http://inr.i2p/export/alive-hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://rus.i2p/hosts.txt

    [limits]
    ## Maximum active transit sessions (default:2500)
    # transittunnels = 2500
    ## Limit number of open file descriptors (0 - use system limit)
    # openfiles = 0
    ## Maximum size of corefile in Kb (0 - use system limit)
    # coresize = 0
    ## Threshold to start probabalistic backoff with ntcp sessions (0 - use system limit)
    # ntcpsoft = 0
    ## Maximum number of ntcp sessions (0 - use system limit)
    # ntcphard = 0

    [trust]
    ## Enable explicit trust options. false by default
    # enabled = true
    ## Make direct I2P connections only to routers in specified Family.
    # family = MyFamily
    ## Make direct I2P connections only to routers specified here. Comma separated list of base64 identities.
    # routers =
    ## Should we hide our router from other routers? false by default
    # hidden = true

    [exploratory]
    ## Exploratory tunnels settings with default values
    # inbound.length = 2
    # inbound.quantity = 3
    # outbound.length = 2
    # outbound.quantity = 3

    [persist]
    ## Save peer profiles on disk (default: true)
    # profiles = true

    Прошу помощи!!!!!!!!!!!
     
  11. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Не понимаю куда копать!
    На kali и на debian - server все прекрасно работает! Вот вывод ls /var/lib/i2pd на kali и debian - server

    ls /var/lib/i2pd

    addressbook i2pd.conf ntcp2.keys router.info tags
    certificates irc-keys.dat peerProfiles router.keys tunnels.conf
    destinations netDb prosody.dat subscriptions.txt tunnels.d

    А вот что на openwrt в /var/lib/i2pd

    root@OpenWrt:~# ls /var/lib/i2pd

    certificates destinations tags tunnels.conf


    Как видно отсутствуют addressbook i2pd.conf irc-keys.dat netDb ntcp2.keys peerProfiles router.info router.keys subscriptions.txt tunnels.d
     
  12. b3

    b3 Banned

    Joined:
    5 Dec 2004
    Messages:
    2,174
    Likes Received:
    1,157
    Reputations:
    202
    для начала проверьте все зависимости которые нужны пакету, потом проверьте все ли файлы устанавливаются в нужные директивы, если что подправить руками пути, ну и следите чтоб прав везде хватало.
    Вывалив кашу на форум и даже не оформив пост это я бы назвал "наглостью" мне влом читать даже это. Уделите 3 минуты времени и сделайте читабельно.
    пути не верные а команде chown вообще передается пустое значение как я понял.
    Ну тут вообще жесть)) Выше обьяснили почему)
     
    erwerr2321 likes this.
  13. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Вывалив кашу на форум и даже не оформив пост это я бы назвал "наглостью" мне влом читать даже это.[/QUOTE]

    Прошу прощения, если кого обидел....
    Я не так давно начал погружаться а этот прекрасный мир и многое пока еще мне недоступно.((

    для начала проверьте все зависимости

    Все зависимости разутеется установлены!

    потом проверьте все ли файлы устанавливаются в нужные директивы

    Вот с этим-то и проблема!
    На моем debian-server где i2pd работает в /var/lib/i2pd содержится следующее

    ls /var/lib/i2pd

    addressbook i2pd.conf ntcp2.keys router.info tags
    certificates irc-keys.dat peerProfiles router.keys tunnels.conf
    destinations netDb prosody.dat subscriptions.txt tunnels.d

    Так же и на kali где тоже i2pd работает исправно!

    А вот /var/lib/i2pd на openwrt

    ls /var/lib/i2pd
    certificates destinations tags tunnels.conf

    Как видно отсутствуют директории addressbook , destinations , irc-keys.dat , netDb , ntcp2.keys , peerProfiles , prosody.dat (возтижно отсутствует аотому что не установлен prosody) , prosody.dat , router.keys , subscriptions.txt , tags и tunnels.d....

    Так же в директории /etc/i2pd/ отсутствуют subscriptions.txt tunnels.conf.d...

    На kali и на debian-server

    ls /etc/i2pd/
    i2pd.conf subscriptions.txt tunnels.conf tunnels.conf.d

    На openwrt

    ls /etc/i2pd/
    i2pd.conf tunnels.conf

    Как это решить? Создавать их вручную?? Там много файлов, особенно в /var/lib/i2pd/addressbook... Некоторые даже не открыть тет же редактором nano..
     
    #2473 amanat777, 12 Aug 2020
    Last edited: 12 Aug 2020
  14. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    mkdir: can't create directory '': No such file or directory
    ln: /certificates/certificates: File exists
    ln: /tunnels.conf: File exists
    chown: : No such file or directory
    chown: : No such file or directory

    Этой ошибки нет давно!
    Теперь при запуске пишет слевующее, но все ровно не работает!

    root@OpenWrt:/etc/i2pd# service i2pd status
    Syntax: /etc/init.d/i2pd [command]

    Available commands:
    start Start the service
    stop Stop the service
    restart Restart the service
    reload Reload configuration files (or restart if service does not implement reload)
    enable Enable service autostart
    disable Disable service autostart
     
  15. b3

    b3 Banned

    Joined:
    5 Dec 2004
    Messages:
    2,174
    Likes Received:
    1,157
    Reputations:
    202
    Это не запуск, это проверка статуса сервиса через устаревшие методы. Запустите "/etc/init.d/i2pd start" и покажите лог консоли.
     
    amanat777 and altblitz like this.
  16. altblitz

    altblitz Elder - Старейшина

    Joined:
    5 Jun 2009
    Messages:
    3,694
    Likes Received:
    3,149
    Reputations:
    236
    Тогда, логично будет установить Virtial Box с (Black)Arch и пройтись по wiki пол-странички, того же Arch.

    [​IMG]

    web-interface i2p наглядно показывает текущий статус:

    [​IMG]

    так же, как и логах /var/log/i2pd
    Code:
    root@inode ~log/i2pd # ls /var/log/i2pd
    total 75
    drwx------  2 i2pd i2pd  3488 Aug 16 17:00 ./
    drwxr-xr-x 15 root root  3488 Aug 16 16:59 ../
    -rw-r--r--  1 i2pd i2pd 66995 Aug 16 17:21 i2pd.log
    
    с правами root, of course.
     
    amanat777 likes this.
  17. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0

    /etc/init.d/i2pd start нечего не выдает

    root@OpenWrt:~# /etc/init.d/i2pd start

    а вот /etc/init.d/i2pd status выводит следующее

    root@OpenWrt:~# /etc/init.d/i2pd status
    Syntax: /etc/init.d/i2pd [command]

    Available commands:
    start Start the service
    stop Stop the service
    restart Restart the service
    reload Reload configuration files (or restart if service does not implement reload)
    enable Enable service autostart
    disable Disable service autostart
    Статус показывает какие команды вводить но i2pd по прежнему не работает..
     
  18. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Все работает только на kali, на openwrt не хочет...
    В самой программе не создано много папок которые должны быть!

    Вот как выглядит /etc/i2pd наkali где все работает

    u@kali:~$ ls /etc/i2pd
    i2pd.conf subscriptions.txt tunnels.conf tunnels.conf.d

    А вот как выглядит /etc/i2pd на openwrt

    root@OpenWrti:~# ls /etc/i2pd

    i2pd.conf tunnels.conf

    Отсутствуют subscriptions.txt и tunnels.conf.d

    А вот вывод ls /var/lib/i2pd на kali где все хорошо

    u@kali:~$ ls /var/lib/i2pd/
    addressbook i2pd.conf ntcp2.keys router.info tags
    certificates irc-keys.dat peerProfiles router.keys tunnels.conf
    destinations netDb prosody.dat subscriptions.txt tunnels.d


    В вот на openwrt где i2pd не работает

    root@OpenWrti:~# ls /var/lib/i2pd/

    certificates destinations tags tunnels.conf

    Тоже нет кучи файлов и папок. Программа при установке должна была их создать но не создала. Поэтому наверное и выдавал в самом начале ошибку

    mkdir: can't create directory '': No such file or directory
    ln: /certificates/certificates: File exists
    ln: /tunnels.conf: File exists
    chown: : No such file or directory
    chown: : No such file or directory

    Кстати, данная ошибка ушла после того как я отредактирщвал скрипт /etc/init.d/i2pd и привел к такому виду

    #!/bin/sh /etc/rc.common
    # Copyright (C) 2017 OpenWrt.org

    USE_PROCD=1

    START=90
    STOP=10

    PROG=/usr/sbin/i2pd
    USER="i2pd"
    GROUP="i2pd"
    PIDFILE=/var/run/i2pd.pid
    DATADIR=/var/lib/i2pd

    start_service() {
    ## RAM
    if [ ! -d $DATADIR ]; then
    mkdir -p $DATADIR
    ln -s /usr/share/i2pd/certificates $DATADIR/certificates
    ln -s /etc/i2pd/tunnels.conf $DATADIR/tunnels.conf
    fi

    ## We need permissions
    chown $USER:$GROUP $DATADIR
    touch $PIDFILE
    chown $USER:adm $PIDFILE

    procd_open_instance
    procd_set_param command $PROG --service --conf=/etc/i2pd/i2pd.conf --pidfile $PIDFILE
    ## Don't know about i2pd user's HOME
    procd_set_param env HOME=$DATADIR
    procd_set_param limits nofile=4096
    procd_set_param stdout 1
    procd_set_param stderr 1
    procd_set_param user $USER
    procd_set_param pidfile $PIDFILE
    procd_close_instance
    }
     
  19. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0
    Вот логи openwrt по i2pd

    root@OpenWrt:~# logread | grep i2pd
    Tue Aug 25 08:22:32 2020 daemon.err i2pd[2294]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:22:32 2020 daemon.err i2pd[2294]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:30:56 2020 daemon.err i2pd[2472]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:30:56 2020 daemon.err i2pd[2472]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:31:11 2020 daemon.err i2pd[2497]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:31:11 2020 daemon.err i2pd[2497]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:38:13 2020 daemon.err i2pd[2623]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 08:46:38 2020 daemon.err i2pd[2673]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 08:46:48 2020 daemon.err i2pd[2701]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 09:49:48 2020 daemon.err i2pd[3086]: missing/unreadable config file: /etc/i2pd/i2pd.conf


    В доступе отказано: "/ var / lib / i2pd"

    Какие-то проблемы с правами

    root@OpenWrt:~# ls -lh /var/lib/i2pd
    lrwxrwxrwx 1 root root 28 Aug 25 08:38 certificates -> /usr/share/i2pd/certificates
    drwxr-xr-x 2 i2pd i2pd 40 Aug 25 08:38 destinations
    drwxr-xr-x 2 i2pd i2pd 40 Aug 25 08:38 tags
    lrwxrwxrwx 1 root root 22 Aug 25 08:38 tunnels.conf -> /etc/i2pd/tunnels.conf
    root@OpenWrt:~#

     
  20. amanat777

    amanat777 Member

    Joined:
    19 Mar 2020
    Messages:
    189
    Likes Received:
    8
    Reputations:
    0

    Переустановил i2pd, снова вернулась ошибка

    root@OpenWrt:~# /etc/init.d/i2pd start
    mkdir: can't create directory '': No such file or directory
    ln: /certificates/certificates: File exists
    ln: /tunnels.conf: File exists
    chown: : No such file or directory
    chown: : No such file or directory

    Программа не создает нужные папки и файлы потому что у нее нет прав, от этого и не работает ничего!

    Tue Aug 25 08:22:32 2020 daemon.err i2pd[2294]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:22:32 2020 daemon.err i2pd[2294]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:30:56 2020 daemon.err i2pd[2472]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:30:56 2020 daemon.err i2pd[2472]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:31:11 2020 daemon.err i2pd[2497]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    Tue Aug 25 08:31:11 2020 daemon.err i2pd[2497]: what(): boost::filesystem::create_directory: Permission denied: "/var/lib/i2pd"
    Tue Aug 25 08:38:13 2020 daemon.err i2pd[2623]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 08:46:38 2020 daemon.err i2pd[2673]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 08:46:48 2020 daemon.err i2pd[2701]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 09:49:48 2020 daemon.err i2pd[3086]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:01:15 2020 daemon.err i2pd[3132]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:01:52 2020 daemon.err i2pd[3168]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:14:00 2020 daemon.err i2pd[3220]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:15:00 2020 daemon.err i2pd[3250]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:16:51 2020 daemon.err i2pd[3287]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:17:02 2020 daemon.err i2pd[3308]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:34:32 2020 daemon.err i2pd[3505]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:42:25 2020 daemon.err i2pd[3654]: missing/unreadable config file: /etc/i2pd/i2pd.conf
    Tue Aug 25 10:48:31 2020 daemon.err i2pd[3763]: missing/unreadable config file: /etc/i2pd/i2pd.conf

    Не знаю как такое лечить! В сети нашел только одну такую тему но без решения

    https://github.com/openwrt/packages/issues/5693

    Жесть какая-то!