CF Login

611 views
Skip to first unread message

ved...@gmail.com

unread,
Feb 25, 2015, 7:28:24 AM2/25/15
to vcap...@cloudfoundry.org
Hi,

I am finally able to deploy clound foundry on openstack junos on centos7.

Now when I try Create account on the login page https://login.nttcf.com/login


https://console.nttcf.com/
404 Not Found: Requested route ('console.nttcf.com') does not exist.

and when I do
[root@controller spring-music]# cf login
API endpoint
: https://api.nttCF.com

Email>

what should be the default email/user/passwd to be passed. Am I still missing something.

cf-deployment.yml

michael.g...@gmail.com

unread,
Feb 25, 2015, 10:01:12 AM2/25/15
to vcap...@cloudfoundry.org, ved...@gmail.com
Meanwhile more expert guys will come, I try to help you :)

you have to deploy an app to have a webpage for create user accounts, there is not a default service like that.

default credentials are admin/admin

bye,
Michael

ved...@gmail.com

unread,
Feb 26, 2015, 2:13:19 AM2/26/15
to vcap...@cloudfoundry.org, ved...@gmail.com, michael.g...@gmail.com
tried with admin/admin.. still not working... please

[root@controller releases]# cf login -a https://api.nttCF.com -u veda -p veda
API endpoint: https://api.nttCF.com
FAILED
Error performing request: Get https://login.nttCF.com/login: stopped after 1 redirect

                  
API endpoint:   https://api.nttCF.com (API version: 2.22.0)  
Not logged in. Use 'cf login' to log in.
[root@controller releases]# cf login -a https://api.nttCF.com -u admin -p admin
API endpoint: https://api.nttCF.com
FAILED
Error performing request: Get https://login.nttCF.com/login: stopped after 1 redirect

                  
API endpoint:   https://api.nttCF.com (API version: 2.22.0)  
Not logged in. Use 'cf login' to log in.
[root@controller releases]# cf login -a https://api.nttCF.com -u admin -p fakepassword
API endpoint: https://api.nttCF.com
FAILED
Error performing request: Get https://login.nttCF.com/login: stopped after 1 redirect

                  
API endpoint:   https://api.nttCF.com (API version: 2.22.0)  
Not logged in. Use 'cf login' to log in.


[root@controller releases]# curl https://api.nttCF.com\info
curl: (6) Could not resolve host: api.nttCF.cominfo; Name or service not known
[root@controller releases]# curl https://api.nttCF.com/info
{"name":"vcap","build":"2222","support":"http://support.cloudfoundry.com","version":2,"description":"Cloud Foundry sponsored by Pivotal","authorization_endpoint":"https://login.nttCF.com","token_endpoint":"https://uaa.nttCF.com","allow_debug":true}[root@controller releases]#

Sree Tummidi

unread,
Feb 26, 2015, 2:39:25 AM2/26/15
to vcap...@cloudfoundry.org, ved...@gmail.com, michael.g...@gmail.com
Hi,
The attached YAML file indicates that the password for admin user is fakepassword.
Can you try the following steps and let me know the results
1> Launch https://login.nttCF.com in the browser
2> Enter the Credentials as admin/fakepassword

Also, try accessing https://uaa.nttCF.com are you able to see a un-styled  login page.

-Sree



--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/1df93226-d991-4b8f-bdca-f8dab8d7a2c9%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Thanks,
Sree Tummidi
Sr. Product Manager
Identity - Pivotal Cloud Foundry

Message has been deleted

ved...@gmail.com

unread,
Feb 27, 2015, 3:20:24 AM2/27/15
to vcap...@cloudfoundry.org, ved...@gmail.com, michael.g...@gmail.com

Hi,

I tried
1. login, it works fine in browser  but nothing is displayed in the page
2. http://uaa.nttcf.com shows unstyled login page.
3. from command line cf login results:

[root@controller veda]# cf login

VERSION
:
6.10.0-b78bf10

API endpoint
: https://api.nttCF.com

REQUEST
: [2015-02-27T13:36:46+05:30]
GET
/v2/info HTTP/1.1
Host: api.nttCF.com
Accept: application/json
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / linux



