NSF Unidata's EDEX install also comes with a [simple **`edex`** program](#edex-commands) that can help execute basic EDEX utilities. The most basic of the commands are the following:
These commands will start and stop five EDEX service files installed into **/etc/init.d/**, four of which are run on boot:
service postgres start
service httpd-pypies start
service qpidd start
service edex_camel start
The fifth, `edex_ldm`, does **not run at boot** to prevent filling up disk space if EDEX is not running:
service edex_ldm start
All of these services are started and stopped by the single program: `edex` as mentioned above.
### LDM Troubleshooting
If the EDEX machine is shut down abruptly, when restarted, it should start up the processes mentioned [above](#service-and-boot-settings). If `sudo service edex_ldm start` does not start up LDM smoothly, please try these steps:
!!! note "All of the following commands should be run as user *awips* and the `service` commands may need to be run with `sudo`."
- Run `sudo service edex_ldm start` or `ldmadmin start` and recieve this message:
ldmadmin start
start_ldm(): PID-file "/awips2/ldm/ldmd.pid" exists. Verify that all
is well and then execute "ldmadmin clean" to remove the PID-file.
- Run `ldmadmin clean` and `sudo service edex_ldm start` and receive this error:
ldmadmin clean
sudo service edex_ldm start
Checking the product-queue...
The writer-counter of the product-queue isn't zero. Either a process
has the product-queue open for writing or the queue might be corrupt.
[edit] Hostname edex.unidata.ucar.edu added to /awips2/ldm/etc/ldmd.conf
[done]
This command configures and/or confirms that the EDEX hostname and IP address definitions exist (`edex setup` is run by `edex start`).
> **Note**: If your EDEX server is running but you see the message **"Connectivity Error: Unable to validate localization preferences"** in CAVE, it may mean that the domain name defined in **/awips2/edex/bin/setup.env** can not be resolved from *outside* the server. Some machines have different *internally-resolved* and *externally-resolved* domain names (cloud-based especially). The name defined in **setup.env** must be *externally-resolvable*.
---
### edex log
edex log
[edex] EDEX Log Viewer
:: No log specified - Defaulting to ingest log
:: Viewing /awips2/edex/logs/edex-ingest-20151209.log. Press CTRL+C to exit
INFO [Ingest.binlightning-1] /awips2/data_store/SFPA42_KWBC_091833_38031177.2015120918 processed in: 0.0050 (sec) Latency: 0.0550 (sec)
INFO [Ingest.obs-1] /awips2/data_store/metar/SAIN31_VABB_091830_131392869.2015120918 processed in: 0.0810 (sec) Latency: 0.1800 (sec)
More edex logs...
edex log grib
edex log request
edex log ldm
edex log radar
edex log satellite
edex log text
---
### edex qpid
Shows a list of the the Qpid message queue to monitor data ingest (messages in vs messages out, i.e. decoded):