question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Centos 7.4: microk8s.join throws openssl error

See original GitHub issue

Running microk8s.join on Centos 7.4 version, getting the following error:

microk8s.join 192.168.1.33:25000/oAnOGKxcsBCfkRybcDudVCdWkGamOsOf openssl: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libresolv.so.2: symbol __h_errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference Traceback (most recent call last): File "/snap/microk8s/1253/scripts/cluster/join.py", line 387, in <module> update_flannel(info["etcd"], master_ip, master_port, token) File "/snap/microk8s/1253/scripts/cluster/join.py", line 132, in update_flannel get_etcd_client_cert(master_ip, master_port, token) File "/snap/microk8s/1253/scripts/cluster/join.py", line 107, in get_etcd_client_cert subprocess.check_call(cmd_cert.split()) File "/snap/microk8s/1253/usr/lib/python3.5/subprocess.py", line 581, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['openssl', 'req', '-new', '-key', '/var/snap/microk8s/1253/certs/server.key', '-out', '/var/snap/microk8s/1253/certs/server.remote.csr', '-config', '/var/snap/microk8s/1253/certs/csr.conf']' returned non-zero exit status 127

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pelojoycommented, Jun 11, 2020

The following code change in join.py seems to work:

 cmd_cert = "/snap/microk8s/current/usr/bin/openssl  ...
 myenv = { "OPENSSL_CONF":"/snap/microk8s/current/etc/ssl/openssl.cnf"}
 subprocess.check_call(cmd_cert.split(), env=myenv)

0reactions
pelojoycommented, Jun 11, 2020

@ktsakalozos Thanks for the credit. But can you submit the PR instead? I don’t have the environment setup to do it. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Centos 7.4: microk8s.join throws openssl error #1270 - GitHub
Running microk8s.join on Centos 7.4 version, getting the following error: microk8s.join 192.168.1.33:25000/oAnOGKxcsBCfkRybcDudVCdWkGamOsOf ...
Read more >
Troubleshooting - MicroK8s
Examining the configuration. If the problem you are experiencing indicates a problem with the configuration of the Kubernetes components themselves, it could be ......
Read more >
LINSTOR 1.0 en - LINBIT
Join a node to an existing LINBIT cluster. Enable LINBIT package repositories on your node. Enabling LINBIT package repositories will give you access...
Read more >
Change log for 4.8.43
Bug 2052097: global pull secret not working in OCP4.7.4+ for additio… ... Automated cherry pick of #102892: Do not throw error when we...
Read more >
open firewall port linux centos Code Example - Code Grepper
firewall-cmd --zone=public --add-port=2888/tcp --permanent Then remember to reload the firewall for changes to take effect. firewall-cmd --reload.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found