[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:00:40 UTC 2014


Here's a test procedure:

(1) Use the attached test configuration file as a base, to test with
localhost.  (Partly derived from digital ocean's tutorials)

(2) Create a PHP file in the specified path.  Alternatively, use an
alternate root path.

(3) `tail -f /var/log/nginx/error.log`.  Watch for any error outputs.

(4) Load nginx with the config.  There should not be any errors
triggered similar to above.

(5) To further test, load the PHP file you created.  It should be
rendered correctly and there should not be any errors in the error log
similar to those observed with this bug.

** Attachment added: "Test configuration for this bug"
   https://bugs.launchpad.net/nginx/+bug/1216817/+attachment/4254042/+files/default-testcase

-- 
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 will attempt to
  develop a test configuration that you can use to test this)

  [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