<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    BTW, it's better to use 5000 port for auth:<br>
    <br>
    curl -d '{"auth":{"passwordCredentials":{"username": "admin",
    "password": "secrete"}}}' -H "Content-type: application/json" <a
      href="http://localhost:35357/v2.0/tokens">http://localhost:5000/v2.0/tokens</a><br>
    <br>
    35357 port  is listened by the admin interface devoted for other set
    of operations.<br>
    <br>
    On 01/14/2012 01:51 PM, Xuyun Zhang wrote:
    <blockquote
cite="mid:CAKhGoT2vUtt4oPr9hosuwUK96zbKCfwhwiqpSPCW0V1yF-RtBg@mail.gmail.com"
      type="cite">I set the database by running ./sampledata<br>
      <br>
      Then I tried to use curl to get tokens, the command is: <br>
      <br>
      $ curl -d '{"auth":{"passwordCredentials":{"username": "admin",
      "password": "secrete"}}}' -H "Content-type: application/json" <a
        moz-do-not-send="true" href="http://localhost:35357/v2.0/tokens">http://localhost:35357/v2.0/tokens</a><br>
      <br>
      The result is :<br>
      $ {"IdentityFault": {"message": "Unhandled error", "code": "500",
      "details": "(OperationalError) attempt to write a readonly
      database u'INSERT INTO tokens (id, user_id, tenant_id, expires)
      VALUES (?, ?, ?, ?)' ('ce9cc482-7ab5-4785-9152-3cab95e12833', 1,
      None, '2012-01-15 22:41:14.794615')"}}<br>
      <br>
      it seemed that the token had been generated yet can't be written
      to the database.<br>
      <br>
      my environment:<br>
      swift version: 1.4.3-0ubuntu2 (installed by apt-get install
      command)<br>
      keystone version: keystone 2012.1-dev (installation directory:
      /home/chang/keystone)<br>
      <br>
      Any helpful information is highly appreciated! <br>
      <br>
      Regards,<br>
      Sean<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help   : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alessio Ababilov
Software Engineer
Grid Dynamics</pre>
  </body>
</html>