Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#851784: libnginx-mod-http-dav-ext: unknown directive "dav_ext_methods"

1,680 views
Skip to first unread message

Nazar A Wahab

unread,
Jan 18, 2017, 1:10:03 PM1/18/17
to
Package: libnginx-mod-http-dav-ext
Version: 1.10.2-2
Severity: important

After v1.10.2-2 dav-ext dynamic module, Nginx no longer start: unknown
directive "dav_ext_methods"

Dear Maintainer,

* What led up to the situation?
Since v1.10.2-2 where dav-ext has been converted to a dynamic module
package (found in the change log, Christos Trochalakis <yat...@ideopolis.gr>
Sat, 12 Nov 2016 09:18:12 +0200), Nginx no longer starts, configtest failed:
unknown directive "dav_ext_methods". If this directive is removed from the
config, majority WebDAV clients will receive HTTP error 405 due to missing HTTP
methods "PROPFIND OPTIONS".

* What exactly did you do (or not do) that was effective (or
ineffective)?
Tried upgrading uptil v1.11.8-1~exp1 still the issue exists.

* What was the outcome of this action?
Had to downgrade to v1.10.2-1.

* What outcome did you expect instead?
Hope to be able to use back the dav_ext_methods directive in future
versions.



-- System Information:
Debian Release: 8.7
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_SG.UTF-8, LC_CTYPE=en_SG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Christos Trochalakis

unread,
Jan 21, 2017, 2:10:02 AM1/21/17
to
Hello Nazar,

On Thu, Jan 19, 2017 at 01:44:51AM +0800, Nazar A Wahab wrote:
>Package: libnginx-mod-http-dav-ext
>Version: 1.10.2-2
>Severity: important
>
>After v1.10.2-2 dav-ext dynamic module, Nginx no longer start: unknown
>directive "dav_ext_methods"
>
>Dear Maintainer,
>
> * What led up to the situation?
> Since v1.10.2-2 where dav-ext has been converted to a dynamic module
>package (found in the change log, Christos Trochalakis <yat...@ideopolis.gr>
>Sat, 12 Nov 2016 09:18:12 +0200), Nginx no longer starts, configtest failed:
>unknown directive "dav_ext_methods". If this directive is removed from the
>config, majority WebDAV clients will receive HTTP error 405 due to missing HTTP
>methods "PROPFIND OPTIONS".
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
> Tried upgrading uptil v1.11.8-1~exp1 still the issue exists.
>
> * What was the outcome of this action?
> Had to downgrade to v1.10.2-1.
>
> * What outcome did you expect instead?
> Hope to be able to use back the dav_ext_methods directive in future
>versions.
>

It seems to work for me on a clean sid system:

apt-get install nginx-full
rm /etc/nginx/sites-enabled/default
cat <<EOF > "/etc/nginx/sites-enabled/dav"
server {
listen 80 default_server;
root /srv/dav;

dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;

create_full_put_path on;
dav_access group:rw all:r;
}
EOF

nginx -t
nginx -s reload

>
>
>-- System Information:
>Debian Release: 8.7
> APT prefers stable
> APT policy: (500, 'stable')
>Architecture: amd64 (x86_64)
>
>Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
>Locale: LANG=en_SG.UTF-8, LC_CTYPE=en_SG.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/dash
>Init: systemd (via /run/systemd/system)

Are you trying to install 1.10.2-2 in a stable(jessie) system? That wont work,
those packages target only unstable and testing.

Ñãzãr

unread,
Jan 21, 2017, 8:40:03 AM1/21/17
to
Hello Christos,

Thanks for replying. I'm actually trying to install on a mixed wheezy/jessie armhf system, a WDMyCloud NAS. Today I re-compiled both 1.10.2-2 and 1.11.8-1~exp1 from the deb-src on my dev system but this time I removed the "dav-ext dynamic module" patch:

cd nginx_1.*/debian/;
rm -rf ./patches/modules/nginx-dav-ext-module/ ./libnginx-mod-http-dav-ext.nginx;
cd .. && dpkg-buildpackage -b;

Using these re-compiled nginx-full package with the "dav-ext dynamic module" patch removed (both 1.10.2-2 and 1.11.8-1~exp1), I can use the dav_ext_methods directive without errors.

I'm wondering if you could help to point out what causes this "unknown directive" issue on my system when the dav-ext is separated as a loaded module (load_module modules/ngx_http_dav_ext_module.so;) because I have all the dependencies met.

Thank you.

Christos Trochalakis

unread,
Feb 14, 2017, 5:40:03 AM2/14/17
to
Could you please retry against 1.10.2-4? There are some changes there
that might affect you.

Ñãzãr

unread,
Feb 15, 2017, 11:10:03 AM2/15/17
to
Hello Christos,

I've tried 1.10.2-4, in fact I've also tried the recent 1.10.3-1 both has the same error:

nginx: [emerg] unknown directive "dav_ext_methods" in /etc/nginx/sites-enabled/default.conf:91
nginx: configuration file /etc/nginx/nginx.conf test failed

Again if I recompile without the dav-ext dynamic module patch, it works.

 
Best Regards,
Ñážàŕ
0 new messages