ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
21 stars 21 forks source link

Django ALLOWED_HOSTS parameter in CoG is incomplete #633

Closed nathanlcarlson closed 5 years ago

nathanlcarlson commented 5 years ago

Currently the ALLOWED_HOSTS setting resolves to the FQDN of the machine it is on. The httpd error log reports the following errors for FQDN cwt-node.llnl.gov.

ERROR:django.security.DisallowedHost:Invalid HTTP_HOST header: 'cwt-node'. You may need to add u'cwt-node' to ALLOWED_HOSTS.
...
ERROR:django.security.DisallowedHost:Invalid HTTP_HOST header: '{external ip address of localhost}'. You may need to add u'{external ip address of localhost}' to ALLOWED_HOSTS.

It is unclear when the first error appears. The second error appeared when I used a "WGET script" I generated from the CoG interface. It is suspected it may be related to the esgf-dashboard-ip service. After the second error was manually resolved the esgf_dashboard.dashboard_queue became populated with values that had the attribute processed=1 where others previous had processed=0.

nathanlcarlson commented 5 years ago

After further testing it appears the error message was unrelated to the esgf-dashboard-ip service.