You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joel Nylund <jn...@yahoo.com> on 2009/11/25 21:55:07 UTC

solr/jetty not working for anything other than localhost

Hi, if I try to use any other hostname jetty doesnt work, gives a  
blank page, if I telnet too the server/port it just disconnects.

I tried editing the scripts.conf to change the hostname, that didnt  
seem to help.

For example I tried editing my etc/hosts file and added:

127.0.0.1 solriscool

then:
ping solriscool
PING solriscool (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.055 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.095 ms


sh-3.2# telnet solriscool 8983
Trying 127.0.0.1...
Connected to solriscool.
Escape character is '^]'.
GET / HTTP/1.1
Connection closed by foreign host.


telnet localhost 8983
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET /solr HTTP/1.1
Host: localhost

HTTP/1.1 302 Found
Location: http://localhost/solr/
Content-Length: 0
Server: Jetty(6.1.3)


any ideas?

thanks
Joel


Re: solr/jetty not working for anything other than localhost

Posted by Joel Nylund <jn...@yahoo.com>.
yes says:

2009-11-25 18:08:59.967::INFO:  Started SocketConnector @ 0.0.0.0:8983

running on osx

thanks
Joel


On Nov 25, 2009, at 6:00 PM, simon wrote:

> On Wed, Nov 25, 2009 at 5:27 PM, Joel Nylund <jn...@yahoo.com>  
> wrote:
>
>> I see:
>>
>> tcp46      0      0  *.8983                 *.*                     
>> LISTEN
>> tcp4       0      0  127.0.0.1.8983         *.*                     
>> LISTEN
>>
>
> Not the same version of linux/netstat as mine, but I'd guess that the
> second  line is the key to the problem -looks as though TCP over  
> IPv4 is onl
> y listening on the localhost interface, which is a network  
> configuration
> issue.
>
> what does the Solr log say after it's started - should be a line
>
> INFO:  Started SelectChannelConnector @ 0.0.0.0:8983
>
>
> -Simon
>
>
>> thanks
>> Joel
>>
>>
>> On Nov 25, 2009, at 5:21 PM, simon wrote:
>>
>> first, check what port 8983 is bound to - should be listening on all
>>> interfaces
>>>
>>> netstat -an |grep 8983
>>>
>>> You should see
>>>
>>> tcp        0      0 0.0.0.0:8983          0.0.0.0:*                
>>> LISTEN
>>>
>>> -Simon
>>>
>>> On Wed, Nov 25, 2009 at 3:55 PM, Joel Nylund <jn...@yahoo.com>  
>>> wrote:
>>>
>>> Hi, if I try to use any other hostname jetty doesnt work, gives a  
>>> blank
>>>> page, if I telnet too the server/port it just disconnects.
>>>>
>>>> I tried editing the scripts.conf to change the hostname, that  
>>>> didnt seem
>>>> to
>>>> help.
>>>>
>>>> For example I tried editing my etc/hosts file and added:
>>>>
>>>> 127.0.0.1 solriscool
>>>>
>>>> then:
>>>> ping solriscool
>>>> PING solriscool (127.0.0.1): 56 data bytes
>>>> 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.055 ms
>>>> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.095 ms
>>>>
>>>>
>>>> sh-3.2# telnet solriscool 8983
>>>> Trying 127.0.0.1...
>>>> Connected to solriscool.
>>>> Escape character is '^]'.
>>>> GET / HTTP/1.1
>>>> Connection closed by foreign host.
>>>>
>>>>
>>>> telnet localhost 8983
>>>> Trying ::1...
>>>> Connected to localhost.
>>>> Escape character is '^]'.
>>>> GET /solr HTTP/1.1
>>>> Host: localhost
>>>>
>>>> HTTP/1.1 302 Found
>>>> Location: http://localhost/solr/
>>>> Content-Length: 0
>>>> Server: Jetty(6.1.3)
>>>>
>>>>
>>>> any ideas?
>>>>
>>>> thanks
>>>> Joel
>>>>
>>>>
>>>>
>>


Re: solr/jetty not working for anything other than localhost

Posted by simon <si...@lucidimagination.com>.
On Wed, Nov 25, 2009 at 5:27 PM, Joel Nylund <jn...@yahoo.com> wrote:

> I see:
>
> tcp46      0      0  *.8983                 *.*                    LISTEN
> tcp4       0      0  127.0.0.1.8983         *.*                    LISTEN
>

Not the same version of linux/netstat as mine, but I'd guess that the
second  line is the key to the problem -looks as though TCP over IPv4 is onl
y listening on the localhost interface, which is a network configuration
issue.

what does the Solr log say after it's started - should be a line

 INFO:  Started SelectChannelConnector @ 0.0.0.0:8983


-Simon


> thanks
> Joel
>
>
> On Nov 25, 2009, at 5:21 PM, simon wrote:
>
>  first, check what port 8983 is bound to - should be listening on all
>> interfaces
>>
>> netstat -an |grep 8983
>>
>> You should see
>>
>> tcp        0      0 0.0.0.0:8983          0.0.0.0:*               LISTEN
>>
>> -Simon
>>
>> On Wed, Nov 25, 2009 at 3:55 PM, Joel Nylund <jn...@yahoo.com> wrote:
>>
>>  Hi, if I try to use any other hostname jetty doesnt work, gives a blank
>>> page, if I telnet too the server/port it just disconnects.
>>>
>>> I tried editing the scripts.conf to change the hostname, that didnt seem
>>> to
>>> help.
>>>
>>> For example I tried editing my etc/hosts file and added:
>>>
>>> 127.0.0.1 solriscool
>>>
>>> then:
>>> ping solriscool
>>> PING solriscool (127.0.0.1): 56 data bytes
>>> 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.055 ms
>>> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.095 ms
>>>
>>>
>>> sh-3.2# telnet solriscool 8983
>>> Trying 127.0.0.1...
>>> Connected to solriscool.
>>> Escape character is '^]'.
>>> GET / HTTP/1.1
>>> Connection closed by foreign host.
>>>
>>>
>>> telnet localhost 8983
>>> Trying ::1...
>>> Connected to localhost.
>>> Escape character is '^]'.
>>> GET /solr HTTP/1.1
>>> Host: localhost
>>>
>>> HTTP/1.1 302 Found
>>> Location: http://localhost/solr/
>>> Content-Length: 0
>>> Server: Jetty(6.1.3)
>>>
>>>
>>> any ideas?
>>>
>>> thanks
>>> Joel
>>>
>>>
>>>
>

Re: solr/jetty not working for anything other than localhost

Posted by Joel Nylund <jn...@yahoo.com>.
I see:

tcp46      0      0  *.8983                 *.*                     
LISTEN
tcp4       0      0  127.0.0.1.8983         *.*                     
LISTEN

thanks
Joel

On Nov 25, 2009, at 5:21 PM, simon wrote:

> first, check what port 8983 is bound to - should be listening on all
> interfaces
>
> netstat -an |grep 8983
>
> You should see
>
> tcp        0      0 0.0.0.0:8983          0.0.0.0:*                
> LISTEN
>
> -Simon
>
> On Wed, Nov 25, 2009 at 3:55 PM, Joel Nylund <jn...@yahoo.com>  
> wrote:
>
>> Hi, if I try to use any other hostname jetty doesnt work, gives a  
>> blank
>> page, if I telnet too the server/port it just disconnects.
>>
>> I tried editing the scripts.conf to change the hostname, that didnt  
>> seem to
>> help.
>>
>> For example I tried editing my etc/hosts file and added:
>>
>> 127.0.0.1 solriscool
>>
>> then:
>> ping solriscool
>> PING solriscool (127.0.0.1): 56 data bytes
>> 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.055 ms
>> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.095 ms
>>
>>
>> sh-3.2# telnet solriscool 8983
>> Trying 127.0.0.1...
>> Connected to solriscool.
>> Escape character is '^]'.
>> GET / HTTP/1.1
>> Connection closed by foreign host.
>>
>>
>> telnet localhost 8983
>> Trying ::1...
>> Connected to localhost.
>> Escape character is '^]'.
>> GET /solr HTTP/1.1
>> Host: localhost
>>
>> HTTP/1.1 302 Found
>> Location: http://localhost/solr/
>> Content-Length: 0
>> Server: Jetty(6.1.3)
>>
>>
>> any ideas?
>>
>> thanks
>> Joel
>>
>>


Re: solr/jetty not working for anything other than localhost

Posted by simon <si...@lucidimagination.com>.
first, check what port 8983 is bound to - should be listening on all
interfaces

netstat -an |grep 8983

You should see

tcp        0      0 0.0.0.0:8983          0.0.0.0:*               LISTEN

-Simon

On Wed, Nov 25, 2009 at 3:55 PM, Joel Nylund <jn...@yahoo.com> wrote:

> Hi, if I try to use any other hostname jetty doesnt work, gives a blank
> page, if I telnet too the server/port it just disconnects.
>
> I tried editing the scripts.conf to change the hostname, that didnt seem to
> help.
>
> For example I tried editing my etc/hosts file and added:
>
> 127.0.0.1 solriscool
>
> then:
> ping solriscool
> PING solriscool (127.0.0.1): 56 data bytes
> 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.055 ms
> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.095 ms
>
>
> sh-3.2# telnet solriscool 8983
> Trying 127.0.0.1...
> Connected to solriscool.
> Escape character is '^]'.
> GET / HTTP/1.1
> Connection closed by foreign host.
>
>
> telnet localhost 8983
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> GET /solr HTTP/1.1
> Host: localhost
>
> HTTP/1.1 302 Found
> Location: http://localhost/solr/
> Content-Length: 0
> Server: Jetty(6.1.3)
>
>
> any ideas?
>
> thanks
> Joel
>
>