Mailing List Archive

Issue 719 in cherokee: cherokee-admin doesn't bind IPv6
Status: New
Owner: ----

New issue 719 by felix89: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

What steps will reproduce the problem?
1. cherokee-admin -b <IPv6-Address>
2. http://<IPv6-Address>:9090
3. Fail!

What is the expected output? What do you see instead?
The admin interface cannot be accessed through IPv6.

What version of the product are you using? On what operating system?
Fedora 12 with cherokee-0.99.39-1.fc12.x86_64

Please provide any additional information below.
[root@pluto ~]# netstat -tulpen | grep cherokee
tcp 0 0 0.0.0.0:9090 0.0.0.0:*
LISTEN 0 3198403 9096/cherokee-admin
tcp 0 0 :::80 :::*
LISTEN 0 2536751 13603/cherokee-work

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Updates:
Status: Accepted
Labels: Priority-Medium Component-Admin

Comment #1 on issue 719 by skarcha: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Reproduced.

Patch (simple) attached for review.

Once applied:

=====================
$ cherokee-admin -b::1 -u

Web Interface:
URL: http://::1:9090/

Cherokee Web Server 0.99.43b4212 (Feb 8 2010): Listening on port ::1:9090,
TLS
disabled, IPv6 enabled, using epoll, 1024 fds system limit, max. 505
connections, caching I/O, single thread
=====================


Attachments:
admin_ipv6.patch 535 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Updates:
Status: Started
Owner: skarcha

Comment #2 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Ohhh.. geez! What a dumb mistake.

+ 1 :-)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Updates:
Status: Fixed

Comment #3 on issue 719 by skarcha: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Ok, fixed in r4223: http://svn.cherokee-project.com/changeset/4223

alobbs, I think we can forgive this... xD


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Updates:
Status: Started
Labels: OpSys-BSD

Comment #4 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

We've introduced a new regression here. It seems that OpenBSD only listens
on the IPv6
interface now (it stopped responding to IPv4 requests).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #5 on issue 719 by skarcha: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

cherokee-worker should have the same problem, am I right?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #6 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

No. The worker does what the configuration file points it to do.

The case of cherokee-admin is slightly different though. An embedded
configuration is
used to initialize the server, and there is no much the user can do about
it.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #7 on issue 719 by skarcha: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

I meant: cherokee-worker should have the same problem IF you enable
IPv6. :-)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #8 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Well, I don't think it's a problem, actually. IMO it's more like a
difference on operating
system behavior.

- If you use Linux, you will have to enable IPv6.
- If you use OpenBSD, you will have to enable IPv6. Additionally, due to
the extra
security measures of the OS, you'll also have to add a new port to listen
(because the it
won't to that automatically as Linux does).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #9 on issue 719 by ste...@konink.de: cherokee-admin doesn't bind
IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

I see that on FreeBSD ALL doesn't mean 'ALL', but just v6. Maybe we should
make this
clear.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #10 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Well, I would actually add some code to check wether Cherokee is running in
a dual-stack stack (as in Linux or
MacOS) or independent stack (as in FreeBSD).

In case it were running with an independent TCP stack, we could add a
second "server!bind" entry on-the-fly to
the configuration in cherokee-admin. We'd unify the behavior among the
different OSes in that way.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #11 on issue 719 by kallist...@gmail.com: cherokee-admin doesn't
bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

hmm. cherokee-admin won't bind to an IPv6 address for me as well:


sudo cherokee-admin -b=2001:470:1f10:53a::2 -p 9000
[22/01/2011 09:52:03.201] (critical) bind.c:284 - Could not bind()
port=9000 (UID=0, GID=0)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #12 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

The syntax was wrong. You can either use "-b<IP>" or "--bind=<IP>". The
syntax you used "-b=<IP>" is wrong though:

$ cherokee-admin -bfe80::21f:5bff:fec8:59a4%en1 -p 9000
$ cherokee-admin --bind=fe80::21f:5bff:fec8:59a4%en1 -p 9000

===============
Cherokee Web Server 1.0.18b6146 (Jan 21 2011): Listening on port
[fe80::21f:5bff:fec8:59a4%en1]:9000, TLS disabled, IPv6 enabled, using
kqueue,
4096 fds system limit, max. 2041 connections, caching I/O, 4 threads, 510
connections per thread, standard scheduling policy
===============

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #13 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Related to this issue:
http://svn.cherokee-project.com/changeset/6158

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #14 on issue 719 by alobbs: cherokee-admin doesn't bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Related as well:
http://svn.cherokee-project.com/changeset/6550

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #15 on issue 719 by ste...@konink.de: cherokee-admin doesn't bind
IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

Related: https://github.com/cherokee/pyscgi/pull/1

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #16 on issue 719 by m.pous...@netyxia.net: cherokee-admin doesn't
bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

I would also add, cherokee-admin don't reply even on ipv4 address if ipv6
is enabled on the kernel on my ubuntu server setup.


I had to fully disable IPv6 in sysctl to access the admin interface
remotely with ipv4.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 719 in cherokee: cherokee-admin doesn't bind IPv6 [ In reply to ]
Comment #17 on issue 719 by anthony....@gmail.com: cherokee-admin doesn't
bind IPv6
http://code.google.com/p/cherokee/issues/detail?id=719

We had the same problem in Gentoo as comment 16. See our downstream bug
report:

https://bugs.gentoo.org/show_bug.cgi?id=439590



_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev