Hello everyone, i am trying to install a docker container to run the Owntracks Recorder program in HTTP mode.
Owntracks recorder is a program that can be used to log GPS data from the Owntracks application in both MQTT or HTTP modes.
Here you can find the offical Docker image https://hub.docker.com/r/owntracks/recorder
I have tried different configuration but none of them worked. This is how i configured the docker container.
I created three folders on a share:
- /mnt/user/software/OwnTracks/Logs
- /mnt/user/software/OwnTracks/Config
- /mnt/user/software/OwnTracks/Storage
Inside the COnfig folder i placed the configuration file of Owntracks recorder. This is the configuration:
#(@)ot-recorder.default
#
# Specify global configuration options for the OwnTracks Recorder
# and its associated utilities to override compiled-in defaults.
# Lines beginning with # are comments
# *** In libconfig versions < 1.4 a trailing semicolon is mandatory
# -----------------------------------------------------
# Storage directory
#
OTR_STORAGEDIR="/mnt/user/software/OwnTracks/Storage"
# -----------------------------------------------------
# Address or hostname of the MQTT broker
#
OTR_HOST="192.168.1.250"
# -----------------------------------------------------
# Port number of the MQTT broker. Defaults to 1883.
# MQTT can be disabled by setting this to 0.
#
OTR_PORT=0
# -----------------------------------------------------
# Username for the MQTT connection
#
# OTR_USER=""
# -----------------------------------------------------
# Password for the MQTT connection
#
# OTR_PASS=""
# -----------------------------------------------------
# QoS for MQTT connection
#
# OTR_QOS=2
# -----------------------------------------------------
# MQTT clientid (default is constant+hostname+pid)
#
# OTR_CLIENTID=""
# -----------------------------------------------------
# Path to PEM-encoded CA certificate file for MQTT (no default)
# OTR_CAFILE=""
# -----------------------------------------------------
# Address for the HTTP module to bind to (default: localhost)
#
OTR_HTTPHOST="192.168.1.250"
# -----------------------------------------------------
# Port number for the HTTP module to bind to (default: 8083)
#
OTR_HTTPPORT=8083
# -----------------------------------------------------
# optional path to HTTP directory in which to store
# access log. Default is to not log access
OTR_HTTPLOGDIR="/mnt/user/software/OwnTracks/Logs"
# -----------------------------------------------------
# API key for reverse-geo lookups
#
# OTR_GEOKEY=""
# -----------------------------------------------------
# Reverse geo precision
#
# OTR_PRECISION=7
# -----------------------------------------------------
# Browser API key for Google maps
#
# OTR_BROWSERAPIKEY=""
# -----------------------------------------------------
# List of topics for MQTT to subscribe to, blank separated in a string
#
# OTR_TOPICS="owntracks/#"
The docker container has the following configuration, it basically links the 8083 port and the storage folders.
docker run
-d
--name='Rec'
--net='bridge'
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_CONTAINERNAME="Rec"
-l net.unraid.docker.managed=dockerman
-p '8083:8083/tcp'
-v '/mnt/user/software/OwnTracks/Config':'/config':'rw' 'owntracks/recorder'
Now when i start the container and connects to the console i get two lines that says:
Error: Address not available
Error: Address not available
** Press ANY KEY to close this window **
Can you pleas help me to figure out what is wrong with this configuration? Thanks!