FreshRSS / FreshRSS

A free, self-hostable news aggregator…
https://freshrss.org
GNU Affero General Public License v3.0
8.86k stars 784 forks source link

[Bug] No extensions being shown as installed #6566

Closed aftix closed 4 days ago

aftix commented 1 week ago

Describe the bug

I have freshrss installed in /var/lib/freshrss . I have copied several extensions directories into /var/lib/freshrss/extensions . The web UI is showing no extensions as installed.

To Reproduce

  1. Copy extension directories from https://github.com/FreshRSS/Extensions to ./extensions in the freshrss install location
  2. Go to the <freshrss base url>/i/?c=extension page
  3. No extensions are installed image

Expected behavior

I expect extensions to show up as installed on this page as the installation instructions were followed.

FreshRSS version

1.24.1

Environment information

The configuration (including copying the extensions) can be found in https://github.com/aftix/cfg/blob/main/host/opt/www/rss.nix

Additional context

No response

math-GH commented 1 week ago

Could you please show us the content of the /var/lib/freshrss/extensions directory?

aftix commented 1 week ago

image These are directories copied from various extension sources, including FreshRss/Extensions

math-GH commented 1 week ago

and what is the content of xExtension-CustomCSS directory?

aftix commented 1 week ago

the directory contents are:

LICENSE  README.md  configure.phtml  desktop_resolution.png  extension.php  i18n  metadata.json  mobile_resolution.png  static

It is copied directly from https://github.com/FreshRSS/Extensions/tree/master/xExtension-CustomCSS

math-GH commented 1 week ago

ok, the directory looks okay.

Alkarex commented 1 week ago

the directory contents are

Please show the details of that folder with ls -alh. In particular, are those files or symlinks?

aftix commented 1 week ago

image This is the contents of xExtension-CustomCSS, image and these are the contents of the extensions directory.

The directories are being copied using cp -LR (aka cp -R --dereference), so there should be no symlinks anywhere in the extensions directory

Alkarex commented 1 week ago

Are you sure this www user is the correct one? Please show the ls -alh of your freshrss/data/ folder

aftix commented 4 days ago

I have found the issue - on NixOS freshrss is installed in a /nix/store/.... path, and the /var/lib/freshrss path just contains some data, moving the extensions to the nix path's extensions directory works as expected