linuxserver / docker-freshrss

GNU General Public License v3.0
157 stars 24 forks source link

Impossible to add feeds on fresh install #39

Closed Nidwan closed 2 years ago

Nidwan commented 3 years ago

linuxserver.io


Expected Behavior

To be able to add a feed, without an error message.

Current Behavior

Error message displayed : "The newsfeed could not be added. Check FreshRSS logs for details. You can try force adding by appending #force_feed to the URL."

Steps to Reproduce

  1. Click on the "+" sign in the left hand menu
  2. Paste the address of a valid rss or atom feed
  3. Click on "Add"

Environment

OS: Debian 9.13 / OpenMediaVault 4.1.36 CPU architecture: x86_64 How docker service was installed: NAS OS provided (OpenMediaVault 4)

dpkg -l | grep docker
ii  docker-ce                           5:19.03.13~3-0~debian-stretch     amd64        Docker: the open-source application container engine
ii  docker-ce-cli                       5:19.03.13~3-0~debian-stretch     amd64        Docker CLI: the open-source application container engine
ii  openmediavault-docker-gui           4.1.6                             all          OpenMediaVault plugin for Docker

Command used to create docker container (screenshot)

FreshRSS01 FreshRSS02 FreshRSS03

Docker logs

Log from the FreshRSS WebUI

2021-03-29 22:29:39 Unknown error for feed [https://rss.art19.com/apology-line]
2021-03-29 22:28:01 cURL error 6: Could not resolve host: rss.art19.com [https://rss.art19.com/apology-line]
2021-03-29 21:46:07 cURL error 6: Could not resolve host: github.com [https://github.com/FreshRSS/FreshRSS/releases.atom]

PHP log

[29-Mar-2021 21:44:55] NOTICE: fpm is running, pid 331
[29-Mar-2021 21:44:55] NOTICE: ready to handle connections```

Nginx access.log

172.17.0.1 - - [29/Mar/2021:21:45:34 +0200] "GET /i/ HTTP/1.1" 200 1218 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:36 +0200] "POST /i/index.php?step=0 HTTP/1.1" 302 2936 "https://freshrss.xxxxxxx.com/i/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:36 +0200] "GET /i/index.php?step=1 HTTP/1.1" 200 1092 "https://freshrss.xxxxxxx.com/i/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:44 +0200] "GET /i/index.php?step=2 HTTP/1.1" 200 1179 "https://freshrss.xxxxxxx.com/i/index.php?step=1" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:49 +0200] "POST /i/index.php?step=2 HTTP/1.1" 302 3568 "https://freshrss.xxxxxxx.com/i/index.php?step=2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:49 +0200] "GET /i/index.php?step=3 HTTP/1.1" 200 1379 "https://freshrss.xxxxxxx.com/i/index.php?step=2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:57 +0200] "POST /i/index.php?step=3 HTTP/1.1" 302 3409 "https://freshrss.xxxxxxx.com/i/index.php?step=3" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:57 +0200] "GET /i/index.php?step=4 HTTP/1.1" 200 681 "https://freshrss.xxxxxxx.com/i/index.php?step=3" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:59 +0200] "GET /i/index.php?step=5 HTTP/1.1" 302 1342 "https://freshrss.xxxxxxx.com/i/index.php?step=4" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:45:59 +0200] "GET /i/index.php HTTP/1.1" 200 2378 "https://freshrss.xxxxxxx.com/i/index.php?step=4" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:01 +0200] "GET /i/?c=javascript&a=nonce&user=admin HTTP/1.1" 200 103 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:01 +0200] "POST /i/?c=auth&a=login HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:01 +0200] "GET /i/?rid=60622e79c5667 HTTP/1.1" 200 4554 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:02 +0200] "GET /themes/icons/view-global.svg HTTP/1.1" 200 705 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:02 +0200] "GET /themes/icons/view-reader.svg HTTP/1.1" 200 1090 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:02 +0200] "POST /i/?c=javascript&a=actualize HTTP/1.1" 200 202 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:06 +0200] "POST /i/?c=feed&a=actualize&id=1&ajax=1 HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:46:06 +0200] "GET /i/?c=subscription&a=add HTTP/1.1" 200 3676 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:47:35 +0200] "POST /i/?c=feed&a=add HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:47:35 +0200] "GET /i/?c=subscription&a=add&rid=60622ed2352d0 HTTP/1.1" 200 3783 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:47:37 +0200] "GET /i/?a=logs HTTP/1.1" 200 2654 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:52:02 +0200] "GET /i/ HTTP/1.1" 200 4553 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:52:13 +0200] "GET /i/?c=configure&a=system HTTP/1.1" 200 3265 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"
172.17.0.1 - - [29/Mar/2021:21:52:16 +0200] "GET /i/?c=update&a=checkInstall HTTP/1.1" 200 2961 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"

Nginx error.log

2021/03/29 21:47:35 [error] 346#346: *36 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: cookie in /usr/share/webapps/freshrss/app/Controllers/feedController.php on line 176PHP message: PHP Notice:  Undefined variable: cookie in /usr/share/webapps/freshrss/app/Controllers/feedController.php on line 177" while reading response header from upstream, client: 172.17.0.1, server: _, request: "POST /i/?c=feed&a=add HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "freshrss.xxxxxxx.com"

Docker container log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    37771
User gid:    1003
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
.+++++
..........+++++
writing new private key to '/config/keys/cert.key'
-----
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-install: executing... 
[cont-init.d] 40-install: exited 0.
[cont-init.d] 99-custom-files: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

Nidwan commented 3 years ago

Reading the Nginx error.log, is it possible the issue is related to the nginx config file from Swag ? I know only little about Nginx but I can see there's an "undefined variable" [...] "while reading response header from upstream". It made me think about my nginx site-proxy conf file, which has this line (I've copied the whole file below) : proxy_set_header X-Forwarded-Port $server_port;

I'm not sure if it's relevant or not, but I tried to echo this variable from the container itself. It didn't returned anything:

docker exec -ti freshrss bash
echo $server_port

Here's my complete freshrss.subdomain.conf file. The only three things, I edited from the sample are :

## Version 2020/12/09
# make sure that your dns has a cname set for freshrss

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name freshrss.*;

# ask Google not to index
    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app 192.168.1.2;
        set $upstream_port 85;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        proxy_redirect off;
        proxy_buffering off;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_cookie_path / "/; HTTPOnly; Secure";
        proxy_set_header Authorization $http_authorization;
        proxy_pass_header Authorization;
    }
}
github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.