question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docker] No sensors found in configuration file "config.ini"

See original GitHub issue

Hi.

I’m trying to run the mqtt-daemon in docker.

Everything installed fine but when i run the docker i keep getting this error:

[2020-02-14 15:08:27] No sensors found in configuration file “config.ini”

In my docker compose file i have this line:

  - /data/miflora2mqtt/config.ini:/opt/miflora-mqtt-daemon/config.ini

So the config is stored in opt/miflora-mqtt-daemon/config.ini. When i copy this file back from the docker to my local hard drive i see the right config.ini In this file i have this:

[Sensors]

# Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
# Additional location information can be added to the name, delimited by an '@'.
# Scan for sensors from the command line with:
#    $ sudo hcitool lescan
#
# Examples:
#
Flower_1 = C4:7C:8D:6A:74:7F
Flower_2 = C4:7C:8D:6A:74:23
Flower_3 = C4:7C:8D:6B:1A:70

Do you have any idea what i can try?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CWempecommented, Feb 19, 2020

I would try to start the container witout the file or with a wrong path. So you know if you get another error like “config file not found” instead of “No sensors found”.

And you could replace your file with the example to see if you get something like “cannot connect to sensor”.

Just a little troubleshooting. 🤔

0reactions
ThomDietrichcommented, Apr 1, 2020

Hey, were you able to identify the cause of this error? Let us know and I’ll work on a mitigation or improvement of the documentation 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Emulator does not start with provided config.ini #242 - GitHub
Bug Report. Operating System: Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-46-generic x86_64). Docker Image: budtmo/docker-android-x86-9.0.
Read more >
docker compose prompted error: no configuration file provided
The problem was with docker-compose.yml file. I saved it from Visual Studio Code as a text file though OS determined it like a...
Read more >
Store configuration data using Docker Configs
Docker swarm service configs allow you to store non-sensitive information, such as configuration files, outside a service's image or running containers. This ...
Read more >
Configuration Docs - LibreNMS Docs
Configuration Docs. LibreNMS configuration is a set of key values. The config is stored in two places: Database: This applies to all pollers...
Read more >
Frequently Asked Questions — ESPHome
Can Configuration Files Be Recovered From The Device?¶. If you lost your ESPHome YAML configuration files, there's no way to recover them. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found