cloudfuse icon indicating copy to clipboard operation
cloudfuse copied to clipboard

Expecting to find application/json in Content-Type header

Open mariancelo opened this issue 9 years ago • 21 comments

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?

mariancelo avatar Aug 13 '15 08:08 mariancelo

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

versgui avatar Aug 14 '15 12:08 versgui

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

mariancelo avatar Aug 14 '15 12:08 mariancelo

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

versgui avatar Aug 14 '15 12:08 versgui

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.

mariancelo avatar Aug 14 '15 12:08 mariancelo

Thank you very much!

versgui avatar Aug 14 '15 12:08 versgui

Hello,

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

Andrzej

ndriu avatar Aug 15 '15 20:08 ndriu

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."

mariancelo avatar Aug 18 '15 11:08 mariancelo

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

strakadavid avatar Aug 20 '15 06:08 strakadavid

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

MedericB avatar Sep 12 '15 06:09 MedericB

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

digitalmio avatar Oct 16 '15 15:10 digitalmio

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

gaul avatar Oct 20 '15 23:10 gaul

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.

Jaimy85 avatar Oct 25 '15 10:10 Jaimy85

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

cortopy avatar Dec 29 '15 11:12 cortopy

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"

nikuzz avatar Feb 26 '16 11:02 nikuzz

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.

dakser avatar Mar 07 '16 01:03 dakser

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

nikuzz avatar Mar 07 '16 08:03 nikuzz

@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

nikuzz avatar Mar 09 '16 14:03 nikuzz

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 [email protected]:

@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 https://github.com/redbo/cloudfuse/issues/75#issuecomment-194311038.

dakser avatar Mar 10 '16 00:03 dakser

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 [email protected]:

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 [email protected]:

@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 https://github.com/redbo/cloudfuse/issues/75#issuecomment-194311038.

dakser avatar Mar 11 '16 00:03 dakser

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

cortopy avatar Mar 11 '16 13:03 cortopy

@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

kdahmani avatar Apr 10 '16 20:04 kdahmani