icclab / cyclops-dashboard

Angularjs UI for Cyclops framework
Apache License 2.0
10 stars 10 forks source link

dashboard log in #1

Open forough-foroughi opened 8 years ago

forough-foroughi commented 8 years ago

Hi,

After I installed all services, I got this error when I try to login by the username and password I set in "cyclops-dashboard/src/main/webapp/WEB-INF/configuration.txt" file :

"Invalid username or password"

I think the username and password I set is not in the database.

when I try to install dashboard service, I see a conflict between dashboard.db path, Then I changed the ~/bills and ~/sqlite path in " cyclops-dashboard/install/setup-for-openstack" file to home/ubuntu/bills and /home/ubuntu/sqlite.

What is the problem?

ManuPerezBelmonte commented 8 years ago

Hello foroughfor,

The problem may be in the authentication service, not in the database. could you check /var/log/cyclops/dashboard.log and send me the trace?

Manu.

2016-01-23 14:45 GMT+01:00 foroughfor notifications@github.com:

Hi,

After I installed all services, I got this error when I try to login by the username and password I set in "cyclops-dashboard/src/main/webapp/WEB-INF/configurationtxt" file :

"Invalid username or password"

I think the username and password I set is not in the database

when I try to install dashboard service, I see a conflict between dashboarddb path, Then I changed the ~/bills and ~/sqlite path in " cyclops-dashboard/install/setup-for-openstack" file to home/ubuntu/bills and /home/ubuntu/sqlite

What is the problem?

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1.

forough-foroughi commented 8 years ago

Thanks manu, You are right, This is dashboard log:

[ DEBUG ] 2016-01-23 15:56:28 (applicationFactory.AbstractApplicationFactory:21) - Attempting to get the Environment from the Configuration file. [ DEBUG ] 2016-01-23 15:56:28 (applicationFactory.AbstractApplicationFactory:24) - Attempting to create the application Class [ TRACE ] 2016-01-23 15:56:28 (application.AbstractApplication:52) - Attempting to Create the database. [ TRACE ] 2016-01-23 15:56:28 (database.DatabaseHelper:91) - Creating Database Tables if doesn't exists [ TRACE ] 2016-01-23 15:56:28 (application.AbstractApplication:54) - Database created. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:40) - Attempting to create the default admin account. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:118) - Attempting to create the Default Admin Account. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:148) - Attempting to create the initial Dashboard Admin Account in Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:159) - Attempting to get the token to create the account into Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:162) - Username: admin Password: pass1234 [ TRACE ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:47) - Attempting go get the userId from the database. [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:50) - Asking for a token to authenticating the query [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:54) - Attempting to get the token from the Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:65) - Gatekeeper Token URL: http://localhost:8000/token/ [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:181) - Checking if the user exists in gatekeeper [ ERROR ] 2016-01-23 15:56:28 (registration.Registration:185) - Error while creating the default Admin account. Change the configuration file credentials and redeploy the service. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:44) - Default admin account created [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:29) - Attempting to create the common routes. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:34) - Attempting to create the specific routes [ TRACE ] 2016-01-23 15:56:28 (login.Login:48) - Attempting to login [ TRACE ] 2016-01-23 15:56:28 (login.Login:76) - Checking if the user exists. [ TRACE ] 2016-01-23 15:56:28 (database.DatabaseHelper:468) - Attempting to Check if a user exists in the database. [ DEBUG ] 2016-01-23 15:56:28 (database.DatabaseHelper:474) - Statement attempting to be executed: SELECT * FROM dashboard_users WHERE username=? AND password=? [ TRACE ] 2016-01-23 15:57:24 (login.Login:48) - Attempting to login [ TRACE ] 2016-01-23 15:57:24 (login.Login:76) - Checking if the user exists. [ TRACE ] 2016-01-23 15:57:24 (database.DatabaseHelper:468) - Attempting to Check if a user exists in the database. [ DEBUG ] 2016-01-23 15:57:24 (database.DatabaseHelper:474) - Statement attempting to be executed: SELECT * FROM dashboard_users WHERE username=? AND password=?

