[SRU] Using `fastcgi_cache` or `proxy_cache` with nginx-extras causes the push module to throw errors.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nginx |
Fix Released
|
Low
|
Unassigned | ||
nginx (Debian) |
Fix Released
|
Unknown
|
|||
nginx (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
* The nginx-http-push module generates errors when using fastcgi_cache or proxy_cache arguments in the config.
* This adds extra errors to the error logs, and causes problems with the cache manager.
* Caching still works, however, but this causes excessive unnecessary noise in the error logs and the issue is an incompatibility between the module and the nginx cache manager.
[Test Case]
* Use the nginx-extras package, and use any configuration with either `fastcgi_cache` or `proxy_cache` arguments. (NOTE: I have provided a test case below that works with php5-fpm and this. You do not need php5-fpm for this to work, however it would not hurt to have it installed at the same time.)
[Regression Potential]
* This fix originated upstream, and should not introduce any regressions.
[Other Info]
* The debdiffs here are derived from upstream changes, as detailed at https:/
* The only changes to this diff were the indentation, to match what was in the packages.
[Original Description]
system : Ubuntu 12.04 LTS
package : nginx-extras 1.4.1-1ppa1~precise
Hello,
if you try to use proxy_cache or fastcgi_cache you got this error in error.log of nginx :
2013/08/26 00:13:10 [info] 15722#0: Using 32KiB of shared memory for push module in /etc/nginx/
2013/08/26 00:13:11 [alert] 15756#0: epoll_ctl(1, 0) failed (1: Operation not permitted)
2013/08/26 00:13:11 [alert] 15756#0: failed to register channel handler while initializing push module worker (1: Operation not permitted)
2013/08/26 00:13:11 [alert] 15757#0: epoll_ctl(1, 0) failed (1: Operation not permitted)
2013/08/26 00:13:11 [alert] 15757#0: failed to register channel handler while initializing push module worker (1: Operation not permitted)
2013/08/26 00:13:11 [alert] 15737#0: cache manager process 15756 exited with fatal code 2 and cannot be respawned
You can't disable nginx_push_module, to make nginx cache to work.
Everything is fine if you use the "daemon off;" option.
I've seen this issue in many forum/mailing list, i think nginx_push_module shouldn't be in the extras package anymore.
system : Ubuntu 12.04 LTS
package : nginx-extras 1.4.1-1ppa1~precise
Changed in nginx: | |
status: | Confirmed → Incomplete |
Changed in nginx: | |
importance: | Undecided → Low |
Changed in nginx (Ubuntu): | |
importance: | Undecided → Low |
Changed in nginx (Debian): | |
status: | Unknown → New |
summary: |
- issue with nginx cache and nginx push module in nginx-extra package + Using `fastcgi_cache` or `proxy_cache` with nginx-extras causes the push + module to throw errors. |
Changed in nginx (Debian): | |
status: | New → Confirmed |
Changed in nginx (Debian): | |
status: | Confirmed → Fix Released |
Changed in nginx: | |
status: | Triaged → Fix Committed |
tags: |
added: verification-done-trusty removed: trusty-verification-done |
tags: |
added: precise verification-needed-precise removed: verification-needed |
Confirmed. I'm seeing this issue also on nginx-extras 1.1.19-1ubuntu0.4