You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com> on 2019/07/03 09:17:14 UTC

Unable to log in to the cloudstack management page (Web UI)

Hello,

I am unable to log in to the cloudstack management page (Web UI).
The details of the error are as follows.

I appreciate very much if you could tell me some advice, comments or how to solve the problem.

==============================================================================

[0]system
  OS:CentOS 6.3 64bit
  Cloudstack version : Apache CloudStack 4.2.1

[1]trouble
    Unable to log in to the cloudstack management page (Web UI)
    Even if the login button is clicked, no alert is displayed on the screen, and it seems that there is no particular response.
    However, in the HTTP access log, error messages in the 300th (304) and 400th (401, 404) HTTP status codes are included.
    An error may have occurred in cloudstack internal processing when a 401 error is generated.

[2]Log messages after clicking on a login button

  2-1. access_log.2019-07-01.txt
    -----------------------------
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.css HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561961364158 HTTP/1.1" 401 101
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/logo-login-oss.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/sprites.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/bg-login.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
    -----------------------------

    Status code of /client/api is a 401 error (Unauthorized).

  2-2. apilog.log
    -----------------------------
    2019-07-01 06:09:23,174 INFO  [cloud.api.ApiServer] (catalina-exec-3:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561961364158 401 unable to verify user credentials
    -----------------------------

    apilog.log contains the above message at the same time when 401 error occurred.

  2-3. other log output
    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,731 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===  192.168.122.1 -- POST  
    2019-07-01 06:13:10,745 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) Attempting to log in user: admin in domain 1
    2019-07-01 06:13:10,745 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-17:null) Retrieving user: admin
    2019-07-01 06:13:10,911 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) User: admin in domain 1 has successfully logged in
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,945 INFO  [cloud.api.ApiServer] (catalina-exec-17:null) (userId=2 accountId=2 sessionId=11305223FB11770BC8715A8C6220C036) 192.168.122.1 -- POST command=login domain=/
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,946 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  192.168.122.1 -- POST  
    2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
    2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-exec-22:null) The given command:listCapabilities does not exist or it is not available for user with id:2
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-exec-22:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 432 The given command does not exist or it is not available for user
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,979 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
    -----------------------------

    I'm not sure whether the the following message is related to the error or not.
    "The given command:listCapabilities does not exist or it is not available for user with id:2"


