Pivotal Knowledge Base

Follow

GPCC shows error "Received error response from server" when attempting to login

Environment

 Product  Version
Pivotal Greenplum Command Center (GPCC)  2.x

Symptom

  • When attempting to log into the Greenplum Command Center (GPCC), users receive the error message "Received error response from server"
  • This error is present even if the correct username and password are entered.

Error Message:

Note: The 'Received error response from server' shows up directly on the GPCC login screen:

Note: These error messages will be logged on to the gpmonws.log file which can be located at $GPPERFMONHOME/instances/<your instance name>/logs/

2016-09-18 00:49:49,635 - Authenticated user(gpmon) ok superuser(True) operator(False) readonly operator(False)
2016-09-18 00:49:49,671 - FATAL: Unable to load configuration file: /usr/local/greenplum-cc-web-2.3.0-build-51/instances/gpdb_sandbox/web/../conf/gpperfmonui.conf

 

Cause

This issue is caused by a permission error on $GPPERFMONHOME/instances/<your instance name>/conf/gpperfmonui.conf, where the Greenplum processes could not open the file for reading.

[gpadmin@gpdb-sandbox conf]$ ls -latr gpperfmonui.conf
-r-------- 1 root root 240 Sep 17 19:14 gpperfmonui.conf
[gpadmin@gpdb-sandbox conf]$ cat gpperfmonui.conf
cat: gpperfmonui.conf: Permission denied

Resolution

Ensure that the Greenplum processes can open the gpperfmonui.conf file by correcting its permissions. By default the gpadmin user will need to read the file so adding that permission will resolve these errors:

[root@gpdb-sandbox conf]# chmod a+r gpperfmonui.conf
[root@gpdb-sandbox conf]# ls -latr gpperfmonui.conf
-r--r--r-- 1 root root 259 Sep 17 18:50 gpperfmonui.conf

Upon correcting the values, the users will be able to log in and the $GPPERFMONHOME/instances/<your instance name>/logs/gpmonws.log error would be resolved:

2016-09-17 19:12:50,789 - Authenticated user(gpmon) ok superuser(True) operator(False) readonly operator(False)
2016-09-17 19:12:50,804 - Configuration file: {'GPMMON': {'quantum': 15}, 'WEB_APP': {'allowautologin': 'True', 'ssh_full_path': 'ssh', 'server_name': 'gpdb_sandbox', 'diskthresholdvalue': '80', 'maxconnections': '10', 'betaport': '28090', 'timeout': '1800', 'master_port': '5432', 'csrf_protect': 'False', 'ssl_enabled': 'true', 'pollinterval': '30000', 'securedbhealth': 'False'}}
2016-09-17 19:12:50,804 - remote = False
2016-09-17 19:12:50,804 - verbose = False
2016-09-17 19:12:50,804 - server_name = gpdb_sandbox
2016-09-17 19:12:50,804 - ssl_enabled = True
2016-09-17 19:12:50,804 - quantum = 15
2016-09-17 19:12:50,804 - csrf_enabled = False
2016-09-17 19:12:50,804 - ssh_full_path = ssh
2016-09-17 19:12:50,804 - diskThresholdValue = 80
2016-09-17 19:12:50,804 - allowAutoLogin = True
2016-09-17 19:12:50,804 - betaPort = 28090 

Comments

Powered by Zendesk