Broken ACP Images (Nginx)

jimmyk
jimmyk
@jimmy
9 years ago
514 posts
Just got everything installed on Nginx. I'm getting some broken images in the ACP. Most of the images are appearing fine, except for a select few. Below are the errors I'm getting for the https://10.0.0.151/core/system_check "System Check" page - see output below.

Other images are working fine. Front-end images appear to be working fine. (see images)

An example would be the option_pass.png, the first error below. It directs to

/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_pass.png


direct access to the file works great

https://10.0.0.151/modules/jrCore/img/option_pass.png


As you can see from the screenshots attached, other images are showing up fine. It only seems to be select images which aren't showing up.

Here is the kicker... looking at page5.png below, the same images which are broken in other parts of the ACP are showing up fine on the /core/admin/images page. In my example above, the option_pass is showing up on the core/admin/images list, but not showing up in other parts of the ACP where that specific image is being used.

Now sure what is the issue here. Somethings show and some things don't. I haven't touched the permissions for any of the folders, they're all default 644/755, except for the folder which I made 777 when asked to before the install.

2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_pass.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/module/jrCore/option_pass.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/core/system_check"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_fail.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/module/jrCore/option_fail.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/core/system_check"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_pass.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/module/jrCore/option_pass.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/core/system_check"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_fail.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/module/jrCore/option_fail.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/core/system_check"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/skin/jrElastic/bckgrd.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/skin/jrElastic/bckgrd.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/data/cache/jrElastic/Sa24cdc02f55d8570154e6941a152e5ee.css"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/skin/jrCore/lightbox2-close.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/skin/jrCore/lightbox2-close.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/data/cache/jrElastic/Sa24cdc02f55d8570154e6941a152e5ee.css"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/skin/jrCore/lightbox2-loading.gif" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/skin/jrCore/lightbox2-loading.gif HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/data/cache/jrElastic/Sa24cdc02f55d8570154e6941a152e5ee.css"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/skin/jrCore/lightbox2-prev.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/skin/jrCore/lightbox2-prev.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/data/cache/jrElastic/Sa24cdc02f55d8570154e6941a152e5ee.css"
2015/12/21 23:47:25 [error] 3086#3086: *64 open() "/home/nginx/domains/10.0.0.151/public/image/img/skin/jrCore/lightbox2-next.png" failed (2: No such file or directory), client: 10.0.0.245, server: 10.0.0.151, request: "GET /image/img/skin/jrCore/lightbox2-next.png HTTP/2.0", host: "10.0.0.151", referrer: "https://10.0.0.151/data/cache/jrElastic/Sa24cdc02f55d8570154e6941a152e5ee.css"

page1.PNG.png
page1.PNG.png  •  148KB

page2.PNG.png
page2.PNG.png  •  222KB

page3.PNG.png
page3.PNG.png  •  291KB

page4.PNG.png
page4.PNG.png  •  117KB

page5.PNG.png
page5.PNG.png  •  160KB


updated by @jimmy: 03/23/16 03:28:30AM
michael
@michael
9 years ago
7,715 posts
Yeah, this will come back not found if accessed from the file system:
/home/nginx/domains/10.0.0.151/public/image/img/module/jrCore/option_pass.png
because the image is not there.
<img src="site.com/image/img/module/jrCore/option_pass.png">
should work ok though because that will get run through the router system ( router.php ) and picked up by the image module that then goes and locates the correct location for the current version of the module and displays that.

The correct location for the module would be initially:
/modules/jrCore/img/option_pass.png

But then someone might have uploaded a file at
ACP -> CORE -> SYSTEM CORE -> IMAGES -> option_pass.php

and that file will be stored at a location similar to this url:
/data/media/0/0/jrCore_option_pass.php

But it shouldn't be necessary to know that, just use the
site.com/image/img/module/jrCore/option_pass.png
url to go through the function to retrieve the image.

eg:
https://www.jamroom.net/skins/jrForest/img/logo.png

will ONLY get the version of the logo that is stored at:
/skins/jrForest/img/logo
on the filesystem.

but that same image can be retrieved at:
https://www.jamroom.net/image/img/skin/jrForest/logo.png

but that url will give the logo even if its been changed in the ACP.
jimmyk
jimmyk
@jimmy
9 years ago
514 posts
This was on a fresh install with no modules beside the base. I didn't modify anything. Not sure what I need to do to get those files showing up in the ACP. Everything else was working perfect.

Why would those files be the only files showing up as broken and no other files had the same issue though out the ACP? Like I said, this was a clean install of JR no modifications whatsoever.
updated by @jimmy: 12/22/15 10:39:56PM
michael
@michael
9 years ago
7,715 posts
"Like I said, this was a clean install of JR no modifications whatsoever." on an alien operating system.... :)

Not sure, but I don't know how to setup to go hunting for the root cause.

Guesses:
* .....

Nope, it doesn't make sense. If the image is showing for some modules, it should be showing for all modules. They use the same system.
jimmyk
jimmyk
@jimmy
9 years ago
514 posts
I'm getting out the Voodoo emergency kit. I know there is a spell in there somewhere that will solve all these problems. ;-)
brian
@brian
9 years ago
10,148 posts
This is because of the same issue as here:

https://www.jamroom.net/the-jamroom-network/forum/new_posts/36691/index-not-found


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
jimmyk
jimmyk
@jimmy
9 years ago
514 posts

The images didn't work in the ACP on the stable version either. The stable version of core DID show the index (/).
updated by @jimmy: 12/23/15 08:32:20AM
brian
@brian
9 years ago
10,148 posts
jimmyk:

The images didn't work in the ACP on the stable version either. The stable version of core DID show the index (/).

I'm not sure what you mean about "stable" version - are you talking JR version or something else?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
jimmyk
jimmyk
@jimmy
9 years ago
514 posts
brian:
jimmyk:

The images didn't work in the ACP on the stable version either. The stable version of core DID show the index (/).

I'm not sure what you mean about "stable" version - are you talking JR version or something else?

Thanks!

Stable vs. Beta of jrCore.
brian
@brian
9 years ago
10,148 posts
Let's move this over to the other ticket so we're not going back and forth - they are both related to the same root cause.

https://www.jamroom.net/the-jamroom-network/forum/new_posts/36691/index-not-found

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/23/15 08:38:51AM

Tags