On Mon, 5 May 2025, Christian Kujau wrote:
> Yes, it was some Rewrite snafu after all. Installed a fresh Mediawiki on
> the same machine with a different path, and as soon as I enabled the
> ShortURL hacks the same thing happened.
FWIW, I still find the "error message" kinda confusing: HTTP/200 for GET,
but HTTP/404 for POST, I didn't know where to go from here. But, strace(1)
was able to shed some light:
$ sudo strace -tt --decode-pids=comm -s1024 -f -o /tmp/foo \
-p $(echo $(pgrep php) $(pgrep apache) | sed 's/ /,/g')
I did not know wether Apache or PHP-FPM was actually triggering the
HTTP/404 so I straced both process groups. And there it was:
3644181<apache2> 00:15:12.341845 newfstatat(AT_FDCWD,
"/var/www/wiki/Special:Upload", <unfinished ...>
3644187<apache2> 00:15:12.341864 epoll_wait(25, <unfinished ...>
3644181<apache2> 00:15:12.341890 <... newfstatat resumed>0x76c09e71ba60, 0) =
-1 ENOENT (No such file or directory)
3644181<apache2> 00:15:12.341929 newfstatat(AT_FDCWD, "/var",
{st_mode=S_IFDIR|0755, st_size=70, ...}, AT_SYMLINK_NOFOLLOW) = 0
3644181<apache2> 00:15:12.342006 newfstatat(AT_FDCWD, "/var/www",
{st_mode=S_IFDIR|0755, st_size=124, ...}, AT_SYMLINK_NOFOLLOW) =
0AT_SYMLINK_NOFOLLOW) = 0
3644181<apache2> 00:15:12.342147 newfstatat(AT_FDCWD, "/var/www/wiki",
0x76c09e71ba60, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
But /var/www/wiki does not exist, only /var/www/mediawiki does, so in the
end that ticked me off that all this was caused by that ShortURL hackery.
Oh well, it works now :-)
--
BOFH excuse #428:
Firmware update in the coffee machine
_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/