Имя дублирует предыдущее определение демона WSGI при использовании pgadmin - PullRequest
0 голосов
/ 21 марта 2020

Я установил pgadmin на Centos7, используя sudo yum -y install pgadmin4. Затем я попытался обновить мои ssl-сертификаты, используя sudo certbot --apache, но получил следующую ошибку (полный вывод внизу сообщения):

Error while running apachectl configtest.

[Sat Mar 21 13:51:28.908733 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
[Sat Mar 21 13:51:28.908946 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
AH00526: Syntax error on line 10 of /etc/httpd/conf.d/pgadmin4.conf:
Name duplicates previous WSGI daemon definition.

Rolling back to previous server configuration...

My pgadmin4.conf is:

[michael@mysite ~]$ cat /etc/httpd/conf.d/pgadmin4.conf
<VirtualHost *:80>
    ServerName pgsql.mysite.net

    #per: https://www.pgadmin.org/docs/pgadmin4/development/server_deployment.html
    #WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/path/to/python/virtualenv
    #WSGIScriptAlias / /opt/pgAdmin4/web/pgAdmin4.wsgi

    #per: https://www.tecmint.com/install-pgadmin4-in-centos-7/
    LoadModule wsgi_module modules/pgadmin4-python3-mod_wsgi.so
    WSGIDaemonProcess pgadmin processes=1 threads=25
    #WSGIScriptAlias /pgadmin4 /usr/lib/python3.6/site-packages/pgadmin4-web/pgAdmin4.wsgi
    WSGIScriptAlias / /usr/lib/python3.6/site-packages/pgadmin4-web/pgAdmin4.wsgi

    #<Directory /opt/pgAdmin4/web>
    <Directory /usr/lib/python3.6/site-packages/pgadmin4-web/>
        WSGIProcessGroup pgadmin
        WSGIApplicationGroup %{GLOBAL}
        #Order deny,allow
        #Allow from all
        Require all granted
    </Directory>
</VirtualHost>
[michael@mysite ~]$

Я попытался переименовать pgadmin в my_pgadmin за { ссылка } рекомендации, но без изменений.

Как это можно сделать?

[michael@mysite ~]$ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: ...
14: pgsql.mysite.net
23: ...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 14
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/pgsql.mysite.net.conf)

What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Created an SSL vhost at /etc/httpd/conf.d/pgadmin4-le-ssl.conf
Deploying Certificate to VirtualHost /etc/httpd/conf.d/pgadmin4-le-ssl.conf
Error while running apachectl configtest.

[Sat Mar 21 13:51:28.908733 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
[Sat Mar 21 13:51:28.908946 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
AH00526: Syntax error on line 10 of /etc/httpd/conf.d/pgadmin4.conf:
Name duplicates previous WSGI daemon definition.

Rolling back to previous server configuration...
Error while running apachectl configtest.

[Sat Mar 21 13:51:28.908733 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
[Sat Mar 21 13:51:28.908946 2020] [so:warn] [pid 36792:tid 140453649897600] AH01574: module wsgi_module is already loaded, skipping
AH00526: Syntax error on line 10 of /etc/httpd/conf.d/pgadmin4.conf:
Name duplicates previous WSGI daemon definition.


IMPORTANT NOTES:
 - We were unable to install your certificate, however, we
   successfully restored your server to its prior configuration.
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/pgsql.mysite.net/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/pgsql.mysite.net/privkey.pem
   Your cert will expire on 2020-06-19. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
[michael@mysite ~]$    
...