Skip to content

ERROR: While executing gem ... (NoMethodError) - missing ruby libssl1.0.0 library #65

@marinnedea

Description

@marinnedea

Hello,

OS: RHEL 7.3
Kernel: 3.10.0-957.21.3

Issue:
System fails to boot/restart. The problem happens randomly.

Azure reports:

VM has reported a failure when processing extension 'MSILinuxExtension'. Error message: "Failed to set up mdsd dependencies: omsagent setup failed 5 times. Last exit code=3, Output=setup_omsagent_for_lad(): fluentd out_mdsd plugin install failed. Output: ERROR: Loading command: install (LoadError) libssl.so.1.0.0: cannot open shared object file: No such file or directory - /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/x86_64-linux/openssl.so ERROR: While executing gem ... (NoMethodError) undefined method 'invoke_with_build_args' for nil:NilClass ".

In /var/log/azure/Microsoft.Azure.Diagnostics.LinuxDiagnostic/extension.log found:

2019/10/10 13:45:37 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd sed -i "s/RestartService syslog-ng\\s*$/RestartService syslog-ng || RestartService syslog/g" /opt/microsoft/omsagent/bin/configure_syslog.sh
2019/10/10 13:45:37 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 0:
2019/10/10 13:45:37 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd /opt/microsoft/omsagent/ruby/bin/fluent-gem uninstall fluent-plugin-mdsd -a
2019/10/10 13:45:38 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 0:
2019/10/10 13:45:38 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] RunCmd /opt/microsoft/omsagent/ruby/bin/fluent-gem install fluent-plugin-mdsd-*.gem
2019/10/10 13:45:38 ERROR:CalledProcessError.  Error Code is 1
2019/10/10 13:45:38 ERROR:CalledProcessError.  Command string was /opt/microsoft/omsagent/ruby/bin/fluent-gem install fluent-plugin-mdsd-*.gem
2019/10/10 13:45:38 ERROR:CalledProcessError.  Command result was ERROR:  Loading command: install (LoadError)
2019/10/10 13:45:38 ERROR:	libssl.so.1.0.0: cannot open shared object file: No such file or directory - /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/x86_64-linux/openssl.so
2019/10/10 13:45:38 ERROR:ERROR:  While executing gem ... (NoMethodError)
2019/10/10 13:45:38 ERROR:    undefined method `invoke_with_build_args' for nil:NilClass
2019/10/10 13:45:38 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Return 1:ERROR:  Loading command: install (LoadError)
2019/10/10 13:45:38 	libssl.so.1.0.0: cannot open shared object file: No such file or directory - /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/x86_64-linux/openssl.so
2019/10/10 13:45:38 ERROR:  While executing gem ... (NoMethodError)
2019/10/10 13:45:38     undefined method `invoke_with_build_args' for nil:NilClass
2019/10/10 13:45:38 
2019/10/10 13:45:38 ERROR:[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] omsagent setup failed (trial #5).
2019/10/10 13:45:38 ERROR:[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] omsagent setup failed 5 times. Giving up...
2019/10/10 13:45:38 ERROR:[Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] Failed to set up mdsd dependencies: omsagent setup failed 5 times. Last exit code=3, Output=setup_omsagent_for_lad(): fluentd out_mdsd plugin install failed. Output: ERROR:  Loading command: install (LoadError)
2019/10/10 13:45:38 ERROR:	libssl.so.1.0.0: cannot open shared object file: No such file or directory - /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/x86_64-linux/openssl.so
2019/10/10 13:45:38 ERROR:ERROR:  While executing gem ... (NoMethodError)
2019/10/10 13:45:38 ERROR:    undefined method `invoke_with_build_args' for nil:NilClass
2019/10/10 13:45:38 ERROR:
2019/10/10 13:45:38 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.121] HeartBeat,error,1,Failed to set up mdsd dependencies: omsagent setup failed 5 times. Last exit code=3, Output=setup_omsagent_for_lad(): fluentd out_mdsd plugin install failed. Output: ERROR:  Loading command: install (LoadError)
2019/10/10 13:45:38 	libssl.so.1.0.0: cannot open shared object file: No such file or directory - /opt/microsoft/omsagent/ruby/lib/ruby/2.4.0/x86_64-linux/openssl.so
2019/10/10 13:45:38 ERROR:  While executing gem ... (NoMethodError)
2019/10/10 13:45:38     undefined method `invoke_with_build_args' for nil:NilClass

On 1st view, this seems to be caused by ruby not being installed on the system with openssl libraries. However, what is not clear, is who should install ruby with those libraries? As it looks to me this is a mdsd component, isn't the process of adding the extension responsible for this?

Found https://github.com/rbenv/ruby-build/wiki explaining how to install ruby with openssl .. however, not sure if that's something that we should try as I'm not sure if this needs to be fixed at extension level or Linux OS level.

Please advise.

extension.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions