-
Notifications
You must be signed in to change notification settings - Fork 190
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
critical/cli: Cannot parse available features. Path '/etc/icinga2/features-available' does not exist. #250
Comments
Hi @AqujZ1K9 Hmm, that's strange. What version of docker are you using? The error refers to this script: https://github.com/jjethwa/icinga2/blob/master/content/opt/setup/50-icinga2 /etc/icinga2/features-available should exist as it's part of the standard icinga2 install, but we might need to add a line to create it if it doesn't exist. |
@jjethwa thanks for reaching out! whats stange that the binding seems to be ok. Anything I could check ? |
No problem 😃 Can you double check the /etc/icinga2 volume and see if it has the features-available directory under it? Sorry, this will require digging under your docker var directory. |
Could it be that it's somehow trying to run the script on the mysql container? I've never seen that happen before though. |
the problem seems to be the line : the whole icinga2 cli seems to be broken for me. e.g.:
any Idea where to go for that ? |
Thanks for the additional details, this looks like it's actually erroring out in the CLI API calls, I originally thought it was the docker scripts. Can you check on the existence of /var/log/icinga2 and the permissions and ownership? Can you also check the permissions and ownership for /etc/icinga2 and etc/icinga2/features-available/*.conf as well? |
/var/log/icinga2 exists: /etc/icinga2 /etc/icinga2/features-available/ /etc/icinga2/features-available/*.conf
additon, when logging into the container as "nagios" I get:
thanks a lot! |
Thanks, those permissions look correct and you won't be able to start an interactive shell with the nagios user as it's meant for daemon use only. Is there anything in the API log under /var/log/icinga2 that might be related? Sorry about all of the back and forth, I've just never seen this before, so I'm trying to collect as much information on it. |
no logs under /var/log/icinga2 Thanks for helping so far! adding: just pull up a new vm running PhotonOS4.0 -Beta. just to be sure if anything on the host is corrupt. Same behavior here. |
I'll try pulling down Photon later today and see if I can reproduce the issue. In the meantime, try:
And running the CLI command again. Let's see if we can get something in the logs this time 😞 |
doesn't seem to do anything /help... |
So you're getting the error still when running the CLI command? |
yes sir |
Eek, thanks for your patience @AqujZ1K9 I'll get that VM going a bit later and test it out. |
Hi @AqujZ1K9 Need just a little more time, I ran an update on my laptop last night that is causing issues |
no worries. I've changed to an Debian Buster Host now and don't have these Issues anymore. But his can still be interesting for other tho. |
Thanks for the update, @AqujZ1K9 Once I get my laptop updated properly, I'll try to spend time and see if I can figure it out. |
Hi, sorry for attaching my problem to this old issue, but in fact I've the same problem, same error as @AqujZ1K9. critical/cli: Cannot parse available features. Path '/etc/icinga2/features-available' does not exist. the folder is mapped to a volume on a glusterfs, operating system Debian Bullseye 11.0 arm64 Thans |
No problem! I had forgotten about this issue, sorry @AqujZ1K9 😞 Is etc/icinga2/features-available available in the volume? What are the permissions? The CLI utility will make modifications such as symlinking to files inside. |
the folder is available, and the permissions are correct. Deploying an old image builded by me it works without problems. |
update: removing volume /etc/icinga2 works, but i've noticed the version of icinga is very old. |
I would not think it's gluster as that would be transparent to the app. Is there anything else interesting in the logs that might help? I'm wondering if you can start the container in interactive mode so you can poke around inside? You might have to override the run script |
Just saw the new comment, so some progress. Keep me in the loop, I haven't used the rasbian repo 😃 |
Hi, after 1 year, I decided to rebuild this image for my Raspberry Pi Docker Swarm cluster, but errors still present, with or without mounted volumes. examples: |
Sorry, I still don't have a Pi setup to test myself, so I'll need to rely on your testing and reports. Are these errors occuring at container startup or during the image building process? Can you provide the docker run command you are using? |
Hi @jjethwa no problem, I try to explain as must as possible to you. Let me know if you need more information
|
Thanks, that was helpful! Can you try running it with the run command?
I don't think the FS should make a difference as it should be transparent...hopefully 🤞 https://github.com/jjethwa/icinga2/blob/master/content/opt/setup/50-icinga2#L33 should handle the ownership issues when starting up using volumes. |
your latest image does not support arm v7
|
Oops, sorry! There is the old version of the arm build, but can you try with the image you created? Just trying to see if it comes up without any issues with no volumes, etc |
Hi, the container stops for mysql problem
|
Thanks! I'm going to have to look up these errors as I've never seen them before. It's from this part of the setup process: https://github.com/jjethwa/icinga2/blob/master/content/opt/setup/20-mysql Nothing too crazy, just initializing an empty database. |
Ok, thanks. I'm preparing the packages of icinga2 and Icingaweb2 updated for bullseye, all compiled in docker by source. The idea is to try install all in the image via deb packages, to use Bullseye as a base image. This is because unfortunately the icingaweb2 packages are old in the Icinga bullseye package repo for raspbian. |
Sounds good, @gianmarco-mameli All the updates to get bullseye working for amd64 were on May 19th https://github.com/jjethwa/icinga2/commits/master |
Just checking in with you. Do you need any help? 😄 |
This is likely to be some volume permission issue within docker. I had the same issue, and went through to troubleshoot it. The folder exists but for some reason or other the container is unable to see it properly. It makes no sense which is why I think its docker related. I removed the /data/icinga folder and rebuilt the image and it started working again. You could try doing a 'rm -rf /etc/icinga2' and then manually copy the /etc/icinga2.dist' folder again to see if that fixes it. Then you can copy over your previous config. |
Hi Guys,
am I the only one with this issue when creating the container from the provided docker-compose
Pinging mysql:3306 critical/cli: Cannot parse available features. Path '/etc/icinga2/features-available' does not exist. run-parts: /opt/setup/50-icinga2 exited with return code 1
haven't changed anything at the compose-file.
Running docker on PhotonOs(x64).
Anything I'm not seeing here?
Thanks!
The text was updated successfully, but these errors were encountered: