Zachary,
Removing the state file is exactly what I did when I encountered this the other 
day. The system was rather busy for a short while, which I assume was due to 
rechecking the status of all hosts and services.

Cheers
Jay Newman

From: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] On Behalf Of 
Zachary McGibbon
Sent: Monday, January 04, 2016 9:57 AM
To: Icinga User's Corner <icinga-users@lists.icinga.org>
Subject: [icinga-users] Missing comma in state file

Happy new year to all, back to the grind!

Back from the holidays my Icinga2 instance is not happy... ran a gdb on startup 
and it is missing a comma in the state file... should I just delete the state 
file?

[New Thread 0x7ffff55bf700 (LWP 3768)]
[New Thread 0x7fffd7fff700 (LWP 3769)]
[New Thread 0x7ffff5600700 (LWP 3770)]
[New Thread 0x7ffff5641700 (LWP 3771)]
[Thread 0x7ffff5641700 (LWP 3771) exited]
[Thread 0x7fffd7fff700 (LWP 3769) exited]
[Thread 0x7ffff5600700 (LWP 3770) exited]
[2016-01-04 09:54:29 -0500] critical/cli: Failed to restore state file: Error: 
Invalid NetString (missing ,)

        (0) libbase.so: void 
boost::throw_exception<boost::exception_detail::error_info_injector<std::invalid_argument>
 >(boost::exception_detail::error_info_injector<std::invalid_argument> const&) 
(+0xe8) [0x39d212aa68]
        (1) libbase.so: void 
boost::exception_detail::throw_exception_<std::invalid_argument>(std::invalid_argument
 const&, char const*, char const*, int) (+0x59) [0x39d212ab19]
        (2) libbase.so: 
icinga::NetString::ReadStringFromStream(boost::intrusive_ptr<icinga::Stream> 
const&, icinga::String*, icinga::StreamReadContext&, bool) (+0x341) 
[0x39d20ed051]
        (3) libbase.so: icinga::ConfigObject::RestoreObjects(icinga::String 
const&, int) (+0x1ea) [0x39d210daba]
        (4) libcli.so: 
icinga::DaemonCommand::Run(boost::program_options::variables_map const&, 
std::vector<std::string, std::allocator<std::string> > const&) const (+0x838) 
[0x39d246fa68]
        (5) /usr/lib64/icinga2/sbin/icinga2() [0x411d54]
        (6) /usr/lib64/icinga2/sbin/icinga2() [0x40f45a]
        (7) libc.so.6: __libc_start_main (+0xfd) [0x38ef21ed5d]
        (8) /usr/lib64/icinga2/sbin/icinga2() [0x40f551]


[Thread 0x7ffff55bf700 (LWP 3768) exited]
[Thread 0x7ffff7edc700 (LWP 3635) exited]
[Thread 0x7ffff7f1d700 (LWP 3634) exited]
[Thread 0x7ffff7f5e700 (LWP 3633) exited]
[Thread 0x7ffff7f9f700 (LWP 3632) exited]
[Thread 0x7fffeff9f700 (LWP 3631) exited]
[Thread 0x7ffff7fe0700 (LWP 3630) exited]
[Thread 0x7ffff557e700 (LWP 3754) exited]

Program exited with code 01.

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to