<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Try running keystone with the –d and –t switches (./keystone –d –t). That will output additional debug information on where the error occurred and what your configuration is. That should help in troubleshooting.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Xuyun Zhang <<a href="mailto:xyzhanggz@gmail.com">xyzhanggz@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Sat, 14 Jan 2012 22:51:06 +1100<br>
<span style="font-weight:bold">To: </span><<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>
<span style="font-weight:bold">Subject: </span>[Openstack] Keystone Curl can't get tokens by credentials<br>
</div>
<div><br>
</div>
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 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>
_______________________________________________ Mailing list: <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a> Post to : <a href="mailto:openstack@lists.launchpad.net">
openstack@lists.launchpad.net</a> Unsubscribe : <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a> More help : <a href="https://help.launchpad.net/ListHelp">
https://help.launchpad.net/ListHelp</a> </span>
</body>
</html>