redbo / cloudfuse

Filesystem (fuse) implemented on Mosso's Cloud Files
http://redbo.github.com/cloudfuse/
MIT License
392 stars 114 forks source link

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

Open mariancelo opened 9 years ago

mariancelo commented 9 years ago

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 commented 9 years ago

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

mariancelo commented 9 years ago

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 commented 9 years ago

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

mariancelo commented 9 years ago

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 commented 9 years ago

Thank you very much!

ndriu commented 9 years ago

Hello,

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

Andrzej

mariancelo commented 9 years ago

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 commented 9 years ago

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

MedericB commented 9 years ago

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 commented 9 years ago

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

gaul commented 9 years ago

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

Jaimy85 commented 9 years ago

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 commented 8 years ago

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

nikuzz commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

nikuzz commented 8 years ago

@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 commented 8 years ago

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

dakser commented 8 years ago

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

cortopy commented 8 years ago

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

kdahmani commented 8 years ago

@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