June 23, 20233 yr 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!
June 24, 20233 yr Author Solution I solved the problem, the docker configuration was wrong. Here there's the right one. The configuration file is not necessary anymore with this simple configuration. docker run -d --name='Rec' --net='bridge' --privileged=true -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e HOST_CONTAINERNAME="Rec" -e 'OTR_PORT'='0' -l net.unraid.docker.managed=dockerman -p '8083:8083/tcp' -v '/mnt/user/software/OwnTracks/Storage/':'/store':'rw' -v '/mnt/user/software/OwnTracks/Logs/':'/log':'rw' 'owntracks/recorder' Also, on the mobile device all the HTTP request must be submitted to the /pub endpoint. Edited June 24, 20233 yr by ziopimpi
January 6, 20242 yr Hi i just installed the Unraid Docker OwnstracksRecorder and have Owntracks on my Samsung phone both running in http, in my log file for OwnstracksRecorder in Unraid I'm getting these errors below. Is there something I'm missing in the configurations. I'm trying to link it with my app and Hubitat as a presence device which is working fine on that end but missing something in docker. These are the instruction in the Hubitat app For user cards to be used in the recorder, a JSON user card needs to be saved to: 'STORAGEDIR/cards/USER/USER.json' on the recorder, where 'USER' is the member name. Enable debug logging for the OwnTracks app, trigger a manual location, and save the JSON from the debug message of: 'OwnTracks: For recorder cards, save this JSON to 'STORAGEDIR/cards/...' to a file named 'USER.json'. Or use Generate OwnTracks User Card to create and save the JSON card to be stored in the above folder. Log file from Unraid Docker: + version 0.9.6 starting with STORAGEDIR=/store + Not using MQTT: disabled by port=0 + HTTP listener started on 0.0.0.0:8083, without browser-apikey + HTTP prefix is unset + Using storage at /store with precision 7 + http: GET /api/0/last /store/last: No such file or directory + http: GET /static/apikey.js /store/last: No such file or directory + http: GET /api/0/last /store/last: No such file or directory + http: GET /api/0/last /store/last: No such file or directory + version 0.9.6 starting with STORAGEDIR=/store + Not using MQTT: disabled by port=0 + HTTP listener started on 0.0.0.0:8083, without browser-apikey + HTTP prefix is unset + Using storage at /store with precision 7 Edited January 6, 20242 yr by Lou
January 12, 20242 yr On 6/24/2023 at 1:24 PM, ziopimpi said: I solved the problem, the docker configuration was wrong. Here there's the right one. The configuration file is not necessary anymore with this simple configuration. docker run -d --name='Rec' --net='bridge' --privileged=true -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e HOST_CONTAINERNAME="Rec" -e 'OTR_PORT'='0' -l net.unraid.docker.managed=dockerman -p '8083:8083/tcp' -v '/mnt/user/software/OwnTracks/Storage/':'/store':'rw' -v '/mnt/user/software/OwnTracks/Logs/':'/log':'rw' 'owntracks/recorder' Also, on the mobile device all the HTTP request must be submitted to the /pub endpoint. So I just downloaded and installed the docker, can you elaborate on the settings you show and where I enter in the info? And are you just using you external IP address or using an cname?
January 14, 20242 yr Hi thanks for the reply I set it up about the same as you posted it works for a while but then on its own goes into an error : warnOwnTracks: OwnTracks HTTP response: 408, with error: Unknown Exception. This show in Hubitat Owntracker and recorder does not connect any longer. it's external IP screen shot of my configuration. Edited January 14, 20242 yr by Lou
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.