You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Scott Hollenbeck <sa...@gmail.com> on 2024/10/27 22:42:31 UTC

Fresh Installation with Status and Access Issues

I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP
address 192.168.1.250. The OS seems to be working just fine. Now I'm trying
to get Apache solr installed and working. This is the version of Java I'm
running:

$ java --version
openjdk 21.0.4 2024-07-16
OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode,
sharing)

I installed solr version 9.7.0. The installation went fine. I can start the
solr service. Here's the status after it starts:

$ sudo systemctl status solr
● solr.service - LSB: Controls Apache Solr as a Service
     Loaded: loaded (/etc/init.d/solr; generated)
     Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
status=0/SUCCESS)
        CPU: 24ms


Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB: Controls
Apache Solr as a Service...
Oct 26 18:27:28 myhost su[16944]: (to solr) root on none
Oct 26 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened for
user solr(uid=106) by (uid=0)
Oct 26 18:27:30 myhost solr[17008]: Started Solr server on port 8983
(pid=17001). Happy searching!
Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB: Controls
Apache Solr as a Service.

Note "Active: active (exited)". I've added a firewall rule to open port
tcp/8983; here's the output from iptables:

ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp dpt:8983
ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp dpt:8983

Attempts to connect to the server using a browser with URL http://192.168.1.
250:8983/ time out. The connection attempt is being refused according to
iptables:

2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46 DST=192.
168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0

Can someone please help me understand what's going on here? Why is the
service not in an active (running) state? Why is iptables blocking the
connection request when the port is open?

Thank you,
Scott


RE: Fresh Installation with Status and Access Issues

Posted by Scott Hollenbeck <sa...@gmail.com>.
Oh, I agree. I'm still trying to figure out what's going on with iptables.

In the meantime, I tried using wget ("wget localhost:8983") to talk to my local instance. It successfully returned a solr admin HTML response, which says "Connection to Solr lost". I suspect that has something to do with the status I see when I run "systemctl status solr", which is "active (exited)". What might cause that? I don't see anything obvious in any of the solr log files.

Scott

-----Original Message-----
From: Rigolin, Dario <da...@comperio.it.INVALID> 
Sent: Monday, October 28, 2024 10:31 AM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

The log "iptables denied" is the clear reason why you are unable to
connect.
Maybe this IPtable rules doesn't have the right priority and some other
rule at higher priority is blocking the traffic.

Il giorno lun 28 ott 2024 alle ore 15:01 Scott Hollenbeck <sa...@gmail.com>
ha scritto:

> Why enable it? I've already noted that tcp/8983 is enabled using iptables.
> With ufw disabled it's not blocking anything.
>
> Scott
>
> -----Original Message-----
> From: Jose, Manu <M....@ub.uni-frankfurt.de>
> Sent: Monday, October 28, 2024 9:49 AM
> To: users@solr.apache.org
> Subject: AW: Fresh Installation with Status and Access Issues
>
> Why,
>   just enable ufw with below command
>
> ufw allow 8983/tcp
>
> Vielen Dank,
> Manu Jose
>
> -----Ursprüngliche Nachricht-----
> Von: Scott Hollenbeck <sa...@gmail.com>
> Gesendet: Montag, 28. Oktober 2024 14:40
> An: users@solr.apache.org
> Betreff: RE: Fresh Installation with Status and Access Issues
>
> Thanks for the suggestion. I should have mentioned that ufw is disabled.
>
> Scott
>
> -----Original Message-----
> From: Rigolin, Dario <da...@comperio.it.INVALID>
> Sent: Monday, October 28, 2024 3:00 AM
> To: users@solr.apache.org
> Subject: Re: Fresh Installation with Status and Access Issues
>
> Hi you have probably ufw (ubuntu integrated firewall) activated blocking
> port 8983.
> You have to open that port on firewall
>
> Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <
> sah6284@gmail.com> ha scritto:
>
> > I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP
> > address 192.168.1.250. The OS seems to be working just fine. Now I'm
> > trying to get Apache solr installed and working. This is the version
> > of Java I'm
> > running:
> >
> > $ java --version
> > openjdk 21.0.4 2024-07-16
> > OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
> > OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed
> > mode,
> > sharing)
> >
> > I installed solr version 9.7.0. The installation went fine. I can
> > start the solr service. Here's the status after it starts:
> >
> > $ sudo systemctl status solr
> > ● solr.service - LSB: Controls Apache Solr as a Service
> >      Loaded: loaded (/etc/init.d/solr; generated)
> >      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
> >        Docs: man:systemd-sysv-generator(8)
> >     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> > status=0/SUCCESS)
> >         CPU: 24ms
> >
> >
> > Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB:
> > Controls Apache Solr as a Service...
> > Oct 26 18:27:28 myhost su[16944]: (to solr) root on none Oct 26
> > 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened for
> > user solr(uid=106) by (uid=0) Oct 26 18:27:30 myhost solr[17008]:
> > Started Solr server on port 8983 (pid=17001). Happy searching!
> > Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB:
> > Controls Apache Solr as a Service.
> >
> > Note "Active: active (exited)". I've added a firewall rule to open
> > port tcp/8983; here's the output from iptables:
> >
> > ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp
> dpt:8983
> > ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp
> dpt:8983
> >
> > Attempts to connect to the server using a browser with URL
> > http://192.168.1.
> > 250:8983/ time out. The connection attempt is being refused according
> > to
> > iptables:
> >
> > 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied:
> > IN=eno1 OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00
> > SRC=192.168.1.46 DST=192.
> > 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP
> > SPT=61547
> > DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
> >
> > Can someone please help me understand what's going on here? Why is the
> > service not in an active (running) state? Why is iptables blocking the
> > connection request when the port is open?
> >
> > Thank you,
> > Scott
> >
> >
>
> --
>
> Dario Rigolin
> Comperio srl - CTO
> Mobile: +39 347 7232652 - Office: +39 0425 471482
> Skype: dario.rigolin
>
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin


