Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Killed if previous bus.pid exists #4

Closed
goldyfruit opened this issue Mar 24, 2023 · 6 comments
Closed

Killed if previous bus.pid exists #4

goldyfruit opened this issue Mar 24, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@goldyfruit
Copy link
Member

goldyfruit commented Mar 24, 2023

If an old bus.pid file exists in /tmp/mycroft then the bus can't start again, the old bus.pid has to be removed.

2023-03-24 18:22:04.313 - OVOS - ovos_utils.process_utils:PIDLock:301 - INFO - Create PIDLock in: None
2023-03-24 18:22:04.363 - OVOS - ovos_config.models:load_local:96 - DEBUG - Configuration /home/ovos/.venv/lib/python3.11/site-packages/ovos_config/mycroft.conf loaded
2023-03-24 18:22:04.370 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.378 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/web_cache.json' not defined, skipping
2023-03-24 18:22:04.385 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.393 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.400 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.mycroft/mycroft.conf' not defined, skipping
Killed
2023-03-24 18:22:04.730 - OVOS - ovos_utils.process_utils:PIDLock:301 - INFO - Create PIDLock in: None
2023-03-24 18:22:04.779 - OVOS - ovos_config.models:load_local:96 - DEBUG - Configuration /home/ovos/.venv/lib/python3.11/site-packages/ovos_config/mycroft.conf loaded
2023-03-24 18:22:04.786 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.794 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/web_cache.json' not defined, skipping
2023-03-24 18:22:04.802 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.809 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:04.816 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.mycroft/mycroft.conf' not defined, skipping
Killed
2023-03-24 18:22:05.190 - OVOS - ovos_utils.process_utils:PIDLock:301 - INFO - Create PIDLock in: None
2023-03-24 18:22:05.239 - OVOS - ovos_config.models:load_local:96 - DEBUG - Configuration /home/ovos/.venv/lib/python3.11/site-packages/ovos_config/mycroft.conf loaded
2023-03-24 18:22:05.246 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:05.254 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/web_cache.json' not defined, skipping
2023-03-24 18:22:05.261 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.config/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:05.269 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2023-03-24 18:22:05.276 - OVOS - ovos_config.models:load_local:102 - DEBUG - Configuration '/home/ovos/.mycroft/mycroft.conf' not defined, skipping
Killed

Once I cleared the file, the service started without trouble.

@goldyfruit goldyfruit changed the title Killed is previous bus.pid exists Killed if previous bus.pid exists Mar 24, 2023
@ChanceNCounter ChanceNCounter added the bug Something isn't working label Mar 26, 2023
@goldyfruit
Copy link
Member Author

Same issue as for the listener #4

@goldyfruit
Copy link
Member Author

Detected as well on audio and skills, phal is not impacted by this.

@JarbasAl
Copy link
Member

JarbasAl commented Apr 6, 2023

this comes from the PIDLock util, i think this one should be removed all over, it came from mycroft-core and i think its a remnant from when they used screen to launch stuff

@goldyfruit
Copy link
Member Author

it came from mycroft-core and i think its a remnant from when they used screen to launch stuff

It make sense. 👍

@goldyfruit
Copy link
Member Author

I don't know what changed but it doesn't seem to be an issue anymore...

@goldyfruit
Copy link
Member Author

This service still create a bus.pid file.

goldyfruit added a commit to goldyfruit/ovos-messagebus that referenced this issue Jun 23, 2023
@github-actions github-actions bot mentioned this issue Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants