HenryQW / Awesome-TTRSS

🐋 Awesome TTRSS, a powerful Dockerised all-in-one RSS solution.
http://ttrss.henry.wang
MIT License
2.44k stars 494 forks source link

[BUG] api_feedreader disabled #363

Closed bytersproblem closed 2 years ago

bytersproblem commented 2 years ago

Describe the bug

I followed the procedure for adding plugins in ttrss docker with ENABLE_PLUGINS= dircetive. The plugin is in the system and seems enabled, but when I try to connect with Feedreader it says that the api is disabled

Have you googled? Yes. Nothing

Deployment method docker-compose wangqiru/ttrss:latest

Deployment environment

To Reproduce Steps to reproduce the behavior:

  1. add - ENABLE_PLUGINS=auth_internal,api_feedreader,wallabag_v2 to the environment section of doker-compose.yml
  2. do docker-compose up -d
  3. nginx

    
    server {
    listen 443 ssl;
    gzip on;
    server_name  ttrss.domain.com;
    
    ssl_certificate /etc/certs/ttrss/ttrss.crt;
    ssl_certificate_key /etc/certs/ttrss/ttrss.key;
    
    access_log /var/log/nginx/ttrssdev_access.log combined;
    error_log  /var/log/nginx/ttrssdev_error.log;
    
    location / {
        #rewrite /tt-rss/(.*) /$1 break;
        #proxy_redirect https://$http_host https://$http_host/ttrss;
        proxy_pass http://127.0.0.1:8005;
        #proxy_redirect off;
        #proxy_pass http://ttrssdev;
    
        proxy_set_header  Host                $http_host;
        proxy_set_header  X-Real-IP           $remote_addr;
        proxy_set_header  X-Forwarded-Ssl     on;
        proxy_set_header  X-Forwarded-For     $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto   $scheme;
        proxy_set_header  X-Frame-Options     SAMEORIGIN;
    
        client_max_body_size        100m;
        client_body_buffer_size     128k;
    
        proxy_buffer_size           4k;
        proxy_buffers               4 32k;
        proxy_busy_buffers_size     64k;
        proxy_temp_file_write_size  64k;
    }
    }

**Expected behavior**

to log in with feedreader app

**Error logs**
When the error occurs, execute `docker logs ttrss --tail 100` to obtain the error logs and paste **the relevant logs** here.

