OpenVoiceOS / OVOS-workshop

frameworks, templates and patches for the OpenVoiceOS universe
Apache License 2.0
4 stars 13 forks source link

PHAL and admin PHAL failures to successfully initialize started evening of Jul 13 #119

Closed Bulwagga closed 1 year ago

Bulwagga commented 1 year ago

This may or may not be related to recent changes in OVOS-workshop. Problems seen while testing headless raspbian build.

ovos-systemd-phal[744]: 2023-07-14 07:11:36.669 - OVOS - ovos_workshop.skills.layers::3 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:16. Import from ovos_workshop.decorators.layers ovos-systemd-phal[744]: 2023-07-14 07:11:36.713 - PHAL - ovos_workshop.skills.mycroft_skill:call:56 - WARNING - skill initialized without bus!! this is legacy behaviour and requires you to call skill.bind(bus) or skill._startup(skill_id, bus) ovos-systemd-phal[744]: bus will be required starting on ovos-core 0.1.0 ovos-systemd-phal[744]: 2023-07-14 07:11:36.722 - PHAL - ovos_workshop.skills.base:bus:390 - WARNING - Skill not fully initialized.to correct this add kwargs init(bus=None, skill_id='') to skill class PHAL ovos-systemd-phal[744]: 2023-07-14 07:11:36.727 - PHAL - ovos_workshop.skills.base:bus:394 - ERROR - Traceback: ovos-systemd-phal[744]: File "/home/ovos/.local/bin/ovos-systemd-phal", line 30, in ovos-systemd-phal[744]: main(ready_hook=notify_ready, stopping_hook=notify_stopping) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_PHAL/main.py", line 14, in main ovos-systemd-phal[744]: phal = PHAL(on_error=error_hook, on_ready=ready_hook, on_stopping=stopping_hook) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/mycroft_skill.py", line 60, in call ovos-systemd-phal[744]: return super().call(*args, kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_PHAL/service.py", line 42, in init ovos-systemd-phal[744]: super().init(skill_id=f"ovos.{name}") ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/app.py", line 31, in init ovos-systemd-phal[744]: super().init(skill_id=skill_id, bus=bus, gui=gui, ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/ovos.py", line 36, in init ovos-systemd-phal[744]: super(OVOSSkill, self).init(*args, *kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/mycroft_skill.py", line 136, in init ovos-systemd-phal[744]: super().init(name=name, bus=bus, args, kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/base.py", line 215, in init ovos-systemd-phal[744]: if self.skill_id and self.bus: ovos-systemd-phal[744]: Traceback (most recent call last): ovos-systemd-phal[744]: File "/home/ovos/.local/bin/ovos-systemd-phal", line 30, in ovos-systemd-phal[744]: main(ready_hook=notify_ready, stopping_hook=notify_stopping) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_PHAL/main.py", line 14, in main ovos-systemd-phal[744]: phal = PHAL(on_error=error_hook, on_ready=ready_hook, on_stopping=stopping_hook) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/mycroft_skill.py", line 60, in call ovos-systemd-phal[744]: return super().call(*args, kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_PHAL/service.py", line 42, in init ovos-systemd-phal[744]: super().init(skill_id=f"ovos.{name}") ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/app.py", line 31, in init ovos-systemd-phal[744]: super().init(skill_id=skill_id, bus=bus, gui=gui, ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/ovos.py", line 36, in init ovos-systemd-phal[744]: super(OVOSSkill, self).init(*args, *kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/mycroft_skill.py", line 136, in init ovos-systemd-phal[744]: super().init(name=name, bus=bus, args, kwargs) ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/base.py", line 215, in init ovos-systemd-phal[744]: if self.skill_id and self.bus: ovos-systemd-phal[744]: File "/home/ovos/.local/lib/python3.9/site-packages/ovos_workshop/skills/base.py", line 395, in bus ovos-systemd-phal[744]: raise Exception('Accessed MycroftSkill.bus in init') ovos-systemd-phal[744]: Exception: Accessed MycroftSkill.bus in init systemd[495]: ovos-phal.service: Main process exited, code=exited, status=1/FAILURE systemd[495]: ovos-phal.service: Failed with result 'exit-code'. systemd[495]: Failed to start OVOS PHAL.

Bulwagga commented 1 year ago

Going back to version of base.py from 4 days ago did not fix the issue.