Re: Fresh Installation with Status and Access Issues

Posted by "Rigolin, Dario" <da...@comperio.it.INVALID>.
The log "iptables denied" is the clear reason why you are unable to
connect.
Maybe this IPtable rules doesn't have the right priority and some other
rule at higher priority is blocking the traffic.

Il giorno lun 28 ott 2024 alle ore 15:01 Scott Hollenbeck <sa...@gmail.com>
ha scritto:

> Why enable it? I've already noted that tcp/8983 is enabled using iptables.
> With ufw disabled it's not blocking anything.
>
> Scott
>
> -----Original Message-----
> From: Jose, Manu <M....@ub.uni-frankfurt.de>
> Sent: Monday, October 28, 2024 9:49 AM
> To: users@solr.apache.org
> Subject: AW: Fresh Installation with Status and Access Issues
>
> Why,
>   just enable ufw with below command
>
> ufw allow 8983/tcp
>
> Vielen Dank,
> Manu Jose
>
> -----Ursprüngliche Nachricht-----
> Von: Scott Hollenbeck <sa...@gmail.com>
> Gesendet: Montag, 28. Oktober 2024 14:40
> An: users@solr.apache.org
> Betreff: RE: Fresh Installation with Status and Access Issues
>
> Thanks for the suggestion. I should have mentioned that ufw is disabled.
>
> Scott
>
> -----Original Message-----
> From: Rigolin, Dario <da...@comperio.it.INVALID>
> Sent: Monday, October 28, 2024 3:00 AM
> To: users@solr.apache.org
> Subject: Re: Fresh Installation with Status and Access Issues
>
> Hi you have probably ufw (ubuntu integrated firewall) activated blocking
> port 8983.
> You have to open that port on firewall
>
> Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <
> sah6284@gmail.com> ha scritto:
>
> > I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP
> > address 192.168.1.250. The OS seems to be working just fine. Now I'm
> > trying to get Apache solr installed and working. This is the version
> > of Java I'm
> > running:
> >
> > $ java --version
> > openjdk 21.0.4 2024-07-16
> > OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
> > OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed
> > mode,
> > sharing)
> >
> > I installed solr version 9.7.0. The installation went fine. I can
> > start the solr service. Here's the status after it starts:
> >
> > $ sudo systemctl status solr
> > ● solr.service - LSB: Controls Apache Solr as a Service
> >      Loaded: loaded (/etc/init.d/solr; generated)
> >      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
> >        Docs: man:systemd-sysv-generator(8)
> >     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> > status=0/SUCCESS)
> >         CPU: 24ms
> >
> >
> > Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB:
> > Controls Apache Solr as a Service...
> > Oct 26 18:27:28 myhost su[16944]: (to solr) root on none Oct 26
> > 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened for
> > user solr(uid=106) by (uid=0) Oct 26 18:27:30 myhost solr[17008]:
> > Started Solr server on port 8983 (pid=17001). Happy searching!
> > Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB:
> > Controls Apache Solr as a Service.
> >
> > Note "Active: active (exited)". I've added a firewall rule to open
> > port tcp/8983; here's the output from iptables:
> >
> > ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp
> dpt:8983
> > ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp
> dpt:8983
> >
> > Attempts to connect to the server using a browser with URL
> > http://192.168.1.
> > 250:8983/ time out. The connection attempt is being refused according
> > to
> > iptables:
> >
> > 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied:
> > IN=eno1 OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00
> > SRC=192.168.1.46 DST=192.
> > 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP
> > SPT=61547
> > DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
> >
> > Can someone please help me understand what's going on here? Why is the
> > service not in an active (running) state? Why is iptables blocking the
> > connection request when the port is open?
> >
> > Thank you,
> > Scott
> >
> >
>
> --
>
> Dario Rigolin
> Comperio srl - CTO
> Mobile: +39 347 7232652 - Office: +39 0425 471482
> Skype: dario.rigolin
>
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin

