My wiki is in http://www.hanfumap.com/wiki/
After a recent update, I can't create image thumbnails. I can still upload the image to the wiki, but the image can't be used in articles. It is not displayed in the File page either.
e.g. http://www.hanfumap.com/wiki/File:Hfcw.jpg
I have tried to ssh to it and run convert manually That works well.
Can anyone help me to diagnose?
PS. I have set that only User name begins with something not alphanumerical can be registered. You might also use this account:
Name: Testacc Password: fortestingpurpose
On 11/26/2013 08:23 AM, Steph Zhang wrote:
Can anyone help me to diagnose?
I couldn't use your testing account, but if you put
error_reporting( -1 ); ini_set( 'display_errors', 1 );
in your LocalSettings.php -- as suggested at https://www.mediawiki.org/wiki/Manual:How_to_debug -- do you see any messages during or after the upload?
Mark.
On Nov 26, 2013 10:19 AM, "Mark A. Hershberger" mah@everybody.org wrote:
On 11/26/2013 08:23 AM, Steph Zhang wrote:
Can anyone help me to diagnose?
I couldn't use your testing account, but if you put
error_reporting( -1 ); ini_set( 'display_errors', 1 );
in your LocalSettings.php -- as suggested at https://www.mediawiki.org/wiki/Manual:How_to_debug -- do you see any messages during or after the upload?
good advice
this works: http://www.hanfumap.com/w/images/thumb/d/d1/20130512.jpg/400px-20130512.jpg
but new thumbs are 404. change the px value in the URL and it's 404.
if the Mark's extra logging doesn't yield clues then the next 2 things to check would be: * the thumbs dir is not writeable by php * the 404 handler that maybe was installed at one point is no longer being reached
-Jeremy
Sorry for providing wrong test account infos.. account: testacc password: testpurposeonly
I have already set these:
error_reporting( -1 ); ini_set( 'display_errors', 1 );
But still not observe any differences.
Checked PHP Error log on the server, and still got nothing.
ls -l yields this, and I think that both PHP and ssh uses the same account. As the uploading still works, I expect that thumb folder with the same user and user right is also writable.
drwxr-xr-x 18 hanfumap hanfumap 4096 Jul 12 03:34 archive/ drwxr-xr-x 8 hanfumap hanfumap 4096 Jul 12 03:34 b/ drwxr-xr-x 11 hanfumap hanfumap 4096 Jul 12 03:34 c/ drwxr-xr-x 8 hanfumap hanfumap 4096 Jul 12 03:34 d/ drwxr-xr-x 4 hanfumap hanfumap 4096 Nov 7 04:23 deleted/
I still remember that I have customized 404.html in server's .htaccess, and I just commented that out. Still no difference. /w/.htaccess seems normal. I didn't modify that.
Do I still miss something?
2013/11/26 Jeremy Baron jeremy@tuxmachine.com
On Nov 26, 2013 10:19 AM, "Mark A. Hershberger" mah@everybody.org wrote:
On 11/26/2013 08:23 AM, Steph Zhang wrote:
Can anyone help me to diagnose?
I couldn't use your testing account, but if you put
error_reporting( -1 ); ini_set( 'display_errors', 1 );
in your LocalSettings.php -- as suggested at https://www.mediawiki.org/wiki/Manual:How_to_debug -- do you see any messages during or after the upload?
good advice
this works: http://www.hanfumap.com/w/images/thumb/d/d1/20130512.jpg/400px-20130512.jpg
but new thumbs are 404. change the px value in the URL and it's 404.
if the Mark's extra logging doesn't yield clues then the next 2 things to check would be:
- the thumbs dir is not writeable by php
- the 404 handler that maybe was installed at one point is no longer being
reached
-Jeremy _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
First thing I would check is: $wgMaxImageArea = ' some value ';
See if it is accidentally explicitly set to a smaller value in LocalSettings as this will make thumbnailing fail. e.g. 400000 for 2000px X 2000px image would prevent thumbs on a 2200x1900 image which is 418000 in size or any combination widthxheight bigger than the max.
Take care Tom
Tom, thank you for noticing me for that. However I did not specify such a value in my LocalSettings.php.
VIM: E486: Pattern not found: $wgMaxImageArea fgrep wgMaxImageArea yields nothing.
What else may I provide for further diagnose?
2013/11/27 Tom Hutchison tom@hutch4.us
First thing I would check is: $wgMaxImageArea = ' some value ';
See if it is accidentally explicitly set to a smaller value in LocalSettings as this will make thumbnailing fail. e.g. 400000 for 2000px X 2000px image would prevent thumbs on a 2200x1900 image which is 418000 in size or any combination widthxheight bigger than the max.
Take care Tom
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 11/27/2013 1:06 AM, Steph Zhang wrote:
Tom, thank you for noticing me for that. However I did not specify such a value in my LocalSettings.php.
VIM: E486: Pattern not found: $wgMaxImageArea fgrep wgMaxImageArea yields nothing.
What else may I provide for further diagnose?
The file you link to in your first e-mail (link below) is smaller than the default value for $wgMaxImageArea so that's probably not the problem. Nevertheless, it won't hurt to provide a setting for that in LocalSettings.php. I have a private wiki that I upload huge files to and have it set fairly high. It's also my own server, of course, so I don't have to worry about affecting anything else.
http://www.hanfumap.com/wiki/File:Hfcw.jpg
In addition, you might want to set wgMaxShellMemory to something higher than the default (102,400 KB in MW < 1.22, 307,200 KB in MW >= 1.22. I think it highly unlikely that either of those is the actual problem, however, since that file is under 200kb.
What version of MW are you running? What version of ImageMagick?
Do you have access to the PHP or Web server error logs? Perhaps there is something there that would be helpful. Upload a file and check those logs for entries related to that file upload.
http://www.mediawiki.org/wiki/Manual:Errors_and_Symptoms#Image_Thumbnails_no...
In addition, you might want to set wgMaxShellMemory to something higher than the default (102,400 KB in MW < 1.22, 307,200 KB in MW >= 1.22. I think it highly unlikely that either of those is the actual problem, however, since that file is under 200kb.
What version of MW are you running? What version of ImageMagick?
Yep. What version of ImageMagick?
What type of server? Shared ? VM? Site was a bit laggy for me. Is your memory jailed? I had similar situation last week. 128mb max no matter what I set.
Can you share your localsettings? Just remove db or anything security related. Pastebin or a Gist.
Tom
2013/11/29 Tom tom@hutch4.us
In addition, you might want to set wgMaxShellMemory to something higher
than the default (102,400 KB in MW < 1.22, 307,200 KB in MW >= 1.22. I think it highly unlikely that either of those is the actual problem, however, since that file is under 200kb.
What version of MW are you running? What version of ImageMagick?
Yep. What version of ImageMagick?
hanfumap.com [~]# convert --version
Version: ImageMagick 6.7.9-10 2012-10-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
What type of server? Shared ? VM? Site was a bit laggy for me. Is your memory jailed? I had similar situation last week. 128mb max no matter what I set.
My server is hosted by hostmonster (http://www.hostmonster.com) . That should be a shared server, which I can see multiple users are sharing the same server. It contains a CPU throttling service, but I don't know if there is any limits on memory.
Can you share your localsettings? Just remove db or anything security related. Pastebin or a Gist.
Here it is: http://paste.ubuntu.com/6509412/
Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Usually on a shared host there are memory restrictions i believe on each account, which is then managed by the hosting provider.
On Mon, Dec 2, 2013 at 3:08 PM, Steph Zhang stephdechine@gmail.com wrote:
2013/11/29 Tom tom@hutch4.us
In addition, you might want to set wgMaxShellMemory to something higher
than the default (102,400 KB in MW < 1.22, 307,200 KB in MW >= 1.22. I think it highly unlikely that either of those is the actual problem, however, since that file is under 200kb.
What version of MW are you running? What version of ImageMagick?
Yep. What version of ImageMagick?
hanfumap.com [~]# convert --version
Version: ImageMagick 6.7.9-10 2012-10-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
What type of server? Shared ? VM? Site was a bit laggy for me. Is your memory jailed? I had similar situation last week. 128mb max no matter
what
I set.
My server is hosted by hostmonster (http://www.hostmonster.com) . That should be a shared server, which I can see multiple users are sharing the same server. It contains a CPU throttling service, but I don't know if there is any limits on memory.
Can you share your localsettings? Just remove db or anything security related. Pastebin or a Gist.
Here it is: http://paste.ubuntu.com/6509412/
Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I thought that memory limit might be a cause, but why I can still use "*convert Hfcw.jpg -resize 320x134 320Hfcw.jpg*" to create a 320px thumbnail manually? I thought if there is a memory limit, it will also limit the command line.
I have a look again back to my Error-log, and found these. Wish it may help on diagnose:
*[Tue Dec 03 22:30:38 2013] [error] [client 218.20.42.180] File does not exist: /home4/hanfumap/public_html/w/images/thumb/9/93/Hfcw.jpg, referer: http://www.hanfumap.com/wiki/File:Hfcw.jpg http://www.hanfumap.com/wiki/File:Hfcw.jpg* [Tue Dec 03 22:30:38 2013] [warn] [client 74.220.215.82] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/fcgiwrapper*[Tue Dec 03 22:30:39 2013] [error] [client 218.20.42.180] File does not exist: /home4/hanfumap/public_html/hanfucw/404.htm, referer: http://www.hanfumap.com/wiki/File:Hfcw.jpg http://www.hanfumap.com/wiki/File:Hfcw.jpg* [Tue Dec 03 22:30:41 2013] [warn] [client 74.220.215.82] mod_fcgid: read data timeout in 90 seconds [Tue Dec 03 22:30:41 2013] [error] [client 74.220.215.82] Premature end of script headers: index.php [Tue Dec 03 22:30:42 2013] [warn] [client 74.220.215.82] mod_fcgid: read data timeout in 90 seconds [Tue Dec 03 22:30:42 2013] [error] [client 74.220.215.82] Premature end of script headers: index.php*[Tue Dec 03 22:30:46 2013] [error] [client 218.20.42.180] File does not exist: /home4/hanfumap/public_html/w/images/thumb/9/93/Hfcw.jpg, referer: http://www.hanfumap.com/wiki/%E9%A6%96%E9%A1%B5 http://www.hanfumap.com/wiki/%E9%A6%96%E9%A1%B5* [Tue Dec 03 22:30:48 2013] [warn] [client 74.220.215.82] mod_fcgid: read data timeout in 90 seconds [Tue Dec 03 22:30:48 2013] [error] [client 74.220.215.82] Premature end of script headers: index.php Error: Item 1376927911 could not be opened. If this item is closed, you can view statistics and bid history using our closed item viewer https://host282.hostmonster.com:2083/cgi-bin/auction.pl?action=closed. [Tue Dec 03 22:30:49 2013] [warn] mod_fcgid: process 18616 graceful kill fail, sending SIGKILL [Tue Dec 03 22:30:49 2013] [warn] mod_fcgid: process 18502 graceful kill fail, sending SIGKILL*[Tue Dec 03 22:30:49 2013] [error] [client 218.20.42.180] File does not exist: /home4/hanfumap/public_html/hanfucw/404.htm, referer: http://www.hanfumap.com/wiki/%E9%A6%96%E9%A1%B5 http://www.hanfumap.com/wiki/%E9%A6%96%E9%A1%B5*
2013/12/2 Jonathan Aquilina eagles051387@gmail.com
Usually on a shared host there are memory restrictions i believe on each account, which is then managed by the hosting provider.
On Mon, Dec 2, 2013 at 3:08 PM, Steph Zhang stephdechine@gmail.com wrote:
2013/11/29 Tom tom@hutch4.us
In addition, you might want to set wgMaxShellMemory to something
higher
than the default (102,400 KB in MW < 1.22, 307,200 KB in MW >= 1.22. I think it highly unlikely that either of those is the actual problem, however, since that file is under 200kb.
What version of MW are you running? What version of ImageMagick?
Yep. What version of ImageMagick?
hanfumap.com [~]# convert --version
Version: ImageMagick 6.7.9-10 2012-10-05 Q16
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
What type of server? Shared ? VM? Site was a bit laggy for me. Is your memory jailed? I had similar situation last week. 128mb max no matter
what
I set.
My server is hosted by hostmonster (http://www.hostmonster.com) . That should be a shared server, which I can see multiple users are sharing the same server. It contains a CPU throttling service, but I don't know if there is any limits on memory.
Can you share your localsettings? Just remove db or anything security related. Pastebin or a Gist.
Here it is: http://paste.ubuntu.com/6509412/
Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- Jonathan Aquilina _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org