Re: [awips2-users] Viewing Archived Gempak Model Files in NCP

How this works is that unless running in thin client mode,  EDEX and CAVE need 
to resolve the server names defined in  /awips2/edex/bin/setup.env to addresses 
that work on the respective hosts:

BROKER_ADDR
PYPIES_SERVER
HTTP_SERVER
JMS_SERVER

These variables are used both by EDEX and transmitted to CAVE at startup.  For 
example if:
export PYPIES_SERVER=http://foo.invalid:9582

then both EDEX and CAVE hosts need to resolve foo.invalid to something 
reachable on port 9582. If the internal and external addresses on the EDEX 
server are different, then you will need to alias foo.invalid to internal IP 
address on the EDEX server  OR create a hosts entry on the CAVE client for 
foo.invalid to be the external IP of the EDEX.   While the Unidata install 
automatically sets these variables  to the hostname, you can edit them by hand 
and restart edex if that’s more convenient.

If you are paranoid, you can also set ‘export DB_ADDR=localhost’ and then 
remove non-localhost entries from /awips2/data/pg_hba.conf as CAVE does not 
access the db host directly.

--
Erik Magnuson, ENSCO Inc. 321-866-0217


From: awips2-users-bounces@xxxxxxxxxxxxxxxx 
[mailto:awips2-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Michael James
Sent: Tuesday, August 26, 2014 2:54 PM
To: weather01089
Cc: awips2-users@xxxxxxxxxxxxxxxx
Subject: Re: [awips2-users] Viewing Archived Gempak Model Files in NCP

On Azure and EC2 cloud instances, for example, `hostname` is not a fully 
qualified name by default.  The following steps are required to get EDEX to 
work on such a system:

* in /etc/sysconfig/network:

HOSTNAME=miniload3.cloudapp.net<http://miniload3.cloudapp.net>
NETWORKING=yes

* in /etc/hosts

10.79.24.5  miniload3.cloudapp.net<http://miniload3.cloudapp.net>

where 10.79.24.5 is the *internal* IP address.  the goal here is that from 
within the server, the fully qualified domain name can be DNS resolved to the 
internal IP adress, while outside the server the name is resolved to the 
external IP address.



Michael James
Unidata Program Center
Boulder, CO

On Tue, Aug 26, 2014 at 12:21 PM, <admin@xxxxxxxx<mailto:admin@xxxxxxxx>> wrote:

I had to explicitly add the hostname to IP in the /etc/hosts file to fix this.



IE

awips2-edex                   10.16.1.2



That fixed that issue



Ray





On Tuesday, August 26, 2014 2:13pm, 
wxprofessor@xxxxxxxxx<mailto:wxprofessor@xxxxxxxxx> said:


Be sure that hostname is defined as a fully-qualified domain name, and that 
your DNS can resolve the correct internal IP address, and that this IP is the 
one used in /awips2/edex/bin/setup.env. If not, then you can force the correct 
internal IP with an entry to /etc/hosts.  Check IP address found with nslookup 
and ifconfig as well.

please provide a sample of forcing the correct entry into /etc/hosts   ... it 
is still hanging.. looking at me.. and mocking me! lol :)



_______________________________________________
awips2-users mailing list
awips2-users@xxxxxxxxxxxxxxxx<mailto:awips2-users@xxxxxxxxxxxxxxxx>
For list information, to unsubscribe, or change your membership options, visit: 
http://www.unidata.ucar.edu/mailing_lists/


________________________________
The information contained in this email message is intended only for the use of 
the individual(s) to whom it is addressed and may contain information that is 
privileged and sensitive. If you are not the intended recipient, or otherwise 
have received this communication in error, please notify the sender immediately 
by email at the above referenced address and note that any further 
dissemination, distribution or copying of this communication is strictly 
prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology 
originating in the United States. This includes the electronic transmission of 
information and software to foreign countries and to certain foreign nationals. 
Recipient agrees to abide by these laws and their regulations -- including the 
U.S. Department of Commerce Export Administration Regulations and the U.S. 
Department of State International Traffic in Arms Regulations -- and not to 
transfer, by electronic transmission or otherwise, any content derived from 
this email to either a foreign national or a foreign destination in violation 
of such laws.
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the awips2-users archives: