Ask Your Question

Internal Server Error when using php cloud files

asked 2012-07-19 21:24:56 -0500

using php could files as API for swift on a SAIO install with tempauth . Executing the php file :

authenticate(); if ( $auth->authenticated() ) echo "CF Authentication successful \n"; else echo "Authentication faile \n"; ?>

I got the following error message:

PHP Fatal error: Uncaught exception 'AuthenticationException' with message 'Invalid username or access key.' in /usr/share/php/cloudfiles.php:209 Stack trace: #0 /var/www/html/cfcheck.php(6): CF_Authentication->authenticate()

and when trying with curl :

curl -v -H 'X-Auth-Token: AUTH_tkfec9a726c0584d3d8f0150eb36446fd4'

it shows the next message:

  • About to connect() to port 8080 (#0)
  • Trying connected
  • Connected to ( port 8080 (#0) > GET /v1/AUTH_test HTTP/1.1 > User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/ libidn/1.18 > Host: > Accept: / > X-Auth-Token:AUTH_tkfec9a726c0584d3d8f0150eb36446fd4 > < HTTP/1.1 503 Internal Server Error < Content-Type: text/html; charset=UTF-8 < Content-Length: 0 < X-Trans-Id: txc171b3ece9a74e2eabb7b2bac28a74b4 < Date: Tue, 17 Jul 2012 23:24:45 GMT

So it seems like an Internal Server Error although credentials are corrects.

I still with errors for several days. Any idea how to resolve it ??

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-07-23 18:57:09 -0500

gholt gravatar image

Sorry we weren't fast enough in responding. Looks like instead of $username="tester"; you just needed $username="test:tester";

edit flag offensive delete link more

answered 2012-07-21 17:19:24 -0500

Problem resolved I just gave up with swift and moved to other solution less complicated :-) have fun :-)

edit flag offensive delete link more

answered 2012-07-21 18:01:48 -0500

It was really a waste of time just to get credentials...why they did it as complicated ? just keep life simple...Happy to give up with this swift...:-)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-07-19 21:24:56 -0500

Seen: 106 times

Last updated: Jul 23 '12