{"action":"created","issue":{"url":"https://api.github.com/repos/buaazp/zimg/issues/67","labels_url":"https://api.github.com/repos/buaazp/zimg/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/buaazp/zimg/issues/67/comments","events_url":"https://api.github.com/repos/buaazp/zimg/issues/67/events","html_url":"https://github.com/buaazp/zimg/issues/67","id":56630920,"number":67,"title":"上传成功，打开时报404","user":{"login":"wys06521","id":8814737,"avatar_url":"https://avatars.githubusercontent.com/u/8814737?v=3","gravatar_id":"","url":"https://api.github.com/users/wys06521","html_url":"https://github.com/wys06521","followers_url":"https://api.github.com/users/wys06521/followers","following_url":"https://api.github.com/users/wys06521/following{/other_user}","gists_url":"https://api.github.com/users/wys06521/gists{/gist_id}","starred_url":"https://api.github.com/users/wys06521/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wys06521/subscriptions","organizations_url":"https://api.github.com/users/wys06521/orgs","repos_url":"https://api.github.com/users/wys06521/repos","events_url":"https://api.github.com/users/wys06521/events{/privacy}","received_events_url":"https://api.github.com/users/wys06521/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/buaazp/zimg/labels/build","name":"build","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-05T05:57:38Z","updated_at":"2015-09-22T04:16:11Z","closed_at":"2015-02-05T09:24:54Z","body":"安装情况：按照安装说明安装的依赖包，有几个路径已经失效，自己从网上找的包，没有装optional的\r\n配置情况：基本默认配置，只把日志基本改成了debug\r\n上传成功，bin/img下也存在上传的文件\r\n打开图片时报404，debug日志如下\r\n```\r\n2015/02/05 14:04:09:239196 [DEBUG] ============get_request_cb() DONE!===============\r\n2015/02/05 14:04:09:239239 [INFO] 106.39.122.86 succ root page\r\n2015/02/05 14:04:20:919796 [DEBUG] Method: 2\r\n2015/02/05 14:04:20:919933 [DEBUG] evblen = 47467\r\n2015/02/05 14:04:20:919997 [DEBUG] rmblen = 47467\r\n2015/02/05 14:04:20:920043 [DEBUG] boundary Find. boundary = ----WebKitFormBoundarywtZQreCp5EzH9Bvk\r\n2015/02/05 14:04:20:920088 [DEBUG] boundaryPattern = ------WebKitFormBoundarywtZQreCp5EzH9Bvk, strlen = 40\r\n2015/02/05 14:04:20:920130 [DEBUG] File[博物馆.jpg]\r\n2015/02/05 14:04:20:920166 [DEBUG] fileType[jpg]\r\n2015/02/05 14:04:20:920214 [DEBUG] header_value 52 form-data; name=\"userfile\"; filename=\"博物馆.jpg\r\n2015/02/05 14:04:20:920252 [DEBUG] header_value 10 image/jpeg\r\n2015/02/05 14:04:20:920383 [DEBUG] Begin to Caculate MD5...\r\n2015/02/05 14:04:20:920528 [DEBUG] md5: eaec878ed10c5649499c127fe196c781\r\n2015/02/05 14:04:20:920568 [DEBUG] save_path: /root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781\r\n2015/02/05 14:04:20:920614 [DEBUG] Path[/root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781] is Not Existed!\r\n2015/02/05 14:04:20:920751 [DEBUG] save_path[/root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781] Create Finish.\r\n2015/02/05 14:04:20:920792 [DEBUG] save_name-->: /root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781/0*0\r\n2015/02/05 14:04:20:920831 [DEBUG] File[/root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781/0*0] is Not Existed!\r\n2015/02/05 14:04:20:920880 [DEBUG] Start to Storage the New Image...\r\n2015/02/05 14:04:20:920991 [DEBUG] Image [/root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781/0*0] Write Successfully!\r\n2015/02/05 14:04:20:921146 [DEBUG] Binary Cache Set Key[eaec878ed10c5649499c127fe196c781] Failed!\r\n2015/02/05 14:04:20:921188 [DEBUG] Cache Result: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY\r\n2015/02/05 14:04:20:921224 [INFO] 106.39.122.86 succ post pic:eaec878ed10c5649499c127fe196c781 size:47276\r\n2015/02/05 14:04:20:921272 [DEBUG] ============post_request_cb() DONE!===============\r\n2015/02/05 14:05:05:268986 [DEBUG] Method: 0\r\n2015/02/05 14:05:05:269106 [DEBUG] Got a GET request for </eaec878ed10c5649499c127fe196c781>\r\n2015/02/05 14:05:05:269139 [DEBUG] md5 of request is <eaec878ed10c5649499c127fe196c781>\r\n2015/02/05 14:05:05:269178 [DEBUG] get_img() start processing zimg request...\r\n2015/02/05 14:05:05:269220 [DEBUG] whole_path: /root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781\r\n2015/02/05 14:05:05:269261 [DEBUG] Path[/root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781] is A Dir.\r\n2015/02/05 14:05:05:269304 [DEBUG] key: eaec878ed10c5649499c127fe196c781:0:0:1:0:-1:-1:0:75:jpeg\r\n2015/02/05 14:05:05:269439 [DEBUG] Cache Conn Failed!\r\n2015/02/05 14:05:05:269482 [DEBUG] Start to Find the Image...\r\n2015/02/05 14:05:05:269521 [DEBUG] 0rig File Path: /root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781/0*0\r\n2015/02/05 14:05:05:269560 [DEBUG] Got the rsp_path: /root/zimg/zimg/bin/img/939/801/eaec878ed10c5649499c127fe196c781/0*0_p1_g0_-1*-1_r0_q75.jpeg\r\n2015/02/05 14:05:05:269674 [DEBUG] Cache Result: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY\r\n2015/02/05 14:05:05:269714 [DEBUG] Not Hit Original Image Cache. Begin to Open it.\r\n2015/02/05 14:05:05:270279 [DEBUG] Open Original Image From Disk Failed! 0 != 1\r\n2015/02/05 14:05:05:270323 [DEBUG] Open Original Image From Disk Failed!\r\n2015/02/05 14:05:05:270369 [DEBUG] zimg Requset Get Image[MD5: eaec878ed10c5649499c127fe196c781] Failed!\r\n2015/02/05 14:05:05:270407 [ERROR] 106.39.122.86 fail pic:eaec878ed10c5649499c127fe196c781 w:0 h:0 p:1 g:0 x:-1 y:-1 r:0 q:75 f:jpeg\r\n2015/02/05 14:05:05:270460 [DEBUG] ============get_request_cb() ERROR!===============\r\n```\r\n\r\n需要改配置吗"},"comment":{"url":"https://api.github.com/repos/buaazp/zimg/issues/comments/142177908","html_url":"https://github.com/buaazp/zimg/issues/67#issuecomment-142177908","issue_url":"https://api.github.com/repos/buaazp/zimg/issues/67","id":142177908,"user":{"login":"yangjiandong","id":276788,"avatar_url":"https://avatars.githubusercontent.com/u/276788?v=3","gravatar_id":"","url":"https://api.github.com/users/yangjiandong","html_url":"https://github.com/yangjiandong","followers_url":"https://api.github.com/users/yangjiandong/followers","following_url":"https://api.github.com/users/yangjiandong/following{/other_user}","gists_url":"https://api.github.com/users/yangjiandong/gists{/gist_id}","starred_url":"https://api.github.com/users/yangjiandong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangjiandong/subscriptions","organizations_url":"https://api.github.com/users/yangjiandong/orgs","repos_url":"https://api.github.com/users/yangjiandong/repos","events_url":"https://api.github.com/users/yangjiandong/events{/privacy}","received_events_url":"https://api.github.com/users/yangjiandong/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T04:16:11Z","updated_at":"2015-09-22T04:16:11Z","body":"大侠，帮我看看：\r\n```\r\n2015/09/22 12:00:29:278656 [INFO] 192.168.1.109 succ root page\r\n2015/09/22 12:00:38:602686 [INFO] 192.168.1.109 succ post pic:f9b22fccda0ccf77e72d168678366fc8 size:1801891\r\n2015/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\r\n2015/09/22 12:12:55:872352 [DEBUG] File[/home/ek2/workspace/zimg/bin/script/process.lua] is A File.\r\n2015/09/22 12:12:55:872638 [DEBUG] Path[/home/ek2/workspace/zimg/bin/img] is A Dir.\r\n2015/09/22 12:12:55:872704 [DEBUG] Paths Init Finished.\r\n2015/09/22 12:12:55:874403 [DEBUG] Begin to Start Httpd Server...\r\n2015/09/22 12:12:55:874545 [INFO] zimg started\r\n2015/09/22 12:12:55:878859 [DEBUG] thr_args alloc\r\n2015/09/22 12:12:55:879077 [DEBUG] Memcached Connection Init Finished.\r\n2015/09/22 12:12:55:879254 [DEBUG] luaL_newstate alloc\r\n2015/09/22 12:12:55:880619 [DEBUG] zimg_lua: zimg using lua script.\r\n2015/09/22 12:12:59:364724 [DEBUG] Method: 0\r\n2015/09/22 12:12:59:364889 [DEBUG] Root Request.\r\n2015/09/22 12:12:59:365032 [DEBUG] ============get_request_cb() DONE!===============\r\n2015/09/22 12:12:59:365099 [INFO] 192.168.1.109 succ root page\r\n2015/09/22 12:12:59:498123 [DEBUG] Method: 0\r\n2015/09/22 12:12:59:498318 [DEBUG] favicon.ico Request, Denied.\r\n2015/09/22 12:12:59:498391 [DEBUG] headers: 1\r\n2015/09/22 12:13:01:054259 [DEBUG] Method: 2\r\n2015/09/22 12:13:01:054439 [DEBUG] evblen = 192\r\n2015/09/22 12:13:01:054523 [DEBUG] rmblen = 192\r\n2015/09/22 12:13:01:054884 [DEBUG] boundary Find. boundary = ----WebKitFormBoundaryFDReW3hD8IqQbjSR\r\n2015/09/22 12:13:01:054986 [DEBUG] boundaryPattern = ------WebKitFormBoundaryFDReW3hD8IqQbjSR, strlen = 40\r\n2015/09/22 12:13:01:055066 [DEBUG] File[]\r\n2015/09/22 12:13:01:055124 [DEBUG] FileName [] Has No '.' in It.\r\n2015/09/22 12:13:01:055179 [DEBUG] Get Type of File[] Failed!\r\n2015/09/22 12:13:01:055234 [DEBUG] header_value 39 form-data; name=\"userfile\"; filename=\"\r\n2015/09/22 12:13:01:055291 [DEBUG] header_value 24 application/octet-stream\r\n2015/09/22 12:13:01:055369 [DEBUG] ============post_request_cb() DONE!===============\r\n2015/09/22 12:13:08:972395 [DEBUG] Method: 2\r\n2015/09/22 12:13:08:972567 [DEBUG] evblen = 192\r\n2015/09/22 12:13:08:972643 [DEBUG] rmblen = 192\r\n2015/09/22 12:13:08:972710 [DEBUG] boundary Find. boundary = ----WebKitFormBoundaryFDReW3hD8IqQbjSR\r\n2015/09/22 12:13:08:972768 [DEBUG] boundaryPattern = ------WebKitFormBoundaryFDReW3hD8IqQbjSR, strlen = 40\r\n2015/09/22 12:13:08:972855 [DEBUG] File[]\r\n2015/09/22 12:13:08:972916 [DEBUG] FileName [] Has No '.' in It.\r\n2015/09/22 12:13:08:972970 [DEBUG] Get Type of File[] Failed!\r\n2015/09/22 12:13:08:973025 [DEBUG] header_value 39 form-data; name=\"userfile\"; filename=\"\r\n2015/09/22 12:13:08:973081 [DEBUG] header_value 24 application/octet-stream\r\n2015/09/22 12:13:08:973157 [DEBUG] ============post_request_cb() DONE!===============\r\n2015/09/22 12:13:09:281829 [DEBUG] Method: 0\r\n2015/09/22 12:13:09:282011 [DEBUG] favicon.ico Request, Denied.\r\n2015/09/22 12:13:09:282083 [DEBUG] headers: 1\r\n2015/09/22 12:13:12:157306 [DEBUG] Method: 0\r\n2015/09/22 12:13:12:157489 [DEBUG] Root Request.\r\n2015/09/22 12:13:12:157596 [DEBUG] ============get_request_cb() DONE!===============\r\n2015/09/22 12:13:12:157660 [INFO] 192.168.1.109 succ root page\r\n2015/09/22 12:13:20:983258 [DEBUG] Method: 2\r\n```"}}