• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

external storage 404 not found

Status
Not open for further replies.
why is that ?

Because of this in app/routes/route.image.php
PHP:
$headers = G\getUrlHeaders($url, [CURLOPT_REFERER => G\get_current_url()]);

System tries to do a header request to the target URL to see if the image exists in the external storage. Doing that header request the system knows that the image exists when it gets a 200 response code. If the system doesn't gets a 200 code (HTTP OK) it means that the image wasn't available when the system did the header request.

If you are getting this just sometimes most likely is due to a faulty external server which isn't working in a reliable way because it doesn't correctly serve the images all the time or at least most of the time.
 
Because of this in app/routes/route.image.php
PHP:
$headers = G\getUrlHeaders($url, [CURLOPT_REFERER => G\get_current_url()]);

System tries to do a header request to the target URL to see if the image exists in the external storage. Doing that header request the system knows that the image exists when it gets a 200 response code. If the system doesn't gets a 200 code (HTTP OK) it means that the image wasn't available when the system did the header request.

If you are getting this just sometimes most likely is due to a faulty external server which isn't working in a reliable way because it doesn't correctly serve the images all the time or at least most of the time.

ok, my external server is using ubuntu with only apache2 installed with default settings, and i am using cname pointed to the external server "storage.faplr.me" which works fine, should i change my apache settings ?
 
ok, my external server is using ubuntu with only apache2 installed with default settings, and i am using cname pointed to the external server "storage.faplr.me" which works fine, should i change my apache settings ?
Dont use apache for serving static content, NGINX is the better way.
 
Dont use apache for serving static content, NGINX is the better way.
just installed and configured nginx but i still have the same problem, for example the images on the homepage are always visible here http://faplr.co/explore
but when i browse to http://faplr.co/image/N it says the page doesnt exist, but after refreshing the page couple of times the image is visible again... :s

my external server is http://storage.faplr.me example hosted image is http://storage.faplr.me/2015/06/04/wallpaper768.jpg
:s
 
Really strange. A possible problem could be the timeout of curl, anyway your storage delivers a 200 code which is right. The problem is not your storage I think.
 
You can comment the code in the image route. Like I said, system does the test there and that's why you get issues on /image and not in listings.
 
The get headers function has been improved in 3.6.5, most likely it fixes this issue.
 
Status
Not open for further replies.
Back
Top