[Bug 1216817] Re: [SRU] Using `fastcgi_cache` or `proxy_cache` with nginx-extras causes the push module to throw errors.

Thomas Ward teward at trekweb.org
Wed Nov 5 19:11:50 UTC 2014


Confirmed that this testcase works.

You may use ppa:teward/nginx-sru as a test build if you wish to really
test this before it's uploaded to the proposed repositories.


I tested this on Trusty, but it should also work for precise.


REMEMBER: nginx-extras has the module so this needs to be tested with
nginx-extras and not any other package.

** Description changed:

  [Impact]
  
-  * The nginx-http-push module generates errors when using fastcgi_cache
+  * 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
+  * This adds extra errors to the error logs, and causes problems with
  the cache manager.
  
-  * Caching still works, however, but this causes excessive unnecessary
+  * 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 will attempt to
- develop a test configuration that you can use to test this)
+  * 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
+  * This fix originated upstream, and should not introduce any
  regressions.
  
  [Other Info]
-  
-  * The debdiffs here are derived from upstream changes, as detailed at https://github.com/slact/nginx_http_push_module/commit/836e8319c93681386fb00e6bd34d9e37612f3334.diff
  
-  * The only changes to this diff were the indentation, to match what was
+  * The debdiffs here are derived from upstream changes, as detailed at
+ https://github.com/slact/nginx_http_push_module/commit/836e8319c93681386fb00e6bd34d9e37612f3334.diff
+ 
+  * 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/nginx.conf:137
  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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1216817

Title:
  [SRU] Using `fastcgi_cache` or `proxy_cache` with nginx-extras causes
  the push module to throw errors.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nginx/+bug/1216817/+subscriptions



More information about the Ubuntu-server-bugs mailing list