New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LetsEncrypt fails to parse an Apache config file #1294
Comments
Is the problem caused by Apache configuration files not being valid SGML or XML and specifically the greater than and less than syntax in the For example: <IfVersion >= 2.3>
Require all denied
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Deny from all
</IfVersion> Module documentation: https://httpd.apache.org/docs/2.4/mod/mod_version.html |
I suspect the problem here is the same as #1264 -- augeas appears to error on a less than in a <IfVersion < 2.3> |
Issue seems to also to extend to elements such as |
Which OS and version are you on? Can you check the version of Augeas? |
I am on Ubuntu 15.10 |
Marcus pointed me here. Mine is failing on alias.conf and if I comment that out it fails on others too. See https://community.letsencrypt.org/t/apache-config-parsing-errors/2617
|
@marcusds sorry, that question was directed at the original bug report from @paulschreiber. Yours may not be the same bug. Please pastebin a full config file that demonstrates the problem, since I can't reproduce it from that single fragment. @Clete2 works fine for me on Augeas 1.3.0 and above. |
@domcleal I'm running Ubuntu 14.04.3 LTS. How do I tell what version of augeas I have? I have this egg:
and
|
This was fixed in git master by #1291! |
Hmm, didn't fix it for me. I ran
|
@Clete2, based on your logs, it appears that you are using Sorry for the trouble! |
Sorry for not realizing! Thanks for the clarification. |
Same here with a fresh install today. I am on Ubuntu 14.04 LTS.
|
Ubuntu 14.04 LTS, exactly the same output as hokascha. |
I was eventually able to get this to work. The latest version breaks if the start and end tags don't have the same case: |
@paulschreiber checked my conf - I have no |
Please note that parsing errors can happen for all sorts of reasons and we've been fixing each case separately, so it's really important to see the contents of each file that's failing. @hokascha can you gist the contents of @sharpless which file is failing to parse for you, and can you gist it? Look at the @paulschreiber thanks, I've fixed this in Augeas at hercules-team/augeas@ba10b23 |
@domcleal Here's the config content: https://gist.github.com/hokascha/87da802584fa2b0675cc |
@hokascha the missing double quote on the SSLCipherSuite line is causing the failure. If you add it then it should parse. I filed a bug against Augeas at hercules-team/augeas#330. It's probably useful to the LE devs if you can open new tickets to track each different failure, as the original issue reported here has been fixed. |
I checked the file that was causing the problem, and noted that there were a few bad lines, but since that file wasn't loaded by Apache, I didn't get any errors from configtest. Fixed it, and was able to generate certificates. Maybe there is a need for a more friendly error message? |
@sharpless indeed, I'd suggest filing a bug for the LE folks showing the actual versus expected output. The output of the PluginError looks a little unfriendly and could show the path more prominently I guess. |
@hokascha I've filed #1724 to track the issue you're experiencing, but I don't have a fix for it at the moment apart from editing the config to add the missing quote. If anybody else has Apache config file parse failures, please file a new ticket at https://github.com/letsencrypt/letsencrypt/issues/new to avoid more confusion, and feel free to mention |
my error was with compression.conf because there was no ending IfModule tag Debian7 Apache 2.2 |
LetsEncrypt fails to parse an Apache config file
Config file looks clean:
Configuration file: http://pastebin.com/a1ZLYhAk
The text was updated successfully, but these errors were encountered: