Hello/Hi/Greetings,
Recently after uploading a image to the gallery using Web Form, the image registers but is not showing. Checking the image file it shows file size 0 byte.
No updates or changes where made to server or piwigo settings since last successful upload in December.
I would be very thankful for any helpful suggestions.
Piwigo version: 2.9.4
PHP version: 5.6.39
MySQL version: 5.5.5-10.1.37-MariaDB-cll-lve [2019-01-12 07:51:56]
Piwigo URL: http://photoandcrochet.com
Offline
Greetings,
and thanks for the link. Been checking kind of everything and I could directly upload the image to the server after renaming them to the filename as registered in the database.
However, after about 5 images I couldn't regenerate the image in different size.
Further investigation showed that once of a sudden the server is producing lots of 503 errors, which is caused by exceeding the allowed 100 processes and the physical memory.
If you have any ideas what could cause the sudden increase of processes and physical memory usage, I'll be very happy to hear about.
Thanks in advance
Dieter
Offline
Greetings again,
I keep on investigating and found that the cause for the process and memory flooding is the image regeneration to different sizes on upload. It looks like that image magic is going somehow into a loop while resizing images on upload.
The following is the list of convert calls which are looping partly since January 18:
photoand 243394 0.0 0.0 11872 1164 ? S Jan11 0:00 sh -c convert "/home/photoand/public_html/upload/2019/01/11/20190111132819-845fdc58.jpg" -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/11/20190111132819-845fdc58-xl.jpg" 2>&1
photoand 243395 0.0 0.0 2096036 124684 ? Sl Jan11 0:01 convert /home/photoand/public_html/upload/2019/01/11/20190111132819-845fdc58.jpg -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 /home/photoand/public_html/local/watermarks/copyright1.png -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 /home/photoand/public_html/_data/i/upload/2019/01/11/20190111132819-845fdc58-xl.jpg
photoand 285059 0.0 0.0 11872 1044 ? S Jan11 0:00 sh -c convert "/home/photoand/public_html/upload/2019/01/11/20190111134007-d329694b.jpg" -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/11/20190111134007-d329694b-xl.jpg" 2>&1
photoand 285060 0.0 0.1 2096068 140896 ? Sl Jan11 0:01 convert /home/photoand/public_html/upload/2019/01/11/20190111134007-d329694b.jpg -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 /home/photoand/public_html/local/watermarks/copyright1.png -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 /home/photoand/public_html/_data/i/upload/2019/01/11/20190111134007-d329694b-xl.jpg
photoand 340110 0.0 0.0 506816 20936 ? S 14:20 0:00 lsphp
root 349164 0.0 0.0 114760 972 pts/11 S+ 14:22 0:00 grep --color=auto photoand
photoand 671896 0.0 0.0 11872 1160 ? S Jan18 0:00 sh -c convert "/home/photoand/public_html/upload/2019/01/18/20190118131537-7c44d93b.jpg" -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/18/20190118131537-7c44d93b-xl.jpg" 2>&1
photoand 671897 0.0 0.1 2096080 141152 ? Sl Jan18 0:02 convert /home/photoand/public_html/upload/2019/01/18/20190118131537-7c44d93b.jpg -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 /home/photoand/public_html/local/watermarks/copyright1.png -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 /home/photoand/public_html/_data/i/upload/2019/01/18/20190118131537-7c44d93b-xl.jpg
Any suggestions on how to solve this issue are very welcome.
Thanks in advance
Dieter
Offline
Add $conf['enable_i_log'] = true as in https://piwigo.org/doc/doku.php?id=user … es_missing
Offline
Hello Flop,
my last steps in solving the problem was change from PHP 5.6 to 7.2 as suggested by my service provider, which didn't change anything on the described problem.
I just tried to upload a new image a view minutes ago. The image registered and showed up. However on regenerating multiple size images everything got stuck again. It went through with 6 out of 8 and was than stuck for about 5 minutes.
Final messages on screen:
1 image could not be regenerated
7 images regenerated successfully
Physical memory usage again up to 98%
Processes from 0 back up to 60 out of 100
Now here the contents of the last log file:
[2019-01-23 0:22:08] [DEBUG] history_autopurge, 6292000/5292423/5341402
[2019-01-23 1:13:52] [DEBUG] history_autopurge, 6293000/5293444/5342423
[2019-01-23 1:56:58] [DEBUG] history_autopurge, 6294000/5294465/5343444
[2019-01-23 2:40:41] [DEBUG] history_autopurge, 6295000/5295486/5344465
[2019-01-23 2:47:53] [DEBUG] [i.php] convert "/home/photoand/public_html/_data/i/upload/2017/05/01/20170501203603-61183e45-xs.jpg" -crop 288x288+72+0 -filter Lanczos -resize 120x120! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2017/05/01/20170501203603-61183e45-sq.jpg" 2>&1
[2019-01-23 2:47:53] [DEBUG] [i.php]
src_path: '20170501203603-61183e45-xs.jpg'
derivative_path: '20170501203603-61183e45-sq.jpg'
o_size: '432 288 124416'
d_size: '120 120 14400'
mem_usage: 0.8000000000000000444089209850062616169452667236328125
timing: array(
'load' => 102,
'rotate' => '',
'crop' => 0,
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 30,
'send' => 0,
'total' => 132,
)
[2019-01-23 3:42:10] [DEBUG] history_autopurge, 6296000/5296507/5345486
[2019-01-23 4:26:02] [DEBUG] history_autopurge, 6297000/5297528/5346507
[2019-01-23 5:10:09] [DEBUG] history_autopurge, 6298000/5298549/5347528
[2019-01-23 6:01:42] [DEBUG] history_autopurge, 6299000/5299570/5348549
[2019-01-23 6:58:44] [DEBUG] history_autopurge, 6300000/5300591/5349570
[2019-01-23 7:51:36] [DEBUG] history_autopurge, 6301000/5301612/5350591
[2019-01-23 8:48:24] [DEBUG] history_autopurge, 6302000/5302633/5351612
[2019-01-23 9:39:52] [DEBUG] history_autopurge, 6303000/5303654/5352633
[2019-01-23 10:30:56] [DEBUG] history_autopurge, 6304000/5304675/5353654
[2019-01-23 11:22:34] [DEBUG] history_autopurge, 6305000/5305696/5354675
[2019-01-23 12:25:19] [DEBUG] history_autopurge, 6306000/5306717/5355696
[2019-01-23 14:01:48] [DEBUG] history_autopurge, 6307000/5307738/5356717
[2019-01-23 15:37:41] [DEBUG] history_autopurge, 6308000/5308759/5357738
[2019-01-23 17:00:08] [INFO] upload_file_pdf, $file_path = ././upload/2019/01/23/20190123120008-be6dd397.jpg, $representative_ext =
[2019-01-23 17:00:08] [INFO] upload_file_tiff, $file_path = ././upload/2019/01/23/20190123120008-be6dd397.jpg, $representative_ext =
[2019-01-23 17:00:08] [INFO] upload_file_video, $file_path = ././upload/2019/01/23/20190123120008-be6dd397.jpg, $representative_ext =
[2019-01-23 17:00:08] [INFO] Handling ././upload/2019/01/23/20190123120008-be6dd397.jpg got
[2019-01-23 17:00:08] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 144x108! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-th.jpg" 2>&1
[2019-01-23 17:00:10] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-th.jpg'
o_size: '4000 3000 12000000'
d_size: '144 108 15552'
mem_usage: 0.8000000000000000444089209850062616169452667236328125
timing: array(
'load' => 19,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 1476,
'send' => 0,
'total' => 1496,
)
[2019-01-23 17:02:49] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -crop 3000x3000+500+0 -filter Lanczos -resize 120x120! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-sq.jpg" 2>&1
[2019-01-23 17:02:51] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-sq.jpg'
o_size: '4000 3000 12000000'
d_size: '120 120 14400'
mem_usage: 0.5
timing: array(
'load' => 20,
'rotate' => '',
'crop' => 0,
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 1573,
'send' => 0,
'total' => 1594,
)
[2019-01-23 17:02:51] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 240x180! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-2s.jpg" 2>&1
[2019-01-23 17:02:53] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-2s.jpg'
o_size: '4000 3000 12000000'
d_size: '240 180 43200'
mem_usage: 0.5
timing: array(
'load' => 22,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 1848,
'send' => 0,
'total' => 1870,
)
[2019-01-23 17:02:54] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 432x324! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-xs.jpg" 2>&1
[2019-01-23 17:02:55] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-xs.jpg'
o_size: '4000 3000 12000000'
d_size: '432 324 139968'
mem_usage: 0.5
timing: array(
'load' => 19,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 1734,
'send' => 0,
'total' => 1754,
)
[2019-01-23 17:02:56] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 576x432! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+97 -composite -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-sm.jpg" 2>&1
[2019-01-23 17:03:00] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-sm.jpg'
o_size: '4000 3000 12000000'
d_size: '576 432 248832'
mem_usage: 0.5
timing: array(
'load' => 46,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => 35,
'save' => 3660,
'send' => 0,
'total' => 3742,
)
[2019-01-23 17:03:00] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 792x594! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+133 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-me.jpg" 2>&1
[2019-01-23 17:03:03] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-me.jpg'
o_size: '4000 3000 12000000'
d_size: '792 594 470448'
mem_usage: 0.5
timing: array(
'load' => 27,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => 16,
'save' => 2508,
'send' => 0,
'total' => 2552,
)
[2019-01-23 17:03:03] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 1008x756! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+169 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-la.jpg" 2>&1
[2019-01-23 17:03:06] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-la.jpg'
o_size: '4000 3000 12000000'
d_size: '1008 756 762048'
mem_usage: 0.5
timing: array(
'load' => 17,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => 18,
'save' => 2510,
'send' => 0,
'total' => 2546,
)
[2019-01-23 17:03:06] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 1224x918! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+206 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-xl.jpg" 2>&1
[2019-01-23 17:04:25] [DEBUG] history_autopurge, 6309000/5309780/5358759
[2019-01-23 17:05:10] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/23/20190123120008-be6dd397.jpg" -filter Lanczos -resize 1656x1242! -compose dissolve -define compose:args=80 '/home/photoand/public_html/local/watermarks/copyright1.png' -gravity NorthWest -geometry +0+278 -composite -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/23/20190123120008-be6dd397-xx.jpg" 2>&1
[2019-01-23 17:05:13] [DEBUG] [i.php]
src_path: '20190123120008-be6dd397.jpg'
derivative_path: '20190123120008-be6dd397-xx.jpg'
o_size: '4000 3000 12000000'
d_size: '1656 1242 2056752'
mem_usage: 0.5
timing: array(
'load' => 19,
'rotate' => '',
'crop' => '',
'scale' => 0,
'sharpen' => '',
'watermark' => 12,
'save' => 2873,
'send' => 0,
'total' => 2905,
)
[2019-01-23 17:05:59] [DEBUG] [i.php] convert "/home/photoand/public_html/upload/2019/01/18/20190118131537-7c44d93b.jpg" -crop 3000x3000+500+0 -filter Lanczos -resize 250x250! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/home/photoand/public_html/_data/i/upload/2019/01/18/20190118131537-7c44d93b-cu_e250.jpg" 2>&1
[2019-01-23 17:06:02] [DEBUG] [i.php]
src_path: '20190118131537-7c44d93b.jpg'
derivative_path: '20190118131537-7c44d93b-cu_e250.jpg'
o_size: '4000 3000 12000000'
d_size: '250 250 62500'
mem_usage: 0.5
timing: array(
'load' => 1898,
'rotate' => '',
'crop' => 0,
'scale' => 0,
'sharpen' => '',
'watermark' => '',
'save' => 2977,
'send' => 0,
'total' => 4876,
)
I am not sure if this is related somehow but since switching to php 7.2 there are an various admin pages the following warnings:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/photoand/public_html/plugins/manage_properties_photos/initadmin.php on line 57
Warning: Cannot modify header information - headers already sent by (output started at /home/photoand/public_html/plugins/manage_properties_photos/initadmin.php:57) in /home/photoand/public_html/include/page_header.php on line 101
Thanks again for your help
Regards
Dieter
Last edited by divedj (2019-01-23 20:06:53)
Offline