# Enviro indoor - failed to update to adafruit.io

**URL:** <https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836>\
**Category:** Support\
**Created:** [November 29, 2022, 12:07am UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836 "2022-11-29T00:07:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![placebo83](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/placebo83/32/6800_2.png) [@placebo83](https://forums.pimoroni.com/u/placebo83)\
**Post date:** [November 29, 2022, 12:07am UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/1 "2022-11-29T00:07:57Z")

</div>

My Enviro indoor worked fine in the beginning, uploading all the data to [adafruit.io](http://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?

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [November 29, 2022, 9:48am UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/2 "2022-11-29T09:48:39Z")

</div>

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!

> **[Release v0.0.9 · pimoroni/enviro](https://github.com/pimoroni/enviro/releases/tag/v0.0.9)**
>
> This alpha release aims to fix many of the issues experienced with v0.0.8 over the past months, particularly with the Enviro Weather board.
> To do this we went back to v0.0.2, as this was reported t...

---

<div class="post-metadata">

**Author:** ![placebo83](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/placebo83/32/6800_2.png) [@placebo83](https://forums.pimoroni.com/u/placebo83)\
**Post date:** [November 29, 2022, 5:07pm UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/3 "2022-11-29T17:07:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![placebo83](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/placebo83/32/6800_2.png) [@placebo83](https://forums.pimoroni.com/u/placebo83)\
**Post date:** [December 5, 2022, 8:47pm UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/4 "2022-12-05T20:47:35Z")

</div>

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](http://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](http://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.

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [December 7, 2022, 11:01am UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/5 "2022-12-07T11:01:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![placebo83](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/placebo83/32/6800_2.png) [@placebo83](https://forums.pimoroni.com/u/placebo83)\
**Post date:** [December 7, 2022, 12:03pm UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/6 "2022-12-07T12:03:39Z")

</div>

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](http://adafruit.io) was easier for me :)

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [December 7, 2022, 12:44pm UTC](https://forums.pimoroni.com/t/enviro-indoor-failed-to-update-to-adafruit-io/20836/7 "2022-12-07T12:44:09Z")

</div>

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](https://github.com/pimoroni/enviro/issues)
