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

sysrepo-plugind does not start due to missing PLUGINS_PATH #1719

Closed
hthiery opened this issue Dec 19, 2019 · 6 comments
Closed

sysrepo-plugind does not start due to missing PLUGINS_PATH #1719

hthiery opened this issue Dec 19, 2019 · 6 comments

Comments

@hthiery
Copy link
Contributor

hthiery commented Dec 19, 2019

sysrepo-plugind fails with the following error:

sysrepo-plugind error: Opening "<MY_SYSROOT_PATH>/lib/sysrepo/plugins" directory failed (No such file or directory).

I see that the PLUGINS_PATH is not created during install step. Is this a known behavior? Do we have to create this package outside of the build/install step?

@michalvasko
Copy link
Collaborator

Hi,
I am not sure whether to bother fixing this. The directory does not exist -> there is no plugin -> why start sysrepo-plguind? When you install a plugin, you must put it into the correct path so you will also create the directory.

Regards,
Michal

@hthiery
Copy link
Contributor Author

hthiery commented Dec 19, 2019

hmm ... ok I understand. I just want to create a buildroot package with that. This includes an init script that tries to start the sysrepo-plugind but fails because the directory is not there.

I dont know if it is ok to have a failing init during startup?

What do you think?

@michalvasko
Copy link
Collaborator

Okay, sysrepo-plugind creates it now if it does not exist.

Regards,
Michal

@hthiery
Copy link
Contributor Author

hthiery commented Dec 19, 2019

ok .. thank you.

@hthiery
Copy link
Contributor Author

hthiery commented Dec 20, 2019

Unfortunately the patch does not work because it does not create the directory recursivly.

@michalvasko
Copy link
Collaborator

Right, sorry, not sure why I thought it is recursive.

Regards,
Michal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants