• [X] I’m using stock docker compose setup, unmodified.
  • [ ] I’m using docker compose setup, with modifications (modified .yml files, third party plugins/themes, etc.) - if so, describe your modifications in your post. Before reporting, see if your issue can be reproduced on the unmodified setup.
  • [ ] I’m not using docker on my primary instance, but my issue can be reproduced on the aforementioned docker setup and/or official demo.

app container throws git errors when attempting to update most plugins

dc-ttrss-app-1  | updating all local plugins...
dc-ttrss-app-1  | updating /var/www/html/tt-rss/plugins.local/nginx_xaccel...
dc-ttrss-app-1  | fatal: not in a git directory
dc-ttrss-app-1  | warning: attempt to update plugin /var/www/html/tt-rss/plugins.local/nginx_xaccel failed.
dc-ttrss-app-1  | updating /var/www/html/tt-rss/plugins.local/plugin-installer...
dc-ttrss-app-1  | warning: redirecting to https://dev.tt-rss.org/fox/tt-rss.git/
dc-ttrss-app-1  | From https://git-gitea.tt-rss.org/fox/tt-rss
dc-ttrss-app-1  |  * branch            master     -> FETCH_HEAD
dc-ttrss-app-1  | Already up to date.
dc-ttrss-app-1  | updating /var/www/html/tt-rss/plugins.local/mailer_smtp...
dc-ttrss-app-1  | fatal: not in a git directory
dc-ttrss-app-1  | warning: attempt to update plugin /var/www/html/tt-rss/plugins.local/mailer_smtp failed.
dc-ttrss-app-1  | updating /var/www/html/tt-rss/plugins.local/ui_gravatar...
dc-ttrss-app-1  | fatal: not in a git directory
dc-ttrss-app-1  | warning: attempt to update plugin /var/www/html/tt-rss/plugins.local/ui_gravatar failed.

Fresh docker-compose install using static-dockerhub per README
OPTIONAL: Preferences > Plugins > Install Plugin > ttrss-mailer-smtp, ttrss-ui-gravatar, etc.
docker-compose restart
docker-compose logs app

(Installing additional plugins is optional because even nginx_xaccel, which is included by default, fails to update)

  • Tiny Tiny RSS version (including git commit id): v22.05-68e4920
  • Platform (i.e. Linux distro, Docker, PHP, PostgreSQL, etc) versions: Docker

Updates work with no errors if the relevant git commands in startup.sh are run as the app user. As a minimal solution, I wrapped them in su like so:

                su app -c "cd $PLUGIN && \
                        git config core.filemode false && \
                        git config pull.rebase false && \
                        git pull origin master"

thanks for reporting. :+1:

https://dev.tt-rss.org/fox/ttrss-docker-compose/compare/71f6f18d5bc1aa29bbd0f812c4d22bb641efdf96...670cf8bb85cd6aee014b9f663a89004230a9aa97


https://dev.tt-rss.org/fox/ttrss-docker-compose/commit/cc648eb8789a1ca929c4cd92cb89c53bd6f436d5

there’s another cosmetic issue, maybe when new code is being synced over in the app container while some other container (updater or w/e) is still online and calls get_version()

Unable to determine version: Git error [RC=128]: fatal: unsafe repository ('/var/www/html/tt-rss' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /var/www/html/tt-rss

rsync should probably be invoked as app so permissions are constant. this post is a sorta note to self.