The route lychee/api/v2/Gallery::Init could not be found

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.15.1
What app is this about: lychee

Describe your issue

Bonjour,
Suite à la mise à jour de lychee en 6.9.0~ynh1, j’ai l’erreur:

NotFoundHttpException
The route lychee/lychee could not be found

https://paste.yunohost.org/raw/efazoginab
Avez-vous le même problème?
Bonne soirée,
David L.

Share relevant logs or error messages

NotFoundHttpException
The route lychee/lychee could not be found
https://paste.yunohost.org/raw/efazoginab

J’ai fait une désinstallation puis une réinstallation et l’erreur est toujours la même.
https://paste.yunohost.org/raw/ihaceqadoz
The route lychee/api/v2/Gallery::Init could not be found.
The route lychee/lychee could not be found.

On dirait que le répertoire de destination est doublé. Mon application est installée dans /var/www/lychee. Il ne devrait y avoir que la route lychee, pas lychee/lychee.
Rencontrez vous la même chose? Même sur une fraiche installation?

Yes I can reproduce it. I’m working on it.
Do you have your lychee installed in a dedicated domain or a path? (lychee devs do not recommend it and do not support it)

You can try this branch GitHub - YunoHost-Apps/lychee_ynh at fix

But it’s not definitive.

I just try it. Now I do not have error but lychee is still not working. Black screen.
URL forward looks like this:
https://mydomain.com/lychee/lychee/lychee

My Lychee is installed on shared domain. My domain name host several yunohost APP.

https://paste.yunohost.org/raw/otuneqecev

my /etc/nginx/conf.d/maindomain.tld.d/lychee.conf looks like this:

  rewrite ^/lychee$ /lychee/ permanent;
location ^~ /lychee/ {

  # Path to source
  alias /var/www/lychee/public/;

  index index.php;

  # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
  client_max_body_size 1G;

      # If the request is not for a valid file (image, js, css, etc.), send to bootstrap
    if (!-e $request_filename)
    {
        rewrite ^/(.*)$ /index.php?/$1 last;
        break;
    }

  try_files $uri $uri/ /lychee/lychee/index.php?$query_string;

  location ~ \.php$ {
    if (!-e $request_filename) {
      rewrite ^/lychee/?(.*)$ /lychee/index.php?/$1 last;
      break;
    }
    fastcgi_pass unix:/var/run/php/php8.3-fpm-lychee.sock;

    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param SCRIPT_FILENAME $request_filename;
  }

  location /lychee/uploads/ {
        alias /home/yunohost.app/lychee/uploads/;
  }

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
}

And my /etc/php/8.3/fpm/pool.d/lychee.conf file is like this:

[lychee]

user = lychee
group = lychee

chdir = /var/www/lychee

listen = /var/run/php/php8.3-fpm-lychee.sock
listen.owner = www-data
listen.group = www-data

pm = ondemand
pm.max_children = 8
pm.max_requests = 500
request_terminate_timeout = 1d

pm.process_idle_timeout = 10s
php_admin_value[upload_max_filesize] = 1G
php_admin_value[post_max_size] = 1G
php_admin_value[memory_limit] = 128M
; Additional php.ini defines, specific to this pool of workers.

php_admin_value[max_execution_time] = 200
php_admin_value[upload_max_filesize] = 1G
php_admin_value[memory_limit] = 1G
php_admin_value[post_max_size] = 1G

Yeah, I’ll get in touch with the devs to understand what has been added in the last release. By the way, php devs love php logs, if you could provide one.

here the php8.3-fpm log:

Do you need another log?

Is there a way to do a rollback on previous version?
Is there a way to install a new lychee app in previous version?

When upgrading, there is a safety backup. You can restore it.

ok, my backup is broken too because I tried testing and fix branches
A way to install previous version?

Can you try this branch GitHub - YunoHost-Apps/lychee_ynh at nopath

It works for me.

Lychee interface is now back but now thumbnail and images on album don’t load.
Same thing on fresh install.:

F12 mode shows that the path to thumbnail or photo are wrong. App folder name is missing (in my case lychee)

Current path:
https;//mydomain.com/uploads/..../*.jpg

The good path should be:
https;//mydomain.com/lychee/uploads/..../*.jpg

With patch “nopath”, portal URL is fixed but other path are wrong
In version 6.9.0, portal URL contains multiple app folder, so that does not work.

Any idea?

It will take some time to get it fixed, sorry

I’ve just pushed a fix. Hope it will work for you.
I’ll probably stop upgrading the app till I get this fixed for good

error on installation:
https://paste.yunohost.org/raw/gogodabuye

No, the nginx-fix tree is not ready. The main branch is the one that works

ok, that works now with main branch..
Thank you very much for your help jarod5001
I’ll will check out for next update.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.