Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graceful restart throws 'Bad file descriptor' in fdpoll-epoll.c #1006

Open
danielniccoli opened this issue Aug 13, 2013 · 0 comments
Open

Graceful restart throws 'Bad file descriptor' in fdpoll-epoll.c #1006

danielniccoli opened this issue Aug 13, 2013 · 0 comments

Comments

@danielniccoli
Copy link
Contributor

A graceful restart when saving from cherokee-admin brings up this error in the shell. Unfortunately I cannot reproduce this error.

Handling Graceful Restart..
[13/08/2013 13:05:16.138] (error) fdpoll-epoll.c:140 - epoll_ctl: ep_fd 5, fd
    0: 'Bad file descriptor' | The issue seems to be related to your system.

file thread.c:1963 (watch_accept_MULTI_THREAD): this should not happen
PID 11586: exited re=0
Cherokee Web Server 1.2.103 (Aug 12 2013): Listening on port ALL:80, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, 5 threads, 408 connections per thread, standard scheduling policy

My config file

config!version = 001002103
server!bind!1!port = 80
server!group = www-data
server!keepalive = 1
server!keepalive_max_requests = 500
server!panic_action = /usr/local/bin/cherokee-panic
server!pid_file = /usr/local/var/run/cherokee.pid
server!server_tokens = full
server!timeout = 15
server!user = www-data
vserver!10!directory_index = index.html
vserver!10!document_root = /usr/local/var/www
vserver!10!error_writer!filename = /usr/local/var/log/cherokee.error
vserver!10!error_writer!type = file
vserver!10!logger = combined
vserver!10!logger!access!buffsize = 16384
vserver!10!logger!access!filename = /usr/local/var/log/cherokee.access
vserver!10!logger!access!type = file
vserver!10!nick = default
vserver!10!rule!5!encoder!gzip = allow
vserver!10!rule!5!handler = server_info
vserver!10!rule!5!match = directory
vserver!10!rule!5!match!directory = /about
vserver!10!rule!4!document_root = NONE/lib/cgi-bin
vserver!10!rule!4!handler = cgi
vserver!10!rule!4!match = directory
vserver!10!rule!4!match!directory = /cgi-bin
vserver!10!rule!3!document_root = /usr/local/share/cherokee/themes
vserver!10!rule!3!handler = file
vserver!10!rule!3!match = directory
vserver!10!rule!3!match!directory = /cherokee_themes
vserver!10!rule!2!document_root = /usr/local/share/cherokee/icons
vserver!10!rule!2!handler = file
vserver!10!rule!2!match = directory
vserver!10!rule!2!match!directory = /cherokee_icons
vserver!10!rule!1!handler = drop
vserver!10!rule!1!handler!iocache = 1
vserver!10!rule!1!match = default
vserver!20!directory_index = index.php,index.html
vserver!20!document_root = /usr/local/var/www/test
vserver!20!error_writer!type = stderr
vserver!20!match = target_ip
vserver!20!match!nick = 0
vserver!20!match!to!1 = x.x.x.x
vserver!20!nick = test
vserver!20!rule!20!disabled = 0
vserver!20!rule!20!encoder!gzip = allow
vserver!20!rule!20!flcache = allow
vserver!20!rule!20!flcache!policy = explicitly_allowed
vserver!20!rule!20!handler = fcgi
vserver!20!rule!20!handler!balancer = round_robin
vserver!20!rule!20!handler!balancer!source!10 = 1
vserver!20!rule!20!handler!error_handler = 1
vserver!20!rule!20!match = extensions
vserver!20!rule!20!match!check_local_file = 1
vserver!20!rule!20!match!extensions = php
vserver!20!rule!20!match!final = 0
vserver!20!rule!20!timeout = 30
vserver!20!rule!10!handler = common
vserver!20!rule!10!match = default
source!1!env_inherited = 1
source!1!host = /var/run/php5-fpm.sock
source!1!interpreter = /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/php-fpm.conf
source!1!nick = PHP Interpreter
source!1!type = interpreter
icons! …
mime! …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant