EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

CoG settings file appears to get overwritten #1395

Closed William-Hill closed 6 years ago

William-Hill commented 6 years ago

When installing CoG for ESGF 3.0, the cog_settings.cfg appears to be overwritten during the setup process. ALLOWED_HOSTS was populated with the esgf hostname during step 2. But ALLOWED_HOSTS is set to localhost after step 3. See bolded lines in stack trace below

Stack Trace:

1) Executing CogConfig... <<< ...done with CogConfig 2) Setting up Django applications registry Initialized CoG settings from file: /usr/local/cog/cog_config/cog_settings.cfg Using DEBUG=False ALLOWED_HOSTS=['esgf-dev2.llnl.gov'] Using IdP whitelist(s): /esg/config/esgf_idp.xml, /esg/config/esgf_idp_static.xml Using list of known Identity Providers: /esg/config/esgf_known_providers.xml Using list of ESGF/CoG peer nodes from: /esg/config/esgf_cogs.xml Production server flag=True WPS endpoint: None, datacart enabled: False, fields: index_node Loading custom templates from directories: /usr/local/cog/cog_config/mytemplates, /usr/local/cog/cog_config/mymedia Loading known IdPs from file: /esg/config/esgf_known_providers.xml, last modified: 2018-05-08 17:22:59.890342 Using known IdP: name=DOE Lawrence Livermore National Laboratory (LLNL) url=https://esgf-node.llnl.gov/esgf-idp/openid/ Using known IdP: name=NASA Jet Propulsion Laboratory (JPL) url=https://esgf-node.jpl.nasa.gov/esgf-idp/openid/ Using known IdP: name=NASA Center for Climate Simulation (NCCS) url=https://esgf.nccs.nasa.gov/esgf-idp/openid/ Using known IdP: name=NOAA Geophysical Fluid Dynamics Laboratory (GFDL) url=https://esgdata.gfdl.noaa.gov/esgf-idp/openid/ Using known IdP: name=NOAA Enviromental System Research Laboratory (ESRL) url=https://esgf.esrl.noaa.gov/esgf-idp/openid/ Using known IdP: name=National Computational Infrastructure (NCI) url=https://esgf.nci.org.au/esgf-idp/openid/ Using known IdP: name=Centre for Environmental Data Analysis (CEDA) url=https://ceda.ac.uk/openid/ Using known IdP: name=Institut Pierre Simon Laplace (IPSL) url=https://esgf-node.ipsl.upmc.fr/esgf-idp/openid/ Using known IdP: name=National Supercomputer Center at Linkoping University (NSC-LIU) url=https://esg-dn1.nsc.liu.se/esgf-idp/openid/ Using known IdP: name=German Climate Computing Centre (DKRZ) url=https://esgf-data.dkrz.de/esgf-idp/openid/ Email configuration not found, email notification disabled <<< ... done with django.setup() 3) Executing CoGInstall... Initialized CoG settings from file: /usr/local/cog/cog_config/cog_settings.cfg Operations to perform: Apply all migrations: admin, auth, captcha, cog, contenttypes, django_comments, django_openid_auth, sessions, sites Running migrations: No migrations to apply. Updated current site: name=ESGF-DEV2.LLNL.GOV domain=esgf-dev2.llnl.gov Updating list of CoG sites from: /esg/config/esgf_cogs.xml (delete: False) Updating site domain: www.earthsystemcog.org name: CoG-CU Created site: www.earthsystemcog.org Peer site: CoG-CU Updating site domain: esgf-node.llnl.gov name: ESGF@DOE/LLNL Created site: esgf-node.llnl.gov Peer site: ESGF@DOE/LLNL Updating site domain: esgf-node.jpl.nasa.gov name: ESGF@NASA/JPL Created site: esgf-node.jpl.nasa.gov Peer site: ESGF@NASA/JPL Updating site domain: esgf.nccs.nasa.gov name: ESGF@NASA/NCCS Created site: esgf.nccs.nasa.gov Peer site: ESGF@NASA/NCCS Updating site domain: esgf.esrl.noaa.gov name: ESGF@NOAA/ESRL Created site: esgf.esrl.noaa.gov Peer site: ESGF@NOAA/ESRL Updating site domain: esgdata.gfdl.noaa.gov name: ESGF@NOAA/GFDL Created site: esgdata.gfdl.noaa.gov Peer site: ESGF@NOAA/GFDL Updating site domain: esgf.nci.org.au name: ESGF@NCI Created site: esgf.nci.org.au Peer site: ESGF@NCI Updating site domain: esgf-data.dkrz.de name: ESGF@DKRZ Created site: esgf-data.dkrz.de Peer site: ESGF@DKRZ Updating site domain: esgf-node.ipsl.upmc.fr name: ESGF@IPSL Created site: esgf-node.ipsl.upmc.fr Peer site: ESGF@IPSL Updating site domain: esg-dn1.nsc.liu.se name: ESGF@NSC/LIU Created site: esg-dn1.nsc.liu.se Peer site: ESGF@NSC/LIU Updating site domain: esgf-index1.ceda.ac.uk name: ESGF@CEDA Created site: esgf-index1.ceda.ac.uk Peer site: ESGF@CEDA Updating site domain: esg.pik-potsdam.de name: ESGF@PIK Created site: esg.pik-potsdam.de Peer site: ESGF@PIK <<< ...done with CoGInstall Initialized CoG settings from file: /usr/local/cog/cog_config/cog_settings.cfg Using DEBUG=False ALLOWED_HOSTS=['localhost'] Using IdP whitelist(s): None Using list of known Identity Providers: None Using list of ESGF/CoG peer nodes from: None Production server flag=False

William-Hill commented 6 years ago

The cog_settings file was getting overwritten by CoG in esg_cog.py that's part of ESGF 3.0. So it wasn't a problem with the actual CoG code. Closing