Describe the problem you’re having:
When I run update_daemon2.php either directly via command line php update_daemon2.php
or via systemd units, I get warnings in the output:
PHP Warning: Unable to determine version (using /srv/ttrss): 1576755694 e9b4834b6 in /srv/ttrss): 1576755694 e9b4834b6 in /srv/ttrss/include/functions.php on line 1929
Now, what’s interesting is when I look at that code branch it happens when $rc != 0
… but its clearly getting a timestamp and git commit hash. I dumped the value of $rc
to console and its -1
. I have no clue wtf -1
is…
If I run git log --pretty="%ct %h" -n1 HEAD 2>&1
as the user running the update daemon, the exit code is 0
.
If I change the conditional to allow for $rc == -1
, then the function returns successfully (19.12-e9b4834b6
in this case).
tt-rss version (including git commit id):
Git commit e9b4834b6ba788f43b8ce0bca13a9526df11d472
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Archlinux (kernel 5.4.3.arch1-1), PHP 7.4.1, git 2.24.1, mariadb 10.4.11
Please provide any additional information below:
I don’t know when this started to occur, but if I go to the preferences panel there is a sensible version string: Tiny Tiny RSS v19.12-e9b4834b6 © 2005-2019 Andrew Dolgov
, but I have no idea if the webui version string is related to what update_daemon2.php
is doing.