404 requesting custom theme css

Are you using stock Docker compose setup? +

If not, either reproduce this issue on the official demo or switch to Docker and see if the issue is resolved.


Describe the problem you’re having:

When applying any theme installed to themes.local I get broken layout due to (for example) feedly-compact.css?1616926274 getting 404’d. Official themes load and work properly.
No default.css and stuff because I’ve been using tt-rss just for a couple of weeks.
Permissions of themes.local/** seem to match ones in themes/**:

/o/t/tt-rss/themes.local $ ls -l
total 624
drwx------ 3 andrhua andrhua  4096 Mar 28 13:11 feedly
-rw-r--r-- 1 andrhua andrhua   113 Mar 28 13:11 feedly_auto.css
-rw-r--r-- 1 andrhua andrhua   129 Mar 28 13:11 feedly-compact_auto.css
-rw-r--r-- 1 andrhua andrhua 68392 Mar 28 13:11 feedly-compact.css
-rw-r--r-- 1 andrhua andrhua 76388 Mar 28 13:11 feedly-compact_night.css
-rw-r--r-- 1 andrhua andrhua   123 Mar 28 13:11 feedly-cozy_auto.css
-rw-r--r-- 1 andrhua andrhua 68388 Mar 28 13:11 feedly-cozy.css
-rw-r--r-- 1 andrhua andrhua 76384 Mar 28 13:11 feedly-cozy_night.css
-rw-r--r-- 1 andrhua andrhua 68386 Mar 28 13:11 feedly.css
-rw-r--r-- 1 andrhua andrhua 76382 Mar 28 13:11 feedly_night.css
-rw-r--r-- 1 andrhua andrhua   125 Mar 28 13:11 feedly-sepia_auto.css
-rw-r--r-- 1 andrhua andrhua 68360 Mar 28 13:11 feedly-sepia.css
-rw-r--r-- 1 andrhua andrhua 76371 Mar 28 13:11 feedly-sepia_night.css
drwxr-xr-x 2 andrhua andrhua  4096 Mar 28 13:38 feedmei
-rw-r--r-- 1 andrhua andrhua  2043 Mar 28 13:38 feedmei+.css
-rw-r--r-- 1 andrhua andrhua 10179 Mar 28 13:38 feedmei.css
-rw-r--r-- 1 andrhua andrhua  1322 Mar 28 13:38 feedmei+_night.css
-rw-r--r-- 1 andrhua andrhua  1321 Mar 28 13:38 feedmei_night.css

/o/t/tt-rss/themes $ ls -l
total 380
-rw-r--r-- 1 andrhua andrhua   462 Mar 27 10:00 compact_base.less
-rw-r--r-- 1 andrhua andrhua 52954 Mar 27 10:00 compact.css
-rw-r--r-- 1 andrhua andrhua    62 Mar 27 10:00 compact.less
-rw-r--r-- 1 andrhua andrhua 60176 Mar 27 10:00 compact_night.css
-rw-r--r-- 1 andrhua andrhua    56 Mar 27 10:00 compact_night.less
drwxr-xr-x 2 andrhua andrhua  4096 Mar 27 10:00 light
-rw-r--r-- 1 andrhua andrhua 52259 Mar 27 10:00 light.css
-rw-r--r-- 1 andrhua andrhua 52293 Mar 27 10:00 light-high-contrast.css
-rw-r--r-- 1 andrhua andrhua   188 Mar 27 10:00 light-high-contrast.less
-rw-r--r-- 1 andrhua andrhua    33 Mar 27 10:00 light.less
-rw-r--r-- 1 andrhua andrhua   208 Mar 27 10:00 Makefile
-rw-r--r-- 1 andrhua andrhua  5717 Mar 27 10:00 night_base.less
-rw-r--r-- 1 andrhua andrhua 59538 Mar 27 10:00 night_blue.css
-rw-r--r-- 1 andrhua andrhua   108 Mar 27 10:00 night_blue.less
-rw-r--r-- 1 andrhua andrhua 59533 Mar 27 10:00 night.css
-rw-r--r-- 1 andrhua andrhua    79 Mar 27 10:00 night.less

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

Latest Arch Linux, Firefox (also tried with Chrome with the same result).

ttrss runs on 6969 port, same error on 8280; I’m also running rss-bridge on 80 (to fix akin file access error).


The solution is to replace app with ttrss directory (default is /opt/tt-rss) in docker-compose.yml under both app and web-nginx sections:

app:
    ...
    volumes:
      - /opt/tt-rss:/var/www/html
    ...
web-nginx:
    ...
    volumes:
      - /opt/tt-rss:/var/www/html:ro
    ...

arch user has absolutely no idea what he’s doing. stop the presses.

Arch user carefully follows readme written by not egoistic at all Mr. fox. I thought surely Mr. fox has grown professionally towards ttrss community but oh boy they were right!

http://www.catb.org/~esr/faqs/smart-questions.html#keepcool

First: revert your changes and restart your containers.
Next, as root do the following:

  1. run docker ps to find the full name of the container (e.g. ttrss-docker_app_1)
  2. making sure that the folder with the css files is named themes.local, run docker cp *insert themes.local directory path here* *insert container name*:/var/www/html/tt-rss
  3. run docker exec -it *container name* ls /var/www/html/tt-rss/themes.local to make sure your themes got copied properly.