solr/jetty not working for anything other than localhost

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

solr/jetty not working for anything other than localhost

Joel Nylund
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

Reply | Threaded
Open this post in threaded view
|

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

simon-2748
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 <[hidden email]> 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
>
>
Reply | Threaded
Open this post in threaded view
|

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

Joel Nylund
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 <[hidden email]>  
> 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
>>
>>

Reply | Threaded
Open this post in threaded view
|

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

simon-2748
On Wed, Nov 25, 2009 at 5:27 PM, Joel Nylund <[hidden email]> 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 <[hidden email]> 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
>>>
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

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

Joel Nylund
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 <[hidden email]>  
> 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 <[hidden email]>  
>>> 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
>>>>
>>>>
>>>>
>>