[3]Other case: Log contents of the system that can be logged in to the management page)

    The following logs are included for systems that can be logged in to the management page.

    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:43:37,729 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
    2019-07-01 14:43:51,514 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode
    2019-07-01 14:43:52,693 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers to update status. 
    2019-07-01 14:43:52,695 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. 
    2019-07-01 14:43:57,718 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters not owned by any management server
    2019-07-01 14:43:57,728 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters not owned by any management server
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/physicalResources.js?t=1561959737043 HTTP/1.1" 200 7700
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/system.js?t=1561959737043 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/pluginListing.js?t=1561959737043 HTTP/1.1" 200 4952
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/plugins.js?t=1561959737043 HTTP/1.1" 200 3820
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/plugins/plugins.js?t=1561959737043 HTTP/1.1" 200 902
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/modules.js?t=1561959737043 HTTP/1.1" 200 961
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561959738072 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:20:03,627 INFO  [cloud.api.ApiServer] (catalina-exec-9:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561958404032 401 unable to verify user credentials
    2019-07-01 14:42:17,673 INFO  [cloud.api.ApiServer] (catalina-exec-1:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561959738072 unknown exception writing api response
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,428 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===  192.168.122.1 -- POST  
    2019-07-01 14:44:10,443 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) Attempting to log in user: admin in domain 1
    2019-07-01 14:44:10,444 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-15:null) Retrieving user: admin
    2019-07-01 14:44:10,563 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) User: admin in domain 1 has successfully logged in
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:10,580 INFO  [cloud.api.ApiServer] (catalina-exec-15:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- POST command=login domain=/
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,581 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  192.168.122.1 -- POST  
    2019-07-01 14:44:10,597 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,530 INFO  [cloud.api.ApiServer] (catalina-exec-22:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 200 { "listcapabilitiesresponse" :  { "capability" : {"securitygroupsenabled":true,"cloudstackversion":"4.2.1","userpublictemplateenabled":true,"supportELB":"false","projectinviterequired":false,"allowusercreateprojects":true,"customdiskofferingmaxsize":1024,"KVMsnapshotenabled":false,"regionsecondaryenabled":false} }  }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,530 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002
    2019-07-01 14:44:11,554 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,590 INFO  [cloud.api.ApiServer] (catalina-exec-2:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,590 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958
    2019-07-01 14:44:11,678 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,682 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===START===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
    2019-07-01 14:44:11,694 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===START===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,700 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===START===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,710 INFO  [cloud.api.ApiServer] (catalina-exec-21:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,710 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,719 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===START===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,736 INFO  [cloud.api.ApiServer] (catalina-exec-7:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 200 { "listprojectinvitationsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,736 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===END===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,756 INFO  [cloud.api.ApiServer] (catalina-exec-3:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 200 { "listalertsresponse" : { "count":6 ,"alert" : [  {"id":"aa94782d-a557-44b8-a6cb-ab86b9ffd852","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-07-01T14:42:25+0900"}, {"id":"2e954f7b-50f3-4001-9654-cb040b50fa85","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-28T18:31:43+0900"}, {"id":"26ceaf39-ca88-403a-867f-7a4cf89563c3","type":13,"description":"No usage server process running","sent":"2019-06-27T16:12:11+0900"}, {"id":"7a36b093-4a50-4912-a2b5-cfe9636c56bd","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-27T15:12:14+0900"} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,756 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===END===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126
    2019-07-01 14:44:11,764 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===START===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,783 INFO  [cloud.api.ApiServer] (catalina-exec-24:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 200 { "listregionsresponse" : { "count":1 ,"region" : [  {"id":1,"name":"Local","endpoint":"http://localhost:8080/client/","gslbserviceenabled":true,"portableipserviceenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,783 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===END===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,786 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Searching for hosts>>>
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,787 INFO  [cloud.api.ApiServer] (catalina-exec-10:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 200 { "listprojectsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,787 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098
    2019-07-01 14:44:11,794 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Generating Response>>>
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,795 INFO  [cloud.api.ApiServer] (catalina-exec-25:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 200 { "listhostsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,795 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===END===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
    2019-07-01 14:44:11,801 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===START===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,828 INFO  [cloud.api.ApiServer] (catalina-exec-11:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 200 { "listcapacityresponse" : { "count":1 ,"capacity" : [  {"type":5,"zoneid":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","zonename":"zone1","capacityused":0,"capacitytotal":11,"percentused":"0"} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,828 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===END===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:44:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 HTTP/1.1" 200 318
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 HTTP/1.1" 200 42
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 HTTP/1.1" 200 644
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 HTTP/1.1" 200 184
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 HTTP/1.1" 200 32
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 HTTP/1.1" 200 29
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 HTTP/1.1" 200 193
    -----------------------------

==============================================================================

Best regard,
Eiji Sagawa


RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Gregor,

I am sorry for my late response regarding the email that you sent me last time.

I checked commands.properties but it doesn't seem to be a problem.
I can't upgrade my cloudstack immediately.
If I upgrade cloudstack in the future, I will use your advice.

Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> Sent: Thursday, July 25, 2019 9:59 PM
> To: users@cloudstack.apache.org; Sagawa, Eiji/佐川 英司
> <sa...@fujitsu.com>
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Eiji,
> 
> I did some more digging.
> The default commands.properties in 4.2.1 is generated from this
> template:
> https://github.com/apache/cloudstack/blob/4.2/client/tomcatconf/comm
> ands.properties.in
> 
> You should check the .rpm/.deb or other package you had used to install
> CloudStack for the generated file, or build it yourself with
> https://github.com/apache/cloudstack/blob/4.2/client/pom.xml
> 
> In CloudStack 4.9, commands.properties was deprecated.
> To retain the previous roles, there is a migration script, documented
> here:
> http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/accounts.ht
> ml
> and here:
> https://www.shapeblue.com/dynamic-roles-in-cloudstack/
> more fun facts:
> http://events17.linuxfoundation.org/sites/events/files/slides/CCCNA1
> 7%20CS%20Dynamic%20Roles%20in%20Cloudstack.pdf
> 
> Hope this helps!
> 
> Regards,
> Gregor
> 
> On Wed, 2019-07-17 at 11:48 +0000, Riepl, Gregor (SWISS TXT) wrote:
> > Hi Eiji,
> >
> > >   mysql> select * from cloud.account where id = 2;
> > >
> +----+--------------+--------------------------------------+----
> > >
> --+-----------+---------+---------+----------------+--------------
> > > --+-----------------+---------+
> > >   | id | account_name | uuid                                 | type
> > > |
> > > domain_id | state   | removed | cleanup_needed | network_domain |
> > > default_zone_id | default |
> > >
> +----+--------------+--------------------------------------+----
> > >
> --+-----------+---------+---------+----------------+--------------
> > > --+-----------------+---------+
> > >   |  2 | admin        | 483d0fcf-da63-11e3-8ea9-24be05a86042 |    1
> > > >         1 | enabled | NULL    |              0 |
> > > NULL           |            NULL |       1 |
> > >
> +----+--------------+--------------------------------------+----
> > >
> --+-----------+---------+---------+----------------+--------------
> > > --+-----------------+---------+
> > >   1 row in set (0.00 sec)
> > >
> > >
> > > "type", "state" and "removed" seem to be good.
> > > Should I check records in other tables?
> >
> > Hmm... This looks good to me.
> >
> > Checking further... Do you have a commands.properties that has the
> > correct mappings from role to API calls?
> >
> > This is the only other place I can find that could be relevant -
> > according to:
> >
> https://github.com/apache/cloudstack/blob/4.2/plugins/acl/static-rol
> e-
> >
> based/src/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.
> ja
> > va
> >
> > Regards,
> > Gregor

Re: Unable to log in to the cloudstack management page (Web UI)

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Hi Eiji,

I did some more digging.
The default commands.properties in 4.2.1 is generated from this
template: 
https://github.com/apache/cloudstack/blob/4.2/client/tomcatconf/commands.properties.in

You should check the .rpm/.deb or other package you had used to install
CloudStack for the generated file, or build it yourself with 
https://github.com/apache/cloudstack/blob/4.2/client/pom.xml

In CloudStack 4.9, commands.properties was deprecated.
To retain the previous roles, there is a migration script, documented
here:
http://docs.cloudstack.apache.org/en/4.11.1.0/adminguide/accounts.html
and here:
https://www.shapeblue.com/dynamic-roles-in-cloudstack/
more fun facts:
http://events17.linuxfoundation.org/sites/events/files/slides/CCCNA17%20CS%20Dynamic%20Roles%20in%20Cloudstack.pdf

Hope this helps!

Regards,
Gregor

On Wed, 2019-07-17 at 11:48 +0000, Riepl, Gregor (SWISS TXT) wrote:
> Hi Eiji,
> 
> >   mysql> select * from cloud.account where id = 2;
> >   +----+--------------+--------------------------------------+----
> > --+-----------+---------+---------+----------------+--------------
> > --+-----------------+---------+
> >   | id | account_name | uuid                                 | type
> > |
> > domain_id | state   | removed | cleanup_needed | network_domain |
> > default_zone_id | default |
> >   +----+--------------+--------------------------------------+----
> > --+-----------+---------+---------+----------------+--------------
> > --+-----------------+---------+
> >   |  2 | admin        | 483d0fcf-da63-11e3-8ea9-24be05a86042 |    1
> > >         1 | enabled | NULL    |              0 |
> > NULL           |            NULL |       1 |
> >   +----+--------------+--------------------------------------+----
> > --+-----------+---------+---------+----------------+--------------
> > --+-----------------+---------+
> >   1 row in set (0.00 sec)
> > 
> > 
> > "type", "state" and "removed" seem to be good.
> > Should I check records in other tables?
> 
> Hmm... This looks good to me.
> 
> Checking further... Do you have a commands.properties that has the
> correct mappings from role to API calls?
> 
> This is the only other place I can find that could be relevant -
> according to: 
> https://github.com/apache/cloudstack/blob/4.2/plugins/acl/static-role-based/src/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.java
> 
> Regards,
> Gregor

Re: Unable to log in to the cloudstack management page (Web UI)

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Hi Eiji,

>   mysql> select * from cloud.account where id = 2;
>   +----+--------------+--------------------------------------+----
> --+-----------+---------+---------+----------------+--------------
> --+-----------------+---------+
>   | id | account_name | uuid                                 | type |
> domain_id | state   | removed | cleanup_needed | network_domain |
> default_zone_id | default |
>   +----+--------------+--------------------------------------+----
> --+-----------+---------+---------+----------------+--------------
> --+-----------------+---------+
>   |  2 | admin        | 483d0fcf-da63-11e3-8ea9-24be05a86042 |    1
> |         1 | enabled | NULL    |              0 |
> NULL           |            NULL |       1 |
>   +----+--------------+--------------------------------------+----
> --+-----------+---------+---------+----------------+--------------
> --+-----------------+---------+
>   1 row in set (0.00 sec)
> 
> 
> "type", "state" and "removed" seem to be good.
> Should I check records in other tables?

Hmm... This looks good to me.

Checking further... Do you have a commands.properties that has the
correct mappings from role to API calls?

This is the only other place I can find that could be relevant -
according to: 
https://github.com/apache/cloudstack/blob/4.2/plugins/acl/static-role-based/src/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.java

Regards,
Gregor

RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Gregor,

Thank you for your reply.

> Can you post the result of the following query?
> select * from cloud.account where id = 2;

  The result of the query is as follows.

  mysql> select * from cloud.account where id = 2;
  +----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
  | id | account_name | uuid                                 | type | domain_id | state   | removed | cleanup_needed | network_domain | default_zone_id | default |
  +----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
  |  2 | admin        | 483d0fcf-da63-11e3-8ea9-24be05a86042 |    1 |         1 | enabled | NULL    |              0 | NULL           |            NULL |       1 |
  +----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
  1 row in set (0.00 sec)


"type", "state" and "removed" seem to be good.
Should I check records in other tables?


Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> Sent: Tuesday, July 16, 2019 9:46 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Eiji,
> 
> If I read the source code right, account roles were hard-coded in 4.2.
> 
> Can you post the result of the following query?
> 
> select * from cloud.account where id = 2;
> 
> "type" is an enum that can take the following values:
> https://github.com/apache/cloudstack/blob/4.2/api/src/com/cloud/user
> /Account.java#L42-L47
> 
> "state" should be "enabled"
> 
> "removed" should be NULL
> 
> Hope this helps!
> 
> Regards,
> Gregor
> 
> On Tue, 2019-07-16 at 08:33 +0000, sagawa_eiji@fujitsu.com wrote:
> > Hi Liridon,
> >
> > Thank you for your reply.
> >
> > > select * from cloud.account where id = 2; and select * from roles
> > > where id in (select role_id from account where id = 2);
> >
> >   I did not find the role table and account.role_id column.
> >   The cloudstack version of my system is 4.2.1.
> >   Is there no table/column in this version?
> >
> > > As it seems that your user Admin can log in but maybe your account
> > > or role is inactive or not properly configured. Can you check if you
> > > are able to log in with another account / user which is not under
> > > the admin account?
> >
> >   I confirmed login with another account.
> >   I tried with multiple accounts, but I couldn't log in all.
> >
> > Best regards,
> > Eiji Sagawa
> >
> >
> >
> > > -----Original Message-----
> > > From: Ismaili, Liridon (SWISS TXT) [mailto:
> > > Liridon.Ismaili@swisstxt.ch]
> > > Sent: Friday, July 5, 2019 6:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > > Subject: AW: Unable to log in to the cloudstack management page (Web
> > > UI)
> > >
> > > Hi Eiji
> > >
> > > the JSON inside the body tells the same as the error you posted
> > > already.
> > > May you check the DB if there is something misconfigured with the
> > > accounts or roles?
> > > Please run this query and post the results:
> > > select * from cloud.account where id = 2; and select * from roles
> > > where id in (select role_id from account where id = 2);
> > >
> > > As it seems that your user Admin can log in but maybe your account
> > > or role is inactive or not properly configured. Can you check if you
> > > are able to log in with another account / user which is not under
> > > the admin account?
> > >
> > > Regards
> > > Liridon
> > > ________________________________
> > > Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> > > Gesendet: Freitag, 5. Juli 2019 10:31
> > > An: users@cloudstack.apache.org
> > > Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> > > Betreff: RE: Unable to log in to the cloudstack management page (Web
> > > UI)
> > >
> > > Hi Gregor,
> > >
> > > Thank you very much for answering my questions.
> > >
> > >
> > > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lws
> > > k
> > > > 9
> > > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > > >
> > > > This happens just after login and indicates something is wrong.
> > > > It might not help much, but can you post the JSON body of the
> > > > response?
> > >
> > >   This JSON body was returned.
> > >   -----------------------
> > >   { "errorresponse" :
> > >
> {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The
> > > given command does not exist or it is not available for user"} }
> > >   -----------------------
> > >
> > >   Do you know anything from this JSON body?
> > >
> > >
> > > Best regards,
> > > Eiji Sagawa
> > >
> > >
> > > > -----Original Message-----
> > > > From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> > > > Sent: Wednesday, July 3, 2019 10:00 PM
> > > > To: users@cloudstack.apache.org
> > > > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > > > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > > > Subject: Re: Unable to log in to the cloudstack management page
> > > > (Web
> > > > UI)
> > > >
> > > > Hi Eiji,
> > > >
> > > > >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> > > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=null&
> > > _
> > > > =
> > > > > 1561961364158 HTTP/1.1" 401 101
> > > >
> > > > This happens before login and is ok.
> > > > I see that too when I open the login page without an active
> > > > session.
> > > >
> > > > >     ==> /var/log/cloudstack/management/access_log.2019-07-
> > > > > 01.txt
> > > > <==
> > > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST
> > > > > /client/api HTTP/1.1" 200 321
> > > >
> > > > This is the actual login call, and returns status 200 (success).
> > > >
> > > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lws
> > > k
> > > > 9
> > > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > > >
> > > > This happens just after login and indicates something is wrong.
> > > > It might not help much, but can you post the JSON body of the
> > > > response?
> > > >
> > > > >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet]
> > > > > (catalina-
> > > > > exec-22:null) ===START===  192.168.122.1 -- GET
> > > > >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZx
> > > > > G
> > > > > Awk0owzFDtmi4%3D&_=1561961591972
> > > > >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer]
> > > > > (catalina-
> > > > > exec-22:null) The given command:listCapabilities does not exist
> > > > > or it is not available for user with id:2
> > > > >
> > > > >     ==> /var/log/cloudstack/management/apilog.log <==
> > > > >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer]
> > > > > (catalina-
> > > > > exec-22:null)  192.168.122.1 -- GET
> > > > >
> > >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk
> > > 0
> > > > o
> > > > > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist
> > > > > or
> > > > it
> > > > > is not available for user
> > > >
> > > > These log messages relate to the failing listCapabilities call
> > > > after
> > > login.
> > > > I think you should focus on these.
> > > >
> > > > Regards,
> > > > Gregor

Re: Unable to log in to the cloudstack management page (Web UI)

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Hi Eiji,

If I read the source code right, account roles were hard-coded in 4.2.

Can you post the result of the following query?

select * from cloud.account where id = 2;

"type" is an enum that can take the following values: 
https://github.com/apache/cloudstack/blob/4.2/api/src/com/cloud/user/Account.java#L42-L47

"state" should be "enabled"

"removed" should be NULL

Hope this helps!

Regards,
Gregor

On Tue, 2019-07-16 at 08:33 +0000, sagawa_eiji@fujitsu.com wrote:
> Hi Liridon,
> 
> Thank you for your reply.
> 
> > select * from cloud.account where id = 2; and select * from roles
> > where
> > id in (select role_id from account where id = 2);
> 
>   I did not find the role table and account.role_id column.
>   The cloudstack version of my system is 4.2.1.
>   Is there no table/column in this version?
> 
> > As it seems that your user Admin can log in but maybe your account
> > or
> > role is inactive or not properly configured. Can you check if you
> > are
> > able to log in with another account / user which is not under the
> > admin
> > account?
> 
>   I confirmed login with another account.
>   I tried with multiple accounts, but I couldn't log in all.
> 
> Best regards,
> Eiji Sagawa
> 
> 
> 
> > -----Original Message-----
> > From: Ismaili, Liridon (SWISS TXT) [mailto:
> > Liridon.Ismaili@swisstxt.ch]
> > Sent: Friday, July 5, 2019 6:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > Subject: AW: Unable to log in to the cloudstack management page
> > (Web UI)
> > 
> > Hi Eiji
> > 
> > the JSON inside the body tells the same as the error you posted
> > already.
> > May you check the DB if there is something misconfigured with the
> > accounts
> > or roles?
> > Please run this query and post the results:
> > select * from cloud.account where id = 2; and select * from roles
> > where
> > id in (select role_id from account where id = 2);
> > 
> > As it seems that your user Admin can log in but maybe your account
> > or
> > role is inactive or not properly configured. Can you check if you
> > are
> > able to log in with another account / user which is not under the
> > admin
> > account?
> > 
> > Regards
> > Liridon
> > ________________________________
> > Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> > Gesendet: Freitag, 5. Juli 2019 10:31
> > An: users@cloudstack.apache.org
> > Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> > Betreff: RE: Unable to log in to the cloudstack management page
> > (Web UI)
> > 
> > Hi Gregor,
> > 
> > Thank you very much for answering my questions.
> > 
> > 
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > > 
> > /client/api?command=listCapabilities&response=json&sessionkey=h1Lws
> > k
> > > 9
> > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > > 
> > > This happens just after login and indicates something is wrong.
> > > It might not help much, but can you post the JSON body of the
> > > response?
> > 
> >   This JSON body was returned.
> >   -----------------------
> >   { "errorresponse" :
> > {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The
> > given command does not exist or it is not available for user"} }
> >   -----------------------
> > 
> >   Do you know anything from this JSON body?
> > 
> > 
> > Best regards,
> > Eiji Sagawa
> > 
> > 
> > > -----Original Message-----
> > > From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> > > Sent: Wednesday, July 3, 2019 10:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > > Subject: Re: Unable to log in to the cloudstack management page
> > > (Web
> > > UI)
> > > 
> > > Hi Eiji,
> > > 
> > > >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> > > > 
> > /client/api?command=listCapabilities&response=json&sessionkey=null&
> > _
> > > =
> > > > 1561961364158 HTTP/1.1" 401 101
> > > 
> > > This happens before login and is ok.
> > > I see that too when I open the login page without an active
> > > session.
> > > 
> > > >     ==> /var/log/cloudstack/management/access_log.2019-07-
> > > > 01.txt
> > > <==
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST
> > > > /client/api
> > > > HTTP/1.1" 200 321
> > > 
> > > This is the actual login call, and returns status 200 (success).
> > > 
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > > 
> > /client/api?command=listCapabilities&response=json&sessionkey=h1Lws
> > k
> > > 9
> > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > > 
> > > This happens just after login and indicates something is wrong.
> > > It might not help much, but can you post the JSON body of the
> > > response?
> > > 
> > > >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet]
> > > > (catalina-
> > > > exec-22:null) ===START===  192.168.122.1 -- GET
> > > > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZx
> > > > G
> > > > Awk0owzFDtmi4%3D&_=1561961591972
> > > >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer]
> > > > (catalina-
> > > > exec-22:null) The given command:listCapabilities does not exist
> > > > or
> > > > it is not available for user with id:2
> > > > 
> > > >     ==> /var/log/cloudstack/management/apilog.log <==
> > > >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer]
> > > > (catalina-
> > > > exec-22:null)  192.168.122.1 -- GET
> > > > 
> > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk
> > 0
> > > o
> > > > wzFDtmi4%3D&_=1561961591972 432 The given command does not
> > > > exist or
> > > it
> > > > is not available for user
> > > 
> > > These log messages relate to the failing listCapabilities call
> > > after
> > login.
> > > I think you should focus on these.
> > > 
> > > Regards,
> > > Gregor

RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Liridon,

Thank you for your reply.

> select * from cloud.account where id = 2; and select * from roles where
> id in (select role_id from account where id = 2);

  I did not find the role table and account.role_id column.
  The cloudstack version of my system is 4.2.1.
  Is there no table/column in this version?

> As it seems that your user Admin can log in but maybe your account or
> role is inactive or not properly configured. Can you check if you are
> able to log in with another account / user which is not under the admin
> account?

  I confirmed login with another account.
  I tried with multiple accounts, but I couldn't log in all.

Best regards,
Eiji Sagawa



> -----Original Message-----
> From: Ismaili, Liridon (SWISS TXT) [mailto:Liridon.Ismaili@swisstxt.ch]
> Sent: Friday, July 5, 2019 6:00 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: AW: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Eiji
> 
> the JSON inside the body tells the same as the error you posted already.
> May you check the DB if there is something misconfigured with the accounts
> or roles?
> Please run this query and post the results:
> select * from cloud.account where id = 2; and select * from roles where
> id in (select role_id from account where id = 2);
> 
> As it seems that your user Admin can log in but maybe your account or
> role is inactive or not properly configured. Can you check if you are
> able to log in with another account / user which is not under the admin
> account?
> 
> Regards
> Liridon
> ________________________________
> Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> Gesendet: Freitag, 5. Juli 2019 10:31
> An: users@cloudstack.apache.org
> Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> Betreff: RE: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Gregor,
> 
> Thank you very much for answering my questions.
> 
> 
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > >
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > 9
> > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> >
> > This happens just after login and indicates something is wrong.
> > It might not help much, but can you post the JSON body of the response?
> 
>   This JSON body was returned.
>   -----------------------
>   { "errorresponse" :
> {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The
> given command does not exist or it is not available for user"} }
>   -----------------------
> 
>   Do you know anything from this JSON body?
> 
> 
> Best regards,
> Eiji Sagawa
> 
> 
> > -----Original Message-----
> > From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> > Sent: Wednesday, July 3, 2019 10:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > Subject: Re: Unable to log in to the cloudstack management page (Web
> > UI)
> >
> > Hi Eiji,
> >
> > >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> > >
> >
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> > =
> > > 1561961364158 HTTP/1.1" 401 101
> >
> > This happens before login and is ok.
> > I see that too when I open the login page without an active session.
> >
> > >     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt
> > <==
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> > > HTTP/1.1" 200 321
> >
> > This is the actual login call, and returns status 200 (success).
> >
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > >
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > 9
> > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> >
> > This happens just after login and indicates something is wrong.
> > It might not help much, but can you post the JSON body of the response?
> >
> > >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-
> > > exec-22:null) ===START===  192.168.122.1 -- GET
> > > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> > > Awk0owzFDtmi4%3D&_=1561961591972
> > >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-
> > > exec-22:null) The given command:listCapabilities does not exist or
> > > it is not available for user with id:2
> > >
> > >     ==> /var/log/cloudstack/management/apilog.log <==
> > >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-
> > > exec-22:null)  192.168.122.1 -- GET
> > >
> >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> > o
> > > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist or
> > it
> > > is not available for user
> >
> > These log messages relate to the failing listCapabilities call after
> login.
> > I think you should focus on these.
> >
> > Regards,
> > Gregor

RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Andrija,

Thank you for your reply.

> 1) clear browser cache
> 2) restart mgmt server

  The browser used chrome and firefox. I tried in both browsers.
  But the results did not change.


Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Andrija Panic [mailto:andrija.panic@gmail.com]
> Sent: Friday, July 5, 2019 7:32 PM
> To: users <us...@cloudstack.apache.org>
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> 
> Worth trying to clear browser cache - I had (a possibly) similar issue
> - login data saved in Chrome (for some demo env) and when Chrome
> auto-populate username/password fileds, then when I click on login button
> - nothing happens at all.
> 
> 1) clear browser cache
> 2) restart mgmt server
> 
> On Fri, 5 Jul 2019 at 14:00, Ismaili, Liridon (SWISS TXT) <
> Liridon.Ismaili@swisstxt.ch> wrote:
> 
> > Hi Eiji
> >
> > the JSON inside the body tells the same as the error you posted already.
> > May you check the DB if there is something misconfigured with the
> > accounts or roles?
> > Please run this query and post the results:
> > select * from cloud.account where id = 2; and select * from roles
> > where id in (select role_id from account where id = 2);
> >
> > As it seems that your user Admin can log in but maybe your account or
> > role is inactive or not properly configured. Can you check if you are
> > able to log in with another account / user which is not under the admin
> account?
> >
> > Regards
> > Liridon
> > ________________________________
> > Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> > Gesendet: Freitag, 5. Juli 2019 10:31
> > An: users@cloudstack.apache.org
> > Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> > Betreff: RE: Unable to log in to the cloudstack management page (Web
> > UI)
> >
> > Hi Gregor,
> >
> > Thank you very much for answering my questions.
> >
> >
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > > 9
> > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > >
> > > This happens just after login and indicates something is wrong.
> > > It might not help much, but can you post the JSON body of the response?
> >
> >   This JSON body was returned.
> >   -----------------------
> >   { "errorresponse" :
> > {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The
> > given command does not exist or it is not available for user"} }
> >   -----------------------
> >
> >   Do you know anything from this JSON body?
> >
> >
> > Best regards,
> > Eiji Sagawa
> >
> >
> > > -----Original Message-----
> > > From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> > > Sent: Wednesday, July 3, 2019 10:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > > Subject: Re: Unable to log in to the cloudstack management page (Web
> > > UI)
> > >
> > > Hi Eiji,
> > >
> > > >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> > > =
> > > > 1561961364158 HTTP/1.1" 401 101
> > >
> > > This happens before login and is ok.
> > > I see that too when I open the login page without an active session.
> > >
> > > >     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt
> > > <==
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST
> > > > /client/api HTTP/1.1" 200 321
> > >
> > > This is the actual login call, and returns status 200 (success).
> > >
> > > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > > >
> > >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > > 9
> > > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> > >
> > > This happens just after login and indicates something is wrong.
> > > It might not help much, but can you post the JSON body of the response?
> > >
> > > >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet]
> > > > (catalina-
> > > > exec-22:null) ===START===  192.168.122.1 -- GET
> > > > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> > > > Awk0owzFDtmi4%3D&_=1561961591972
> > > >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer]
> (catalina-
> > > > exec-22:null) The given command:listCapabilities does not exist
> or
> > > > it is not available for user with id:2
> > > >
> > > >     ==> /var/log/cloudstack/management/apilog.log <==
> > > >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer]
> (catalina-
> > > > exec-22:null)  192.168.122.1 -- GET
> > > >
> > >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> > > o
> > > > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist
> > > > or
> > > it
> > > > is not available for user
> > >
> > > These log messages relate to the failing listCapabilities call after
> > login.
> > > I think you should focus on these.
> > >
> > > Regards,
> > > Gregor
> >
> 
> 
> --
> 
> Andrija Panić

Re: Unable to log in to the cloudstack management page (Web UI)

Posted by Andrija Panic <an...@gmail.com>.
Worth trying to clear browser cache - I had (a possibly) similar issue -
login data saved in Chrome (for some demo env) and when Chrome
auto-populate username/password fileds, then when I click on login button -
nothing happens at all.

1) clear browser cache
2) restart mgmt server

On Fri, 5 Jul 2019 at 14:00, Ismaili, Liridon (SWISS TXT) <
Liridon.Ismaili@swisstxt.ch> wrote:

> Hi Eiji
>
> the JSON inside the body tells the same as the error you posted already.
> May you check the DB if there is something misconfigured with the accounts
> or roles?
> Please run this query and post the results:
> select * from cloud.account where id = 2;
> and
> select * from roles where id in (select role_id from account where id = 2);
>
> As it seems that your user Admin can log in but maybe your account or role
> is inactive or not properly configured. Can you check if you are able to
> log in with another account / user which is not under the admin account?
>
> Regards
> Liridon
> ________________________________
> Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> Gesendet: Freitag, 5. Juli 2019 10:31
> An: users@cloudstack.apache.org
> Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> Betreff: RE: Unable to log in to the cloudstack management page (Web UI)
>
> Hi Gregor,
>
> Thank you very much for answering my questions.
>
>
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > >
> > /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > 9
> > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> >
> > This happens just after login and indicates something is wrong.
> > It might not help much, but can you post the JSON body of the response?
>
>   This JSON body was returned.
>   -----------------------
>   { "errorresponse" :
> {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The given
> command does not exist or it is not available for user"} }
>   -----------------------
>
>   Do you know anything from this JSON body?
>
>
> Best regards,
> Eiji Sagawa
>
>
> > -----Original Message-----
> > From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> > Sent: Wednesday, July 3, 2019 10:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> > Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> > Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> >
> > Hi Eiji,
> >
> > >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> > >
> > /client/api?command=listCapabilities&response=json&sessionkey=null&_
> > =
> > > 1561961364158 HTTP/1.1" 401 101
> >
> > This happens before login and is ok.
> > I see that too when I open the login page without an active session.
> >
> > >     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt
> > <==
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> > > HTTP/1.1" 200 321
> >
> > This is the actual login call, and returns status 200 (success).
> >
> > >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> > >
> > /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> > 9
> > > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> >
> > This happens just after login and indicates something is wrong.
> > It might not help much, but can you post the JSON body of the response?
> >
> > >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-
> > > exec-22:null) ===START===  192.168.122.1 -- GET
> > > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> > > Awk0owzFDtmi4%3D&_=1561961591972
> > >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-
> > > exec-22:null) The given command:listCapabilities does not exist or it
> > > is not available for user with id:2
> > >
> > >     ==> /var/log/cloudstack/management/apilog.log <==
> > >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-
> > > exec-22:null)  192.168.122.1 -- GET
> > >
> > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> > o
> > > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist or
> > it
> > > is not available for user
> >
> > These log messages relate to the failing listCapabilities call after
> login.
> > I think you should focus on these.
> >
> > Regards,
> > Gregor
>


-- 

Andrija Panić

AW: Unable to log in to the cloudstack management page (Web UI)

Posted by "Ismaili, Liridon (SWISS TXT)" <Li...@swisstxt.ch>.
Hi Eiji

the JSON inside the body tells the same as the error you posted already. May you check the DB if there is something misconfigured with the accounts or roles?
Please run this query and post the results:
select * from cloud.account where id = 2;
and
select * from roles where id in (select role_id from account where id = 2);

As it seems that your user Admin can log in but maybe your account or role is inactive or not properly configured. Can you check if you are able to log in with another account / user which is not under the admin account?

Regards
Liridon
________________________________
Von: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
Gesendet: Freitag, 5. Juli 2019 10:31
An: users@cloudstack.apache.org
Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
Betreff: RE: Unable to log in to the cloudstack management page (Web UI)

Hi Gregor,

Thank you very much for answering my questions.


> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9
> > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
>
> This happens just after login and indicates something is wrong.
> It might not help much, but can you post the JSON body of the response?

  This JSON body was returned.
  -----------------------
  { "errorresponse" : {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The given command does not exist or it is not available for user"} }
  -----------------------

  Do you know anything from this JSON body?


Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> Sent: Wednesday, July 3, 2019 10:00 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
>
> Hi Eiji,
>
> >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =
> > 1561961364158 HTTP/1.1" 401 101
>
> This happens before login and is ok.
> I see that too when I open the login page without an active session.
>
> >     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt
> <==
> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> > HTTP/1.1" 200 321
>
> This is the actual login call, and returns status 200 (success).
>
> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9
> > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
>
> This happens just after login and indicates something is wrong.
> It might not help much, but can you post the JSON body of the response?
>
> >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-
> > exec-22:null) ===START===  192.168.122.1 -- GET
> > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> > Awk0owzFDtmi4%3D&_=1561961591972
> >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-
> > exec-22:null) The given command:listCapabilities does not exist or it
> > is not available for user with id:2
> >
> >     ==> /var/log/cloudstack/management/apilog.log <==
> >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-
> > exec-22:null)  192.168.122.1 -- GET
> >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> o
> > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist or
> it
> > is not available for user
>
> These log messages relate to the failing listCapabilities call after login.
> I think you should focus on these.
>
> Regards,
> Gregor

RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Gregor,

Thank you very much for answering my questions.


> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9
> > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> 
> This happens just after login and indicates something is wrong.
> It might not help much, but can you post the JSON body of the response?

  This JSON body was returned.
  -----------------------
  { "errorresponse" : {"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"The given command does not exist or it is not available for user"} }
  -----------------------

  Do you know anything from this JSON body?


Best regards, 
Eiji Sagawa


> -----Original Message-----
> From: Riepl, Gregor (SWISS TXT) [mailto:Gregor.Riepl@swisstxt.ch]
> Sent: Wednesday, July 3, 2019 10:00 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Eiji,
> 
> >     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =
> > 1561961364158 HTTP/1.1" 401 101
> 
> This happens before login and is ok.
> I see that too when I open the login page without an active session.
> 
> >     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt
> <==
> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> > HTTP/1.1" 200 321
> 
> This is the actual login call, and returns status 200 (success).
> 
> >     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> >
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9
> > dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
> 
> This happens just after login and indicates something is wrong.
> It might not help much, but can you post the JSON body of the response?
> 
> >     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-
> > exec-22:null) ===START===  192.168.122.1 -- GET
> > command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> > Awk0owzFDtmi4%3D&_=1561961591972
> >     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-
> > exec-22:null) The given command:listCapabilities does not exist or it
> > is not available for user with id:2
> >
> >     ==> /var/log/cloudstack/management/apilog.log <==
> >     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-
> > exec-22:null)  192.168.122.1 -- GET
> >
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> o
> > wzFDtmi4%3D&_=1561961591972 432 The given command does not exist or
> it
> > is not available for user
> 
> These log messages relate to the failing listCapabilities call after login.
> I think you should focus on these.
> 
> Regards,
> Gregor

Re: Unable to log in to the cloudstack management page (Web UI)

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Hi Eiji,

>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=null&_=
> 1561961364158 HTTP/1.1" 401 101

This happens before login and is ok.
I see that too when I open the login page without an active session.

>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> HTTP/1.1" 200 321

This is the actual login call, and returns status 200 (success).

>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk9
> dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151

This happens just after login and indicates something is wrong.
It might not help much, but can you post the JSON body of the response?

>     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-
> exec-22:null) ===START===  192.168.122.1 --
> GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxG
> Awk0owzFDtmi4%3D&_=1561961591972
>     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-
> exec-22:null) The given command:listCapabilities does not exist or it
> is not available for user with id:2
>     
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-
> exec-22:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0o
> wzFDtmi4%3D&_=1561961591972 432 The given command does not exist or
> it is not available for user

These log messages relate to the failing listCapabilities call after
login. I think you should focus on these.

Regards,
Gregor

RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Anurag,

Thank you very much for answering my questions.

>   1.  Open browser in incognito mode try logging in. If successful then
> go to step 2 for a permanent solution.
>   2.  Clear your browser's cookies and other cache (on chrome it's
> Ctrl+Sht+Del) and then restart browser to login.

  I tried it.
  But the results did not change.


Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Anurag Awasthi [mailto:Anurag.Awasthi@shapeblue.com]
> Sent: Wednesday, July 3, 2019 7:10 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: Re: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Sagawa,
> 
> Can you try these 2 things -
> 
>   1.  Open browser in incognito mode try logging in. If successful then
> go to step 2 for a permanent solution.
>   2.  Clear your browser's cookies and other cache (on chrome it's
> Ctrl+Sht+Del) and then restart browser to login.
> 
> Regards,
> Anurag
> ________________________________
> From: Paul Angus <pa...@shapeblue.com>
> Sent: Wednesday, July 3, 2019 3:34 PM
> To: users@cloudstack.apache.org
> Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> Subject: RE: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Sagawa,
> 
> That version of CloudStack is very old, the amount of help we're going
> to be able to give is going to be a bit limited.
> 
> The first thing I would check is that you have a commands.properties file.
> I think back then it was in /etc/cloudstack/cloudstack-management
> (something like that)
> 
> 
> 
> 
> 
> paul.angus@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> Anurag.Awasthi@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> -----Original Message-----
> From: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> Sent: 03 July 2019 10:17
> To: 'users@cloudstack.apache.org' <us...@cloudstack.apache.org>
> Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> Subject: Unable to log in to the cloudstack management page (Web UI)
> 
> Hello,
> 
> I am unable to log in to the cloudstack management page (Web UI).
> The details of the error are as follows.
> 
> I appreciate very much if you could tell me some advice, comments or how
> to solve the problem.
> 
> ====================================================================
> ==========
> 
> [0]system
>   OS:CentOS 6.3 64bit
>   Cloudstack version : Apache CloudStack 4.2.1
> 
> [1]trouble
>     Unable to log in to the cloudstack management page (Web UI)
>     Even if the login button is clicked, no alert is displayed on the
> screen, and it seems that there is no particular response.
>     However, in the HTTP access log, error messages in the 300th (304)
> and 400th (401, 404) HTTP status codes are included.
>     An error may have occurred in cloudstack internal processing when
> a 401 error is generated.
> 
> [2]Log messages after clicking on a login button
> 
>   2-1. access_log.2019-07-01.txt
>     -----------------------------
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/infrastructure/infrastructure.js HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vpc/vpc.js HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vpc/vpc.css HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1"
> 404 1112
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =1561961364158 HTTP/1.1" 401 101
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/logo-login-oss.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/sprites.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/bg-login.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
>     -----------------------------
> 
>     Status code of /client/api is a 401 error (Unauthorized).
> 
>   2-2. apilog.log
>     -----------------------------
>     2019-07-01 06:09:23,174 INFO  [cloud.api.ApiServer]
> (catalina-exec-3:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619613641
> 58 401 unable to verify user credentials
>     -----------------------------
> 
>     apilog.log contains the above message at the same time when 401 error
> occurred.
> 
>   2-3. other log output
>     -----------------------------
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,731 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-17:null) ===START===  192.168.122.1 -- POST
>     2019-07-01 06:13:10,745 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-17:null) Attempting to log in user: admin in domain 1
>     2019-07-01 06:13:10,745 DEBUG
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-17:null)
> Retrieving user: admin
>     2019-07-01 06:13:10,911 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-17:null) User: admin in domain 1 has successfully logged
> in
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 06:13:10,945 INFO  [cloud.api.ApiServer]
> (catalina-exec-17:null) (userId=2 accountId=2
> sessionId=11305223FB11770BC8715A8C6220C036) 192.168.122.1 -- POST
> command=login domain=/
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,946 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-17:null) ===END===  192.168.122.1 -- POST
>     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972
>     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer]
> (catalina-exec-22:null) The given command:listCapabilities does not
> exist or it is not available for user with id:2
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer]
> (catalina-exec-22:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972 432 The given command does not exist or it
> is not available for user
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,979 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===END===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> HTTP/1.1" 200 321
>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
>     -----------------------------
> 
>     I'm not sure whether the the following message is related to the error
> or not.
>     "The given command:listCapabilities does not exist or it is not
> available for user with id:2"
> 
> 
> [3]Other case: Log contents of the system that can be logged in to the
> management page)
> 
>     The following logs are included for systems that can be logged in
> to the management page.
> 
>     -----------------------------
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:43:37,729 INFO
> [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No
> running ssvm is found, so command will be sent to LocalHostEndPoint
>     2019-07-01 14:43:51,514 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
> Skip capacity scan due to there is no Primary Storage UPintenance mode
>     2019-07-01 14:43:52,693 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers to update status.
>     2019-07-01 14:43:52,695 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
>     2019-07-01 14:43:57,718 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Resetting hosts suitable for
> reconnect
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed resetting hosts suitable
> for reconnect
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Acquiring hosts for clusters already
> owned by this management server
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed acquiring hosts for
> clusters already owned by this management server
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Acquiring hosts for clusters not
> owned by any management server
>     2019-07-01 14:43:57,728 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed acquiring hosts for
> clusters not owned by any management server
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/ui-custom/physicalResources.js?t=1561959737043
> HTTP/1.1" 200 7700
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/system.js?t=1561959737043 HTTP/1.1" 200 -
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/ui-custom/pluginListing.js?t=1561959737043 HTTP/1.1"
> 200 4952
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/plugins.js?t=1561959737043 HTTP/1.1" 200 3820
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/plugins/plugins.js?t=1561959737043 HTTP/1.1" 200 902
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/modules.js?t=1561959737043 HTTP/1.1" 200 961
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1"
> 404 1112
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =1561959738072 HTTP/1.1" 200 -
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:20:03,627 INFO  [cloud.api.ApiServer]
> (catalina-exec-9:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619584040
> 32 401 unable to verify user credentials
>     2019-07-01 14:42:17,673 INFO  [cloud.api.ApiServer]
> (catalina-exec-1:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619597380
> 72 unknown exception writing api response
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:10,428 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-15:null) ===START===  192.168.122.1 -- POST
>     2019-07-01 14:44:10,443 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-15:null) Attempting to log in user: admin in domain 1
>     2019-07-01 14:44:10,444 DEBUG
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-15:null)
> Retrieving user: admin
>     2019-07-01 14:44:10,563 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-15:null) User: admin in domain 1 has successfully logged
> in
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:10,580 INFO  [cloud.api.ApiServer]
> (catalina-exec-15:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- POST
> command=login domain=/
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:10,581 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-15:null) ===END===  192.168.122.1 -- POST
>     2019-07-01 14:44:10,597 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,530 INFO  [cloud.api.ApiServer]
> (catalina-exec-22:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002 200 { "listcapabilitiesresponse" :
> { "capability" :
> {"securitygroupsenabled":true,"cloudstackversion":"4.2.1","userpubli
> ctemplateenabled":true,"supportELB":"false","projectinviterequired":
> false,"allowusercreateprojects":true,"customdiskofferingmaxsize":102
> 4,"KVMsnapshotenabled":false,"regionsecondaryenabled":false} }  }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,530 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===END===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002
>     2019-07-01 14:44:11,554 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-2:null) ===START===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,590 INFO  [cloud.api.ApiServer]
> (catalina-exec-2:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958 200 { "listzonesresponse" : { "count":1 ,"zone" :
> [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1
> ":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Ba
> sic","securitygroupsenabled":true,"allocationstate":"Disabled","zone
> token":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"Virtua
> lRouter","localstorageenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,590 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-2:null) ===END===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958
>     2019-07-01 14:44:11,678 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-21:null) ===START===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086
>     2019-07-01 14:44:11,682 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-7:null) ===START===  192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
>     2019-07-01 14:44:11,694 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-24:null) ===START===  192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096
>     2019-07-01 14:44:11,700 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-10:null) ===START===  192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,710 INFO  [cloud.api.ApiServer]
> (catalina-exec-21:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086 200 { "listzonesresponse" : { "count":1 ,"zone" :
> [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1
> ":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Ba
> sic","securitygroupsenabled":true,"allocationstate":"Disabled","zone
> token":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"Virtua
> lRouter","localstorageenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,710 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-21:null) ===END===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086
>     2019-07-01 14:44:11,719 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-3:null) ===START===  192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,736 INFO  [cloud.api.ApiServer]
> (catalina-exec-7:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 200
> { "listprojectinvitationsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,736 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-7:null) ===END===  192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,756 INFO  [cloud.api.ApiServer]
> (catalina-exec-3:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126 200
> { "listalertsresponse" : { "count":6 ,"alert" :
> [  {"id":"aa94782d-a557-44b8-a6cb-ab86b9ffd852","type":14,"descripti
> on":"Management server node 192.168.122.2 is
> up","sent":"2019-07-01T14:42:25+0900"},
> {"id":"2e954f7b-50f3-4001-9654-cb040b50fa85","type":14,"description"
> :"Management server node 192.168.122.2 is
> up","sent":"2019-06-28T18:31:43+0900"},
> {"id":"26ceaf39-ca88-403a-867f-7a4cf89563c3","type":13,"description"
> :"No usage server process running","sent":"2019-06-27T16:12:11+0900"},
> {"id":"7a36b093-4a50-4912-a2b5-cfe9636c56bd","type":14,"description"
> :"Management server node 192.168.122.2 is
> up","sent":"2019-06-27T15:12:14+0900"} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,756 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-3:null) ===END===  192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126
>     2019-07-01 14:44:11,764 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-25:null) ===START===  192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,783 INFO  [cloud.api.ApiServer]
> (catalina-exec-24:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096 200 { "listregionsresponse" :
> { "count":1 ,"region" :
> [  {"id":1,"name":"Local","endpoint":"http://localhost:8080/client/"
> ,"gslbserviceenabled":true,"portableipserviceenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,783 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-24:null) ===END===  192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096
>     2019-07-01 14:44:11,786 DEBUG [api.query.QueryManagerImpl]
> (catalina-exec-25:null) >>>Searching for hosts>>>
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,787 INFO  [cloud.api.ApiServer]
> (catalina-exec-10:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098 200 { "listprojectsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,787 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-10:null) ===END===  192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098
>     2019-07-01 14:44:11,794 DEBUG [api.query.QueryManagerImpl]
> (catalina-exec-25:null) >>>Generating Response>>>
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,795 INFO  [cloud.api.ApiServer]
> (catalina-exec-25:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 200
> { "listhostsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,795 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-25:null) ===END===  192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
>     2019-07-01 14:44:11,801 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-11:null) ===START===  192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,828 INFO  [cloud.api.ApiServer]
> (catalina-exec-11:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208 200 { "listcapacityresponse" : { "count":1 ,"capacity" :
> [  {"type":5,"zoneid":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","zonena
> me":"zone1","capacityused":0,"capacitytotal":11,"percentused":"0"} ]
>  } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,828 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-11:null) ===END===  192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:14:44:10 +0900] "POST /client/api
> HTTP/1.1" 200 321
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=%2FCaC
> 2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 HTTP/1.1" 200 318
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&_=1561959851958 HTTP/1.1" 200 361
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&_=1561959852086 HTTP/1.1" 200 361
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listProjectInvitations&response=json&sessionkey=
> %2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
> HTTP/1.1" 200 42
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listAlerts&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 HTTP/1.1" 200
> 644
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listRegions&listAll=true&response=json&sessionke
> y=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 HTTP/1.1" 200 184
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listProjects&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb9
> 5&listAll=true&_=1561959852098 HTTP/1.1" 200 32
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listHosts&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
> HTTP/1.1" 200 29
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listCapacity&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesiz
> e=8&_=1561959852208 HTTP/1.1" 200 193
>     -----------------------------
> 
> ====================================================================
> ==========
> 
> Best regard,
> Eiji Sagawa


Re: Unable to log in to the cloudstack management page (Web UI)

Posted by Anurag Awasthi <An...@shapeblue.com>.
Hi Sagawa,

Can you try these 2 things -

  1.  Open browser in incognito mode try logging in. If successful then go to step 2 for a permanent solution.
  2.  Clear your browser's cookies and other cache (on chrome it's Ctrl+Sht+Del) and then restart browser to login.

Regards,
Anurag
________________________________
From: Paul Angus <pa...@shapeblue.com>
Sent: Wednesday, July 3, 2019 3:34 PM
To: users@cloudstack.apache.org
Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
Subject: RE: Unable to log in to the cloudstack management page (Web UI)

Hi Sagawa,

That version of CloudStack is very old, the amount of help we're going to be able to give is going to be a bit limited.

The first thing I would check is that you have a commands.properties file.  I think back then it was in /etc/cloudstack/cloudstack-management (something like that)





paul.angus@shapeblue.com
www.shapeblue.com<http://www.shapeblue.com>
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue




Anurag.Awasthi@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-----Original Message-----
From: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
Sent: 03 July 2019 10:17
To: 'users@cloudstack.apache.org' <us...@cloudstack.apache.org>
Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
Subject: Unable to log in to the cloudstack management page (Web UI)

Hello,

I am unable to log in to the cloudstack management page (Web UI).
The details of the error are as follows.

I appreciate very much if you could tell me some advice, comments or how to solve the problem.

==============================================================================

[0]system
  OS:CentOS 6.3 64bit
  Cloudstack version : Apache CloudStack 4.2.1

[1]trouble
    Unable to log in to the cloudstack management page (Web UI)
    Even if the login button is clicked, no alert is displayed on the screen, and it seems that there is no particular response.
    However, in the HTTP access log, error messages in the 300th (304) and 400th (401, 404) HTTP status codes are included.
    An error may have occurred in cloudstack internal processing when a 401 error is generated.

[2]Log messages after clicking on a login button

  2-1. access_log.2019-07-01.txt
    -----------------------------
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.css HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561961364158 HTTP/1.1" 401 101
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/logo-login-oss.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/sprites.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/bg-login.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
    -----------------------------

    Status code of /client/api is a 401 error (Unauthorized).

  2-2. apilog.log
    -----------------------------
    2019-07-01 06:09:23,174 INFO  [cloud.api.ApiServer] (catalina-exec-3:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561961364158 401 unable to verify user credentials
    -----------------------------

    apilog.log contains the above message at the same time when 401 error occurred.

  2-3. other log output
    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,731 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===  192.168.122.1 -- POST
    2019-07-01 06:13:10,745 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) Attempting to log in user: admin in domain 1
    2019-07-01 06:13:10,745 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-17:null) Retrieving user: admin
    2019-07-01 06:13:10,911 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) User: admin in domain 1 has successfully logged in

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,945 INFO  [cloud.api.ApiServer] (catalina-exec-17:null) (userId=2 accountId=2 sessionId=11305223FB11770BC8715A8C6220C036) 192.168.122.1 -- POST command=login domain=/

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,946 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  192.168.122.1 -- POST
    2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
    2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-exec-22:null) The given command:listCapabilities does not exist or it is not available for user with id:2

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-exec-22:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 432 The given command does not exist or it is not available for user

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,979 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972

    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
    -----------------------------

    I'm not sure whether the the following message is related to the error or not.
    "The given command:listCapabilities does not exist or it is not available for user with id:2"


[3]Other case: Log contents of the system that can be logged in to the management page)

    The following logs are included for systems that can be logged in to the management page.

    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:43:37,729 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
    2019-07-01 14:43:51,514 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode
    2019-07-01 14:43:52,693 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers to update status.
    2019-07-01 14:43:52,695 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
    2019-07-01 14:43:57,718 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters not owned by any management server
    2019-07-01 14:43:57,728 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters not owned by any management server

    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/physicalResources.js?t=1561959737043 HTTP/1.1" 200 7700
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/system.js?t=1561959737043 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/pluginListing.js?t=1561959737043 HTTP/1.1" 200 4952
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/plugins.js?t=1561959737043 HTTP/1.1" 200 3820
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/plugins/plugins.js?t=1561959737043 HTTP/1.1" 200 902
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/modules.js?t=1561959737043 HTTP/1.1" 200 961
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561959738072 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:20:03,627 INFO  [cloud.api.ApiServer] (catalina-exec-9:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561958404032 401 unable to verify user credentials
    2019-07-01 14:42:17,673 INFO  [cloud.api.ApiServer] (catalina-exec-1:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561959738072 unknown exception writing api response

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,428 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===  192.168.122.1 -- POST
    2019-07-01 14:44:10,443 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) Attempting to log in user: admin in domain 1
    2019-07-01 14:44:10,444 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-15:null) Retrieving user: admin
    2019-07-01 14:44:10,563 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) User: admin in domain 1 has successfully logged in

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:10,580 INFO  [cloud.api.ApiServer] (catalina-exec-15:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- POST command=login domain=/

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,581 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  192.168.122.1 -- POST
    2019-07-01 14:44:10,597 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,530 INFO  [cloud.api.ApiServer] (catalina-exec-22:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 200 { "listcapabilitiesresponse" :  { "capability" : {"securitygroupsenabled":true,"cloudstackversion":"4.2.1","userpublictemplateenabled":true,"supportELB":"false","projectinviterequired":false,"allowusercreateprojects":true,"customdiskofferingmaxsize":1024,"KVMsnapshotenabled":false,"regionsecondaryenabled":false} }  }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,530 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002
    2019-07-01 14:44:11,554 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,590 INFO  [cloud.api.ApiServer] (catalina-exec-2:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,590 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958
    2019-07-01 14:44:11,678 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,682 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===START===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
    2019-07-01 14:44:11,694 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===START===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,700 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===START===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,710 INFO  [cloud.api.ApiServer] (catalina-exec-21:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,710 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,719 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===START===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,736 INFO  [cloud.api.ApiServer] (catalina-exec-7:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 200 { "listprojectinvitationsresponse" : { } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,736 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===END===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,756 INFO  [cloud.api.ApiServer] (catalina-exec-3:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 200 { "listalertsresponse" : { "count":6 ,"alert" : [  {"id":"aa94782d-a557-44b8-a6cb-ab86b9ffd852","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-07-01T14:42:25+0900"}, {"id":"2e954f7b-50f3-4001-9654-cb040b50fa85","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-28T18:31:43+0900"}, {"id":"26ceaf39-ca88-403a-867f-7a4cf89563c3","type":13,"description":"No usage server process running","sent":"2019-06-27T16:12:11+0900"}, {"id":"7a36b093-4a50-4912-a2b5-cfe9636c56bd","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-27T15:12:14+0900"} ] } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,756 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===END===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126
    2019-07-01 14:44:11,764 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===START===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,783 INFO  [cloud.api.ApiServer] (catalina-exec-24:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 200 { "listregionsresponse" : { "count":1 ,"region" : [  {"id":1,"name":"Local","endpoint":"http://localhost:8080/client/","gslbserviceenabled":true,"portableipserviceenabled":false} ] } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,783 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===END===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,786 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Searching for hosts>>>

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,787 INFO  [cloud.api.ApiServer] (catalina-exec-10:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 200 { "listprojectsresponse" : { } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,787 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098
    2019-07-01 14:44:11,794 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Generating Response>>>

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,795 INFO  [cloud.api.ApiServer] (catalina-exec-25:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 200 { "listhostsresponse" : { } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,795 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===END===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
    2019-07-01 14:44:11,801 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===START===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208

    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,828 INFO  [cloud.api.ApiServer] (catalina-exec-11:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 200 { "listcapacityresponse" : { "count":1 ,"capacity" : [  {"type":5,"zoneid":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","zonename":"zone1","capacityused":0,"capacitytotal":11,"percentused":"0"} ] } }

    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,828 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===END===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208

    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:44:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 HTTP/1.1" 200 318
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 HTTP/1.1" 200 42
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 HTTP/1.1" 200 644
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 HTTP/1.1" 200 184
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 HTTP/1.1" 200 32
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 HTTP/1.1" 200 29
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 HTTP/1.1" 200 193
    -----------------------------

==============================================================================

Best regard,
Eiji Sagawa


RE: Unable to log in to the cloudstack management page (Web UI)

Posted by "sagawa_eiji@fujitsu.com" <sa...@fujitsu.com>.
Hi Paul,

Thank you very much for answering my questions.

> The first thing I would check is that you have a commands.properties file.
> I think back then it was in /etc/cloudstack/cloudstack-management
> (something like that)

 I confirmed that the commands.properties exists.
 I compared with commands.properties of the loginable system, but the content was the same.


Best regards,
Eiji Sagawa


> -----Original Message-----
> From: Paul Angus [mailto:paul.angus@shapeblue.com]
> Sent: Wednesday, July 3, 2019 7:05 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 <sh...@fujitsu.com>;
> Hoshikawa, Toyohiko/星川 豊彦 <t-...@fujitsu.com>
> Subject: RE: Unable to log in to the cloudstack management page (Web UI)
> 
> Hi Sagawa,
> 
> That version of CloudStack is very old, the amount of help we're going
> to be able to give is going to be a bit limited.
> 
> The first thing I would check is that you have a commands.properties file.
> I think back then it was in /etc/cloudstack/cloudstack-management
> (something like that)
> 
> 
> 
> 
> 
> paul.angus@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> -----Original Message-----
> From: sagawa_eiji@fujitsu.com <sa...@fujitsu.com>
> Sent: 03 July 2019 10:17
> To: 'users@cloudstack.apache.org' <us...@cloudstack.apache.org>
> Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
> Subject: Unable to log in to the cloudstack management page (Web UI)
> 
> Hello,
> 
> I am unable to log in to the cloudstack management page (Web UI).
> The details of the error are as follows.
> 
> I appreciate very much if you could tell me some advice, comments or how
> to solve the problem.
> 
> ====================================================================
> ==========
> 
> [0]system
>   OS:CentOS 6.3 64bit
>   Cloudstack version : Apache CloudStack 4.2.1
> 
> [1]trouble
>     Unable to log in to the cloudstack management page (Web UI)
>     Even if the login button is clicked, no alert is displayed on the
> screen, and it seems that there is no particular response.
>     However, in the HTTP access log, error messages in the 300th (304)
> and 400th (401, 404) HTTP status codes are included.
>     An error may have occurred in cloudstack internal processing when
> a 401 error is generated.
> 
> [2]Log messages after clicking on a login button
> 
>   2-1. access_log.2019-07-01.txt
>     -----------------------------
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/infrastructure/infrastructure.js HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vpc/vpc.js HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vpc/vpc.css HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1"
> 404 1112
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =1561961364158 HTTP/1.1" 401 101
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/logo-login-oss.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/sprites.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/images/bg-login.png HTTP/1.1" 304 -
>     192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
>     -----------------------------
> 
>     Status code of /client/api is a 401 error (Unauthorized).
> 
>   2-2. apilog.log
>     -----------------------------
>     2019-07-01 06:09:23,174 INFO  [cloud.api.ApiServer]
> (catalina-exec-3:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619613641
> 58 401 unable to verify user credentials
>     -----------------------------
> 
>     apilog.log contains the above message at the same time when 401 error
> occurred.
> 
>   2-3. other log output
>     -----------------------------
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,731 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-17:null) ===START===  192.168.122.1 -- POST
>     2019-07-01 06:13:10,745 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-17:null) Attempting to log in user: admin in domain 1
>     2019-07-01 06:13:10,745 DEBUG
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-17:null)
> Retrieving user: admin
>     2019-07-01 06:13:10,911 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-17:null) User: admin in domain 1 has successfully logged
> in
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 06:13:10,945 INFO  [cloud.api.ApiServer]
> (catalina-exec-17:null) (userId=2 accountId=2
> sessionId=11305223FB11770BC8715A8C6220C036) 192.168.122.1 -- POST
> command=login domain=/
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,946 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-17:null) ===END===  192.168.122.1 -- POST
>     2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972
>     2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer]
> (catalina-exec-22:null) The given command:listCapabilities does not
> exist or it is not available for user with id:2
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer]
> (catalina-exec-22:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972 432 The given command does not exist or it
> is not available for user
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 06:13:10,979 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===END===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0
> owzFDtmi4%3D&_=1561961591972
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api
> HTTP/1.1" 200 321
>     192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk
> 9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
>     -----------------------------
> 
>     I'm not sure whether the the following message is related to the error
> or not.
>     "The given command:listCapabilities does not exist or it is not
> available for user with id:2"
> 
> 
> [3]Other case: Log contents of the system that can be logged in to the
> management page)
> 
>     The following logs are included for systems that can be logged in
> to the management page.
> 
>     -----------------------------
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:43:37,729 INFO
> [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No
> running ssvm is found, so command will be sent to LocalHostEndPoint
>     2019-07-01 14:43:51,514 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
> Skip capacity scan due to there is no Primary Storage UPintenance mode
>     2019-07-01 14:43:52,693 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers to update status.
>     2019-07-01 14:43:52,695 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
>     2019-07-01 14:43:57,718 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Resetting hosts suitable for
> reconnect
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed resetting hosts suitable
> for reconnect
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Acquiring hosts for clusters already
> owned by this management server
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed acquiring hosts for
> clusters already owned by this management server
>     2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Acquiring hosts for clusters not
> owned by any management server
>     2019-07-01 14:43:57,728 DEBUG [host.dao.HostDaoImpl]
> (ClusteredAgentManager Timer:null) Completed acquiring hosts for
> clusters not owned by any management server
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/ui-custom/physicalResources.js?t=1561959737043
> HTTP/1.1" 200 7700
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/system.js?t=1561959737043 HTTP/1.1" 200 -
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/ui-custom/pluginListing.js?t=1561959737043 HTTP/1.1"
> 200 4952
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/scripts/plugins.js?t=1561959737043 HTTP/1.1" 200 3820
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/plugins/plugins.js?t=1561959737043 HTTP/1.1" 200 902
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/modules.js?t=1561959737043 HTTP/1.1" 200 961
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1"
> 404 1112
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=null&_
> =1561959738072 HTTP/1.1" 200 -
>     192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET
> /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:20:03,627 INFO  [cloud.api.ApiServer]
> (catalina-exec-9:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619584040
> 32 401 unable to verify user credentials
>     2019-07-01 14:42:17,673 INFO  [cloud.api.ApiServer]
> (catalina-exec-1:null)  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=null&_=15619597380
> 72 unknown exception writing api response
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:10,428 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-15:null) ===START===  192.168.122.1 -- POST
>     2019-07-01 14:44:10,443 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-15:null) Attempting to log in user: admin in domain 1
>     2019-07-01 14:44:10,444 DEBUG
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-15:null)
> Retrieving user: admin
>     2019-07-01 14:44:10,563 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-15:null) User: admin in domain 1 has successfully logged
> in
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:10,580 INFO  [cloud.api.ApiServer]
> (catalina-exec-15:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- POST
> command=login domain=/
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:10,581 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-15:null) ===END===  192.168.122.1 -- POST
>     2019-07-01 14:44:10,597 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,530 INFO  [cloud.api.ApiServer]
> (catalina-exec-22:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002 200 { "listcapabilitiesresponse" :
> { "capability" :
> {"securitygroupsenabled":true,"cloudstackversion":"4.2.1","userpubli
> ctemplateenabled":true,"supportELB":"false","projectinviterequired":
> false,"allowusercreateprojects":true,"customdiskofferingmaxsize":102
> 4,"KVMsnapshotenabled":false,"regionsecondaryenabled":false} }  }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,530 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===END===  192.168.122.1 -- GET
> command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4c
> RObRgxX3CVY%3D&_=1561959851002
>     2019-07-01 14:44:11,554 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-2:null) ===START===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,590 INFO  [cloud.api.ApiServer]
> (catalina-exec-2:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958 200 { "listzonesresponse" : { "count":1 ,"zone" :
> [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1
> ":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Ba
> sic","securitygroupsenabled":true,"allocationstate":"Disabled","zone
> token":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"Virtua
> lRouter","localstorageenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,590 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-2:null) ===END===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959851958
>     2019-07-01 14:44:11,678 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-21:null) ===START===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086
>     2019-07-01 14:44:11,682 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-7:null) ===START===  192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
>     2019-07-01 14:44:11,694 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-24:null) ===START===  192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096
>     2019-07-01 14:44:11,700 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-10:null) ===START===  192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,710 INFO  [cloud.api.ApiServer]
> (catalina-exec-21:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086 200 { "listzonesresponse" : { "count":1 ,"zone" :
> [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1
> ":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Ba
> sic","securitygroupsenabled":true,"allocationstate":"Disabled","zone
> token":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"Virtua
> lRouter","localstorageenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,710 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-21:null) ===END===  192.168.122.1 -- GET
> command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&_=1561959852086
>     2019-07-01 14:44:11,719 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-3:null) ===START===  192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,736 INFO  [cloud.api.ApiServer]
> (catalina-exec-7:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 200
> { "listprojectinvitationsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,736 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-7:null) ===END===  192.168.122.1 -- GET
> command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,756 INFO  [cloud.api.ApiServer]
> (catalina-exec-3:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126 200
> { "listalertsresponse" : { "count":6 ,"alert" :
> [  {"id":"aa94782d-a557-44b8-a6cb-ab86b9ffd852","type":14,"descripti
> on":"Management server node 192.168.122.2 is
> up","sent":"2019-07-01T14:42:25+0900"},
> {"id":"2e954f7b-50f3-4001-9654-cb040b50fa85","type":14,"description"
> :"Management server node 192.168.122.2 is
> up","sent":"2019-06-28T18:31:43+0900"},
> {"id":"26ceaf39-ca88-403a-867f-7a4cf89563c3","type":13,"description"
> :"No usage server process running","sent":"2019-06-27T16:12:11+0900"},
> {"id":"7a36b093-4a50-4912-a2b5-cfe9636c56bd","type":14,"description"
> :"Management server node 192.168.122.2 is
> up","sent":"2019-06-27T15:12:14+0900"} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,756 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-3:null) ===END===  192.168.122.1 -- GET
> command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgx
> X3CVY%3D&page=1&pageSize=4&_=1561959852126
>     2019-07-01 14:44:11,764 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-25:null) ===START===  192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,783 INFO  [cloud.api.ApiServer]
> (catalina-exec-24:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096 200 { "listregionsresponse" :
> { "count":1 ,"region" :
> [  {"id":1,"name":"Local","endpoint":"http://localhost:8080/client/"
> ,"gslbserviceenabled":true,"portableipserviceenabled":false} ] } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,783 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-24:null) ===END===  192.168.122.1 -- GET
> command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&_=1561959852096
>     2019-07-01 14:44:11,786 DEBUG [api.query.QueryManagerImpl]
> (catalina-exec-25:null) >>>Searching for hosts>>>
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,787 INFO  [cloud.api.ApiServer]
> (catalina-exec-10:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098 200 { "listprojectsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,787 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-10:null) ===END===  192.168.122.1 -- GET
> command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=tr
> ue&_=1561959852098
>     2019-07-01 14:44:11,794 DEBUG [api.query.QueryManagerImpl]
> (catalina-exec-25:null) >>>Generating Response>>>
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,795 INFO  [cloud.api.ApiServer]
> (catalina-exec-25:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 200
> { "listhostsresponse" : { } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,795 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-25:null) ===END===  192.168.122.1 -- GET
> command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX
> 3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
>     2019-07-01 14:44:11,801 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-11:null) ===START===  192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208
> 
>     ==> /var/log/cloudstack/management/apilog.log <==
>     2019-07-01 14:44:11,828 INFO  [cloud.api.ApiServer]
> (catalina-exec-11:null) (userId=2 accountId=2
> sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208 200 { "listcapacityresponse" : { "count":1 ,"capacity" :
> [  {"type":5,"zoneid":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","zonena
> me":"zone1","capacityused":0,"capacitytotal":11,"percentused":"0"} ]
>  } }
> 
>     ==> /var/log/cloudstack/management/management-server.log <==
>     2019-07-01 14:44:11,828 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-11:null) ===END===  192.168.122.1 -- GET
> command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObR
> gxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=156195
> 9852208
> 
>     ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
>     192.168.122.1 - - [01/Jul/2019:14:44:10 +0900] "POST /client/api
> HTTP/1.1" 200 321
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listCapabilities&response=json&sessionkey=%2FCaC
> 2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 HTTP/1.1" 200 318
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&_=1561959851958 HTTP/1.1" 200 361
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&_=1561959852086 HTTP/1.1" 200 361
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listProjectInvitations&response=json&sessionkey=
> %2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
> HTTP/1.1" 200 42
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listAlerts&response=json&sessionkey=%2FCaC2VPb96
> KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 HTTP/1.1" 200
> 644
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listRegions&listAll=true&response=json&sessionke
> y=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 HTTP/1.1" 200 184
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listProjects&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb9
> 5&listAll=true&_=1561959852098 HTTP/1.1" 200 32
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listHosts&response=json&sessionkey=%2FCaC2VPb96K
> REZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
> HTTP/1.1" 200 29
>     192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET
> /client/api?command=listCapacity&response=json&sessionkey=%2FCaC2VPb
> 96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesiz
> e=8&_=1561959852208 HTTP/1.1" 200 193
>     -----------------------------
> 
> ====================================================================
> ==========
> 
> Best regard,
> Eiji Sagawa


RE: Unable to log in to the cloudstack management page (Web UI)

Posted by Paul Angus <pa...@shapeblue.com>.
Hi Sagawa,

That version of CloudStack is very old, the amount of help we're going to be able to give is going to be a bit limited.

The first thing I would check is that you have a commands.properties file.  I think back then it was in /etc/cloudstack/cloudstack-management (something like that)





paul.angus@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-----Original Message-----
From: sagawa_eiji@fujitsu.com <sa...@fujitsu.com> 
Sent: 03 July 2019 10:17
To: 'users@cloudstack.apache.org' <us...@cloudstack.apache.org>
Cc: shigemoto.yasum@fujitsu.com; t-hoshikawa@fujitsu.com
Subject: Unable to log in to the cloudstack management page (Web UI)

Hello,

I am unable to log in to the cloudstack management page (Web UI).
The details of the error are as follows.

I appreciate very much if you could tell me some advice, comments or how to solve the problem.

==============================================================================

[0]system
  OS:CentOS 6.3 64bit
  Cloudstack version : Apache CloudStack 4.2.1

[1]trouble
    Unable to log in to the cloudstack management page (Web UI)
    Even if the login button is clicked, no alert is displayed on the screen, and it seems that there is no particular response.
    However, in the HTTP access log, error messages in the 300th (304) and 400th (401, 404) HTTP status codes are included.
    An error may have occurred in cloudstack internal processing when a 401 error is generated.

[2]Log messages after clicking on a login button

  2-1. access_log.2019-07-01.txt
    -----------------------------
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.js HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vpc/vpc.css HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561961364158 HTTP/1.1" 401 101
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/logo-login-oss.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/sprites.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/images/bg-login.png HTTP/1.1" 304 -
    192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
    -----------------------------

    Status code of /client/api is a 401 error (Unauthorized).

  2-2. apilog.log
    -----------------------------
    2019-07-01 06:09:23,174 INFO  [cloud.api.ApiServer] (catalina-exec-3:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561961364158 401 unable to verify user credentials
    -----------------------------

    apilog.log contains the above message at the same time when 401 error occurred.

  2-3. other log output
    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,731 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===  192.168.122.1 -- POST  
    2019-07-01 06:13:10,745 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) Attempting to log in user: admin in domain 1
    2019-07-01 06:13:10,745 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-17:null) Retrieving user: admin
    2019-07-01 06:13:10,911 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null) User: admin in domain 1 has successfully logged in
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,945 INFO  [cloud.api.ApiServer] (catalina-exec-17:null) (userId=2 accountId=2 sessionId=11305223FB11770BC8715A8C6220C036) 192.168.122.1 -- POST command=login domain=/
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,946 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  192.168.122.1 -- POST  
    2019-07-01 06:13:10,963 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
    2019-07-01 06:13:10,976 DEBUG [cloud.api.ApiServer] (catalina-exec-22:null) The given command:listCapabilities does not exist or it is not available for user with id:2
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 06:13:10,979 INFO  [cloud.api.ApiServer] (catalina-exec-22:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 432 The given command does not exist or it is not available for user
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 06:13:10,979 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:06:13:10 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972 HTTP/1.1" 432 151
    -----------------------------

    I'm not sure whether the the following message is related to the error or not.
    "The given command:listCapabilities does not exist or it is not available for user with id:2"


[3]Other case: Log contents of the system that can be logged in to the management page)

    The following logs are included for systems that can be logged in to the management page.

    -----------------------------
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:43:37,729 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
    2019-07-01 14:43:51,514 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode
    2019-07-01 14:43:52,693 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers to update status. 
    2019-07-01 14:43:52,695 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. 
    2019-07-01 14:43:57,718 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed resetting hosts suitable for reconnect
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters already owned by this management server
    2019-07-01 14:43:57,721 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Acquiring hosts for clusters not owned by any management server
    2019-07-01 14:43:57,728 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:null) Completed acquiring hosts for clusters not owned by any management server
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/physicalResources.js?t=1561959737043 HTTP/1.1" 200 7700
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/system.js?t=1561959737043 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/ui-custom/pluginListing.js?t=1561959737043 HTTP/1.1" 200 4952
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/scripts/plugins.js?t=1561959737043 HTTP/1.1" 200 3820
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/plugins/plugins.js?t=1561959737043 HTTP/1.1" 200 902
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/modules.js?t=1561959737043 HTTP/1.1" 200 961
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcNetworkProvider/vnmcNetworkProvider.css HTTP/1.1" 404 1112
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/infrastructure/infrastructure.css HTTP/1.1" 404 1082
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=null&_=1561959738072 HTTP/1.1" 200 -
    192.168.122.1 - - [01/Jul/2019:14:42:17 +0900] "GET /client/modules/vnmcAsa1000v/vnmcAsa1000v.css HTTP/1.1" 404 1070
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:20:03,627 INFO  [cloud.api.ApiServer] (catalina-exec-9:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561958404032 401 unable to verify user credentials
    2019-07-01 14:42:17,673 INFO  [cloud.api.ApiServer] (catalina-exec-1:null)  192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=null&_=1561959738072 unknown exception writing api response
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,428 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===  192.168.122.1 -- POST  
    2019-07-01 14:44:10,443 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) Attempting to log in user: admin in domain 1
    2019-07-01 14:44:10,444 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-15:null) Retrieving user: admin
    2019-07-01 14:44:10,563 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-15:null) User: admin in domain 1 has successfully logged in
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:10,580 INFO  [cloud.api.ApiServer] (catalina-exec-15:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- POST command=login domain=/
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:10,581 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  192.168.122.1 -- POST  
    2019-07-01 14:44:10,597 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,530 INFO  [cloud.api.ApiServer] (catalina-exec-22:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 200 { "listcapabilitiesresponse" :  { "capability" : {"securitygroupsenabled":true,"cloudstackversion":"4.2.1","userpublictemplateenabled":true,"supportELB":"false","projectinviterequired":false,"allowusercreateprojects":true,"customdiskofferingmaxsize":1024,"KVMsnapshotenabled":false,"regionsecondaryenabled":false} }  }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,530 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  192.168.122.1 -- GET  command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002
    2019-07-01 14:44:11,554 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,590 INFO  [cloud.api.ApiServer] (catalina-exec-2:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,590 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958
    2019-07-01 14:44:11,678 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===START===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,682 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===START===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
    2019-07-01 14:44:11,694 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===START===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,700 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===START===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,710 INFO  [cloud.api.ApiServer] (catalina-exec-21:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 200 { "listzonesresponse" : { "count":1 ,"zone" : [  {"id":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","name":"zone1","dns1":"192.168.122.254","internaldns1":"192.168.122.2","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"c80c3391-5fbb-3dff-83a8-34a03c0159fb","dhcpprovider":"VirtualRouter","localstorageenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,710 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===END===  192.168.122.1 -- GET  command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086
    2019-07-01 14:44:11,719 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===START===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,736 INFO  [cloud.api.ApiServer] (catalina-exec-7:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 200 { "listprojectinvitationsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,736 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===END===  192.168.122.1 -- GET  command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,756 INFO  [cloud.api.ApiServer] (catalina-exec-3:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 200 { "listalertsresponse" : { "count":6 ,"alert" : [  {"id":"aa94782d-a557-44b8-a6cb-ab86b9ffd852","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-07-01T14:42:25+0900"}, {"id":"2e954f7b-50f3-4001-9654-cb040b50fa85","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-28T18:31:43+0900"}, {"id":"26ceaf39-ca88-403a-867f-7a4cf89563c3","type":13,"description":"No usage server process running","sent":"2019-06-27T16:12:11+0900"}, {"id":"7a36b093-4a50-4912-a2b5-cfe9636c56bd","type":14,"description":"Management server node 192.168.122.2 is up","sent":"2019-06-27T15:12:14+0900"} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,756 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===END===  192.168.122.1 -- GET  command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126
    2019-07-01 14:44:11,764 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===START===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,783 INFO  [cloud.api.ApiServer] (catalina-exec-24:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 200 { "listregionsresponse" : { "count":1 ,"region" : [  {"id":1,"name":"Local","endpoint":"http://localhost:8080/client/","gslbserviceenabled":true,"portableipserviceenabled":false} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,783 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===END===  192.168.122.1 -- GET  command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096
    2019-07-01 14:44:11,786 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Searching for hosts>>>
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,787 INFO  [cloud.api.ApiServer] (catalina-exec-10:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 200 { "listprojectsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,787 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===  192.168.122.1 -- GET  command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098
    2019-07-01 14:44:11,794 DEBUG [api.query.QueryManagerImpl] (catalina-exec-25:null) >>>Generating Response>>>
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,795 INFO  [cloud.api.ApiServer] (catalina-exec-25:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 200 { "listhostsresponse" : { } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,795 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===END===  192.168.122.1 -- GET  command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170
    2019-07-01 14:44:11,801 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===START===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208
    
    ==> /var/log/cloudstack/management/apilog.log <==
    2019-07-01 14:44:11,828 INFO  [cloud.api.ApiServer] (catalina-exec-11:null) (userId=2 accountId=2 sessionId=9BBB690D4CDB109E7F20FB6625E80120) 192.168.122.1 -- GET command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 200 { "listcapacityresponse" : { "count":1 ,"capacity" : [  {"type":5,"zoneid":"a5a1e7dd-6fb7-4be5-8316-b74e6a2ac014","zonename":"zone1","capacityused":0,"capacitytotal":11,"percentused":"0"} ] } }
    
    ==> /var/log/cloudstack/management/management-server.log <==
    2019-07-01 14:44:11,828 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===END===  192.168.122.1 -- GET  command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208
    
    ==> /var/log/cloudstack/management/access_log.2019-07-01.txt <==
    192.168.122.1 - - [01/Jul/2019:14:44:10 +0900] "POST /client/api HTTP/1.1" 200 321
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapabilities&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851002 HTTP/1.1" 200 318
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959851958 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listZones&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852086 HTTP/1.1" 200 361
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjectInvitations&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Pending&_=1561959852088 HTTP/1.1" 200 42
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listAlerts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&page=1&pageSize=4&_=1561959852126 HTTP/1.1" 200 644
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listRegions&listAll=true&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&_=1561959852096 HTTP/1.1" 200 184
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listProjects&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&accountId=61c78594-9898-11e9-9dc4-52540047cb95&listAll=true&_=1561959852098 HTTP/1.1" 200 32
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listHosts&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&state=Alert&page=1&pageSize=4&_=1561959852170 HTTP/1.1" 200 29
    192.168.122.1 - - [01/Jul/2019:14:44:11 +0900] "GET /client/api?command=listCapacity&response=json&sessionkey=%2FCaC2VPb96KREZ4cRObRgxX3CVY%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1561959852208 HTTP/1.1" 200 193
    -----------------------------

==============================================================================

Best regard,
Eiji Sagawa