RESPONSE
: [2015-02-27T13:36:46+05:30]
HTTP
/1.1 200 OK
Content-Length: 305
Content-Type: application/json;charset=utf-8
Date: Fri, 27 Feb 2015 08:06:46 GMT
Server: nginx
X
-Cf-Requestid: 0e96e440-a4b9-4449-52c7-52a95e435685
X
-Content-Type-Options: nosniff
X
-Vcap-Request-Id: 436d65db-febb-4ba8-52d1-56ee0ad8de38::e970ee5c-e560-435a-8845-74701e82fd08

{"name":"vcap","build":"2222","support":"http://support.cloudfoundry.com","version":2,"description":"Cloud Foundry sponsored by Pivotal","authorization_endpoint":"http://login.nttCF.com","token_endpoint":"https://uaa.nttCF.com","api_version":"2.22.0","logging_endpoint":"wss://loggregator.nttCF.com:4443"}

REQUEST
: [2015-02-27T13:36:46+05:30]
GET
/login HTTP/1.1
Host: login.nttCF.com
Accept: application/json
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / linux



RESPONSE
: [2015-02-27T13:36:46+05:30]
HTTP
/1.1 200 OK
Content-Length: 599
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: no-cache, no-store, max-age=0
Content-Language: en-US
Content-Type: application/json;charset=UTF-8
Date: Fri, 27 Feb 2015 08:06:46 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Pragma: no-cache
Server: Apache-Coyote/1.1
X
-Cf-Requestid: 92107fec-db24-4a20-74ee-12a71b272da5
X
-Frame-Options: DENY

{"timestamp":"2015-01-23T22:44:14+0000","app":{"version":"1.14"},"idpDefinitions":[],"commit_id":"c4e3209","prompts":{"username":["text","Email"],"password":["password","Password"],"passcode":["password","One Time Code (Get one at http://login.nttCF.com/passcode)"]},"forgotPasswordLink":"https://console.nttCF.com/password_resets/new","createAccountLink":"https://console.nttCF.com/register","links":{"register":"https://console.nttCF.com/register","passwd":"https://console.nttCF.com/password_resets/new","login":"http://login.nttCF.com","uaa":"http://uaa.nttCF.com"},"entityID":"login.nttCF.com"}

Email> admin

Password>
Authenticating...

REQUEST
: [2015-02-27T13:36:52+05:30]
POST
/oauth/token HTTP/1.1
Host: login.nttCF.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.10.0-b78bf10 / linux

grant_type
=password&password=[PRIVATE DATA HIDDEN]&scope=&username=admin

RESPONSE
: [2015-02-27T13:36:53+05:30]
HTTP
/1.1 200 OK
Content-Length: 1767
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: no-store
Content-Type: application/json;charset=UTF-8
Date: Fri, 27 Feb 2015 08:06:53 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Pragma: no-cache
Server: Apache-Coyote/1.1
X
-Cf-Requestid: 89935cb9-dce1-4b20-7530-a37a8c01e2ca
X
-Cf-Requestid: e17e4e33-776d-4b62-633b-ce2317441655
X
-Frame-Options: DENY

{"access_token":"[PRIVATE DATA HIDDEN]","token_type":"bearer","refresh_token":"[PRIVATE DATA HIDDEN]","expires_in":599,"scope":"scim.read cloud_controller.admin scim.write cloud_controller.write password.write openid cloud_controller.read doppler.firehose","jti":"b7041e66-6c27-4269-bde5-812f489ce35e"}
OK


REQUEST
: [2015-02-27T13:36:53+05:30]
GET
/v2/organizations HTTP/1.1
Host: api.nttCF.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / linux



RESPONSE
: [2015-02-27T13:36:53+05:30]
HTTP
/1.1 500 Internal Server Error
Content-Length: 99
Content-Type: application/json;charset=utf-8
Date: Fri, 27 Feb 2015 08:06:53 GMT
Server: nginx
X
-Cf-Requestid: 84255b91-cf6d-4a68-6c4f-cfb4f636ed57
X
-Content-Type-Options: nosniff
X
-Vcap-Request-Id: 502957e1-c7b2-4cf3-6166-36df13097b6e::bf95dd35-e2d9-4681-8d4f-2a049889b75b

{
 
"error_code": "UnknownError",
 
"description": "An unknown error occurred.",
 
"code": 10001
}

FAILED
Error finding available orgs
Server error, status code: 500, error code: 10001, message: An unknown error occurred.
FAILED
Error finding available orgs
Server error, status code: 500, error code: 10001, message: An unknown error occurred.


                   
API endpoint
:   https://api.nttCF.com (API version: 2.22.0)  
User:           admin  
No org or space targeted, use 'cf target -o ORG -s SPACE'


