truist / gallery

Simple Perl-based image gallery for static images
https://gallery.rainskit.com/
MIT License
1 stars 1 forks source link

Route pattern "/*path" contains a reserved stash value #9

Closed schmonz closed 3 years ago

schmonz commented 3 years ago

Some Mojolicious upgrade must have broken the gallery program:

$ ./script/gallery prefork -H 300 -m production -l 'http://127.0.0.1:36366'
Route pattern "/*path" contains a reserved stash value at /home/schleierdav/sites/theschleiers.com/photos/gallery/script/../lib/Gallery.pm line 56.

where line 56 is the last line of this stanza:

my $router = $self->routes;
$router->get('/')->to('controller#route', path => '');
$router->get('/*path')->to('controller#route');

It might be the most recent Mojolicious update in pkgsrc, because I only noticed this today after my weekly update completed. I saw the system load was higher than usual, noticed there kept being a new perl process ID, and couldn't reach my gallery site (503 Service Unavailable, probably from my reverse proxy). Currently I have p5-Mojolicious-9.17 and -- yep, that looks like a big enough change -- last week I was on p5-Mojolicious-8.59.

This issue looks sort of like mine. This method looks related to whatever this is about. This commit shows the changes between 8.59 and 9.17.

schmonz commented 3 years ago

This document describes how to adapt applications to newer Mojoliciouseseseses.