w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories

Rackspace Cloud Files - [curl] 6: Couldn't resolve host 'identity.api.rackspacecloud.com' Exception thrown


Adding Google DNS nameserver, solves the problem.

In server, the nameserver defined in /etc/resolv.conf is

nameserver 83.138.151.80
nameserver 83.138.151.81

which is recommended nameserver by Rackspace for UK.

So the curl in command prompt works, but not work in php. So I decide to add google DNS along with it. Now the /etc/resolv.conf like this:

nameserver 83.138.151.80
nameserver 83.138.151.81
nameserver 8.8.8.8

Everything works fine...


Categories : Misc

Related to : Rackspace Cloud Files - [curl] 6: Couldn't resolve host 'identity.api.rackspacecloud.com' Exception thrown
Can Rackspace Cloud Files be accessed using S3 (AWS) APIs?
The S3 plugin for Swift is not deployed as part of Rackspace Cloud Files (most production deploys of openstack don't deploy it by default). However, if you want better flexibility in the app, you can use a cross cloud toolkit such as libcloud (python), fog (ruby), jclouds (java), pkgcloud (node/js). This means you can use a simpler abstraction and support multiple providers within your application

Categories : Api
Getting an object's links in Rackspace cloud files API
I figured it out... First, I should get the public URI of the object's container, not from the object. Then I use a CloudFilesClient object. On the container I need to use getCDNMetadata("containername").getCDNUri()

Categories : Misc
How Do I Set Content-Type for Objects On Rackspace Cloud Files?
Solved it! The problem was that it's not Metadata and that BlobBuilder.PayloadBlobBuilder has a method called contentType where you can set the String value. Blob blob = storage.blobBuilder(file.getName()) .payload(file).contentType(content_type).build(); storage.putBlob(container, blob);

Categories : Java
Rackspace Cloud Files (using jclouds) - how to get container location
You can iterate over the Rackspace regions to get the Cloud Files endpoints, and then you can query each endpoint to see if the container exists there. Something like the following: package org.jclouds.examples.rackspace.cloudfiles; import static org.jclouds.examples.rackspace.cloudfiles.Constants.PROVIDER; import java.io.IOException; import java.util.Set; import org.jclouds.ContextBuilder; i

Categories : Java
Authenticating restricted user to Cloud Files on Rackspace using openstack.net
Based on my observations today, it appears that Username+API Key authentication does not work for users created through the User Management feature. However, for those users you can use Username+Password authentication for API access to features like Cloud Files.

Categories : Dotnet


© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.