# DiyHue errors on mulitiple instances

**URL:** <https://diyhue.discourse.group/t/diyhue-errors-on-mulitiple-instances/744>\
**Category:** Support\
**Tags:** firmware, diyhue\
**Created:** [July 7, 2024, 7:15pm UTC](https://diyhue.discourse.group/t/diyhue-errors-on-mulitiple-instances/744 "2024-07-07T19:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justdigit1](https://yyz2.discourse-cdn.com/free1/user_avatar/diyhue.discourse.group/justdigit1/32/195_2.png) [@Justdigit1](https://diyhue.discourse.group/u/Justdigit1)\
**Post date:** [July 7, 2024, 7:15pm UTC](https://diyhue.discourse.group/t/diyhue-errors-on-mulitiple-instances/744/1 "2024-07-07T19:15:43Z")

</div>

I have some trouble to re-install DiyHue. I had it running on a VM via Docker.  
I wanted to re-install so i removed container etc etc . That didnt work. It gives the same error messages as here.

To my surprise i can also use it with home assistant ( i didnt know) so i thought this should be better but the same error codes.

Searched Google bur couldnt find something.

> Blockquote  
> 024-07-07 21:08:44,708 - services.updateManager - INFO - swversion number update from Philips, old: 1962154010 new:1965053020  
> 2024-07-07 21:08:44,834 - services.updateManager - INFO - creation\_time diyHue : 2024-07-07 19  
> 2024-07-07 21:08:44,835 - services.updateManager - INFO - publish\_time diyHue : 1970-01-01 00:00:00.000000000 +0100  
> 2024-07-07 21:08:44,949 - services.updateManager - INFO - creation\_time UI : 2024-07-07 19  
> Traceback (most recent call last):  
> File “/opt/hue-emulator/HueEmulator3.py”, line 115, in   
> updateManager.startupCheck()  
> File “/opt/hue-emulator/services/updateManager.py”, line 104, in startupCheck  
> githubCheck()  
> File “/opt/hue-emulator/services/updateManager.py”, line 56, in githubCheck  
> elif githubUICheck() == True:  
> File “/opt/hue-emulator/services/updateManager.py”, line 85, in githubUICheck  
> logging.info(“publish\_time UI : " + str(publish\_time))  
> UnboundLocalError: local variable ‘publish\_time’ referenced before assignment  
> Exception ignored in: \<function Group. **del** at 0x7fa97d9dc0\>  
> 2024-07-07 21:08:45,069 - HueObjects - INFO - Daylight sensor was destroyed.  
> Traceback (most recent call last):  
> File “/opt/hue-emulator/HueObjects/ **init**.py”, line 1051, in **del**  
> ImportError: sys.meta\_path is None, Python is likely shutting down  
> — Logging error —  
> Traceback (most recent call last):  
> File “/usr/local/lib/python3.8/logging/handlers.py”, line 69, in emit  
> if self.shouldRollover(record):  
> File “/usr/local/lib/python3.8/logging/handlers.py”, line 183, in shouldRollover  
> self.stream = self.\_open()  
> File “/usr/local/lib/python3.8/logging/ **init**.py”, line 1172, in \_open  
> return open(self.baseFilename, self.mode, encoding=self.encoding)  
> NameError: name ‘open’ is not defined  
> Call stack:  
> File “/opt/hue-emulator/HueObjects/ **init**.py”, line 1755, in **del**  
> logging.info(self.name + " sensor was destroyed.”)  
> Message: ‘Daylight sensor was destroyed.’  
> Arguments: ()  
> [cmd] ./run.sh exited 1  
> [cont-finish.d] executing container finish scripts…  
> [cont-finish.d] 99-message.sh: executing…

EDIT:

The webpage is online now… but in the diyhue webpage the discovery button is not switching to on…hue app cant find the instancE?

---

<div class="post-metadata">

**Author:** ![Justdigit1](https://yyz2.discourse-cdn.com/free1/user_avatar/diyhue.discourse.group/justdigit1/32/195_2.png) [@Justdigit1](https://diyhue.discourse.group/u/Justdigit1)\
**Post date:** [July 9, 2024, 7:01pm UTC](https://diyhue.discourse.group/t/diyhue-errors-on-mulitiple-instances/744/2 "2024-07-09T19:01:38Z")

</div>

Sometimes the webpages start…but after two or three restarts it fails.

Problem is solved in Github