4. when i tried creating org

[root@controller veda]# cf create-org temp

VERSION
:
6.10.0-b78bf10

Creating org temp as admin...

REQUEST
: [2015-02-27T13:48:49+05:30]
POST
/v2/organizations HTTP/1.1
Host: api.nttCF.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / linux

{"name":"temp"}

RESPONSE
: [2015-02-27T13:48:49+05:30]
HTTP
/1.1 500 Internal Server Error
Content-Length: 99
Content-Type: application/json;charset=utf-8
Date: Fri, 27 Feb 2015 08:18:49 GMT
Server: nginx
X
-Cf-Requestid: 1c660e94-e554-4dfd-69ea-984de173ff85
X
-Content-Type-Options: nosniff
X
-Vcap-Request-Id: 9d3695c8-b888-4d01-7adf-ae9047c6c527::7174c3ba-f5a3-441b-9ae3-0282d39f715f

{
 
"error_code": "UnknownError",
 
"description": "An unknown error occurred.",
 
"code": 10001
}

FAILED
Server error, status code: 500, error code: 10001, message: An unknown error occurred.
FAILED
Server error, status code: 500, error code: 10001, message: An unknown error occurred.
[root@controller veda]#
Enter code here...

Not sure why is the "api.nttCF.comis throwing internal server error.

Daniel Mikusa

unread,
Feb 27, 2015, 7:56:53 AM2/27/15
to vcap...@cloudfoundry.org
Have you looked at the cloud controller logs?  There's probably an error / stack trace in there.

Also, what happens if you run `curl https://api.nttCF.com/v2/info`?  Does that work?  That's really the most basic request you can send to the API.

Lastly, how did you specify you domain when you deployed?  nttCF.com or nttcf.com?  Not sure if case matters, but it might be worth checking.

Dan

 

ved...@gmail.com

unread,
Mar 2, 2015, 7:36:15 AM3/2/15
to vcap...@cloudfoundry.org, dmi...@pivotal.io
I saw few errors in cc_logs like

"timestamp":1425280806.9719408,"message":"Request failed: 401: {\"code\"=>10002, \"description\"=>\"Authentication error\", \"error_code\"=>\"CF-NotAuthenticated\", \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/controllers/base/base_controller.rb:129:in `check_authentication'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/controllers/base/base_controller.rb:75:in `dispatch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/clou

if I run `curl https://api.nttCF.com/v2/info`?  Yes it works..

[root@controller ~]# curl https://api.nttCF.com/v2/info
{"name":"vcap","build":"2222","support":"http://support.cloudfoundry.com","version":2,"description":"Cloud Foundry sponsored by Pivotal","authorization_endpoint":"https://login.nttcf.com","token_endpoint":"https://uaa.nttcf.com","api_version":"2.22.0","logging_endpoint":"wss://loggregator.nttcf.com:4443"}[root@controller ~]#
[root@controller ~]#

However when i try for organizations it fails
[root@controller ~]# curl https://api.nttCF.com/v2/organizations
{
 
"code": 10002,
 
"description": "Authentication error",
 
"error_code": "CF-NotAuthenticated"
}
[root@controller ~]#


Is there any default org and space that I can use.
How can I check the database entries? how can I manually create orgs and space. without which the cf login is failing.

with both nttCF.com or nttcf.com the curl works.. however i still changed it to nttcf.com and redeployed... but of no use.

[root@controller ~]# cf api https://api.nttcf.com
Setting api endpoint to https://api.nttcf.com...
OK

                   
API endpoint
:   https://api.nttcf.com (API version: 2.22.0)  
Not logged in. Use 'cf login' to log in.
[root@controller ~]# cf login
API endpoint
: https://api.nttcf.com

Email> admin

Password>
Authenticating...
OK

FAILED
Error finding available orgs
Server error, status code: 500, error code: 10001, message: An unknown error occurred.


                   
API endpoint
:   https://api.nttcf.com (API version: 2.22.0)  
User:           admin  
No org or space targeted, use 'cf target -o ORG -s SPACE'
[root@controller ~]#
[root@controller ~]# cf create-org test1
Creating org test1 as admin...

FAILED
Server error, status code: 500, error code: 10001, message: An unknown error occurred.
[root@controller ~]#


Please suggest if I can specify any default configuration / can create any DB entries manually.
Reply all
Reply to author
Forward
0 new messages