RE: Fresh Installation with Status and Access Issues

Posted by Scott Hollenbeck <sa...@gmail.com>.
Why enable it? I've already noted that tcp/8983 is enabled using iptables. With ufw disabled it's not blocking anything.

Scott

-----Original Message-----
From: Jose, Manu <M....@ub.uni-frankfurt.de> 
Sent: Monday, October 28, 2024 9:49 AM
To: users@solr.apache.org
Subject: AW: Fresh Installation with Status and Access Issues

Why,
  just enable ufw with below command

ufw allow 8983/tcp

Vielen Dank,
Manu Jose

-----Ursprüngliche Nachricht-----
Von: Scott Hollenbeck <sa...@gmail.com> 
Gesendet: Montag, 28. Oktober 2024 14:40
An: users@solr.apache.org
Betreff: RE: Fresh Installation with Status and Access Issues

Thanks for the suggestion. I should have mentioned that ufw is disabled.

Scott

-----Original Message-----
From: Rigolin, Dario <da...@comperio.it.INVALID>
Sent: Monday, October 28, 2024 3:00 AM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

Hi you have probably ufw (ubuntu integrated firewall) activated blocking port 8983.
You have to open that port on firewall

Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <sa...@gmail.com> ha scritto:

> I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP 
> address 192.168.1.250. The OS seems to be working just fine. Now I'm 
> trying to get Apache solr installed and working. This is the version 
> of Java I'm
> running:
>
> $ java --version
> openjdk 21.0.4 2024-07-16
> OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) 
> OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed 
> mode,
> sharing)
>
> I installed solr version 9.7.0. The installation went fine. I can 
> start the solr service. Here's the status after it starts:
>
> $ sudo systemctl status solr
> ● solr.service - LSB: Controls Apache Solr as a Service
>      Loaded: loaded (/etc/init.d/solr; generated)
>      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
>        Docs: man:systemd-sysv-generator(8)
>     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> status=0/SUCCESS)
>         CPU: 24ms
>
>
> Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB: 
> Controls Apache Solr as a Service...
> Oct 26 18:27:28 myhost su[16944]: (to solr) root on none Oct 26 
> 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened for 
> user solr(uid=106) by (uid=0) Oct 26 18:27:30 myhost solr[17008]: 
> Started Solr server on port 8983 (pid=17001). Happy searching!
> Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB: 
> Controls Apache Solr as a Service.
>
> Note "Active: active (exited)". I've added a firewall rule to open 
> port tcp/8983; here's the output from iptables:
>
> ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp dpt:8983
> ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp dpt:8983
>
> Attempts to connect to the server using a browser with URL 
> http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according 
> to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: 
> IN=eno1 OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 
> SRC=192.168.1.46 DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP 
> SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the 
> service not in an active (running) state? Why is iptables blocking the 
> connection request when the port is open?
>
> Thank you,
> Scott
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin



AW: Fresh Installation with Status and Access Issues

