Icinga2: Icinga Agent Windows 2.8.0 msvcr120.dll is missing

Created on 20 Nov 2017  路  9Comments  路  Source: Icinga/icinga2

Expected Behavior



Install Icinga agent without error

Current Behavior



Installation error "msvcr120.dll is missing"

Possible Solution



Install Visual C++ Redistributable 2013
https://www.microsoft.com/en-us/download/details.aspx?id=40784

Steps to Reproduce (for bugs)


  1. Windows Server 2012 R2 without Visual C++ Redistributable 2013
  2. Install the Update for Universal C Runtime in Windows as mentioned in documentation https://github.com/Icinga/icinga2/blob/master/doc/06-distributed-monitoring.md

Context



Regarding the documentation, "https://github.com/Icinga/icinga2/blob/master/doc/06-distributed-monitoring.md" the update for Universal C Runtime doesn't work for me. I need to install Visual C++ Redistributable 2013
https://www.microsoft.com/en-us/download/details.aspx?id=40784

Your Environment

  • Version used (icinga2 --version):
    ]# icinga2 --version
    C:\Program Files\ICINGA2\sbin>icinga2.exe --version
    icinga2.exe - The Icinga 2 network monitoring daemon (version: v2.8.0-5-gdf10d2a)

Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/)
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Application information:
Installation root: C:\Program Files\ICINGA2\
Sysconf directory: C:\ProgramData\icinga2\etc
Run directory: C:\ProgramData\icinga2\var\run
Local state directory: C:\ProgramData\icinga2\var
Package data directory: C:\Program Files\ICINGA2\share\icinga2
State path: C:\ProgramData\icinga2\var/lib/icinga2/icinga2.state
Modified attributes path: C:\ProgramData\icinga2\var/lib/icinga2/modified-attr
ibutes.conf
Objects path: C:\ProgramData\icinga2\var/cache/icinga2/icinga2.debug
Vars path: C:\ProgramData\icinga2\var/cache/icinga2/icinga2.vars
PID path: C:\ProgramData\icinga2\var\run/icinga2/icinga2.pid

System information:
Platform: Windows
Platform version: 8.1 or greater (Server)
Kernel: Windows
Kernel version: 6.2
Architecture: x86_64

Build information:
Compiler: MSVC 19.0.24215.1
Build host: ICINGA-BUILD-WI

  • Operating System and version: Windows Server 2012 R2
  • Enabled features (icinga2 feature list): NA
  • Icinga Web 2 version and modules (System - About): NA
  • Config validation (icinga2 daemon -C): NA
  • If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes. NA
aresetup arewindows bug queuimportant

Most helpful comment

As it turns out the problem was actually openssl that required msvcr120.dll. We solved this by rebuilding openssl with with Visual Studio 2015 and it now requires msvcr140, which we ship with icinga.

The issue is now fixed and all we need to do is rebuild version 2.8.0

All 9 comments

Interesting. Thanks for the heads up, should be documented.

The correct way to fix this would be to redistribute those DLLs. This should not just be a documentation change.

@gunnarbeutner right, we talked about offline, thanks.

As it turns out the problem was actually openssl that required msvcr120.dll. We solved this by rebuilding openssl with with Visual Studio 2015 and it now requires msvcr140, which we ship with icinga.

The issue is now fixed and all we need to do is rebuild version 2.8.0

It seems that the x86 package has been rebuilt, but not the x86_64.

image

Would it be possible to rebuild also the x86_64? That would make our deployment process easier on our infra (reduction of the number of dependencies).

Sorry for the inconvenience, new packages are up now.

Great, thanks :+1:

Was this page helpful?
0 / 5 - 0 ratings