-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker: ocat --list error "Cannot open requested directory" #258
Comments
I don't see an |
I updated the formating of the console output. There the requested output:
Looking at all paths/files, only the htdocs folder is not writable:
|
My docker knowlege is minimal, so I really can't follow what's happening here. What I would do is to try and launch the Recorder ( The resulting data will be put in a file called |
I can try to debug the Docker container. But I'm not familiar with Mosquitto and Recorder so far. But I want to use it. :-) I tried to have a look at the Recorder console, however I needed to start a second instance for the test on a different port:
As far as I can see, this should be the same output as seen with I am not sure if the syntax is correct, but this does not return output, too:
When I run the test, I can see these log outputs.
BTW: I had now created the /owntracks/recorder/store/rec/ folder inside of the container and set the permission. No content in the folder after this test. But the I assume that ocat just had a problem that Recorder had not yet received any data. I noticed that there are messages that might state an error, but I cannot understand right now what this error means. Perhaps I can dig into the code later. |
Okay, I caused the MDB_BAD_RSLOT errors by spinning up the second recorder instance. That means, that Recorder does not get/read any data from Mosquitto. Da regular run does not show any activity from Recorder beside the POST requests seen in the log, what appears to be a ping.
As of the folder has been created in the Docker volume it's still there after the restart and ocat still does not show any users.
|
|
The username did not only confuse you, me too. I just understand why. A topic is owntracks because of the software, slash username (chosen like the software), slash device name. Neither
nor
Does return any output. If these calls are correct, the problem is Mosquitto related? At least these log output is generated, when I publish my position:
|
I think it's time for you to study a bit of our Booklet ... Try:
|
There is no output from
Next up: tear down Docker volume and start from scratch. Do you recommend something special from the Booklet. I already read as far as I know all pages regarding the setup. |
Digging deeper into Mosquitto, I assume an ACL issue. I wrote a new ACL file:
Is it possible that the default ACL file would not allow Recorder access? I have changed the ot-recorder config in /etc/default/ot-recorder, too and added OTR_USER:
I restarted the Docker container and I get a not expected OTR_USER in the logs:
Ist the OTR_USER |
This works:
Output as soon as I publish my position. So it's a problem with the ACL file and/or Recorder using the wrong user? |
Got it. Updated
When using this ACL file
Plus
And created two accounts, one for the recorder and one for the iPhone.
I am now just seeing OVER_QUERY_LIMIT errors. Will check if there is something in the Booklet, too. |
|
Is it correct, that the Docker container does not support OpenCage? At least I was not able to find the LUA file in the image. The Recorder maps are already OSM, so no need to change that. :-) Would it be useful to add additonal setup instructions to the Docker image? E.g. an extended ACL file, instructions how to setup passwords and how to activate OpenCage (and perhaps add the LUA scripts per default?) Finally I need to say, that I was able to track my way home today and I liked it to see it in Recorder. :-) |
The docker image is indeed slightly older, and yes: documentation improvements are always welcome. The issue you reference is probably the place to start. |
Are there any guidelines how to contribute? I'd fork the project, make a doc and a dev branch and then try to improve. Then PR and hope to get reviewed? |
Okay, there is a lua versioning problem. The Docker container uses lua 5.2. The luarocks call installs something, that needs to be fixed for 5.2 usage as mentioned here: mpx/lua-cjson#54 |
This is no longer the place to discuss this. Please take it to the recorderd repository. |
I used docker compose to setup a container running Mosquitto because I did not manage to use the Ubuntu Xenial package due to a systemD bug. Mosquitto did not start from systemctl, it just worked when staring direct on console.
However, I used this docker-compose.yml to fire up the container:
I noticed that Recorder shows nothing in the GUI. According to the documentation I tried to use ocat to list all known users to start debugging the issue. The call failed, which might explain why Recorder shows nothing.
These are the file system permissions as seen in the container:
And these are the file system permissions as seen from the host system:
Any ideas how to debug the problem further?
The text was updated successfully, but these errors were encountered: