Open smitjainsj opened 8 years ago
Hi,
After the puppet run on an Ubuntu 14.04 server, when I browse to icingaweb2/setup I get this error:
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /usr/share/php/Icinga/Data/Db/DbConnection.php on line 153
What's up with that?
Thanks
I'll check the errors and fix it. On 20 May 2016 02:29, "elliance-jts" notifications@github.com wrote:
Hi,
After the puppet run on an Ubuntu 14.04 server, when I browse to icingaweb2/setup I get this error:
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /usr/share/php/Icinga/Data/Db/DbConnection.php on line 153
What's up with that?
Thanks
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/smitjainsj/icinga2/issues/1#issuecomment-220445459
Hey there,
thanks for you module. But I got an error which I don't know how to handle:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install undef' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package undef Error: /Stage[main]/Icinga2::Icingaweb2/Package[undef]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install undef' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package undef Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp Wrapped exception: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock Error: /Stage[main]/Sshkeys/File[/root/.ssh/authorized_keys]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp
Do you have an idea what the package "undef" should be? Has pupept a problem with a variable?
Thank you!
kind regards, Florian
This is something with your file structure, and hierarchy.
Follow the default puppet hierarchy.
Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp
Thanks & Regards, Smit Jain Contact no.-9582921008 Email: smitjain.sj@gmail.com
On Thu, Aug 11, 2016 at 7:21 PM, Floryder notifications@github.com wrote:
Hey there,
thanks for you module. But I got an error which I don't know how to handle:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install undef' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package undef Error: /Stage[main]/Icinga2::Icingaweb2/Package[undef]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install undef' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package undef Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp Error: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorizedkeys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp Wrapped exception: No such file or directory - /root/.ssh/authorized keys20160811-11455-1fbbst6.lock Error: /Stage[main]/Sshkeys/File[/root/.ssh/authorized_keys]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /root/.ssh/authorized_keys20160811-11455-1fbbst6.lock at 6:/etc/puppet/modules/sshkeys/manifests/init.pp
Do you have an idea what the package "undef" should be? Has pupept a problem with a variable?
Thank you!
kind regards, Florian
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smitjainsj/icinga2/issues/1#issuecomment-239166655, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBR3UYdjV6LTo69qPZ7XBAgMDBDa90Iks5qeyjqgaJpZM4Hjfgd .
Yes you are right with your pasted snippet. But what should be this message: Notice: Cloning GIT REPO ........ Notice: /Stage[main]/Icinga2::Git/Notify[ Cloning GIT REPO ........ ]/message: defined 'message' as ' Cloning GIT REPO ........ ' Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install undef' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package undef
He wants to install a package called "undef". That makes no sense in my opinion...
Or could it be possible that the git repo was not cloned and as the reason it tried to install this curios package "undef".
Ok this problem is fixed. I used your github repo now instead of your module in puppet forge...
But now I have this error:
_Error: icinga2 feature enable command compatlog syslog returned 1 instead of one of [0] Error: /Stage[main]/Icinga2::Icingaweb2/Exec[Enable_Featuresicinga2]/returns: change from notrun to 0 failed: icinga2 feature enable command compatlog syslog returned 1 instead of one of [0]*
Actually I am in midst of some other and I will fix all other task. kindly check the icinga2 feature list. Also, the new version 2.4 has some modification and I will be making changes in Puppet code accordingly.
Thanks for using this module, it help to build further.
Thank you!
I try to bugfix this issue and here is some more information. If I try to manually start the icinga features it comes up always the some notification:
icinga2 feature list [2016-08-12 10:03:07 +0000] information/icinga-app: Icinga application loader (version: r2.1.1-1) [2016-08-12 10:03:07 +0000] information/icinga-app: Loading application type: icinga/IcingaApplication [2016-08-12 10:03:07 +0000] information/Utility: Loading library 'libicinga.so' [2016-08-12 10:03:07 +0000] information/ConfigCompiler: Adding include search dir: /usr/share/icinga2/include [2016-08-12 10:03:07 +0000] critical/icinga-app: Another instance of Icinga already running with PID 16459
He says another instance is running. But indeed a instance need to run to add new features. So this could be the same barrier like puppet has.
Maybe the installation via puppet was not completely correct until this step?
Got the same issue, any help yet?
Sorry I am not working on this anymore, currently I am quite busy with other stuff.
Thanks & Regards, Smit Jain Contact no.-9582921008 Email: smitjain.sj@gmail.com
On 2 December 2016 at 20:53, Goldenflamer notifications@github.com wrote:
Got the same issue, any help yet?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smitjainsj/icinga2/issues/1#issuecomment-264479033, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBR3U-9ISLhyzYklivFLqLovKxpsoAfks5rEDf4gaJpZM4Hjfgd .
Guyz, do help me out to make this icinga2 module better. kindly share your experiences and errors that you face.
Also, share what features you are looking in the module.