Posted by "Jose, Manu" <M....@ub.uni-frankfurt.de>.
Why,
  just enable ufw with below command

ufw allow 8983/tcp

Vielen Dank,
Manu Jose

-----Ursprüngliche Nachricht-----
Von: Scott Hollenbeck <sa...@gmail.com> 
Gesendet: Montag, 28. Oktober 2024 14:40
An: users@solr.apache.org
Betreff: RE: Fresh Installation with Status and Access Issues

Thanks for the suggestion. I should have mentioned that ufw is disabled.

Scott

-----Original Message-----
From: Rigolin, Dario <da...@comperio.it.INVALID>
Sent: Monday, October 28, 2024 3:00 AM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

Hi you have probably ufw (ubuntu integrated firewall) activated blocking port 8983.
You have to open that port on firewall

Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <sa...@gmail.com> ha scritto:

> I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP 
> address 192.168.1.250. The OS seems to be working just fine. Now I'm 
> trying to get Apache solr installed and working. This is the version 
> of Java I'm
> running:
>
> $ java --version
> openjdk 21.0.4 2024-07-16
> OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) 
> OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed 
> mode,
> sharing)
>
> I installed solr version 9.7.0. The installation went fine. I can 
> start the solr service. Here's the status after it starts:
>
> $ sudo systemctl status solr
> ● solr.service - LSB: Controls Apache Solr as a Service
>      Loaded: loaded (/etc/init.d/solr; generated)
>      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
>        Docs: man:systemd-sysv-generator(8)
>     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> status=0/SUCCESS)
>         CPU: 24ms
>
>
> Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB: 
> Controls Apache Solr as a Service...
> Oct 26 18:27:28 myhost su[16944]: (to solr) root on none Oct 26 
> 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened for 
> user solr(uid=106) by (uid=0) Oct 26 18:27:30 myhost solr[17008]: 
> Started Solr server on port 8983 (pid=17001). Happy searching!
> Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB: 
> Controls Apache Solr as a Service.
>
> Note "Active: active (exited)". I've added a firewall rule to open 
> port tcp/8983; here's the output from iptables:
>
> ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp dpt:8983
> ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp dpt:8983
>
> Attempts to connect to the server using a browser with URL 
> http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according 
> to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: 
> IN=eno1 OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 
> SRC=192.168.1.46 DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP 
> SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the 
> service not in an active (running) state? Why is iptables blocking the 
> connection request when the port is open?
>
> Thank you,
> Scott
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin


RE: Fresh Installation with Status and Access Issues

Posted by Scott Hollenbeck <sa...@gmail.com>.
Thanks for the suggestion. I should have mentioned that ufw is disabled.

Scott

-----Original Message-----
From: Rigolin, Dario <da...@comperio.it.INVALID> 
Sent: Monday, October 28, 2024 3:00 AM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

Hi you have probably ufw (ubuntu integrated firewall) activated blocking
port 8983.
You have to open that port on firewall

Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <sa...@gmail.com>
ha scritto:

> I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP
> address 192.168.1.250. The OS seems to be working just fine. Now I'm trying
> to get Apache solr installed and working. This is the version of Java I'm
> running:
>
> $ java --version
> openjdk 21.0.4 2024-07-16
> OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
> OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode,
> sharing)
>
> I installed solr version 9.7.0. The installation went fine. I can start the
> solr service. Here's the status after it starts:
>
> $ sudo systemctl status solr
> ● solr.service - LSB: Controls Apache Solr as a Service
>      Loaded: loaded (/etc/init.d/solr; generated)
>      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
>        Docs: man:systemd-sysv-generator(8)
>     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> status=0/SUCCESS)
>         CPU: 24ms
>
>
> Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB: Controls
> Apache Solr as a Service...
> Oct 26 18:27:28 myhost su[16944]: (to solr) root on none
> Oct 26 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened
> for
> user solr(uid=106) by (uid=0)
> Oct 26 18:27:30 myhost solr[17008]: Started Solr server on port 8983
> (pid=17001). Happy searching!
> Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB: Controls
> Apache Solr as a Service.
>
> Note "Active: active (exited)". I've added a firewall rule to open port
> tcp/8983; here's the output from iptables:
>
> ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp dpt:8983
> ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp dpt:8983
>
> Attempts to connect to the server using a browser with URL
> http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46
> DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the
> service not in an active (running) state? Why is iptables blocking the
> connection request when the port is open?
>
> Thank you,
> Scott
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin


Re: Fresh Installation with Status and Access Issues

Posted by "Rigolin, Dario" <da...@comperio.it.INVALID>.
Hi you have probably ufw (ubuntu integrated firewall) activated blocking
port 8983.
You have to open that port on firewall

Il giorno dom 27 ott 2024 alle ore 23:42 Scott Hollenbeck <sa...@gmail.com>
ha scritto:

> I just installed Ubuntu 24.04.1 LTS on a Dell 5820 workstation with IP
> address 192.168.1.250. The OS seems to be working just fine. Now I'm trying
> to get Apache solr installed and working. This is the version of Java I'm
> running:
>
> $ java --version
> openjdk 21.0.4 2024-07-16
> OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
> OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode,
> sharing)
>
> I installed solr version 9.7.0. The installation went fine. I can start the
> solr service. Here's the status after it starts:
>
> $ sudo systemctl status solr
> ● solr.service - LSB: Controls Apache Solr as a Service
>      Loaded: loaded (/etc/init.d/solr; generated)
>      Active: active (exited) since Sat 2024-10-26 18:27:30 EDT; 14min ago
>        Docs: man:systemd-sysv-generator(8)
>     Process: 16940 ExecStart=/etc/init.d/solr start (code=exited,
> status=0/SUCCESS)
>         CPU: 24ms
>
>
> Oct 26 18:27:28 myhost systemd[1]: Starting solr.service - LSB: Controls
> Apache Solr as a Service...
> Oct 26 18:27:28 myhost su[16944]: (to solr) root on none
> Oct 26 18:27:28 myhost su[16944]: pam_unix(su-l:session): session opened
> for
> user solr(uid=106) by (uid=0)
> Oct 26 18:27:30 myhost solr[17008]: Started Solr server on port 8983
> (pid=17001). Happy searching!
> Oct 26 18:27:30 myhost systemd[1]: Started solr.service - LSB: Controls
> Apache Solr as a Service.
>
> Note "Active: active (exited)". I've added a firewall rule to open port
> tcp/8983; here's the output from iptables:
>
> ACCEPT     6    --  127.0.0.1            0.0.0.0/0            tcp dpt:8983
> ACCEPT     6    --  192.168.1.46         0.0.0.0/0            tcp dpt:8983
>
> Attempts to connect to the server using a browser with URL
> http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46
> DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the
> service not in an active (running) state? Why is iptables blocking the
> connection request when the port is open?
>
> Thank you,
> Scott
>
>

-- 

Dario Rigolin
Comperio srl - CTO
Mobile: +39 347 7232652 - Office: +39 0425 471482
Skype: dario.rigolin

RE: Fresh Installation with Status and Access Issues

Posted by Scott Hollenbeck <sa...@gmail.com>.
Thanks for that reminder - I now have access!

I'm still not sure of what's going on with iptables, though. I added an
ACCEPT rule for traffic from my remote machine to the beginning of the
chain, and that got rid of the blocking problem. I'll finish debugging that
later with TRACE rules.

Scott

-----Original Message-----
From: Jan Høydahl <ja...@cominvent.com> 
Sent: Monday, October 28, 2024 8:14 PM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

Hi,

Solr by default binds only to localhost, as you have confirmed. See
https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-pr
oduction.html#security-considerations

So please set SOLR_JETTY_HOST="0.0.0.0" to allow access from other hosts.

Jan


> 28. okt. 2024 kl. 18:35 skrev Scott Hollenbeck <sa...@gmail.com>:
> 
> Thanks for the suggestion. Unfortunately it didn't help.
> 
> Scott
> 
> -----Original Message-----
> From: Thorsten Heit <th...@gmx.de.INVALID> 
> Sent: Monday, October 28, 2024 10:42 AM
> To: users@solr.apache.org
> Subject: Re: Fresh Installation with Status and Access Issues
> 
> Hi,
> 
>> Attempts to connect to the server using a browser with URL
http://192.168.1.
>> 250:8983/ time out. The connection attempt is being refused according to
>> iptables:
>> 
>> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied:
IN=eno1
>> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46
DST=192.
>> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP
SPT=61547
>> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>> 
>> Can someone please help me understand what's going on here? Why is the
>> service not in an active (running) state? Why is iptables blocking the
>> connection request when the port is open?
> 
> AFAIK the Solr server by default can only be contacted via localhost
> access, i.e. http://127.0.0.1:8983.
> 
> If you want to change that, you have to adopt your configuration by
> changing SOLR_IP_ALLOWLIST in your solr.in.sh configuration file, for
> example
> 
> SOLR_IP_ALLOWLIST="127.0.0.1, 10.192.0.0/16, [::1]"
> 
> 
> HTH
> 
> Thorsten
> 



Re: Fresh Installation with Status and Access Issues

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

Solr by default binds only to localhost, as you have confirmed. See https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html#security-considerations

So please set SOLR_JETTY_HOST="0.0.0.0" to allow access from other hosts.

Jan


> 28. okt. 2024 kl. 18:35 skrev Scott Hollenbeck <sa...@gmail.com>:
> 
> Thanks for the suggestion. Unfortunately it didn't help.
> 
> Scott
> 
> -----Original Message-----
> From: Thorsten Heit <th...@gmx.de.INVALID> 
> Sent: Monday, October 28, 2024 10:42 AM
> To: users@solr.apache.org
> Subject: Re: Fresh Installation with Status and Access Issues
> 
> Hi,
> 
>> Attempts to connect to the server using a browser with URL http://192.168.1.
>> 250:8983/ time out. The connection attempt is being refused according to
>> iptables:
>> 
>> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
>> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46 DST=192.
>> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
>> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>> 
>> Can someone please help me understand what's going on here? Why is the
>> service not in an active (running) state? Why is iptables blocking the
>> connection request when the port is open?
> 
> AFAIK the Solr server by default can only be contacted via localhost
> access, i.e. http://127.0.0.1:8983.
> 
> If you want to change that, you have to adopt your configuration by
> changing SOLR_IP_ALLOWLIST in your solr.in.sh configuration file, for
> example
> 
> SOLR_IP_ALLOWLIST="127.0.0.1, 10.192.0.0/16, [::1]"
> 
> 
> HTH
> 
> Thorsten
> 


RE: Fresh Installation with Status and Access Issues

Posted by Scott Hollenbeck <sa...@gmail.com>.
Thanks for the suggestion. Unfortunately it didn't help.

Scott

-----Original Message-----
From: Thorsten Heit <th...@gmx.de.INVALID> 
Sent: Monday, October 28, 2024 10:42 AM
To: users@solr.apache.org
Subject: Re: Fresh Installation with Status and Access Issues

Hi,

> Attempts to connect to the server using a browser with URL http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46 DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the
> service not in an active (running) state? Why is iptables blocking the
> connection request when the port is open?

AFAIK the Solr server by default can only be contacted via localhost
access, i.e. http://127.0.0.1:8983.

If you want to change that, you have to adopt your configuration by
changing SOLR_IP_ALLOWLIST in your solr.in.sh configuration file, for
example

SOLR_IP_ALLOWLIST="127.0.0.1, 10.192.0.0/16, [::1]"


HTH

Thorsten


Re: Fresh Installation with Status and Access Issues

Posted by Thorsten Heit <th...@gmx.de.INVALID>.
Hi,

> Attempts to connect to the server using a browser with URL http://192.168.1.
> 250:8983/ time out. The connection attempt is being refused according to
> iptables:
>
> 2024-10-26T18:53:51.741381-04:00 localhost kernel: iptables denied: IN=eno1
> OUT= MAC=54:bf:64:94:de:a8:d8:bb:c1:94:72:25:08:00 SRC=192.168.1.46 DST=192.
> 168.1.250 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=20939 DF PROTO=TCP SPT=61547
> DPT=8983 WINDOW=64240 RES=0x00 SYN URGP=0
>
> Can someone please help me understand what's going on here? Why is the
> service not in an active (running) state? Why is iptables blocking the
> connection request when the port is open?

AFAIK the Solr server by default can only be contacted via localhost
access, i.e. http://127.0.0.1:8983.

If you want to change that, you have to adopt your configuration by
changing SOLR_IP_ALLOWLIST in your solr.in.sh configuration file, for
example

SOLR_IP_ALLOWLIST="127.0.0.1, 10.192.0.0/16, [::1]"


HTH

Thorsten