piyush82 commented 8 years ago

Was the problem resolved?


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Sun, Jan 24, 2016 at 5:39 AM, foroughfor notifications@github.com wrote:

Thanks manu, You are right, This is dashboard log:

[ DEBUG ] 2016-01-23 15:56:28 (applicationFactory.AbstractApplicationFactory:21) - Attempting to get the Environment from the Configuration file. [ DEBUG ] 2016-01-23 15:56:28 (applicationFactory.AbstractApplicationFactory:24) - Attempting to create the application Class [ TRACE ] 2016-01-23 15:56:28 (application.AbstractApplication:52) - Attempting to Create the database. [ TRACE ] 2016-01-23 15:56:28 (database.DatabaseHelper:91) - Creating Database Tables if doesn't exists [ TRACE ] 2016-01-23 15:56:28 (application.AbstractApplication:54) - Database created. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:40) - Attempting to create the default admin account. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:118) - Attempting to create the Default Admin Account. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:148) - Attempting to create the initial Dashboard Admin Account in Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:159) - Attempting to get the token to create the account into Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:162) - Username: admin Password: pass1234 [ TRACE ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:47) - Attempting go get the userId from the database. [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:50) - Asking for a token to authenticating the query [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:54) - Attempting to get the token from the Gatekeeper. [ DEBUG ] 2016-01-23 15:56:28 (gatekeeper.GatekeeperTokenGenerator:65) - Gatekeeper Token URL: http://localhost:8000/token/ [ DEBUG ] 2016-01-23 15:56:28 (registration.Registration:181) - Checking if the user exists in gatekeeper [ ERROR ] 2016-01-23 15:56:28 (registration.Registration:185) - Error while creating the default Admin account. Change the configuration file credentials and redeploy the service. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:44) - Default admin account created [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:29) - Attempting to create the common routes. [ DEBUG ] 2016-01-23 15:56:28 (application.AbstractApplication:34) - Attempting to create the specific routes [ TRACE ] 2016-01-23 15:56:28 (login.Login:48) - Attempting to login [ TRACE ] 2016-01-23 15:56:28 (login.Login:76) - Checking if the user exists. [ TRACE ] 2016-01-23 15:56:28 (database.DatabaseHelper:468) - Attempting to Check if a user exists in the database. [ DEBUG ] 2016-01-23 15:56:28 (database.DatabaseHelper:474) - Statement attempting to be executed: SELECT * FROM dashboard_users WHERE username=? AND password=? [ TRACE ] 2016-01-23 15:57:24 (login.Login:48) - Attempting to login [ TRACE ] 2016-01-23 15:57:24 (login.Login:76) - Checking if the user exists. [ TRACE ] 2016-01-23 15:57:24 (database.DatabaseHelper:468) - Attempting to Check if a user exists in the database. [ DEBUG ] 2016-01-23 15:57:24 (database.DatabaseHelper:474) - Statement attempting to be executed: SELECT * FROM dashboard_users WHERE username=? AND password=?

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174251273 .

forough-foroughi commented 8 years ago

No I couldnt. I rerun the services but the same error.

piyush82 commented 8 years ago

Can you send the dashboard configuration file content, I want to see where your AUTH fields point to.


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 10:27 AM, foroughfor notifications@github.com wrote:

No I couldnt. I rerun the services but got the same error.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174446962 .

forough-foroughi commented 8 years ago

This is my dashboard configuration file content (cyclops-dashboard/src/main/webapp/WEB-INF/configuration_openstack.txt):

--Your GateKeeper auth server credentials GK_ADMIN=admin GK_PASSWORD=pass1234

--This admin account will be created during installation automatically DASHBOARD_ADMIN=admin DASHBOARD_PASSWORD=pass1234

--Provide paths for accessing SQLite database and saving PDFs DASHBOARD_DB_PATH=/home/ubuntu/sqlite/dashboard.db BILLING_PDF_PATH=/home/ubuntu/bills

--Your Openstack credentials KEYSTONE_CYCLOPS_USERNAME=cyclops KEYSTONE_CYCLOPS_PASSWORD=123 KEYSTONE_CYCLOPS_DOMAIN=default KEYSTONE_TENANT_NAME=services KEYSTONE_TOKEN_URL=http://192.168.17.155:5000/v2.0 KEYSTONE_METERS_URL=http://192.168.17.155:8777/ CeilometerURL=http://192.168.17.155:8777/ KeystoneURL=http://192.168.17.155:5000/v2.0

--ADVANCED SETTINGS --Environment variable Environment=Openstack

--GateKeeper endpoints GK_GET_UID=http://localhost:8000/admin/user/ GK_TOKEN_URL=http://localhost:8000/token/ GK_AUTH_URL=http://localhost:8000/auth/ GK_AUTH_TOKEN_INFO_URL=http://localhost:8000/token/validate/ GK_LIST_USERS_URL=http://localhost:8000/admin/user/

--Cyclops RCB Endpoints UDR_USAGE_URL=http://localhost:8080/udr/usage/users/ UDR_METER_URL=http://localhost:8080/udr/meters RC_RATE_URL=http://localhost:8080/rc/rate RC_RATE_STATUS_URL=http://localhost:8080/rc/rate/status RC_CHARGE_URL=http://localhost:8080/rc/charge BILLING_INVOICE_URL=http://localhost:8080/billing/invoice

--Error Reporter settings DASHBOARD_USER_TABLE=dashboard_users ERROR_REPORTER_ENABLED=true ERROR_REPORTER_HOST=192.168.17.146 ERROR_REPORTER_PORT=15672 ERROR_REPORTER_VIRTUAL_HOST=/ ERROR_REPORTER_USERNAME=someuser ERROR_REPORTER_PASSWORD=somepass MAX_CACHED_USERS=5 DATA_PERIOD=5 CACHE=false

piyush82 commented 8 years ago

if you have installed Gatekeeper properly, you should be able to get an output when you point to http://localhost:8000/

Can you verify that you get an output.


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 11:49 AM, foroughfor notifications@github.com wrote:

This is my dashboard configuration file content (cyclops-dashboard/src/main/webapp/WEB-INF/configuration.txt) :

######################## PROVIDE CREDENTIALS #################### Your GateKeeper auth server credentials

GK_ADMIN=admin GK_PASSWORD=pass1234 This admin account will be created during installation automatically

DASHBOARD_ADMIN=admin DASHBOARD_PASSWORD=pass1234 Provide paths for accessing SQLite database and saving PDFs

DASHBOARD_DB_PATH=/home/ubuntu/sqlite/dashboard.db BILLING_PDF_PATH=/home/ubuntu/bills Your Openstack credentials

KEYSTONE_CYCLOPS_USERNAME=cyclops KEYSTONE_CYCLOPS_PASSWORD=123 KEYSTONE_CYCLOPS_DOMAIN=default KEYSTONE_TENANT_NAME=services KEYSTONE_TOKEN_URL=http://192.168.17.155:5000/v2.0 KEYSTONE_METERS_URL=http://192.168.17.155:8777/ CeilometerURL=http://192.168.17.155:8777/ KeystoneURL=http://192.168.17.155:5000/v2.0

######################## ADVANCED SETTINGS ###################### Environment variable

Environment=Openstack GateKeeper endpoints

GK_GET_UID=http://localhost:8000/admin/user/ GK_TOKEN_URL=http://localhost:8000/token/ GK_AUTH_URL=http://localhost:8000/auth/ GK_AUTH_TOKEN_INFO_URL=http://localhost:8000/token/validate/ GK_LIST_USERS_URL=http://localhost:8000/admin/user/ Cyclops RCB Endpoints

UDR_USAGE_URL=http://localhost:8080/udr/usage/users/ UDR_METER_URL=http://localhost:8080/udr/meters RC_RATE_URL=http://localhost:8080/rc/rate RC_RATE_STATUS_URL=http://localhost:8080/rc/rate/status RC_CHARGE_URL=http://localhost:8080/rc/charge BILLING_INVOICE_URL=http://localhost:8080/billing/invoice Error Reporter settings

