Thanks a lot for the product it looks very promising.
I’ve start my journey with balenalabs / balena-sense guided by https://www.balena.io/blog/build-an-environment-and-air-quality-monitor-with-raspberry-pi and had no issues to push the code to my Raspberry Pi. In a while all services were downloaded and installation was kicked off.
But only grafana and mqtt were started. the others are still displayed as Downloaded.
There are no logs for influxdb.
Telegraph expectedly fails as can’t connect to Influx:
14.03.20 19:06:17 (+0100) telegraf 2020-03-14T18:06:17Z W! [outputs.influxdb] when writing to [http://influxdb:8086]: database “balena-sense” creation failed: Post http://influxdb:8086/query: dial tcp 172.17.0.4:8086: connect: connection refused
14.03.20 19:06:20 (+0100) telegraf 2020-03-14T18:06:20Z E! [inputs.http] Error in plugin: [url=http://sensor]: Get http://sensor: dial tcp 172.17.0.5:80: connect: connection refused
Sensor logs say:
14.03.20 19:06:26 (+0100) sensor ================ Starting Balena Sense ================
14.03.20 19:07:02 (+0100) sensor Enviro Plus hat not found
14.03.20 19:07:03 (+0100) sensor Sensor HTTP server running
14.03.20 19:07:10 (+0100) sensor 172.17.0.6 - - [14/Mar/2020 18:07:10] “GET / HTTP/1.1” 200 -
14.03.20 19:07:10 (+0100) sensor ----------------------------------------
14.03.20 19:07:10 (+0100) sensor Exception happened during processing of request from (‘172.17.0.6’, 42606)
14.03.20 19:07:10 (+0100) sensor Traceback (most recent call last):
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/socketserver.py”, line 313, in _handle_request_noblock
14.03.20 19:07:11 (+0100) sensor self.process_request(request, client_address)
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/socketserver.py”, line 341, in process_request
14.03.20 19:07:11 (+0100) sensor self.finish_request(request, client_address)
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/socketserver.py”, line 354, in finish_request
14.03.20 19:07:11 (+0100) sensor self.RequestHandlerClass(request, client_address, self)
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/socketserver.py”, line 681, in init
14.03.20 19:07:11 (+0100) sensor self.handle()
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/http/server.py”, line 422, in handle
14.03.20 19:07:11 (+0100) sensor self.handle_one_request()
14.03.20 19:07:11 (+0100) sensor File “/usr/local/lib/python3.5/http/server.py”, line 410, in handle_one_request
14.03.20 19:07:11 (+0100) sensor method()
14.03.20 19:07:11 (+0100) sensor File “/usr/src/app/scripts/sensor.py”, line 118, in do_GET
14.03.20 19:07:11 (+0100) sensor measurements = balenasense.sample()
14.03.20 19:07:11 (+0100) sensor File “/usr/src/app/scripts/sensor.py”, line 90, in sample
14.03.20 19:07:11 (+0100) sensor return self.apply_offsets(self.sensor.get_readings(self.sensor))
14.03.20 19:07:11 (+0100) sensor AttributeError: ‘balenaSense’ object has no attribute ‘sensor’
14.03.20 19:07:11 (+0100) sensor ----------------------------------------
Can you please suggest how these can be fixed?
I’ve tried to reboot device and re-push the code. Still the same.
I’m running application: 638f5fb841786ade699164d1d38707da
with balenaOS 2.46.1+rev1 on Raspberry Pi1B
balena-sense 1.9.0