Troubleshooting SmartMet Server Installation (Docker) - skaija/susan-testing GitHub Wiki
Table of Contents
- Table of Contents
- Querydata engine does not work
- Customizing proxy settings
- TimeSeries plugin does not work
Querydata engine does not work
When trying to test the container, the query below does not return anything and gives no error message either:
http://hostname:8080/admin?what=qengine
Note: Replace hostname with your host machine name, by localhost or by host-ip. This depends on where you have the container you are using.
- Review file querydata.conf
$ less querydata.conf
You will see something like this:
verbose = true;
# Note: order is significant
producers =
[
"hirlam_europe_surface"
# "hirlam-knmi_europe_surface",
# "icon_world_surface",
# "icon_world_pressure",
# "gfs_world_surface",
# "gfs_world_pressure",
# "gem_world_surface",
# "gem_world_pressure",
# "gensavg_world_surface",
# "gensctrl_world_surface",
# "hbm-fmi"
];
// types: grid, points
// leveltypes: surface, pressure, model
hirlam_europe_surface:
{
alias = "hirlam";
directory = "/smartmet/data/hirlam/eurooppa/pinta/querydata";
pattern = ".*_hirlam_eurooppa_pinta\.sqd$";
forecast = true;
type = "grid";
leveltype = "surface";
refresh_interval_secs = 60;
number_to_keep = 4;
multifile = true;
};
hirlam_europe_pressure:
{
alias = "hirlam_pressure";
directory = "/smartmet/data/hirlam/pressure";
pattern = ".*_hirlam_europe_pressure\.sqd$";
forecast = true;
type = "grid";
leveltype = "pressure";
refresh_interval_secs = 60;
number_to_keep = 2;
};
hirlam-knmi_europe_surface:
{
alias = "hirlam-knmi";
directory = "/smartmet/data/hirlam-knmi/surface";
etc...
- Go inside the container.
$ docker exec -i -t contaner_id /bin/bash
-
Check if the directory paths of each producer in the container are the same as in the configuration file. If they are not the same modify the querydata.conf on your host machine to match the container directory structure.
-
Retest the issue
Customizing proxy settings
- Review steps defined at docker docs under "Control and configure Docker with systemd / HTTP/HTTPS proxy":
https://docs.docker.com/engine/admin/systemd/
TimeSeries plugin does not work
When trying to test the plugin, the query returns error messages only.
- Run for example the following request to fetch the temperature forecasted for the city of Helsinki:
http://hostname:8080/timeseries?format=debug&place=Helsinki¶m=name,time,temperature
Note: Replace hostname with your host machine name, by localhost or by host-ip. This depends on where you have the container you are using.
It returns errors like below:
-
Make sure that the FmiNames database is available in your docker installation and file geonames.conf has been configured correctly. You should have a separate docker-image fmidev/fminames-noreplicate.
-
Add the missing setups and retest the issue