Bug 43399
| Summary: | Не работает с нашим Apache | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Alexei V. Mezin <alexei.mezin> |
| Component: | certbot-apache | Assignee: | Vitaly Lipatov <lav> |
| Status: | RESOLVED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | amakeenk, cas, jurawww, lav, rider |
| Version: | unstable | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')
Когда это исправят?
apache-base и certbot-apache стоят. p11 workstation.
Подскажите, неужели вы используете Apache прямо наружу, без nginx перед ним? (Ответ для Vitaly Lipatov на комментарий #2) > Подскажите, неужели вы используете Apache прямо наружу, без nginx перед ним? да. nginx я не осилил. (Ответ для jura12 на комментарий #1) > # certbot --apache > Saving debug log to /var/log/letsencrypt/letsencrypt.log > The apache plugin is not working; there may be problems with your existing > configuration. > The error was: NoInstallationError('Cannot find Apache executable > apache2ctl') > > Когда это исправят? > > apache-base и certbot-apache стоят. p11 workstation. Никогда. Читайте http://altlinux.org/su- (Ответ для Andrey Cherepanov на комментарий #4) > (Ответ для jura12 на комментарий #1) > > # certbot --apache > > Saving debug log to /var/log/letsencrypt/letsencrypt.log > > The apache plugin is not working; there may be problems with your existing > > configuration. > > The error was: NoInstallationError('Cannot find Apache executable > > apache2ctl') > > > > Когда это исправят? > > > > apache-base и certbot-apache стоят. p11 workstation. > > Никогда. Читайте http://altlinux.org/su- я специально добавил в своем посте решетку перед certbot --apache . это означает что я уже в рут. но питон пути все равно не видит. толи он в контейнере, толи какиаято политики работает. вот полная последовательность действий: $ su - Password: [root@host-94 ~]# echo $PATH /root/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/game s [root@host-94 ~]# apt-get install apache2 apache2-base Чтение списков пакетов... Завершено Построение дерева зависимостей... Завершено Последняя версия apache2 уже установлена. Последняя версия apache2-base уже установлена. 0 будет обновлено, 0 новых установлено, 0 пакетов будет удалено и 0 не будет обн овлено. [root@host-94 ~]# apt-get install certbot certbot-apache Чтение списков пакетов... Завершено Построение дерева зависимостей... Завершено Следующие НОВЫЕ пакеты будут установлены: certbot certbot-apache 0 будет обновлено, 2 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено. Необходимо получить 0B/738kB архивов. После распаковки потребуется дополнительно 3743kB дискового пространства. Совершаем изменения... Подготовка... #################################################################################################### [100%] Обновление / установка... 1: certbot-2.10.0-alt1 #################################################################################################### [ 50%] 2: certbot-apache-2.10.0-alt1 #################################################################################################### [100%] Завершено. [root@host-94 ~]# certbot --apache -d jura12.ru Saving debug log to /var/log/letsencrypt/letsencrypt.log The apache plugin is not working; there may be problems with your existing configuration. The error was: NoInstallationError('Cannot find Apache executable apache2ctl') также у вас не работает pip. # pip install certbot certbot-apache Installing collected packages: cryptography, PyOpenSSL, josepy, acme, certbot, certbot-apache Attempting uninstall: cryptography Found existing installation: cryptography 42.0.5 ERROR: Cannot uninstall cryptography 42.0.5, RECORD file not found. You might be able to recover from this via: 'pip install --force-reinstall --no-deps cryptography==42.0.5'. но это другая история. ALT Workstation 11.0 (Prometheus) Да, Вы правы. В Альте утилиты называются /usr/sbin/apachectl и /usr/sbin/apachectl2 (Ответ для Andrey Cherepanov на комментарий #6) > Да, Вы правы. В Альте утилиты называются /usr/sbin/apachectl и > /usr/sbin/apachectl2 О чем и было написано в первом сообщении три года назад. Видимо, надо просто убрать из репозитория пакет certbot-apache, если за три года никто даже не попытался его починить. успешно получил сертификат и инсталлировал. последовательность команд: ln -s /usr/sbin/apachectl /usr/sbin/apache2ctl ln -s /etc/httpd2/conf/httpd2.conf /etc/httpd2/conf/apache2.conf mkdir -p /etc/httpd2/conf/conf-available mkdir -p /etc/httpd2/conf/conf-enabled apt-get install apache2-mod_ssl a2enmod ssl certbot --apache-server-root=/etc/httpd2/conf --apache -d jura12.ru (a2ensite jura12.ru-le-ssl) systemctl restart httpd2 для патча нудно включить в пакет команды: ln -s /usr/sbin/apachectl /usr/sbin/apache2ctl ln -s /etc/httpd2/conf/httpd2.conf /etc/httpd2/conf/apache2.conf ln -s /etc/httpd2/conf /etc/apache2 apt-get install apache2-mod_ssl В certbot-apache надо просто поправить пути на наши и не придумывать симлинков. (Ответ для Anton Farygin на комментарий #9) > В certbot-apache надо просто поправить пути на наши и не придумывать > симлинков. Более того, там определяется дистрибутив и согласно этому вызываются команды. Debian/Fedora и т.п. (Ответ для Anton Farygin на комментарий #9) > В certbot-apache надо просто поправить пути на наши и не придумывать > симлинков. Более того, там определяется дистрибутив и согласно этому вызываются команды. Debian/Fedora и т.п. Проблема актуальна:
# apt-get install apache2-base certbot-apache
# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')
# fd -t x apache /usr/bin /usr/sbin
/usr/sbin/apachectl
# rpm -q apache2-base certbot-apache
apache2-base-2.4.68-alt1.x86_64
certbot-apache-5.6.0-alt1.noarch
certbot-5.8.0-alt1 -> sisyphus: Sun Oct 11 2026 Vitaly Lipatov <lav@altlinux.ru> 5.8.0-alt1 - new version 5.8.0 - apache: add ALT Linux httpd2 layout support (closes: #43399) - add certbot-renew systemd service and timer, disabled by default (closes: #41480) |

Description
Alexei V. Mezin 2022-07-29 15:30:02 MSK# certbot --apache Saving debug log to /var/log/letsencrypt/letsencrypt.log The apache plugin is not working; there may be problems with your existing configuration. The error was: NoInstallationError('Could not find configuration root') Наше расположение /etc/httpd2, имена конфигрурационных файлов в нем, да и просто наличие apachectl вместо apache2ctl делают данный плагин неработоспособным абсолютно.