Running certbot just returns with no action

Whoops, that last part was asking you to run certbot. Silly phone keyboard. Also you already posted that so ignore this part. Maybe a bit tired myself. =]

Illegal instruction is interesting though. Could you paste the exact output? That looks like the best string to pull on for now.

root@raspberrypi:/home/pi# certbot certonly --webroot -w /var/www/html -d X.netgear.com
Illegal instruction

hi, back from my brother’s wedding this weekend… would still love to figure this out

reply with results of:
which certbot
and also
certbot --version

pi@raspberrypi:~ $ which certbot
/usr/bin/certbot
pi@raspberrypi:~ $ certbot --version
Illegal instruction

is it possible the rpi i am running my server on is too old? and the illegal instruction is because the processor architecture doesnt understand some of the instructions? it is a fairly old pi i had laying around, not sure the model… i can check

pi@raspberrypi:~ $ lscpu
Architecture:          armv6l
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Model name:            ARMv6-compatible processor rev 7 (v6l)
CPU max MHz:           700.0000
CPU min MHz:           700.0000

Can you upgrade the pi software?

I would suggest trying

gdb python

and then at the (gdb) prompt

run /usr/bin/certbot --version

Edit: although I don’t know if you have gdb installed or not

if needed, i dont see why not… is that the issue?

pi@raspberrypi:~ $ gdb python
GNU gdb (Raspbian 7.7.1+dfsg-5+rpi1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...(no debugging symbols found)...done.
(gdb) run /usr/bin/certbot --version
Starting program: /usr/bin/python /usr/bin/certbot --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0xb6886de0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb)

Not sure but it can't hurt.

i’ve installed the latest OS (within the past month or so) and ive run apt-get update/upgrade

what else would i need to do?

Getting the certbot version would be nice:
/usr/bin/certbot --version
sudo /usr/bin/certbot --version

ive tried that many times…

pi@raspberrypi:~ $ certbot --version
Illegal instruction
pi@raspberrypi:~ $ sudo certbot --version
pi@raspberrypi:~ $ /usr/bin/certbot --version
Illegal instruction
pi@raspberrypi:~ $ sudo /usr/bin/certbot --version
pi@raspberrypi:~ $

This is the underlying problem that is making it crash.

Maybe you can start by trying to reinstall this package in case this binary is somehow corrupted.

dpkg -S libcrypto.so.1.0.0 to find out the package name

then

sudo apt-get install --reinstall [that package name]

By the way, if the package is libssl1.0.0, there is also a version libssl1.0.0-dbg which has debugging symbols. If you switch over to that package, then running with gdb as before would show what the library was trying to do when it crashed; you could run backtrace at the post-crash (gdb) prompt to see a list of calls inside the library and learn the specific context of the crash.

libssl1.0.0:armhf: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0

so i would use the command below?

sudo apt-get install --reinstall libssl1.0.0:armhf

Yes, I’d suggest trying that.

did you run this command?

i ran the reinstall command, and tried again…

pi@raspberrypi:~ $ sudo apt-get install --reinstall libssl1.0.0:armhf
Reading package lists... Done
Building dependency tree        
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 75 not upgraded.
Need to get 853 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl1.0.0 armhf 1.0.1t-1+deb8u6 [853 kB]
Fetched 853 kB in 1s (488 kB/s)               
Preconfiguring packages ...
(Reading database ... 35604 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb ...
Unpacking libssl1.0.0:armhf (1.0.1t-1+deb8u6) over (1.0.1t-1+deb8u6) ...
Setting up libssl1.0.0:armhf (1.0.1t-1+deb8u6) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
pi@raspberrypi:~ $ /usr/bin/certbot --version
Illegal instruction
pi@raspberrypi:~ $ sudo gdb python
GNU gdb (Raspbian 7.7.1+dfsg-5+rpi1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...(no debugging symbols found)...done.
(gdb) run /usr/bin/certbot --version
Starting program: /usr/bin/python /usr/bin/certbot --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0xb6886de0 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) 

same error

Could you try with libssl1.0.0-dbg:armhf?

sure, do I need to install that lib, or how do I force it to use the debug lib?

sudo apt-get install libssl1.0.0-dbg:armhf

?

Yes, that should work, I think.