Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?
-
Hello
Would it be possible to ask for an update to ttrss which includes the change on 9/11/2024: Enable PATH_INFO for plugins to use referenced here: rhttps://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/61
This change allows the use of the new FreshRSS and Google Reader plugin: https://github.com/eric-pierce/freshapi
I tested it on the current Cloudron version 1fb202b, and the plugin doesn't work on this build.
Thank you!
Thank you!
-
-
-
Thanks for the info on a new API!
Any luck finding the right combination of URL and password?- I enabled the API
- cloned the repo into
plugins.local
- switched to local auth
- Set an app password for Fresh API
- Still Reeder can’t connect under
https://[MY TTRSS DOMAIN]/plugins.local/freshapi/api/greader.php
-
@necrevistonnezr I struggle with the same. It shouldn't be necessary to switch to local auth, I hope. Will post if I find a solution.
Edit: It seems something is missing. This is the error messages I get in my logs - they reference to a file "autoload.php"
which I can't seem to find in my ttrss installation:Sep 15 10:24:47 [Sun Sep 15 08:24:47.762364 2024] [php:error] [pid 30] [client 172.18.0.1:37776] PHP Fatal error: Uncaught Error: Failed opening required '/app/data/include/autoload.php' (include_path='/app/data/plugins.local/freshapi/api:/app/data:/app/data/include:.:/usr/share/php') in /app/data/plugins.local/freshapi/api/greader.php:23\nStack trace:\n#0 {main}\n thrown in /app/data/plugins.local/freshapi/api/greader.php on line 23 Sep 15 10:24:47 [IPxx.xxx.xxx.xxx] - - [15/Sep/2024:08:24:47 +0000] "POST /plugins.local/freshapi/api/greader.php/accounts/ClientLogin HTTP/1.1" 500 - "-" "Reeder/5040401 CFNetwork/1498.700.2 Darwin/23.6.0"
Edit2: I can find the file, and permissions seem fine (it's in the /app/code/include folder). This file (/app/code/include.autoload.php) refers til the file /app/vendor/include/autoload.php) with the following content. I have no idea if this is the cause of the error or not:
<?php // autoload.php @generated by Composer if (PHP_VERSION_ID < 50600) { if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; if (!ini_get('display_errors')) { if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { fwrite(STDERR, $err); } elseif (!headers_sent()) { echo $err; } } trigger_error( $err, E_USER_ERROR ); } require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056::getLoader();
-
Maybe it needs to be writable?
-
Hi, it seems another update of TT-RSS (and the plugin) is required to make it work, see
-
BTW: Updating a Git Repository in Cloudron Apps does not seem to work anymore. If I try to
cd /app/data/plugins.local/freshapi git pull
I get the error
fatal: detected dubious ownership in repository at '/app/data/plugins.local/freshapi'
If I try the suggested
git config --global --add safe.directory /app/data/plugins.local/freshapi
I get the error code
error: could not lock config file /root/.gitconfig: Read-only file system
-
@necrevistonnezr said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
git config --global --add safe.directory /app/data/plugins.local/freshapi
You need to run without the
--global
option. With it it tries to update the gitconfig in your$HOME
, without it the config in the current git repo. -
@fbartels
I tried without the --global before in the freshapi folder but still get errors...?root@###:/app/data/plugins.local/freshapi# git config --add safe.directory /app/data/plugins.local/freshapi fatal: not in a git directory root@###:/app/data/plugins.local/freshapi# ls -la total 64 drwxr-xr-x 4 www-data www-data 4096 Sep 15 05:39 . drwxr-xr-x 12 www-data www-data 4096 Sep 15 05:39 .. drwxr-xr-x 8 www-data www-data 4096 Sep 15 05:39 .git -rw-r--r-- 1 www-data www-data 34523 Sep 15 05:39 LICENSE -rw-r--r-- 1 www-data www-data 4568 Sep 15 05:39 README.md drwxr-xr-x 2 www-data www-data 4096 Sep 15 05:39 api -rw-r--r-- 1 www-data www-data 988 Sep 15 05:39 init.php
-
@necrevistonnezr said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
Hi, it seems another update of TT-RSS (and the plugin) is required to make it work, see
Whatever this is, it seems an update of the plugin itself is insufficient. I just updated the plugin to the most recent version, and I still get the exact same login errors.
When I go to the ttrss -> settings -> personal data / authentication -> app passwords window, I see that the one-time password is never used. So it seems something is preventing clients trying to access this plugin/api from even getting to the authentication mechanisms.
It seems we need some help from the Cloudron admins on this. I really don't know what else I can do to troubleshoot.
-
No, the links to the tt-rss forum speak of necessary updates to tt-rss in the last 2 days as well
-
@necrevistonnezr said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
I tried without the --global before in the freshapi folder but still get errors...?
root@###:/app/data/plugins.local/freshapi# git config --add safe.directory /app/data/plugins.local/freshapi fatal: not in a git directory
I got this same error. I install the plugin via the browser command line. I've noticed that this sets root as owner, and I've changed ownership to www-data, so that it matches my other plugins.
If I do a
git pull
from the terminal, it fails with the same error code you provide. However, if I change ownership to root before doing the git pull, then it works. So it's probably easiest to change ownership first, do a git pull, and then change ownership back to www-data.
The plugin still doesn't authenticate, though, so I guess we need a ttrss update. I am uncomfortable pinging the mods on this (again, since I requested the update), so I'm hoping we're not too far away from a regular update.
-
@odie said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
I am uncomfortable pinging the mods on this (again, since I requested the update), so I'm hoping we're not too far away from a regular update.
FWIW, this is fine, please ask away Our app builds are more and more automated. We have some great automatic tests to test updates as well. Manual work is minimal for many apps (ttrss included). Anyways, I triggered a new build now.
-
@girish said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
@odie said in Could you please update ttrss to 16dd42c3 published on 9/11/2024 or newer?:
I am uncomfortable pinging the mods on this (again, since I requested the update), so I'm hoping we're not too far away from a regular update.
FWIW, this is fine, please ask away Our app builds are more and more automated. We have some great automatic tests to test updates as well. Manual work is minimal for many apps (ttrss included). Anyways, I triggered a new build now.
Much appreciated, @girish!
I updated TTRSS and the Fredhapi plugin, but I still can’t get it to authenticate. I get the exact same error message in my logs.
Anyone else had success with this?