Сервер падает в kernel panic

Igor Sysoev is at rambler-co.ru
Thu Jan 31 23:52:05 MSK 2008


On Fri, Feb 01, 2008 at 01:45:01AM +0500, Egenius wrote:

> Был сервер с медиа контентом, решил перенести его на более мощный
> сервер. Поставил Fedora-8 и Nginx-5.34. Все конфиги взял со старого
> сервера, на котором стояла версия nginx-5.33 Пока сервер не был
> нагуржен запросами, всё работало нормально. Как только с него начали
> качать сервер упал с сообщением kernel panic.
> После перезагрузки обнаружил в логах вот это.

sendfile off

> Jan 31 21:56:50 onyx kernel: general protection fault: 0000 [1] SMP
> Jan 31 21:56:50 onyx kernel: CPU 1
> Jan 31 21:56:50 onyx kernel: Modules linked in: nfs lockd nfs_acl autofs4 sunrpc bonding ipv6 8021q nf_nat_ftp nf_conntrack_ftp iptable_nat nf_nat iptable_ma
> ngle ipt_REJECT xt_tcpudp nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink iptable_filter ip_tables x_tables dm_mirror dm_multipath dm_mod button pcspkr tg3
>  floppy sr_mod sg cdrom pata_serverworks libata aacraid sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd
> Jan 31 21:56:50 onyx kernel: Pid: 15646, comm: nginx Not tainted 2.6.23.9-85.fc8 #1
> Jan 31 21:56:50 onyx kernel: RIP: 0010:[<ffffffff8109719b>]  [<ffffffff8109719b>] __kmalloc_node_track_caller+0x79/0xa9
> Jan 31 21:56:50 onyx kernel: RSP: 0018:ffff81001b2c79d8  EFLAGS: 00010046
> Jan 31 21:56:50 onyx kernel: RAX: 0000000000000000 RBX: 0000000000000286 RCX: 000000000000000a
> Jan 31 21:56:50 onyx kernel: RDX: ffff8100026b39a0 RSI: b1125d92695f0adf RDI: ffffffff8140ebd0
> Jan 31 21:56:50 onyx kernel: RBP: ffffffff8140ebd0 R08: ffff81000159caf0 R09: 0000000000000000
> Jan 31 21:56:50 onyx kernel: R10: ffffffff811eb26a R11: 74676216e5447c72 R12: 00000000ffffffff
> Jan 31 21:56:50 onyx kernel: R13: 00000000000000d0 R14: ffffffff8121ae31 R15: 0000000000000001
> Jan 31 21:56:50 onyx kernel: FS:  00002aaaaaac1430(0000) GS:ffff81007ff69300(0000) knlGS:0000000000000000
> Jan 31 21:56:50 onyx kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> Jan 31 21:56:50 onyx kernel: CR2: 00002aaaaaccd000 CR3: 0000000075054000 CR4: 00000000000006e0
> Jan 31 21:56:50 onyx kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> Jan 31 21:56:50 onyx kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Jan 31 21:56:50 onyx kernel: Process nginx (pid: 15646, threadinfo ffff81001b2c6000, task ffff810074acc820)
> Jan 31 21:56:50 onyx kernel: Stack:  ffff81004fe7da00 00000000ffffffff 0000000000000380 00000000000000d0
> Jan 31 21:56:50 onyx kernel:  ffffffff8140e1f0 ffffffff811eb297 000000000001238c ffff810019a32200
> Jan 31 21:56:50 onyx kernel:  ffff810019362000 0000000000000218 0000000000000000 0000000000000168
> Jan 31 21:56:50 onyx kernel: Call Trace:
> Jan 31 21:56:50 onyx kernel:  [<ffffffff811eb297>] __alloc_skb+0x69/0x133
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8121ae31>] tcp_sendmsg+0x197/0xaf0
> Jan 31 21:56:50 onyx kernel:  [<ffffffff811e5375>] sock_sendmsg+0xea/0x107
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810493f1>] autoremove_wake_function+0x0/0x2e
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8106d4e5>] delayacct_end+0x7d/0x88
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8125bdca>] __wait_on_bit_lock+0x5b/0x66
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b88f4>] generic_file_splice_read+0x3bb/0x41b
> Jan 31 21:56:50 onyx kernel:  [<ffffffff811e68a6>] kernel_sendmsg+0x2c/0x3e
> Jan 31 21:56:50 onyx kernel:  [<ffffffff811e73c5>] sock_no_sendpage+0xbb/0xc8
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8102e910>] find_busiest_group+0x25b/0x6a2
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8121a69a>] tcp_sendpage+0x4b/0x64b
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b77fa>] pipe_to_sendpage+0x5a/0x61
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b7ed3>] __splice_from_pipe+0x58/0x1bd
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b77a0>] pipe_to_sendpage+0x0/0x61
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b77a0>] pipe_to_sendpage+0x0/0x61
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b8176>] splice_from_pipe+0x63/0x81
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b7951>] direct_splice_actor+0x1b/0x1d
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b7b56>] splice_direct_to_actor+0xdd/0x16c
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b7936>] direct_splice_actor+0x0/0x1d
> Jan 31 21:56:50 onyx kernel:  [<ffffffff810b7c15>] do_splice_direct+0x30/0x3e
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8109ba6a>] do_sendfile+0x1b5/0x256
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8109bb56>] sys_sendfile64+0x4b/0x86
> Jan 31 21:56:50 onyx kernel:  [<ffffffff8100bbce>] system_call+0x7e/0x83
> Jan 31 21:56:50 onyx kernel:
> Jan 31 21:56:50 onyx kernel:
> Jan 31 21:56:50 onyx kernel: Code: 48 8b 04 c6 48 89 42 10 53 9d 66 45 85 ed 79 11 48 85 f6 74
> Jan 31 21:56:50 onyx kernel: RIP  [<ffffffff8109719b>] __kmalloc_node_track_caller+0x79/0xa9
> Jan 31 21:56:50 onyx kernel:  RSP <ffff81001b2c79d8>
> Jan 31 22:35:25 onyx rsyslogd: [origin software="rsyslogd" swVersion="1.19.11" x-pid="2236"][x-configInfo udpReception="No" udpPort="514" tcpReception="No" t
> cpPort="0"] restart
>   
> Прилагаю так-же кусок конфига.
> 
> 
> user apache apache;
> worker_processes  10;
> 
> error_log   /var/log/nginx/error.log;
> 
> events {
>     worker_connections  2000;
> }
> 
> 
> http {
>     proxy_temp_path /var/spool/nginx/tmp/proxy;
>     fastcgi_temp_path /var/spool/nginx/tmp/fastcgi;
>     client_body_temp_path /var/spool/nginx/tmp/client;
> 
>     include       /etc/nginx/mime.types;
>     default_type  application/octet-stream;
>     sendfile        on;
>     tcp_nodelay     on;
>     tcp_nopush      on;
>     keepalive_timeout  65;
> 
>     geo $uznet  {
>             default          no;
>             include         /etc/nginx/uznet;
>     }
>     server {
>         listen       80.80.208.37:80;
>         server_name  localhost;
> 
>         if ($uznet != uz) {
>             return 405;}
> 
>         location / {
>             root /var/www/nginx_html;
>             index  index.html index.htm;
>         }
> 
>         error_page   500 502 503 504  /50x.html;
>         location = /50x.html {
>             root /var/www/nginx_html;
>         }
>     }
> 
> 
> -- 
> Best regards,
>  Egenius                          mailto:Egenius at tps.uz
> 
> 

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list