# Zawieszajaca sie bramka / problem z pm2?

**URL:** <https://ai-speaker.discourse.group/t/zawieszajaca-sie-bramka-problem-z-pm2/752>\
**Category:** Uncategorized\
**Created:** [30 Wrzesień 2020 06:22 UTC](https://ai-speaker.discourse.group/t/zawieszajaca-sie-bramka-problem-z-pm2/752 "2020-09-30T06:22:00Z")\
**Posts on this page:** 1\
**Showing post:** 48

<div class="post-metadata">

**Autor:** ![Tomasz](https://yyz2.discourse-cdn.com/free1/user_avatar/ai-speaker.discourse.group/tomasz/32/286_2.png) [@Tomasz](https://ai-speaker.discourse.group/u/Tomasz)\
**Data wpisu:** [12 Listopad 2020 17:09 UTC](https://ai-speaker.discourse.group/t/zawieszajaca-sie-bramka-problem-z-pm2/752/48 "2020-11-12T17:09:39Z")

</div>

Hmmm…  
Ostatnio po każdym ponownym uruchomieniu, bramka nie chce “wrócić”.  
Dopiero odcięcie zasilania lub pm2 restart ais przywraca dostęp przez przeglądarkę (tunnel i local).  
Mam stabilną wersje 0.116.6.  
Ostatnio co zmieniałem to tylko zapis do bazy Marian.db.  
HACS już jakiś czas temu wywaliłem.

![SharedScreenshot](https://global.discourse-cdn.com/free1/uploads/ai_speaker/original/2X/6/6c8fdf0bea16044110bb5dd12fdba12c99f51702.jpeg)

Pm2 status pokazuje, że wszystko jest OK ale mimo tego bramka nie działa przez przeglądarkę. FTP i SSH działa bez problemu

 ![SharedScreenshot](https://global.discourse-cdn.com/free1/uploads/ai_speaker/original/2X/d/d442b2d677bffe5db4f3dfa55a1fe5dafc10da2d.jpeg)

pm2 logs

```
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/data/data/pl.sviete.dom/files/home/.pm2/pm2.log last 15 lines:
PM2 | [2020-11-12 13:41:50] PM2 log: App name:mqtt id:2 online
PM2 | [2020-11-12 13:41:50] PM2 log: Starting execution sequence in -fork mode- for app name:ais id:3
PM2 | [2020-11-12 13:41:50] PM2 log: App name:ais id:3 online
PM2 | [2020-11-12 13:41:50] PM2 log: Starting execution sequence in -fork mode- for app name:zigbee id:4
PM2 | [2020-11-12 13:41:50] PM2 log: App name:zigbee id:4 online
PM2 | [2020-11-12 13:43:59] PM2 log: Stopping app:zigbee id:4
PM2 | [2020-11-12 13:43:59] PM2 log: pid=5577 msg=failed to kill - retrying in 100ms
PM2 | [2020-11-12 13:43:59] PM2 log: pid=5577 msg=failed to kill - retrying in 100ms
PM2 | [2020-11-12 13:43:59] PM2 log: pid=5577 msg=failed to kill - retrying in 100ms
PM2 | [2020-11-12 13:43:59] PM2 log: App [zigbee] with id [4] and pid [5577], exited with code [0] via signal [SIGINT]
PM2 | [2020-11-12 13:43:59] PM2 log: pid=5577 msg=process killed
PM2 | [2020-11-12 13:44:23] PM2 log: Starting execution sequence in -fork mode- for app name:tunnel id:5
PM2 | [2020-11-12 13:44:23] PM2 log: App name:tunnel id:5 online
PM2 | [2020-11-12 13:44:37] PM2 log: Starting execution sequence in -fork mode- for app name:zigbee id:6
PM2 | [2020-11-12 13:44:37] PM2 log: App name:zigbee id:6 online

```

pm2 logs ais

```
[TAILING] Tailing last 15 lines for [ais] process (change the value with --lines option)
3|ais | Login to Audi service failed, trying again in 10 seconds
3|ais | Update for media_player.philips_nowy fails
3|ais | Traceback (most recent call last):
3|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
3|ais | await self.async_device_update()
3|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 471, in async_device_update
3|ais | await self.hass.async_add_executor_job(self.update) # type: ignore
3|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.7/site-packages/homeassistant/core.py", line 350, in async_add_executor_job
3|ais | task = self.loop.run_in_executor(None, target, *args)
3|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.7/asyncio/base_events.py", line 747, in run_in_executor
3|ais | executor.submit(func, *args), loop=self)
3|ais | File "/data/data/pl.sviete.dom/files/usr/lib/python3.7/concurrent/futures/thread.py", line 163, in submit
3|ais | raise RuntimeError('cannot schedule new futures after shutdown')
3|ais | RuntimeError: cannot schedule new futures after shutdown

```

pm2 logs tunnel

> [TAILING] Tailing last 15 lines for [tunnel] process (change the value with --lines option)  
> [PM2][ERROR] No file to stream for app [tunnel], exiting.

pm2 logs zigbee

```
[TAILING] Tailing last 15 lines for [zigbee] process (change the value with --lines option)
[PM2][ERROR] No file to stream for app [zigbee], exiting.

```

---

_[View the full topic](https://ai-speaker.discourse.group/t/zawieszajaca-sie-bramka-problem-z-pm2/752)._
