Jump to content

altJSV

Forum Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by altJSV

  1. 19 часов назад, zyxmon сказал:

    А я бы порекомендовал почитать инструкцию, перед тем, как давать советы

    И к чему это? С переходом на Python 3.10 сломалось все. Необходимые правки для запуска и актуальная инструкция написаны несколькими постами выше. Но вот только после выполнения команды

    pip3 install -r requirements.txt

    Для установки всех недостающих пакетов для успешного запуска, установка крашится на компиляции пакета brotli. Ему тупо не хватает файла Python.h входящего в пакет python3-dev. В репозитории Entware я пакета python-brotli, что-то не наблюдаю, хотя он присутствует практически во всех других популярных репозиториях типа того же debian. Так что остается качать через pip и собирать прямо на роутере.

    И в чем я не прав и к чему эти отсылки к чтению инструкции?

  2. После обновления Nginx до версии nginx (1.19.2-1) сервер перестал запускаться. nginx -t выдает

    nginx: [emerg] using regex "\.php$" requires PCRE library in /opt/etc/nginx/nginx.conf:65
    nginx: configuration file /opt/etc/nginx/nginx.conf test failed

    Содержимое конфига ниже

    
    user  nobody;
    worker_processes  1;
    
    #error_log  /opt/var/log/nginx/error.log;
    #error_log  /opt/var/log/nginx/error.log  notice;
    #error_log  /opt/var/log/nginx/error.log  info;
    
    #pid        /opt/var/run/nginx.pid;
    
    
    events {
        worker_connections  64;
    }
    
    
    http {
        include       mime.types;
        default_type  application/octet-stream;
    
        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';
    
        #access_log  /opt/var/log/nginx/access.log main;
    
        sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
    
        #gzip  on;
    
        server {
            listen       88;
            server_name  localhost;
    
            #charset koi8-r;
    
            #access_log  /opt/var/log/nginx/host.access.log;
    
            location / {
                root   /opt/share/www;
                index  index.php index.html index.htm;
            }
    
            #error_page  404              /404.html;
    
            # redirect server error pages to the static page /50x.html
            #
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   /opt/share/www/html;
            }
    
            # proxy the PHP scripts to Apache listening on 127.0.0.1:80
            #
            #location ~ \.php$ {
            #    proxy_pass   http://127.0.0.1;
            #}
    
            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
            location ~ \.php$ {
                root           /opt/share/www;
                fastcgi_pass   unix:/opt/var/run/php-fcgi.sock;
                fastcgi_index  index.php;
            #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
                include        fastcgi_params;
            }
    
            # deny access to .htaccess files, if Apache's document root
            # concurs with nginx's one
            #
            #location ~ /\.ht {
            #    deny  all;
            #}
        }
    
    
        # another virtual host using mix of IP-, name-, and port-based configuration
        #
        #server {
        #    listen       8000;
        #    listen       somename:8080;
        #    server_name  somename  alias  another.alias;
    
        #    location / {
        #        root   html;
        #        index  index.html index.htm;
        #    }
        #}
    
    
        # HTTPS server
        #
        #server {
        #    listen       443 ssl;
        #    server_name  localhost;
    
        #    ssl_certificate      cert.pem;
        #    ssl_certificate_key  cert.key;
    
        #    ssl_session_cache    shared:SSL:1m;
        #    ssl_session_timeout  5m;
    
        #    ssl_ciphers  HIGH:!aNULL:!MD5;
        #    ssl_prefer_server_ciphers  on;
    
        #    location / {
        #        root   html;
        #        index  index.html index.htm;
        #    }
        #}
    
    }

    До обновления все работало отлично. Состав пакетов не менялся

    Библиотеки установлены

     libpcre - 8.44-2
    libpcre2 - 10.35-2
    libpcre2-32 - 10.35-2

    Что ему нужно ума не приложу

     

  3. Monitorrent это кросплатформенное веб приложение для автоматического скачивания торрент файлов и последующей их загрузки с помощью выбранного вами торрент клиента.

    Устанавливаем необходимый набор пакетов

    opkg install python3 python3-pip wget unzip
    pip3 install --upgrade setuptools

    Устанавливаем monitorrent

    mkdir -p /opt/monitorrent/
    cd /opt/monitorrent/
    wget https://github.com/werwolfby/monitorrent/releases/download/1.1.11/monitorrent-1.1.11.zip
    unzip monitorrent-1.1.11.zip
    pip3 install -r requirements.txt

    Создаем скрипт запуска nano /opt/etc/init.d/S95tormon

    #!/bin/sh
    cd /opt/monitorrent
    python3 server.py &

    Делаем его исполняемым chmod +x /opt/etc/init.d/S95tormon

    Запускаем сервер приложения monitorrent

    cd /opt/monitorrent/
    python3 server.py &

    Обязательно дожидаемся сообщения Server started on 0.0.0.0:6687  

    Переходим в браузере по адресу  IPРоутера:6687, появится страница входа (пароль на вход - monitorrent).

    1909970676_.thumb.PNG.d7f9e52743514f193b075a40cef30a96.PNG

    • Thanks 1
  4. Проблема один в один как у ТС. Роутер Zyxel Keenetic Ultra. Прошивка NDMS 2.16.D.1.0-1 Несколько раз в день сайты просто перестают открываться. Ip-tv работает без проблем. Перезагрузка проблему решает. Прописывал разные DNS (Яндекс, google, Ростелеком) - проблема сохраняется

    • Upvote 2
    • Need more info 1
  5. В инструкции пропущена установка пакета php7-mod-ctype

    В частности из-за него у меня возникала проблема со связкой Torrent Monitor + transmission При запуске обновления торрентов все время всплывала fatal errror ссылавшаяся на  /tm/class/TransmissionRPC.class.php в этой строке

     if ( ctype_digit( (string) $index ) ) { $return_as_array = true; }

    В общем функцию ctype_digit он не знал. Доустановкой пакета  php7-mod-ctype  в Entware все решилось

    • Thanks 1
×
×
  • Create New...