manual-auth-hook command "/etc/letsencrypt/acme-dns-auth.py" returned error code 1
Error output from manual-auth-hook command acme-dns-auth.py:
Traceback (most recent call last):
File "/etc/letsencrypt/acme-dns-auth.py", line 4, in
File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 113, in
from . import packages
File "/usr/local/lib/python2.7/dist-packages/requests/packages.py", line 7, in
locals()[package] = __import__(package)
ImportError: No module named idna
The issue is caused by the “acme-dns-auth.py” using the wrong version of Python.
First make sure that you have the prerequisite installed:
apt install python3-pip
Open the “acme-dns-auth.py” file and update the first line to look like:
Now run the renew script
The best way to handle this issue to download the source code and install it from the command line:
- Download the source code:
- Extract the files, navigate to the folder and run the update script:
tar -xvf xi-5.7.4.tar
Before you enable SNMP in PHP 7, you first need to make sure that you have the proper SNMP packages installed on the Ubuntu System.
Install the SNMP packages
sudo apt-get install snmpd snmp libsnmp-dev
Before you install the PHP package, make sure you download and install the following package:
apt-get install snmp-mibs-downloader
This package will help translate OIDs into human readable strings
Now you can install the php extension.
apt-get install php-snmp
Then restart the followings:
service snmpd restart
service apache2 restart
Service nginx restart
Install and Manage MIBS file
tee command is normally used to split the output of a program so that it can be both displayed and saved in a file.” wikipedia
This command create a file.txt and anything you type is : displayed on the screen AND written to the file.
ctrl + z or ctrl + c
Use this command above to end the session
tee -a file.txt
Same thing as the previous command, except this time it is using the -a (append) flag.
“Note: When tee is used with a pipe, the output of the previous command is written to a temporary file. When that command finishes, tee reads the temporary file, displays the output, and writes it to the file(s) given as command-line argument.” wikipedia
echo "We are YCSoftware" | tee -a file.txt
The output of the echo command to be written to the file file.txt AND also displayed it on the screen
let’s list the block devices
if you are not using any floppy disk, there is no reason to have fd0 listed in the output of the command above.
“rmmod is a simple program which removes (unloads) a module from the Linux kernel.” Now run step 1 again to verify that the fd0 is no longer listed.
Run the following command to make the changes permanent
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
This command just create a file name blacklist-floppy.conf in the /etc/modprobe.d folder and appends the text “blacklist floppy” to it.
The last step is to reconfigure the kernel