[Solved]Certbot Illegal instruction Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
waulu13
Posts: 3
Joined: Fri May 10, 2019 2:24 am

[Solved]Certbot Illegal instruction

Post by waulu13 »

Hello everyone, I want to say that I am very impressed with DietPi and how it automates a lot of boring tasks.

Unfortunately, I am having a little problem with certbot, I am not being able to use it properly. When I run
dietpi-letsencrypt, after doing Apply i get the following error,

Code: Select all

[  OK  ] DietPi-LetsEncrypt | Nginx webserver detected
[  OK  ] DietPi-LetsEncrypt | Desired setting in /etc/nginx/sites-available/default was already set: 	server_name electronic4fun.com;
/DietPi/dietpi/dietpi-letsencrypt: line 54:  6498 Illegal instruction     $FP_BINARY $options --agree-tos --rsa-key-size "$LETSENCRYPT_KEYSIZE" -m "$LETSENCRYPT_EMAIL" -d "$LETSENCRYPT_DOMAIN"
[FAILURE] CertBot failed with error code (132), please check it's terminal output. Aborting...
May someone help me to understand this problem?

Thank you
Last edited by waulu13 on Sat May 18, 2019 4:50 pm, edited 1 time in total.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Certbot Illegal instruction

Post by MichaIng »

@waulu13
Many thanks for your report.
The line 54 should be a totally different one, not sure if the script might be somehow wrong/corrupted.

Since v6.23 was just released, could you update first and retry then?

If it still does not work, please try to run CertBot manually:

Code: Select all

certbot --nginx
waulu13
Posts: 3
Joined: Fri May 10, 2019 2:24 am

Re: Certbot Illegal instruction

Post by waulu13 »

Thank you for replying @MichaIng.

I followed your advice and updated the system to v6.24. Unfortunately, this didn't solve the problem.
Run manually CertBot produced the same output.

After searching a little bit I found that CertBot depends on some libraries that are not compatible with Armv6. I own a Raspberry Pi B+, so that may be the problem. I think there are already solutions for this problem, but right now I don't have much free time. I hope next week to be able to solve this.

EDITED: I was trying to follow this guide,

https://github.com/certbot/certbot/issues/2673

Supposedly the error is due to the library libaugeas being compiled to Armv7 instead of Armv6, but I don't have it installed. So the problem is somewhere else.

EDITED2: Problem solved just don't know why. I decided to uninstall certbot and install again. During the way DietPi upgraded a couple of packages, (i don't know if it's relevant), and now everything works just fine. Once again, congratulations on this Linux distribution.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Solved]Certbot Illegal instruction

Post by MichaIng »

@waulu13
I just wanted to say... Since the CertBot package is coming from Raspbian repo, it is definitely (+ all dependencies) ARMv6 compatible. Otherwise it would refuse to install in the first place. Not sure where the initial error came from then, but glad you solved it :).
Post Reply