[10:52:01/54] Waiting before update (5)... [10:52:01/52] Scheduled 0 feeds to update... [10:52:01/52] Sending digests, batch of max 15 users, headline limit = 1000 [10:52:01/52] All done. [10:52:01/52] Expired cache/export: removed 0 files. [10:52:01/52] Expired cache/feeds: removed 0 files. [10:52:01/52] Expired cache/images: removed 0 files. [10:52:01/52] Expired cache/upload: removed 0 files. [10:52:01/52] Removed 0 old lock files. [10:52:01/52] Removing old error log entries... [10:52:01/52] Purged 0 orphaned posts. [10:52:02/32] Child process with PID 51 reaped. [10:52:02/32] Received SIGCHLD, 1 active tasks left. [10:52:06/54] Scheduled 0 feeds to update... [10:52:06/54] Sending digests, batch of max 15 users, headline limit = 1000 [10:52:06/54] All done. [10:52:07/32] Child process with PID 53 reaped. [10:52:07/32] Received SIGCHLD, 0 active tasks left. [10:53:00/32] 0 active tasks, next spawn at 60 sec. [10:54:00/32] 0 active tasks, next spawn at 0 sec. [10:54:01/32] Spawned child process with PID 59 for task 0. [10:54:01/32] Spawned child process with PID 61 for task 1. [10:54:01/62] Using task id 1 [10:54:01/62] Lock: update_daemon-61.lock [10:54:01/60] Using task id 0 [10:54:01/60] Lock: update_daemon-59.lock [10:54:01/60] Waiting before update (0)... [10:54:01/62] Waiting before update (5)... [10:54:01/60] Scheduled 0 feeds to update... [10:54:01/60] Sending digests, batch of max 15 users, headline limit = 1000 [10:54:01/60] All done. [10:54:01/60] Expired cache/export: removed 0 files. [10:54:01/60] Expired cache/feeds: removed 0 files. [10:54:01/60] Expired cache/images: removed 0 files. [10:54:01/60] Expired cache/upload: removed 0 files. [10:54:01/60] Removed 0 old lock files. [10:54:01/60] Removing old error log entries... [10:54:01/60] Purged 0 orphaned posts. [10:54:02/32] Child process with PID 59 reaped. [10:54:02/32] Received SIGCHLD, 1 active tasks left. [10:54:06/62] Scheduled 0 feeds to update... [10:54:06/62] Sending digests, batch of max 15 users, headline limit = 1000 [10:54:06/62] All done. [10:54:07/32] Child process with PID 61 reaped. [10:54:07/32] Received SIGCHLD, 0 active tasks left. [10:55:01/32] 0 active tasks, next spawn at 60 sec. [10:56:01/32] 0 active tasks, next spawn at 0 sec. [10:56:02/32] Spawned child process with PID 67 for task 0. [10:56:02/32] Spawned child process with PID 69 for task 1. [10:56:02/68] Using task id 0 [10:56:02/70] Using task id 1 [10:56:02/70] Lock: update_daemon-69.lock [10:56:02/70] Waiting before update (5)... [10:56:02/68] Lock: update_daemon-67.lock [10:56:02/68] Waiting before update (0)... [10:56:02/68] Scheduled 0 feeds to update... [10:56:02/68] Sending digests, batch of max 15 users, headline limit = 1000 [10:56:02/68] All done. [10:56:02/68] Expired cache/export: removed 0 files. [10:56:02/68] Expired cache/feeds: removed 0 files. [10:56:02/68] Expired cache/images: removed 0 files. [10:56:02/68] Expired cache/upload: removed 0 files. [10:56:02/68] Removed 0 old lock files. [10:56:02/68] Removing old error log entries... [10:56:02/68] Purged 0 orphaned posts. [10:56:03/32] Child process with PID 67 reaped. [10:56:03/32] Received SIGCHLD, 1 active tasks left. [10:56:07/70] Scheduled 0 feeds to update... [10:56:07/70] Sending digests, batch of max 15 users, headline limit = 1000 [10:56:07/70] All done. [10:56:08/32] Child process with PID 69 reaped. [10:56:08/32] Received SIGCHLD, 0 active tasks left. [10:57:02/32] 0 active tasks, next spawn at 60 sec. [10:58:02/32] 0 active tasks, next spawn at 0 sec. [10:58:03/32] Spawned child process with PID 75 for task 0. [10:58:03/32] Spawned child process with PID 77 for task 1. [10:58:03/78] Using task id 1 [10:58:03/78] Lock: update_daemon-77.lock [10:58:03/76] Using task id 0 [10:58:03/78] Waiting before update (5)... [10:58:03/76] Lock: update_daemon-75.lock [10:58:03/76] Waiting before update (0)... [10:58:03/76] Scheduled 0 feeds to update... [10:58:03/76] Sending digests, batch of max 15 users, headline limit = 1000 [10:58:03/76] All done. [10:58:03/76] Expired cache/export: removed 0 files. [10:58:03/76] Expired cache/feeds: removed 0 files. [10:58:03/76] Expired cache/images: removed 0 files. [10:58:03/76] Expired cache/upload: removed 0 files. [10:58:03/76] Removed 0 old lock files. [10:58:03/76] Removing old error log entries... [10:58:03/76] Purged 0 orphaned posts. [10:58:04/32] Child process with PID 75 reaped. [10:58:04/32] Received SIGCHLD, 1 active tasks left. [10:58:08/78] Scheduled 0 feeds to update... [10:58:08/78] Sending digests, batch of max 15 users, headline limit = 1000 [10:58:08/78] All done. [10:58:09/32] Child process with PID 77 reaped. [10:58:09/32] Received SIGCHLD, 0 active tasks left. [10:59:03/32] 0 active tasks, next spawn at 60 sec.


**Additional context**
HenryQW commented 2 years ago

You need to enable api access in TTRSS Preferences -> General -> Enable API