Cashed imaged not showing on Android app after moving to docker

Describe the problem you’re having:

I have been using TT-RSS intalled on host for a long time. Thank you so much for the good work.

Recently I moved to docker. Everything works fine execept if I choose cache image option, on offical andorid app the image is not loaded. I tried different options and feeds, this only happenes when cache image enable. And on my desktop, images loaded in browser no problem at all.

Please help. Thanks.

If possible include steps to reproduce the problem:

Here is the docker compose I use.

version: '3'
services:
  db:
    image: postgres:12-alpine
    restart: unless-stopped
    volumes:
      - db:/var/lib/postgresql/data
    environment:    
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_USER=${POSTGRES_USER}

  app:
    image: cthulhoo/ttrss-fpm-pgsql-static
    restart: unless-stopped
    environment:
      - DB_TYPE=pgsql
      - DB_HOST=db
      - DB_NAME=${POSTGRES_USER}
      - DB_USER=${POSTGRES_USER}
      - DB_PASS=${POSTGRES_PASSWORD}
      - OWNER_UID=${OWNER_UID}
      - OWNER_GID=${OWNER_GID}
      - SELF_URL_PATH=${SELF_URL_PATH}
    volumes:
      - app:/var/www/html
    depends_on:
      - db

  backups:
    image: cthulhoo/ttrss-fpm-pgsql-static
    restart: unless-stopped
    environment:
      - DB_TYPE=pgsql
      - DB_HOST=db
      - DB_NAME=${POSTGRES_USER}
      - DB_USER=${POSTGRES_USER}
      - DB_PASS=${POSTGRES_PASSWORD}
      - OWNER_UID=${OWNER_UID}
      - OWNER_GID=${OWNER_GID}
    volumes:
      - backups:/backups
      - app:/var/www/html
    depends_on:
      - db
    command: /dcron.sh -f

  updater:
    image: cthulhoo/ttrss-fpm-pgsql-static
    restart: unless-stopped
    environment:
      - DB_TYPE=pgsql
      - DB_HOST=db
      - DB_NAME=${POSTGRES_USER}
      - DB_USER=${POSTGRES_USER}
      - DB_PASS=${POSTGRES_PASSWORD}
      - OWNER_UID=${OWNER_UID}
      - OWNER_GID=${OWNER_GID}
      - SELF_URL_PATH=${SELF_URL_PATH}
    volumes:
      - app:/var/www/html
    depends_on:
      - app
    command: /updater.sh

  web:
    image: cthulhoo/ttrss-web
    restart: unless-stopped
    ports:
      - ${HTTP_PORT}:2015
    volumes:
      - app:/var/www/html:ro
    depends_on:
      - app

volumes:
  db:
  app: 
  backups:

tt-rss version (including git commit id):

Latest docker image using

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:

Docker on ubuntu

Please provide any additional information below:

there’s zero information here to help you, and posting your compose file which seems to be stock, doesn’t help any. sorry.

if images are not loading, figure out their exact URL (long tap in webview, etc) and go from there, most likely it would be your frontend (which you haven’t mentioned) misconfigured or something related to self url path (which is an unknown too).

they say that good question usually contains most of the answer. yours is the opposite.

Sorry if I didnt asked good question. But on Android application I have no idea how to debug this problem. And as I mentioned on my computer browser images loaded without any problem.

you can try checking built-in log viewer in app preferences (near the bottom) for any load-related errors

also, image URL should be the same with your desktop browser. does this lead to non-standard port or something?

also: try opening that image url on android in web browser.

Thanks for your reply. I tried what you suggested.

I am using TT-RSS behind Apache reverse proxy. The Apache force http to https. The config is the same after move to docker execpt pointing address change from local to docker host ip.

Any other idea I can debug this issue?

Thanks again for your help.

if you see http urls this means your frontend is misconfigured - it doesn’t pass x-forwarded-proto to tt-rss, you need to fix that and adjust self_url_path accordingly

this has been discussed before and there are multiple examples available.

I did tried and I just did it again set the self_url_path to https. But I got the error showing below. That’s why I set to http.

ERROR:
Please set SELF_URL_PATH to the correct value detected for your server: http://EXAMPLE.COM/tt-rss/

if you don’t want to follow my instructions, i can’t help you any further.

Hmmm, after double check I found out what caused this. I missed “RequestHeader set X-Forwarded-Proto https” in my apache config. Now no more problem.

BTW, It’s no fair saying that I am not following your instruction. Your document is good and I follow that for my migration. I made small mistake and people make mistake.

Anyway thanks again for creating such greate app. Have a good one.