Closed yangjiandong closed 9 years ago
看一下是不是这个情况:#67
大侠,帮我看看:
2015/09/22 12:00:29:278656 [INFO] 192.168.1.109 succ root page
2015/09/22 12:00:38:602686 [INFO] 192.168.1.109 succ post pic:f9b22fccda0ccf77e72d168678366fc8 size:1801891
2015/09/22 12:00:39:888662 [ERROR] 192.168.1.109 fail pic:f9b22fccda0ccf77e72d168678366fc8 w:0 h:0 p:1 g:0 x:-1 y:-1 r:0 q:75 f:jpeg
2015/09/22 12:12:55:872352 [DEBUG] File[/home/ek2/workspace/zimg/bin/script/process.lua] is A File.
2015/09/22 12:12:55:872638 [DEBUG] Path[/home/ek2/workspace/zimg/bin/img] is A Dir.
2015/09/22 12:12:55:872704 [DEBUG] Paths Init Finished.
2015/09/22 12:12:55:874403 [DEBUG] Begin to Start Httpd Server...
2015/09/22 12:12:55:874545 [INFO] zimg started
2015/09/22 12:12:55:878859 [DEBUG] thr_args alloc
2015/09/22 12:12:55:879077 [DEBUG] Memcached Connection Init Finished.
2015/09/22 12:12:55:879254 [DEBUG] luaL_newstate alloc
2015/09/22 12:12:55:880619 [DEBUG] zimg_lua: zimg using lua script.
2015/09/22 12:12:59:364724 [DEBUG] Method: 0
2015/09/22 12:12:59:364889 [DEBUG] Root Request.
2015/09/22 12:12:59:365032 [DEBUG] ============get_request_cb() DONE!===============
2015/09/22 12:12:59:365099 [INFO] 192.168.1.109 succ root page
2015/09/22 12:12:59:498123 [DEBUG] Method: 0
2015/09/22 12:12:59:498318 [DEBUG] favicon.ico Request, Denied.
2015/09/22 12:12:59:498391 [DEBUG] headers: 1
2015/09/22 12:13:01:054259 [DEBUG] Method: 2
2015/09/22 12:13:01:054439 [DEBUG] evblen = 192
2015/09/22 12:13:01:054523 [DEBUG] rmblen = 192
2015/09/22 12:13:01:054884 [DEBUG] boundary Find. boundary = ----WebKitFormBoundaryFDReW3hD8IqQbjSR
2015/09/22 12:13:01:054986 [DEBUG] boundaryPattern = ------WebKitFormBoundaryFDReW3hD8IqQbjSR, strlen = 40
2015/09/22 12:13:01:055066 [DEBUG] File[]
2015/09/22 12:13:01:055124 [DEBUG] FileName [] Has No '.' in It.
2015/09/22 12:13:01:055179 [DEBUG] Get Type of File[] Failed!
2015/09/22 12:13:01:055234 [DEBUG] header_value 39 form-data; name="userfile"; filename="
2015/09/22 12:13:01:055291 [DEBUG] header_value 24 application/octet-stream
2015/09/22 12:13:01:055369 [DEBUG] ============post_request_cb() DONE!===============
2015/09/22 12:13:08:972395 [DEBUG] Method: 2
2015/09/22 12:13:08:972567 [DEBUG] evblen = 192
2015/09/22 12:13:08:972643 [DEBUG] rmblen = 192
2015/09/22 12:13:08:972710 [DEBUG] boundary Find. boundary = ----WebKitFormBoundaryFDReW3hD8IqQbjSR
2015/09/22 12:13:08:972768 [DEBUG] boundaryPattern = ------WebKitFormBoundaryFDReW3hD8IqQbjSR, strlen = 40
2015/09/22 12:13:08:972855 [DEBUG] File[]
2015/09/22 12:13:08:972916 [DEBUG] FileName [] Has No '.' in It.
2015/09/22 12:13:08:972970 [DEBUG] Get Type of File[] Failed!
2015/09/22 12:13:08:973025 [DEBUG] header_value 39 form-data; name="userfile"; filename="
2015/09/22 12:13:08:973081 [DEBUG] header_value 24 application/octet-stream
2015/09/22 12:13:08:973157 [DEBUG] ============post_request_cb() DONE!===============
2015/09/22 12:13:09:281829 [DEBUG] Method: 0
2015/09/22 12:13:09:282011 [DEBUG] favicon.ico Request, Denied.
2015/09/22 12:13:09:282083 [DEBUG] headers: 1
2015/09/22 12:13:12:157306 [DEBUG] Method: 0
2015/09/22 12:13:12:157489 [DEBUG] Root Request.
2015/09/22 12:13:12:157596 [DEBUG] ============get_request_cb() DONE!===============
2015/09/22 12:13:12:157660 [INFO] 192.168.1.109 succ root page
2015/09/22 12:13:20:983258 [DEBUG] Method: 2
2015/09/22 12:13:20:983407 [DEBUG] evblen = 1802081
2015/09/22 12:13:20:987356 [DEBUG] rmblen = 1802081
2015/09/22 12:13:20:987444 [DEBUG] boundary Find. boundary = ----WebKitFormBoundary7UpA7UBnewBGT1Et
2015/09/22 12:13:20:987560 [DEBUG] boundaryPattern = ------WebKitFormBoundary7UpA7UBnewBGT1Et, strlen = 40
2015/09/22 12:13:20:987617 [DEBUG] File[IMG_1431.JPG]
2015/09/22 12:13:20:987662 [DEBUG] fileType[JPG]
2015/09/22 12:13:20:987738 [DEBUG] header_value 51 form-data; name="userfile"; filename="IMG_1431.JPG
2015/09/22 12:13:20:987786 [DEBUG] header_value 10 image/jpeg
2015/09/22 12:13:20:995468 [DEBUG] Begin to Caculate MD5...
2015/09/22 12:13:21:005665 [DEBUG] md5: f9b22fccda0ccf77e72d168678366fc8
2015/09/22 12:13:21:005739 [DEBUG] save_path: /home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8
2015/09/22 12:13:21:005791 [DEBUG] Path[/home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8] is A Dir.
2015/09/22 12:13:21:005835 [DEBUG] save_name-->: /home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8/0*0
2015/09/22 12:13:21:005881 [DEBUG] File[/home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8/0*0] is A File.
2015/09/22 12:13:21:005923 [DEBUG] Check File Exist. Needn't Save.
2015/09/22 12:13:21:005965 [INFO] 192.168.1.109 succ post pic:f9b22fccda0ccf77e72d168678366fc8 size:1801891
2015/09/22 12:13:21:006032 [DEBUG] ============post_request_cb() DONE!===============
2015/09/22 12:13:22:405801 [DEBUG] Method: 0
2015/09/22 12:13:22:405983 [DEBUG] Got a GET request for </f9b22fccda0ccf77e72d168678366fc8>
2015/09/22 12:13:22:406057 [DEBUG] md5 of request is <f9b22fccda0ccf77e72d168678366fc8>
2015/09/22 12:13:22:406117 [DEBUG] get_img() start processing zimg request...
2015/09/22 12:13:22:406177 [DEBUG] whole_path: /home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8
2015/09/22 12:13:22:406318 [DEBUG] Path[/home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8] is A Dir.
2015/09/22 12:13:22:406412 [DEBUG] key: f9b22fccda0ccf77e72d168678366fc8:0:0:1:0:-1:-1:0:75:jpeg
2015/09/22 12:13:22:406817 [DEBUG] Cache Conn Failed!
2015/09/22 12:13:22:406903 [DEBUG] Start to Find the Image...
2015/09/22 12:13:22:406963 [DEBUG] 0rig File Path: /home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8/0*0
2015/09/22 12:13:22:407021 [DEBUG] Got the rsp_path: /home/ek2/workspace/zimg/bin/img/998/139/f9b22fccda0ccf77e72d168678366fc8/0*0_p1_g0_-1*-1_r0_q75.jpeg
2015/09/22 12:13:22:407318 [DEBUG] Cache Result: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY
2015/09/22 12:13:22:407388 [DEBUG] Not Hit Original Image Cache. Begin to Open it.
2015/09/22 12:13:22:416375 [DEBUG] Open Original Image From Disk Failed! 0 != 1
2015/09/22 12:13:22:416487 [DEBUG] Open Original Image From Disk Failed!
2015/09/22 12:13:22:416590 [DEBUG] zimg Requset Get Image[MD5: f9b22fccda0ccf77e72d168678366fc8] Failed!
2015/09/22 12:13:22:416651 [ERROR] 192.168.1.109 fail pic:f9b22fccda0ccf77e72d168678366fc8 w:0 h:0 p:1 g:0 x:-1 y:-1 r:0 q:75 f:jpeg
2015/09/22 12:13:22:416739 [DEBUG] ============get_request_cb() ERROR!===============
你没看那个issue里的回复吗?
先用 http://localhost:4869/eaec878ed10c5649499c127fe196c781?p=0 访问一下看看能不能出来图片。
如果能的话,怀疑是imagemagick库没装好。
谢谢,是imagemagick 问题,安装各种Delegates 有点烦
vwmare 下的 centos7 环境,上载成功,但取不到图片,报404,后台日志:
参看图片目录,已存在相应的文件。