Enviro indoor - failed to update to adafruit.io

My Enviro indoor worked fine in the beginning, uploading all the data to adafruit.io, until the red led started to blink, and the upload stopped. I re-installed the v 0.0.8 UF2 file and everything worked again as before. Until after a quite short time the same error came back.

So I checked the log and found the following information:

2022-11-21 07:05:00 [debug / 114kB] - reset
2022-11-21 07:05:02 [debug / 115kB] > performing startup
2022-11-21 07:05:02 [info / 127kB] - wake reason: unknown
2022-11-21 07:05:02 [debug / 125kB] - turn on activity led
2022-11-21 07:05:03 [info / 119kB] > 2 cache files need uploading
2022-11-21 07:05:03 [info / 117kB] > connecting to wifi network ‘basecamp#99’
2022-11-21 07:05:05 [debug / 111kB] - connecting
2022-11-21 07:05:08 [info / 97kB] - ip address: 192.168.1.139
2022-11-21 07:05:12 [info / 104kB] - uploaded 2022-11-21T07:00:03Z.json to adafruit_io
2022-11-21 07:05:12 [info / 89kB] - uploaded 2022-11-21T07:05:03Z.json to adafruit_io
2022-11-21 07:05:12 [info / 87kB] > going to sleep
2022-11-21 07:05:12 [debug / 85kB] - clearing and disabling timer and alarm
2022-11-21 07:05:12 [info / 83kB] - setting alarm to wake at 07:10am
2022-11-21 07:05:13 [info / 124kB] - shutting down
2022-11-21 07:05:13 [debug / 122kB] - on usb power (so can’t shutdown) halt and reset instead
2022-11-21 07:10:00 [debug / 121kB] - reset
2022-11-21 07:10:02 [debug / 115kB] > performing startup
2022-11-21 07:10:02 [info / 127kB] - wake reason: unknown
2022-11-21 07:10:02 [debug / 125kB] - turn on activity led
2022-11-21 07:10:03 [info / 119kB] > 1 cache files need uploading
2022-11-21 07:10:03 [info / 117kB] > connecting to wifi network ‘basecamp#99’
2022-11-21 07:10:05 [debug / 111kB] - connecting
2022-11-21 07:10:08 [info / 97kB] - ip address: 192.168.1.139
2022-11-21 07:10:08 [error / 115kB] ! failed to upload ‘2022-11-21T07:10:02Z.json’ to adafruit_io
2022-11-21 07:10:08 [error / 113kB] ! reading upload failed
2022-11-21 07:10:08 [info / 111kB] > going to sleep
2022-11-21 07:10:08 [debug / 109kB] - clearing and disabling timer and alarm
2022-11-21 07:10:09 [info / 107kB] - setting alarm to wake at 07:15am
2022-11-21 07:10:09 [info / 105kB] - shutting down
2022-11-21 07:10:09 [debug / 102kB] - on usb power (so can’t shutdown) halt and reset instead

Does anybody have an idea what could be the problem?

Try updating to the new version of the firmware we released on Friday - we fixed a bunch of stuff and made logging more helpful, so it should be easier to see what’s going wrong!

Thanks a lot for the answer!
I updated my Enviro, uploading to adafruit.io works for now, let’s hope it stays like that. If I get the same error again I’ll post it here.

1 Like

So, it worked well with the 0.0.9 firmware, until this morning when I was in the room with the Enviro, the red LED was flashing. A fast check on adafruit.io showed me that it was already offline for 1 day. I pressed the button for a manual reading but the white led didn’t turn on, which it normally does when I press that button. I took it offline, connected it to my computer to check the log,txt in Thonny, but I got back following message:

Traceback (most recent call last):
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\tkinter_init_.py”, line 1921, in call
return self.func(*args)
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\site-packages\thonny\base_file_browser.py”, line 586, in on_double_click
self.open_file(path)
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\site-packages\thonny\base_file_browser.py”, line 1201, in open_file
get_workbench().get_editor_notebook().show_remote_file(path)
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\site-packages\thonny\editors.py”, line 1069, in show_remote_file
return self.show_file(make_remote_path(target_filename))
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\site-packages\thonny\editors.py”, line 1056, in show_file
self.select(editor)
File “C:\Users\Gebruiker\AppData\Local\Programs\Thonny\lib\tkinter\ttk.py”, line 885, in select
return self.tk.call(self._w, “select”, tab_id)
_tkinter.TclError: .!frame.!automaticpanedwindow.!automaticpanedwindow2.!editornotebook.!editor2 is not managed by .!frame.!automaticpanedwindow.!automaticpanedwindow2.!editornotebook

Then I started to main.py from Thonny, which left me with the following error:

2022-12-05 20:37:50 [debug / 122kB] > performing startup
2022-12-05 20:37:50 [exception / 116kB] ! Traceback (most recent call last):
File “”, line 32, in
File “enviro/init.py”, line 400, in startup
File “phew/phew/logging.py”, line 107, in debug
File “phew/phew/logging.py”, line 91, in log
File “phew/phew/logging.py”, line 60, in truncate
OSError: 84

Traceback (most recent call last):
File “”, line 86, in
File “enviro/init.py”, line 212, in exception
File “phew/phew/logging.py”, line 111, in exception
File “phew/phew/logging.py”, line 91, in log
File “phew/phew/logging.py”, line 60, in truncate
OSError: 84

FYI: the Enviro is USB powered, and reads the values as often as possible (I had it mind it was every 5 minutes) and uploads to adafruit.io after every reading. In the past I sometimes had in the log.txt a message that it couldn’t connect to my wifi but then uploaded it after the next reading. I used it in a plant growth science thingy, but there are never extreme levels of humidity or temperature which could harm the device.

Maybe somebody is willing to test these settings for themself to see if it’s reproducable.

I’ve not seen either of those errors before, sorry :(

The first one looks like a Thonny error - might be worth checking that your version of Thonny is up to date or trying from another computer?

Thanks for the reply! I already did a fresh setup with my Enviro with the same settings but uploading to MQTT and see how long it works that way. Now I only need to finish setting up the MQTT server, adafruit.io was easier for me :)

Ah, good stuff! Let us know on Github if you encounter any more issues - our Chris is working hard at squashing the remaining bugs: Issues · pimoroni/enviro · GitHub

1 Like