DASHBOARD_USER_TABLE=dashboard_users ERROR_REPORTER_ENABLED=true ERROR_REPORTER_HOST=192.168.17.146 ERROR_REPORTER_PORT=15672 ERROR_REPORTER_VIRTUAL_HOST=/ ERROR_REPORTER_USERNAME=someuser ERROR_REPORTER_PASSWORD=somepass MAX_CACHED_USERS=5 DATA_PERIOD=5 CACHE=false

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174467968 .

piyush82 commented 8 years ago

I notice one more thing, your DASHBOARD_ADMIN is same as Gatekeeper auth server account, thats why its failing.

Make your DASHBOARD_ADMIN different than the Gatekeeper admin account, then you should be able to login.


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 11:58 AM, Piyush Harsh harh@zhaw.ch wrote:

if you have installed Gatekeeper properly, you should be able to get an output when you point to http://localhost:8000/

Can you verify that you get an output.


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 11:49 AM, foroughfor notifications@github.com wrote:

This is my dashboard configuration file content (cyclops-dashboard/src/main/webapp/WEB-INF/configuration.txt) :

######################## PROVIDE CREDENTIALS #################### Your GateKeeper auth server credentials

GK_ADMIN=admin GK_PASSWORD=pass1234 This admin account will be created during installation automatically

DASHBOARD_ADMIN=admin DASHBOARD_PASSWORD=pass1234 Provide paths for accessing SQLite database and saving PDFs

DASHBOARD_DB_PATH=/home/ubuntu/sqlite/dashboard.db BILLING_PDF_PATH=/home/ubuntu/bills Your Openstack credentials

KEYSTONE_CYCLOPS_USERNAME=cyclops KEYSTONE_CYCLOPS_PASSWORD=123 KEYSTONE_CYCLOPS_DOMAIN=default KEYSTONE_TENANT_NAME=services KEYSTONE_TOKEN_URL=http://192.168.17.155:5000/v2.0 KEYSTONE_METERS_URL=http://192.168.17.155:8777/ CeilometerURL=http://192.168.17.155:8777/ KeystoneURL=http://192.168.17.155:5000/v2.0

######################## ADVANCED SETTINGS ###################### Environment variable

Environment=Openstack GateKeeper endpoints

GK_GET_UID=http://localhost:8000/admin/user/ GK_TOKEN_URL=http://localhost:8000/token/ GK_AUTH_URL=http://localhost:8000/auth/ GK_AUTH_TOKEN_INFO_URL=http://localhost:8000/token/validate/ GK_LIST_USERS_URL=http://localhost:8000/admin/user/ Cyclops RCB Endpoints

UDR_USAGE_URL=http://localhost:8080/udr/usage/users/ UDR_METER_URL=http://localhost:8080/udr/meters RC_RATE_URL=http://localhost:8080/rc/rate RC_RATE_STATUS_URL=http://localhost:8080/rc/rate/status RC_CHARGE_URL=http://localhost:8080/rc/charge BILLING_INVOICE_URL=http://localhost:8080/billing/invoice Error Reporter settings

DASHBOARD_USER_TABLE=dashboard_users ERROR_REPORTER_ENABLED=true ERROR_REPORTER_HOST=192.168.17.146 ERROR_REPORTER_PORT=15672 ERROR_REPORTER_VIRTUAL_HOST=/ ERROR_REPORTER_USERNAME=someuser ERROR_REPORTER_PASSWORD=somepass MAX_CACHED_USERS=5 DATA_PERIOD=5 CACHE=false

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174467968 .

forough-foroughi commented 8 years ago

http://192.168.17.146:8080 output:

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.

tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.

NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

I changed the DASHBOARD_ADMIN account, but the same error yet.

piyush82 commented 8 years ago

