Regular nginx and "nchan: Out of shared memory" errors, UI nearly unusable. Reboot required to fix


Recommended Posts

I'm having some serious ongoing problems with nginx, I'm on 6.8.3. The log was filling up, mainly with nginx errors, eg:

May 10 05:30:02 tobor-server kernel: Code: Bad RIP value.
May 10 05:30:02 tobor-server nginx: 2020/05/10 05:30:02 [alert] 7919#7919: worker process 21090 exited on signal 11
May 10 05:30:02 tobor-server nginx: 2020/05/10 05:30:02 [crit] 21187#21187: ngx_slab_alloc() failed: no memory
May 10 05:30:02 tobor-server nginx: 2020/05/10 05:30:02 [error] 21187#21187: shpool alloc failed
May 10 05:30:02 tobor-server nginx: 2020/05/10 05:30:02 [error] 21187#21187: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory.
May 10 05:30:02 tobor-server nginx: 2020/05/10 05:30:02 [error] 21187#21187: *1848775 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"

I needed to generate the diagnostics using the terminal as the UI is not responsive for certain pages.

I'm planning on doing a memtest when I'm near my server next, any other ideas I should be looking at?

server-diagnostics-20200510-1035.zip

Link to comment

Just did a reboot and get this within 5 mins:

May 11 17:47:11 tobor-server nginx: 2020/05/11 17:47:11 [error] 8916#8916: *2941 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /admin/api.php?version HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "127.0.0.1"
May 11 17:47:11 tobor-server nginx: 2020/05/11 17:47:11 [error] 8916#8916: *2943 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: ::1, server: , request: "GET /admin/api.php?version HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"

Different errors, but related to nginx & php?

 

EDIT: Ok ignore those errors, they're related to netdata as per this post:

Any ideas about the initial problems?

Edited by enmesh-parisian-latest
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.