[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
Thu Nov 20 13:13:02 UTC 2014


Vorobyoff:

This will be fixed whenever the SRU team sees the upload - it's in the
queue.

In the mean time, you can use my PPA with these changes already present
- https://launchpad.net/~teward/+archive/ubuntu/nginx-sru/

It's ultimately the same builds that the debdiffs help make.  If you can
confirm the changes work that is one step in this - confirming the fixes
actually work.

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

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

Status in Nginx:
  Fix Released
Status in “nginx” package in Ubuntu:
  Fix Released
Status in “nginx” source package in Precise:
  Triaged
Status in “nginx” source package in Trusty:
  Triaged
Status in “nginx” package in Debian:
  Fix Released

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://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

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



More information about the Ubuntu-sponsors mailing list