This is tomcat output, not the :8000 where gatekeeper runs. Can you see if your gatekeeper service at port :8000 is running properly?


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 12:18 PM, foroughfor notifications@github.com wrote:

http://192.168.17.146:8080 output:

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.

tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp. NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

I changed the DASHBOARD_ADMIN account, but the same error yet.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174476376 .

piyush82 commented 8 years ago

In your case if you have installed everything in the same machine then at http://192.168.17.146 http://192.168.17.146:8080/:8000/


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 1:17 PM, Piyush Harsh harh@zhaw.ch wrote:

This is tomcat output, not the :8000 where gatekeeper runs. Can you see if your gatekeeper service at port :8000 is running properly?


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 12:18 PM, foroughfor notifications@github.com wrote:

http://192.168.17.146:8080 output:

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.

tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp. NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

I changed the DASHBOARD_ADMIN account, but the same error yet.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174476376 .

piyush82 commented 8 years ago

Dear User,

Was the dashboard problem resolved for you? I would ask you to try one more time as today we found a external dependency path problem in the Gatekeeper module which has been fixed now.

Let us know if now all goes ok for you.

Kind regards, Cyclops TEAM


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 1:19 PM, Piyush Harsh harh@zhaw.ch wrote:

In your case if you have installed everything in the same machine then at http://192.168.17.146 http://192.168.17.146:8080/:8000/


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 1:17 PM, Piyush Harsh harh@zhaw.ch wrote:

This is tomcat output, not the :8000 where gatekeeper runs. Can you see if your gatekeeper service at port :8000 is running properly?


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Mon, Jan 25, 2016 at 12:18 PM, foroughfor notifications@github.com wrote:

http://192.168.17.146:8080 output:

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.

tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp. NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

I changed the DASHBOARD_ADMIN account, but the same error yet.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-174476376 .

forough-foroughi commented 8 years ago

I test it again, but the same problem. I think Gatekeeper causes the problem. The GOPATH directory doesn't set properly and auth-utils command not found.

I am trying to install Gatekeeper manually, then I will post the result.

piyush82 commented 8 years ago

Yes, this happens sometime, just do "source ./profile" after the install scripts terminates which should properly set the GOPATH. And then run the "go get" and "go install" steps from the auth-utils folder which should solve the problem.

Let us know how this proceeds.


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Wed, Feb 3, 2016 at 10:13 AM, foroughfor notifications@github.com wrote:

I test it again, but the same problem. I think Gatekeeper cause the problem. the GOPATH directory doesn't set properly.

I am trying to install Gatekeeper manually, then I will post the result.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-179081389 .

forough-foroughi commented 8 years ago

I tried again and the output of th dashboard.log is:

[ ERROR ] 2016-02-06 11:40:09 (applicationFactory.AbstractApplicationFactory:29) - Error while getting the Application Class loaded: null [ ERROR ] 2016-02-06 11:40:09 (applicationFactory.AbstractApplicationFactory:29) - Error while getting the Application Class loaded: null

The output of the http://192.168.17.146:8080 is as same as before.(Tomcat output) (I set up cyclops in virtual machin and try to access dashboard from my host browser)

piyush82 commented 8 years ago

Dear cyclops user,

Can you also attach the configuration files for the dashboard and the gatekeeper components also in your next email. we are investigating the error and will get back as soon as we can replicate the problem at our end.

Kind regards, Cyclops team


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Sat, Feb 6, 2016 at 9:19 AM, foroughfor notifications@github.com wrote:

I tried again and the output of th dashboard.log is:

[ ERROR ] 2016-02-06 11:40:09 (applicationFactory.AbstractApplicationFactory:29) - Error while getting the Application Class loaded: null [ ERROR ] 2016-02-06 11:40:09 (applicationFactory.AbstractApplicationFactory:29) - Error while getting the Application Class loaded: null

The output of the http://192.168.17.146:8080 is as same as before.(Tomcat output) (I set up cyclops in virtual machin and try to access dashboard from my host browser)

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-180718254 .

forough-foroughi commented 8 years ago

I accessed to dashboard. Just a question: dashboard is developing. some buttons doesnt work. Righ? any way,It is helpful for me and thanks for your kind help.

piyush82 commented 8 years ago

Hi,

Yes the dashboard component is developing, some UI elements do not work yet. But for your info can you provide a more precise feedback as to which UI elements did not work?


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Sun, Feb 14, 2016 at 7:21 AM, foroughfor notifications@github.com wrote:

I accessed to dashboard. Just a question: dashboard is developing. some buttons doesnt work. Righ? any way, thanks for your kind help.

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-183829267 .

forough-foroughi commented 8 years ago

any menu items in the right corner don't work. In cloud services -> OpenStack -> we can logIn by admin and any openstack user succesfully. But we get these errors: Rate: could not load selected meters RC configuration -> Rate : could not determine rate policy cloud services: could not load external userID udr configuration -> Meter Configuration: could not load list of meters

no Error in udr.log Error in rc.ir (applicationFactory.AbstractApplicationFactory:36) - Attempting to get the Environment from the Configuration file. (applicationFactory.AbstractApplicationFactory:40) - Attempting to create the application Class (applicationFactory.AbstractApplicationFactory:44) - Error while getting the Application Class loaded: ch.icclab.cyclops.applicationFactory.OpenstackRCServiceApplicationFactory (applicationFactory.AbstractApplicationFactory:36) - Attempting to get the Environment from the Configuration file. (applicationFactory.AbstractApplicationFactory:40) - Attempting to create the application Class (applicationFactory.AbstractApplicationFactory:44) - Error while getting the Application Class loaded: ch.icclab.cyclops.applicationFactory.OpenstackRCServiceApplicationFactory

some errors in dashboard.log

[ TRACE ] 2016-02-18 22:40:10 (keystone.KeystoneMeter:62) - Attempting to create the token [ DEBUG ] 2016-02-18 22:40:10 (keystone.KeystoneClient:41) - Generating the Token [ TRACE ] 2016-02-18 22:40:10 (keystone.KeystoneClient:58) - Attempting to Create the OpenStack Client [ ERROR ] 2016-02-18 22:40:10 (keystone.KeystoneMeter:70) - Error while getting the Keystone Meters: Unauthorized [ ERROR ] 2016-02-18 22:40:10 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:40:13 (rate.RateStatus:38) - Attempting to get the Rate Status. [ DEBUG ] 2016-02-18 22:40:35 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:40:35 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:40:35 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:40:41 (bills.BillInformation:52) - Attempting to get the BillInfos from the database. [ TRACE ] 2016-02-18 22:40:41 (database.DatabaseHelper:154) - Attempting to get the Bills for a User. [ DEBUG ] 2016-02-18 22:40:41 (database.DatabaseHelper:171) - Statement attempting to be executed: SELECT * FROM bills WHERE userId = ? AND approved = ? [ DEBUG ] 2016-02-18 22:40:42 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:40:42 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:40:42 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:41:20 (rate.RateStatus:38) - Attempting to get the Rate Status. [ TRACE ] 2016-02-18 22:41:22 (keystone.KeystoneMeter:62) - Attempting to create the token [ DEBUG ] 2016-02-18 22:41:22 (keystone.KeystoneClient:41) - Generating the Token [ TRACE ] 2016-02-18 22:41:22 (keystone.KeystoneClient:58) - Attempting to Create the OpenStack Client [ ERROR ] 2016-02-18 22:41:22 (keystone.KeystoneMeter:70) - Error while getting the Keystone Meters: Unauthorized [ ERROR ] 2016-02-18 22:41:22 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:42:22 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:42:22 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:42:22 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost

where is the problem?

ManuPerezBelmonte commented 8 years ago

Hello foroughfor,

Regarding the dashboard errors, the problem is on the Keystone authentication which means that either your config credentials are not correct or the credentials for cyclops account (in the configuration file) should be either on Services tenant or an admin account in Openstack, so you don't have the right to access to this data. We will edit our Read Me file so this gets clear, thank you for pointing that.

The RC error is failing due to a code bug, we will be releasing our new version on the following days so the problem should be solved.

Thanks, Cyclops Team.

2016-02-18 17:36 GMT+01:00 foroughfor notifications@github.com:

any menu items in the right corner don't work. In cloud services -> OpenStack -> we can logIn by admin and any openstack user succesfully. But we get these errors: Rate: could not load selected meters RC configuration -> Rate : could not determine rate policy cloud services: could not load external userID udr configuration -> Meter Configuration: could not load list of meters

no Error in udr.log Error in rc.ir (applicationFactory.AbstractApplicationFactory:36) - Attempting to get the Environment from the Configuration file. (applicationFactory.AbstractApplicationFactory:40) - Attempting to create the application Class (applicationFactory.AbstractApplicationFactory:44) - Error while getting the Application Class loaded: ch.icclab.cyclops.applicationFactory.OpenstackRCServiceApplicationFactory (applicationFactory.AbstractApplicationFactory:36) - Attempting to get the Environment from the Configuration file. (applicationFactory.AbstractApplicationFactory:40) - Attempting to create the application Class (applicationFactory.AbstractApplicationFactory:44) - Error while getting the Application Class loaded: ch.icclab.cyclops.applicationFactory.OpenstackRCServiceApplicationFactory

some errors in dashboard.log

[ TRACE ] 2016-02-18 22:40:10 (keystone.KeystoneMeter:62) - Attempting to create the token [ DEBUG ] 2016-02-18 22:40:10 (keystone.KeystoneClient:41) - Generating the Token [ TRACE ] 2016-02-18 22:40:10 (keystone.KeystoneClient:58) - Attempting to Create the OpenStack Client [ ERROR ] 2016-02-18 22:40:10 (keystone.KeystoneMeter:70) - Error while getting the Keystone Meters: Unauthorized [ ERROR ] 2016-02-18 22:40:10 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:40:13 (rate.RateStatus:38) - Attempting to get the Rate Status. [ DEBUG ] 2016-02-18 22:40:35 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:40:35 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:40:35 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:40:41 (bills.BillInformation:52) - Attempting to get the BillInfos from the database. [ TRACE ] 2016-02-18 22:40:41 (database.DatabaseHelper:154) - Attempting to get the Bills for a User. [ DEBUG ] 2016-02-18 22:40:41 (database.DatabaseHelper:171) - Statement attempting to be executed: SELECT * FROM bills WHERE userId = ? AND approved = ? [ DEBUG ] 2016-02-18 22:40:42 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:40:42 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:40:42 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:41:20 (rate.RateStatus:38) - Attempting to get the Rate Status. [ TRACE ] 2016-02-18 22:41:22 (keystone.KeystoneMeter:62) - Attempting to create the token [ DEBUG ] 2016-02-18 22:41:22 (keystone.KeystoneClient:41) - Generating the Token [ TRACE ] 2016-02-18 22:41:22 (keystone.KeystoneClient:58) - Attempting to Create the OpenStack Client [ ERROR ] 2016-02-18 22:41:22 (keystone.KeystoneMeter:70) - Error while getting the Keystone Meters: Unauthorized [ ERROR ] 2016-02-18 22:41:22 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost [ DEBUG ] 2016-02-18 22:42:22 (externalMeters.ExternalUserAccounts:46) - Attempting to get the list of external user IDs. [ ERROR ] 2016-02-18 22:42:22 (externalMeters.ExternalUserAccounts:115) - Error obtaining the External User Accounts: Internal Server Error [ ERROR ] 2016-02-18 22:42:22 (errorreporting.ErrorReporter:50) - Failed to open connection for error reporting: somehost

where is the problem?

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/1#issuecomment-185805555 .

ManuPerezBelmonte commented 8 years ago

Foroughfor,

All the Openstack Issues sould be solved in our new release of UDR, RC and Dashboard, we had some issues to fix regarding the scheduler frequencies and data visualisation, please let us know if you are able to use deploy and use cyclops without any error.

Thanks, Cyclops Team.