Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


This forum is in read only mode, you can no longer reply
  • Allan Kirk 36 posts 110 karma points c-trib
    Dec 09, 2014 @ 11:43
    Allan Kirk
    0

    Images return 404 at specific host

    We have a strange problem, and hope someone here has a solution.

    We have deployed a website to fab-it.dk, and for some reason this feature has stopped working. The server simply returns a 404-error if we try to access the image. We can access the image without the extra parameters with no problem. Unfortunatly I cannot give you a link, as we have had to do a work-around for now.

    I realise this is not a lot of info, but I was hoping one of you might have seen this problem before, or might have a fresh set of eyes.

    Thanks in advance.

  • James Jackson-South 489 posts 1747 karma points c-trib
    Dec 09, 2014 @ 17:08
    James Jackson-South
    0

    Hi Allan,

    Yeah, that's pretty much impossible for me to debug with such little information. Could you see if you could supply some more?

    • Can you give me some version info?
    • Are you attempting to return a local or remote image?
    • What server is it running on?
    • Was/is it working on your dev server?
    • Are all the binaries, any configuration files deployed?
    • Is the web.config correct?
    • Do you have any url rewriting deployed?

    Cheers

    James :)

  • ks 20 posts 138 karma points
    Dec 10, 2014 @ 04:34
    ks
    0

    Hi, James Allan wants me to answer your question, here are the information we have. Please let me know if you need some more. Can you give me some version info?

    • Umbraco 7.1.7
    • Web Server Version: Microsoft-IIS/7.5
    • OS : Microsoft Windows 7 -- Microsoft Windows NT 6.1.7601 Service Pack 1
    • .Net Version: 4.0.30319.18444
    • Trust Level: Unrestricted
    • ImageProcessor v2.1.0, ImageProcessor.Web v4.1.3 & ImageProcessor.Web.Config v2.1.0

    Are you attempting to return a local or remote image? - Local

    What server is it running on? - http://fab-it.dk/

    Was/is it working on your dev server? - Yes

    Are all the binaries, any configuration files deployed? - Yes

    Is the web.config correct? - Yes

    Do you have any url rewriting deployed? - No

    Thanks,

    KS

  • James Jackson-South 489 posts 1747 karma points c-trib
    Dec 10, 2014 @ 15:15
    James Jackson-South
    0

    Thanks for that info, I know it was a lot to ask for.

    Nothing seems out of the ordinary there at all so I'm afraid the issue is nothing obvious.

    There's only one place I throw a 404 for local images within the solution.

    https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/Services/LocalFileImageService.cs#L106

    That method is called here.

    https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L401

    I'm wondering whether somehow the resource path is getting mangled so no file info is returned. My only real hope of debugging the issue is if you were able to use the source to debug against. I appreciate that this is a lot to ask.

    Cheers

    James

  • Allan Kirk 36 posts 110 karma points c-trib
    Dec 11, 2014 @ 05:33
    Allan Kirk
    0

    Thanks for your reply James.

    As we only have this problem on the production server, and we have a workaround up and running, we are not going to do this right now. We will not forget this, but is low priority right now, so it might be several weeks before we get around to it.

  • James Jackson-South 489 posts 1747 karma points c-trib
    Dec 12, 2014 @ 22:37
    James Jackson-South
    0

    No problem. Once you get the chance though please share as this is an isolated incident that I'd really like to investigate.

  • ks 20 posts 138 karma points
    Dec 26, 2014 @ 09:25
    ks
    1

    Hi James, Here is something we found from the debugging.

    It doesn't throw the 404 exception because FileInfo is exist, furthermore, I try to check "fileInfo.Attributes" on Dev its return "Normal" while on the Production its return "Archive, NotContentIndexed".

    Seem like it works correctly because both of Dev and Production are can return the cachedPath example: e:\web04\umbraco0459\app_data\cache\7\9\1\3\3\6\791336a9446f8e33cac9dd4c3d5e113e00db1ac8.jpg

    • Here is the code line that different return :

    https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L439 On the Production site, it always returns null even the "isNewOrUpdated" is return False. So it's not continuing on the code below lines https://github.com/JimBobSquarePants/ImageProcessor/blob/master/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs#L441

    Thanks,

    KS

  • James Jackson-South 489 posts 1747 karma points c-trib
    Dec 26, 2014 @ 16:50
    James Jackson-South
    0

    KS,

    Well done! That is a bug, left over from some legacy code, weirdly corrupted.

    I've updated the code in my V2 branch to fix it. I'll do a release once I do some work I have planned to add some events for people to tap into.

    Cheers

    James

  • James Jackson-South 489 posts 1747 karma points c-trib
    May 18, 2015 @ 12:07
    James Jackson-South
    0

    Hey guys,

    This issue should be fully resolved no that the latest releases are out. Could you confirm please so we can close this thread?

    Cheers

    James

  • ks 20 posts 138 karma points
    May 25, 2015 @ 11:45
    ks
    0

    Hi James,

    Sorry for my late reply, I've just tried to upgrade to ImageProcessorforUmbraco_2.2.4. It works perfectly on Dev server in Local and remote file; but for the Production server It still returns the error message "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.",

    I checked all the binaries, configuration files and web.config, everything is correct.

    Any idea or where we can look at?

    Thanks

    KS

  • James Jackson-South 489 posts 1747 karma points c-trib
    May 26, 2015 @ 10:28
    James Jackson-South
    0

    Weird... Are the cache files produced in App_Data/Cache/

  • ks 20 posts 138 karma points
    May 27, 2015 @ 06:01
    ks
    0

    Yes, there are files in the App_Data/Cache/ (Last modified 2 days ago). I've also tried to delete files in the cache folder, files can re-create.

Please Sign in or register to post replies

Write your reply to:

Draft