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

2019-08-05 Thread sagawa_e...@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.ri...@swisstxt.ch]
> Sent: Thursday, July 25, 2019 9:59 PM
> To: users@cloudstack.apache.org; Sagawa, Eiji/佐川 英司
> 
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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 +, 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)

2019-07-25 Thread Riepl, Gregor (SWISS TXT)
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 +, 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)

2019-07-17 Thread Riepl, Gregor (SWISS TXT)
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)

2019-07-16 Thread sagawa_e...@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.ri...@swisstxt.ch]
> Sent: Tuesday, July 16, 2019 9:46 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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 +, sagawa_e...@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.isma...@swisstxt.ch]
> > > Sent: Friday, July 5, 2019 6:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > > Hoshikawa, Toyohiko/星川 豊彦 
> > > 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_e...@fujitsu.com 
> > > Gesendet: Freitag, 5. Juli 2019 10:31
> > > An: users@cloudstack.apache.org
> > > Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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

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

2019-07-16 Thread Riepl, Gregor (SWISS TXT)
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 +, sagawa_e...@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.isma...@swisstxt.ch]
> > Sent: Friday, July 5, 2019 6:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > Hoshikawa, Toyohiko/星川 豊彦 
> > 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_e...@fujitsu.com 
> > Gesendet: Freitag, 5. Juli 2019 10:31
> > An: users@cloudstack.apache.org
> > Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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":,"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.ri...@swisstxt.ch]
> > > Sent: Wednesday, July 3, 2019 10:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > > Hoshikawa, Toyohiko/星川 豊彦 
> > > 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=json=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/

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

2019-07-16 Thread sagawa_e...@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.pa...@gmail.com]
> Sent: Friday, July 5, 2019 7:32 PM
> To: users 
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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.isma...@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_e...@fujitsu.com 
> > Gesendet: Freitag, 5. Juli 2019 10:31
> > An: users@cloudstack.apache.org
> > Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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":,"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.ri...@swisstxt.ch]
> > > Sent: Wednesday, July 3, 2019 10:00 PM
> > > To: users@cloudstack.apache.org
> > > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > > Hoshikawa, Toyohiko/星川 豊彦 
> > > 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=json=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=json=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=json=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=json=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)

2019-07-16 Thread sagawa_e...@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.isma...@swisstxt.ch]
> Sent: Friday, July 5, 2019 6:00 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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_e...@fujitsu.com 
> Gesendet: Freitag, 5. Juli 2019 10:31
> An: users@cloudstack.apache.org
> Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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":,"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.ri...@swisstxt.ch]
> > Sent: Wednesday, July 3, 2019 10:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > Hoshikawa, Toyohiko/星川 豊彦 
> > 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=json=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=json=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=json=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=json=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)

2019-07-05 Thread Andrija Panic
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.isma...@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_e...@fujitsu.com 
> Gesendet: Freitag, 5. Juli 2019 10:31
> An: users@cloudstack.apache.org
> Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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":,"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.ri...@swisstxt.ch]
> > Sent: Wednesday, July 3, 2019 10:00 PM
> > To: users@cloudstack.apache.org
> > Cc: Shigemoto, Yasumasa/重元 康昌 ;
> > Hoshikawa, Toyohiko/星川 豊彦 
> > 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=json=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=json=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=json=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=json=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)

2019-07-05 Thread sagawa_e...@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=json=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":,"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.ri...@swisstxt.ch]
> Sent: Wednesday, July 3, 2019 10:00 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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=json=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=json=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=json=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=json=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)

2019-07-05 Thread sagawa_e...@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.awas...@shapeblue.com]
> Sent: Wednesday, July 3, 2019 7:10 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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 
> Sent: Wednesday, July 3, 2019 3:34 PM
> To: users@cloudstack.apache.org
> Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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.an...@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> anurag.awas...@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> -Original Message-
> From: sagawa_e...@fujitsu.com 
> Sent: 03 July 2019 10:17
> To: 'users@cloudstack.apache.org' 
> Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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-

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

2019-07-05 Thread sagawa_e...@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.an...@shapeblue.com]
> Sent: Wednesday, July 3, 2019 7:05 PM
> To: users@cloudstack.apache.org
> Cc: Shigemoto, Yasumasa/重元 康昌 ;
> Hoshikawa, Toyohiko/星川 豊彦 
> 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.an...@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
> -Original Message-
> From: sagawa_e...@fujitsu.com 
> Sent: 03 July 2019 10:17
> To: 'users@cloudstack.apache.org' 
> Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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=json=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:nul

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

2019-07-03 Thread Riepl, Gregor (SWISS TXT)
Hi Eiji,

> 192.168.122.1 - - [01/Jul/2019:06:09:22 +0900] "GET
> /client/api?command=listCapabilities=json=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=json=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=json=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=json=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)

2019-07-03 Thread Anurag Awasthi
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 
Sent: Wednesday, July 3, 2019 3:34 PM
To: users@cloudstack.apache.org
Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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.an...@shapeblue.com
www.shapeblue.com<http://www.shapeblue.com>
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue




anurag.awas...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: sagawa_e...@fujitsu.com 
Sent: 03 July 2019 10:17
To: 'users@cloudstack.apache.org' 
Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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=json=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 0

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

2019-07-03 Thread Paul Angus
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.an...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: sagawa_e...@fujitsu.com  
Sent: 03 July 2019 10:17
To: 'users@cloudstack.apache.org' 
Cc: shigemoto.ya...@fujitsu.com; t-hoshik...@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=json=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=json=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=json=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=json=h1Lwsk9dqVwZxGAwk0owzFDtmi4%3D&_=1561961591972
 432 The given command does not exist or it is not available for user

==>