• 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.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Openstack Swift + SSL

Status
Not open for further replies.

Kelwing

Chevereto Member
I have Chevereto configured for a public container on my Openstack environment. Everything is good until I try to view the image after it has been uploaded. Image uploads just fine, shows up in the container, thumbnail shows up in the gallery, but I get a page not found when I click on the image. Digging through the logs, I see this:
Code:
PHP message: Can't fetch file header from external storage server: http://[SNIP]/swift/v1/jakesimages/2016/10/06/16276680563_da84544fba_o.jpg (Empty reply from server)

A closer look at the error reveals the problem. It isn't using https at this point. My Openstack environment is pure SSL, no unencrypted connections are supported. I checked the HTTPS box on the external storage, and configured the "URL" option in the storage to have https, is there something I'm missing? How is that URL generated? From the URL option or does it grab it from Keystone?
Thanks in advance
 
Same as this: https://chevereto.com/community/threads/external-storage.7872

Chevereto tries to get the file header to detect if the image exists or not. If the communication between Chevereto (PHP) and your external storage server can't me made then the system assumes that the file can't be displayed so it shows a 404 page. This feature will be removed because it seems that most people don't know how to properly configure the external containers so the system can't truly rely on that check.

I'm very tired of this error and tired of explain it so it will just get removed.
 
Rodolfo,
The issue seems to be entirely caused by it using the incorrect URL to fetch that header. Looking at the error produced, it looks like it would work if Chevereto just tried to connect over HTTPS instead of HTTP. Since its Swift, the webserver is already there. If I go to the URL show in the error, it doesn't work, however, change the URL to have HTTPS instead of HTTP, and it works just fine. I've told Chevereto to use SSL anywhere I can, but it doesn't seem to listen. I read the other posts regarding this issue before I posted, but this specific case seems to be slightly different. I may be completely wrong, though.
Thanks
 
Like I said, it will get removed. To make it work at this time you will need to remove the code from app/routes/route.image.php

Cheers.
 
Status
Not open for further replies.
Back
Top