<p dir="ltr">Do you fix it, right? </p>
<br><div class="gmail_quote"><div dir="ltr">Il giorno dom 10 gen 2016 13:41 Riccardo Iaconelli <<a href="mailto:riccardo@kde.org">riccardo@kde.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Sofia just discovered a very interesting bug when we upload SVG images, which<br>
completely breaks things. I am surprised it never appeared before, giving the<br>
level of breakage it introduces.<br>
<br>
First off, we try to call inkscape, even when it's not installed on the<br>
server. Easy enough to fix, by changing L218 of LocalSettings to be either<br>
commented or explicitly "ImageMagick".<br>
<br>
However, it seems like no program can really find the SVG file in order to<br>
generate the PNG.<br>
<br>
We have been testing with this<br>
<a href="http://pool.wikitolearn.org/File:attritostatico.svg" rel="noreferrer" target="_blank">http://pool.wikitolearn.org/File:attritostatico.svg</a><br>
<br>
To make things even more interesting, while I was debugging it, after a few<br>
refreshes, the server decided to finally render the thumbnails (without any<br>
change from my side, maybe some other children of the web server process?). I<br>
could also see the temp file being generated:<br>
<br>
root@websrv:/var/www/WikiToLearn/mediawiki/images# ls -lah tmp/<br>
svg_38ba126ccb1fb5d8637e0b3e/20160111120218\!attritostatico.svg<br>
lrwxrwxrwx 1 www-data www-data 92 Jan 11 12:11 tmp/<br>
svg_38ba126ccb1fb5d8637e0b3e/20160111120218!attritostatico.svg -> /var/www/<br>
WikiToLearn/mediawiki/images/uploads/archive/9/9c/20160111120218!<br>
attritostatico.svg<br>
<br>
This correlates well with these warnings:<br>
<br>
[10-Jan-2016 17:59:16] WARNING: [pool www] seems busy (you may need to<br>
increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children,<br>
there are 0 idle, and 18 total children<br>
<br>
At that point, I decided to upload a new version of the file. Everything broke<br>
again.<br>
<br>
While I was performing some tests, cloudflare also reported gateway timeouts.<br>
Might be correlated, just as uncorrelated.<br>
<br>
Now, I have no idea what might be going wrong here, but it's nicely broken,<br>
and effectively prevents people from uploading SVGs.<br>
<br>
Luca, that seems like your department, but I write here to raise maximum<br>
awareness. We have to solve this.<br>
<br>
Bye,<br>
-Riccardo<br>
<br>
_______________________________________________<br>
WikiToLearn-Tech mailing list<br>
<a href="mailto:WikiToLearn-Tech@kde.org" target="_blank">WikiToLearn-Tech@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/wikitolearn-tech" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn-tech</a><br>
</blockquote></div>