Closed Refferic closed 1 year ago
Can you please show us the output Recorder should be producing on the console?
Can you please show us the output Recorder should be producing on the console?
When I'm starting the docker-compose up this is the output in the console.
Creating network "owntracks_owntracks_internal" with the default driver
Creating owntracks_mqtt ... done
Creating owntracks_recorder ... done
Creating owntracks_webserver ... done
Attaching to owntracks_mqtt, owntracks_recorder, owntracks_webserver
Via MQTT Explorer, I can see that the _owntracksmqtt docker container functions and receives the information from my phone app.
And the _owntracksrecorder log in Portainer shows: No log line matching the '' filter
, concluding that there is no information getting placed into the log.
I'm need the output which is produced when the Recorder (ot-recorder) starts up. It ought to begin like this:
ot-recorder[53435] <Debug>: version 0.9.3 starting with STORAGEDIR=
...
Hmm, I don't seem to be able to add the --debug
option to my docker-compose.yml file.
Bingo!
I've used the image: vimagick/ot-recorder
to change up the test, since the image: owntrakcs/recorder
didn't give me a debug output. However, the vimagick image did give me a debug!
Debug
owntracks_recorder | ot-recorder[1]: gcache_open: mdb_env_open: Permission denied
owntracks_recorder | ot-recorder[1]: Can't initialize gcache in /store/ghash
owntracks_recorder exited with code 1
owntracks_recorder | ot-recorder[1]: version 0.9.0 starting with STORAGEDIR=/store
owntracks_recorder | ot-recorder[1]: gcache_open: mdb_env_open: Permission denied
owntracks_recorder | ot-recorder[1]: Can't initialize gcache in /store/ghash
owntracks_recorder exited with code 1
owntracks_recorder exited with code 1
Fixed by adding :rw
to the storages and chmod 777 -R /storage
in Ubuntu, so all folders are accessible.
After that, I received the next error-message, a typo in the docker-compose.yml
environment:
- OTR_HTTPHOST=0.0.0.0
- OTR_HOST=192.168.1.100
- OTR_POST=1884
Changed OTR_POST
to OTR_PORT
and it all worked perfectly!
Glad to hear you got it going, and thanks for reporting back.
If you can, at some later time, see if you can adjust the directory permissions: 777 invariably gives me ulcers ;) (Honestly, that’s too open.)
Glad to hear you got it going, and thanks for reporting back.
If you can, at some later time, see if you can adjust the directory permissions: 777 invariably gives me ulcers ;) (Honestly, that’s too open.)
Yeah I know, 755 would be more appropriate, however, that doesn't seem to work. 777 is the only one that seems to work at my end. But I'll try to find a solution for my problem!
Dear sir, madam,
I've got a question, because it doesn't matter what old solution I try to incorporate, the recorder doesn't seem to "fetch" the data from the MQTT and populate the website with the recording points.
I use Traefik2, but primarily in combination with the frontend website. Which, due to the fact that the recorder doesn't receive any data, also doesn't show any information.
Can someone point me in the right direction? The logs (in Portainer) are also empty, so that's something that I also can't utilize at the moment.
The part of my docker-compose.yml file that I use: