Advertisement
codegazer

certbot in Mageia 6 - bug?

Jan 23rd, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. [root@test-obt-wordpress ~]# /home/mpb/Downloads/cert-bot/certbot-auto --authenticator standalone --installer apache --pre-hook "apachectl -k stop" --post-hook "apachectl -k start" # trying "Debian other" method
  2. FATAL: Mageia support is very experimental at present...
  3. if you would like to work on improving it, please ensure you have backups
  4. and then run this script again with the --debug flag!
  5. Alternatively, you can install OS dependencies yourself and run this script
  6. again with --no-bootstrap.
  7.  
  8. # So tried again with "--no-bootstrap"
  9.  
  10. [root@test-obt-wordpress ~]# /home/mpb/Downloads/cert-bot/certbot-auto --authenticator standalone --installer apache --pre-hook "apachectl -k stop" --post-hook "apachectl -k start" --no-bootstrap # trying "Debian other" method
  11. Creating virtual environment...
  12. Installing Python packages...
  13. Installation succeeded.
  14. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  15. The apache plugin is not working; there may be problems with your existing configuration.
  16. The error was: PluginError('There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error',)
  17.  
  18. # looked at line 17 of /etc/httpd/conf/conf.d/security.conf - what is the problem?
  19.  
  20. $ nl -ba /etc/httpd/conf/conf.d/security.conf
  21. 1 # miscellaneous security settings
  22. 2
  23. 3 # disable TRACE (CVE-2009-2823)
  24. 4 TraceEnable Off
  25. 5
  26. 6 <IfModule mod_dir.c>
  27. 7 # This protects rpm backup files from beeing served, these files could
  28. 8 # contain sensible information.
  29. 9 <FilesMatch "\.(rpmorig|rpmsave)$">
  30. 10 Require all denied
  31. 11 </FilesMatch>
  32. 12
  33. 13 # This protects ssi and php files from beeing served if the module is not
  34. 14 # installed, it prevents presumptive source code theft.
  35. 15 <IfModule !mod_include.c>
  36. 16 <FilesMatch "\.(shtml)$">
  37. 17 ErrorDocument 403 "<h1>403 Forbidden: Execute Access Forbidden</h1>\
  38. 18 <p>The server is currently not serving ssi scripts.</p><p>This \
  39. 19 could mean the server administrator is doing maintenance or has \
  40. 20 orphan ssi files laying around, please contact the server \
  41. 21 administrator or come back later. Thank you.</p>
  42. 22 Require all denied
  43. 23 </FilesMatch>
  44. 24 </IfModule>
  45. 25
  46. 26 <IfModule !mod_php.c>
  47. 27 <FilesMatch "\.(php|php3|php4|php5|phps|phtml)$">
  48. 28 ErrorDocument 403 "<h1>403 Forbidden: Execute Access Forbidden</h1>\
  49. 29 <p>The server is currently not serving php scripts.</p><p>This \
  50. 30 could mean the server administrator is doing maintenance or has \
  51. 31 orphan php files laying around, please contact the server \
  52. 32 administrator or come back later. Thank you.</p>
  53. 33 Require all denied
  54. 34 </FilesMatch>
  55. 35 </IfModule>
  56. 36 </IfModule>
  57. 37
  58.  
  59.  
  60. # Here is the log from running certbot
  61.  
  62. # nl -ba /var/log/letsencrypt/letsencrypt.log
  63. 1 2018-01-23 10:36:02,529:DEBUG:certbot.main:certbot version: 0.21.0
  64. 2 2018-01-23 10:36:02,530:DEBUG:certbot.main:Arguments: ['--authenticator', 'standalone', '--installer', 'apache', '--pre-hook', 'apachectl -k stop', '--post-hook', 'apachectl -k start', '--no-bootstrap']
  65. 3 2018-01-23 10:36:02,530:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
  66. 4 2018-01-23 10:36:02,558:DEBUG:certbot.log:Root logging level set at 20
  67. 5 2018-01-23 10:36:02,559:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
  68. 6 2018-01-23 10:36:02,562:DEBUG:certbot.plugins.selection:Requested authenticator standalone and installer apache
  69. 7 2018-01-23 10:36:02,776:DEBUG:certbot_apache.configurator:Apache version is 2.4.27
  70. 8 2018-01-23 10:36:03,109:DEBUG:certbot.plugins.disco:Other error:(PluginEntryPoint#apache): There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error
  71. 9 Traceback (most recent call last):
  72. 10 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
  73. 11 self._initialized.prepare()
  74. 12 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/configurator.py", line 228, in prepare
  75. 13 self.check_parsing_errors("httpd.aug")
  76. 14 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/augeas_configurator.py", line 77, in check_parsing_errors
  77. 15 raise errors.PluginError(msg)
  78. 16 PluginError: There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error
  79. 17 2018-01-23 10:36:03,110:DEBUG:certbot.plugins.selection:No candidate plugin
  80. 18 2018-01-23 10:36:03,330:DEBUG:certbot.plugins.selection:Single candidate plugin: * standalone
  81. 19 Description: Spin up a temporary webserver
  82. 20 Interfaces: IAuthenticator, IPlugin
  83. 21 Entry point: standalone = certbot.plugins.standalone:Authenticator
  84. 22 Initialized: <certbot.plugins.standalone.Authenticator object at 0x7f7f563abe90>
  85. 23 Prep: True
  86. 24 2018-01-23 10:36:03,332:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.standalone.Authenticator object at 0x7f7f563abe90> and installer None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement