Skip to content

apache plugin can't parse owncloud.conf #1264

Closed

Description

@hydrargyrum

When running

./letsencrypt-auto -d DOMAIN.TLD  --apache auth

I get

The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(('There has been an error in parsing the file (%s): %s', u'/etc/apache2/conf-enabled/owncloud.conf', u'Syntax error'),)

Here's my owncloud.conf (straight from the debian owncloud package):

Alias /owncloud /usr/share/owncloud

<Directory /usr/share/owncloud/>
    Options +FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3>
        order allow,deny
        allow from all
    </IfVersion>
    <IfVersion >= 2.3>
        Require all granted
    </IfVersion>
</Directory>

Activity

  1. changed the title [-]LE-auto can't parse owncloud.conf[/-] [+]apache plugin can't parse owncloud.conf[/+] on Oct 31, 2015
  2. owenhayman commented on Nov 2, 2015

    @owenhayman

    Could it be that the regex is hitting the "<" and ">" symbols which are inside the actual tags, and is then screwing up? Seems like a possibility, assuming you use RE for the config parsing.

  3. hydrargyrum commented on Nov 3, 2015

    @hydrargyrum
    Author

    What do you mean? LE-auto seems to use augeas for parsing the configuration.

  4. chriscroome commented on Nov 3, 2015

    @chriscroome

    It appears to me that augeas was fixed to work with the following syntax hercules-team/augeas#154

        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>

    But was it fixed to work with this?

        <IfVersion < 2.3>
            order allow,deny
            allow from all
        </IfVersion>
  5. domcleal commented on Nov 4, 2015

    @domcleal
    Contributor

    @hydrargyrum which OS + version are you on? Can you check the version of Augeas?

  6. hydrargyrum commented on Nov 4, 2015

    @hydrargyrum
    Author

    I'm using debian sid, with libaugeas0 1.2.

  7. domcleal commented on Nov 4, 2015

    @domcleal
    Contributor

    Yeah, that's missing the fix that @chriscroome mentions, which is in Augeas 1.3.0+. I don't know why the maintainer hasn't updated it in unstable yet.

  8. added this to the 1.0 for launch milestone on Nov 4, 2015
  9. pde commented on Nov 4, 2015

    @pde
    Member

    If as @domcleal says this was fixed in Augeas 1.3.0+, this issue should be resolved when #1291 lands. But let's confirm that and add a test case if we can.

  10. pde commented on Nov 6, 2015

    @pde
    Member

    This was fixed by #1291. Thanks team!

  11. jojom4n commented on Dec 4, 2015

    @jojom4n

    It seems it has not been fixed, to be honest, as reported in #1734 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions