Unable restart service icinga2 and getting error basic_string::_S_create

This forum was archived to /woltlab and is now in read-only mode.
  • icinga - v2.4.10

    Linux - redhat 6.7



    # service icinga2 restart

    Checking configuration: /etc/init.d/icinga2: line 115: 22119 Aborted $DAEMON daemon -c $ICINGA2_CONFIG_FILE -C > $ICINGA2_STARTUP_LOG 2>&1

    Not restarting Icinga 2 due to configuration errors. Check '/var/log/icinga2/startup.log' for details.





    # icinga2 daemon --validate

    information/cli: Icinga application loader (version: v2.4.10)

    information/ConfigCompiler: Compiling config file: /etc/icinga2/icinga2.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/constants.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.conf

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/itl

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command.conf

    information/Utility: Loading library 'libmethods.so'

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-icinga.conf

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/timeperiod.conf

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/plugins

    information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-plugins.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/api.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/checker.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/command.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/gelf.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/graphite.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/ido-mysql.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/mainlog.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/notification.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/features-enabled/perfdata.conf

    information/Utility: Loading library 'libchecker.so'

    information/Utility: Loading library 'libcompat.so'

    information/Utility: Loading library 'libperfdata.so'

    information/Utility: Loading library 'libperfdata.so'

    information/Utility: Loading library 'libdb_ido_mysql.so'

    information/Utility: Loading library 'libnotification.so'

    information/Utility: Loading library 'libperfdata.so'

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/endpoints/iibdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/endpoints/omsappagentdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/endpoints/omsappbuild.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/endpoints/omsappmc.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/endpoints/oracledbdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/zones/iibdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/zones/omsappagentdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/zones/omsappbuild.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/zones/omsappmc.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/repository.d/zones/oracledbdev.softlayer.com.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/api-users.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/app.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/commands.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/downtimes.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/groups.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/hosts.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/notifications.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/satellite.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/services.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/templates.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/timeperiods.conf

    information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/users.conf

    critical/Application: Error: basic_string::_S_create





    --> More error information


    Error: basic_string::_S_create



    (0) libstdc++.so.6: std::__throw_length_error(char const*) (+0x67) [0x3303e61e87]

    (1) libstdc++.so.6: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (+0x72) [0x3303e9c3e2]

    (2) libstdc++.so.6: std::string::_S_construct(unsigned long, char, std::allocator<char> const&) (+0x5f) [0x3303e9d31f]

    (3) libstdc++.so.6: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(unsigned long, char, std::allocator<char> const&) (+0x12) [0x3303e9d382]

    (4) libbase.so: icinga::ShowCodeLocation(std::ostream&, icinga::DebugInfo const&, bool) (+0x383) [0x33066fb963]

    (5) libbase.so: icinga::DiagnosticInformation(std::exception const&, bool, icinga::StackTrace*, icinga::ContextTrace*) (+0x813) [0x3306716153]

    (6) /usr/lib64/icinga2/libcli.so() [0x3304a63c16]

    (7) libcli.so: icinga::DaemonUtility::ValidateConfigFiles(std::vector<std::string, std::allocator<std::string> > const&, icinga::String const&) (+0xe1) [0x3304a65111]

    (8) libcli.so: icinga::DaemonUtility::LoadConfigFiles(std::vector<std::string, std::allocator<std::string> > const&, std::vector<boost::intrusive_ptr<icinga::ConfigItem>, std::allocator<boost::intrusive_ptr<icinga::ConfigItem> > >&, icinga::String const&, icinga::String const&) (+0x6a) [0x3304a658da]

    (9) libcli.so: icinga::DaemonCommand::Run(boost::program_options::variables_map const&, std::vector<std::string, std::allocator<std::string> > const&) const (+0x299) [0x3304a6ffd9]

    (10) /usr/lib64/icinga2/sbin/icinga2() [0x411d94]

    (11) /usr/lib64/icinga2/sbin/icinga2() [0x40f49a]

    (12) libc.so.6: __libc_start_main (+0xfd) [0x3d44a1ed5d]

    (13) /usr/lib64/icinga2/sbin/icinga2() [0x40f591]

  • can you update to the newest versin?

    This is most likely a bug that has already been fixed.

    Linux is dead, long live Linux


    Remember to NEVER EVER use git repositories in a productive environment if you CAN NOT control them

  • Hi,


    Thank you for response.

    Currently it is in production, we can't upgrade now. Is there any temporary fix for time being ?

  • How to fix the issue without upgrade ?


    Error: basic_string::_S_create



    (0) libstdc++.so.6: std::__throw_length_error(char const*) (+0x67) [0x3303e61e87]

    (1) libstdc++.so.6: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (+0x72) [0x3303e9c3e2]

    (2) libstdc++.so.6: std::string::_S_construct(unsigned long, char, std::allocator<char> const&) (+0x5f) [0x3303e9d31f]

    (3) libstdc++.so.6: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(unsigned long, char, std::allocator<char> const&) (+0x12) [0x3303e9d382]