Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expecting to find application/json in Content-Type header #75

Open
mariancelo opened this issue Aug 13, 2015 · 21 comments
Open

Expecting to find application/json in Content-Type header #75

mariancelo opened this issue Aug 13, 2015 · 21 comments

Comments

@mariancelo
Copy link

Cloudfuse stopped working few days ago.

I am using "openstack type" storage and when I try to mount a storage I got this error message:

Entity: line 1: parser error : Document is empty
{"error": {"message": "Expecting to find application/json in Content-Type header
^
Failed to authenticate.

I haven't touched my config file (~/.cloudfuse)

It looks like something in "which headers openstack is accepting" has changed, as I looked at the code cloudfuse is using application/xml content-type

Anyone has similar problem?

@versgui
Copy link

versgui commented Aug 14, 2015

Exactly the same problem here, I don't know what happened and I didn't find any log...

@mariancelo
Copy link
Author

I am using runabove storage. Maybe it has something to do with upgrade on storage system they did on August the 12th. (bottom of the page: https://status.runabove.com/)

Just to be sure that cloudfuse stopped working on runabove only. versgui: are you using the same storage?

thnx

@versgui
Copy link

versgui commented Aug 14, 2015

Yes, I'm using Runabove too. The update of their authentication system may explain the problem.

@mariancelo
Copy link
Author

ok, thanks, I have already written a ticket(2 days ago) to their support, but I didn't mention that it could be connected with their security update. I will update the ticket and will let you know, when they answer it.

@versgui
Copy link

versgui commented Aug 14, 2015

Thank you very much!

@ndriu
Copy link

ndriu commented Aug 15, 2015

Hello,

did you get any answer from support? I have the same problem...

Andrzej

@mariancelo
Copy link
Author

This is what support has answered:

"Hello, I checked with our administrators and the maintenance is now over. If you still have an authentification error, I suggest you to check if you can log in in your Horizon Dashboard. If it works, I suggest you to check directly with the cloudfuse community since everything is okay on our side."

@strakadavid
Copy link

Hello, I have the same problem. Can you make fix? It looks like something changed.

@MedericB
Copy link

Hi, did you find any solution ?
I have the same problem with https://auth.cloud.ovh.net/v2.0 (cloud like Runabove by OVH).

@digitalmio
Copy link

Anyone managed to fix this? I have the same problem using OVH ObjectStorage

@gaul
Copy link
Contributor

gaul commented Oct 20, 2015

You should consider using s3fs or goofys with S3Proxy using the Swift backend as a workaround until this issue can be fixed.

@Jaimy85
Copy link

Jaimy85 commented Oct 25, 2015

It seems OVH only accepts json format, cloudfuse only works with xml.
snprintf(postdata, sizeof(postdata), "{"auth": {"tenantName": "%s", "passwordCredentials":"
"{"username": "%s", "password": "%s" } } }"
, reconnect_args.tenant, reconnect_args.username, reconnect_args.password);
Using this will give you the auth, however more code is needed to handle the json response.

@cortopy
Copy link

cortopy commented Dec 29, 2015

Are there any updates on this? I'm getting the same problem two months after

@nikuzz
Copy link

nikuzz commented Feb 26, 2016

No new updates on this for OVH ObjectStorage?
@Jaimy85 where I can change the code like you suggest?
For the moment I try to use rclone, but it's not the same because you need to have a local copy of the data, or to manage a "copy and delete" for a "backup use"

@dakser
Copy link

dakser commented Mar 7, 2016

Hi, excuse me, do you have founded any solution to this? I have this problem with OVH Object Storage and their support doesn't help. Thanks in advance.

@nikuzz
Copy link

nikuzz commented Mar 7, 2016

Today I'll try with hubicfuse... maybe it works with the regular OVH Swift Object Storage.

@nikuzz
Copy link

nikuzz commented Mar 9, 2016

@dakser I confirm that with hibicfuse you cannot reach the goal, OVH Object storage has different API then hubic :(
I finally try s3ql and seems working well.
Here a guide from OVH:
https://www.ovh.com/fr/g1908.monter_un_conteneur_dobjet_avec_s3ql

It works also with rclone, but in this case you need to manage the sync and keep a local copy, simple it is not a mount but only a clone. Bye

@dakser
Copy link

dakser commented Mar 10, 2016

Thanks a lot nikuzz, yes, it looks like S3QL works without any problem, but
it creates a container inside the Object Storage and that not suits my
needs for managing the files inside the bucket. I can only hope to be
solved to use OVH Object Storage with the simplicity of mounting it as a
local drive. Thanks for your help!

2016-03-09 8:11 GMT-06:00 nikuzz notifications@github.com:

@dakser https://github.com/dakser I confirm that with hibicfuse you
cannot reach the goal, OVH Object storage has different API then hubic :(
I finally try s3ql https://github.com/s3ql/s3ql and seems working well.
Here a guide from OVH:
https://www.ovh.com/fr/g1908.monter_un_conteneur_dobjet_avec_s3ql

It works also with rclone, but in this case you need to manage the sync
and keep a local copy, simple it is not a mount but only a clone. Bye


Reply to this email directly or view it on GitHub
#75 (comment).

@dakser
Copy link

dakser commented Mar 11, 2016

Hi, I have founded a new proyect that's from OVH to mount Swift, right now
I'm testint it. https://github.com/ovh/svfs

2016-03-09 18:17 GMT-06:00 Dax2424 aguilatrix@gmail.com:

Thanks a lot nikuzz, yes, it looks like S3QL works without any problem,
but it creates a container inside the Object Storage and that not suits my
needs for managing the files inside the bucket. I can only hope to be
solved to use OVH Object Storage with the simplicity of mounting it as a
local drive. Thanks for your help!

2016-03-09 8:11 GMT-06:00 nikuzz notifications@github.com:

@dakser https://github.com/dakser I confirm that with hibicfuse you
cannot reach the goal, OVH Object storage has different API then hubic :(
I finally try s3ql https://github.com/s3ql/s3ql and seems working well.
Here a guide from OVH:
https://www.ovh.com/fr/g1908.monter_un_conteneur_dobjet_avec_s3ql

It works also with rclone, but in this case you need to manage the sync
and keep a local copy, simple it is not a mount but only a clone. Bye


Reply to this email directly or view it on GitHub
#75 (comment).

@cortopy
Copy link

cortopy commented Mar 11, 2016

@dakser thanks for mentioning it! Sounds like the right solution

@kdahmani
Copy link

@dakser thanks for your work, I am having problems connecting using this command:
sudo mount -t svfs -o username=99999999999xxx,password=xxxxxxxxxxx,tenant=xxxxxxxxxxx,region=bhs1 pcs /storage

I would like to know where we get the following from in the OVH control panel:

username
password
tenant

I keep on getting Authorization failed if I use swift I can see my storage with this command

swift --os-auth-token xxxxxxa4ec6478eaf580f629xxxxxx --os-storage-url https://storage.bhs1.cloud.ovh.net/v1/AUTH_xxxxxxx0c0b445959c6d1df1xxxxxxxx list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests