[icinga-devel] Tried to install icinga2 it fails

Gunnar Beutner gunnar.beutner at netways.de
Fri Nov 9 11:35:48 CET 2012


Am 09.11.2012 11:29, schrieb john s.:
> Hello Gunnar

Hi John,

>
> I have made an btfull log from the loop after a few hours  :
>
> Btfulllog:
> #0  0xb7fe2430 in __kernel_vsyscall ()
> No symbol table info available.
> #1  0xb784d342 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
> /lib/tls/i686/cmov/libpthread.so.0
> No symbol table info available.
> #2  0xb7936974 in pthread_cond_timedwait () from
> /lib/tls/i686/cmov/libc.so.6
> No symbol table info available.
> #3  0xb7fb0769 in
> boost::condition_variable::do_timed_wait(boost::unique_lock<boost::mutex>&,
> timespec const&) () from /usr/local/lib/libboost_thread.so.1.51.0
> No symbol table info available.
> #4  0xb7ed9392 in boost::condition_variable::timed_wait (timeout=...) at
> /usr/local/include/boost/thread/pthread/condition_variable_fwd.hpp:78
>           timeout = {tv_sec = 1352456736, tv_nsec = 255152000}
> #5  timed_wait<boost::posix_time::millisec> (timeout=...) at
> /usr/local/include/boost/thread/pthread/condition_variable_fwd.hpp:93
> No locals.
> #6  icinga::Event::ProcessEvents (timeout=...) at event.cpp:53
>           lock = {m = 0xb7f94e48, is_locked = false}
>           events = {<std::_Vector_base<icinga::Event,
> std::allocator<icinga::Event> >> = {
>               _M_impl = {<std::allocator<icinga::Event>> =
> {<__gnu_cxx::new_allocator<icinga::Event>> = {<No data fields>}, <No data
> fields>}, _M_start = 0x0,
>                 _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>}
>           __PRETTY_FUNCTION__ = "static void
> icinga::Event::ProcessEvents(boost::posix_time::millisec)"
> #7  0xb7eaeb63 in icinga::Application::RunEventLoop (this=0x805b77c) at
> application.cpp:117
>           sleep = 0
>           t = {thread_info = {px = 0x0, pn = {pi_ = 0x0}}}
> #8  0xb7cc9f45 in icinga::IcingaApplication::Main (this=0x805b77c,
> args=...) at icingaapplication.cpp:154
>           parseOpts = 188
>           configFile = warning: can't find linker symbol for virtual table
> for `icinga::String' value
> {static NPos = 4294967295, m_Data = warning: can't find linker symbol for
> virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >' value
> {static npos = 4294967295, _M_dataplus = warning: can't find linker symbol
> for virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::_Alloc_hider' value
>
> {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data
> fields>}, <No data fields>}, _M_p = 0x80571bc ""}}}
>           logpath = warning: can't find linker symbol for virtual table for
> `icinga::String' value
> {static NPos = 4294967295, m_Data = warning: can't find linker symbol for
> virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >' value
> {static npos = 4294967295, _M_dataplus = warning: can't find linker symbol
> for virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::_Alloc_hider' value
>
> {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data
> fields>}, <No data fields>}, _M_p = 0x80571bc ""}}}
>           service = warning: can't find linker symbol for virtual table for
> `icinga::String' value
> {static NPos = 4294967295, m_Data = warning: can't find linker symbol for
> virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >' value
> {static npos = 4294967295, _M_dataplus = warning: can't find linker symbol
> for virtual table for `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::_Alloc_hider' value
>
> {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data
> fields>}, <No data fields>}, _M_p = 0x80571bc ""}}}
>           daemonize = false
> #9  0xb7eae0b5 in icinga::Application::Run (this=0x805b77c, argc=1,
> argv=0xbffff83c) at application.cpp:352
>           result = <value optimized out>
>           sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction =
> 0x1}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0,
> sa_restorer = 0}
> #10 0x0804f34c in main (argc=3, argv=0xbffff834) at icinga.cpp:169
>           app = {px = 0x805b77c, pn = {pi_ = 0x805b768}}

That looks fairly normal. Please show us your configuration file as well 
as the exact command you used to start Icinga2 and whatever output you 
got from Icinga2.

> regards john s.

Kind regards,
Gunnar Beutner

>
>
> Am 07.11.2012, 09:16 Uhr, schrieb john s. <fireskyer at emailn.de>:
>
>> The  git version is the one from yersterday
>>
>> The i followed your advise to update the sources
>>
>> regards john s.
>>
>> Am 06.11.2012, 13:00 Uhr, schrieb john s. <fireskyer at emailn.de>:
>>
>>> Hello Gunnar
>>>
>>> sbin/icinga2 -c etc/icinga2/icinga2.conf
>>>
>>> How Long does these command take?
>>> ( is running about 3 hours on my system)
>>>
>>>
>>> Maybe he is hanging in a loop
>>>
>>>
>>> regards john s.
>>>
>>>
>>>
>>> Am 31.10.2012, 12:12 Uhr, schrieb Gunnar Beutner
>>> <gunnar.beutner at netways.de>:
>>>
>>>> Am 31.10.2012 10:52, schrieb john s.:
>>>>> Hello Gunnar
>>>> Hi John,
>>>>
>>>>> Sorry I'm not so familar with GDB
>>>>>
>>>>> Here is the btfull log:
>>>>>
>>>>>
>>>>> <snip>
>>>> Please update your sources (git pull) and check if you're still seeing
>>>> that problem.
>>>>
>>>>>
>>>>> regards john s.
>>>> Kind regards
>>>> Gunnar Beutner
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Am 31.10.2012, 08:28 Uhr, schrieb Gunnar Beutner
>>>>> <gunnar.beutner at netways.de>:
>>>>>
>>>>>> Am 30.10.2012 16:11, schrieb john s.:
>>>>>>> Hello list
>>>>>>> ubuntu 10.04 lts
>>>>>>> icinga2
>>>>>>>
>>>>>>> I tried to install the  experimental version icinga 2 from github
>>>>>>> on
>>>>>>> a
>>>>>>> test system
>>>>>>>
>>>>>>> I've made the following steps among these how to's:
>>>>>>>
>>>>>>> 1. Install icinga2
>>>>>>> https://wiki.icinga.org/display/icinga2/Linux+Builds#LinuxBuilds-SampleConfig
>>>>>>>
>>>>>>> 2. Boost Libraries installed manually
>>>>>>> http://www.boost.org/doc/libs/1_51_0/more/getting_started/unix-variants.html
>>>>>>> ( easy and build install )
>>>>>>>
>>>>>>> 3. linked the libraries with
>>>>>>> sudo ldconfig /usr/local/lib
>>>>>>>
>>>>>>> so far so good
>>>>>>>
>>>>>>> but whne i tried to load the binary with config
>>>>>>>
>>>>>>> sbin/icinga2 -c etc/icinga2/icinga2.conf
>>>>>>>
>>>>>>> it comes the following error:
>>>>>>>
>>>>>>>
>>>>>>> terminate called after throwing an instance of 'std::bad_cast'
>>>>>>>       what():  std::bad_cast
>>>>>> Is that the whole error message? Assuming you're using the latest
>>>>>> version from the Git repository you should also get a stacktrace
>>>>>> which
>>>>>> would make identifying this problem quite a bit easier.
>>>>>>
>>>>>> If you're not getting a stacktrace please consider running icinga2
>>>>>> with
>>>>>> gdb (gdb -ex run --args sbin/icinga2 -c etc/icinga2/icinga2.conf) and
>>>>>> post a full stacktrace from there (bt full).
>>>>>>
>>>>>>
>>>>>>> regards john s.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>>>> _______________________________________________
>>>>>>> icinga-devel mailing list
>>>>>>> icinga-devel at lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/icinga-devel
>>>>
>>>
>>
>


-- 
Gunnar Beutner
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nürnberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nürnberg HRB18461

http://www.netways.de | gunnar.beutner at netways.de

** NETWAYS Open Source Data Center Conference 2013 |
    Nürnberg, 17. und 18. April 2013 |
    http://www.netways.de/osdc **
** Puppet Camp 2013 | Nürnberg, 19. April 2013 |
    http://www.netways.de/puppetcamp **





More information about the icinga-devel mailing list