You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Joseph Anderson <jo...@fitnyc.edu> on 2022/10/21 19:20:05 UTC

Solr install script fails on rhel 9

Hello,

Upon trying to install on rhel 9 got the following error:

cp: cannot create regular file '/etc/init.d/solr': No such file or directory

It seems that /etc/init.d doesn't exist out of the box on rhel 9. It's
there on rhel 8 as a symlink to /etc/rc.d/init.d. Couldn't find any
documentation on it being removed, but I manually added the symlink back
in, and then the installation worked. The installation script assumes this
directory exist, so I guess this might be a bug?

Thanks,

Joseph

-- 
Joseph Anderson (he, him, his)
Digital Initiatives Librarian | Assistant Professor
Gladys Marcus Library | Fashion Institute of Technology
Seventh Avenue at 27th Street, Room E619
New York, New York  10001
joseph_anderson@fitnyc.edu

Re: Solr install script fails on rhel 9

Posted by Kevin Risden <kr...@apache.org>.
I think this relates to https://issues.apache.org/jira/browse/SOLR-14410
which is about switching to systemd for install. It has not been completed
yet and looks to have stalled.

Kevin Risden


On Fri, Oct 21, 2022 at 3:28 PM Joseph Anderson <jo...@fitnyc.edu>
wrote:

> Hello,
>
> Upon trying to install on rhel 9 got the following error:
>
> cp: cannot create regular file '/etc/init.d/solr': No such file or
> directory
>
> It seems that /etc/init.d doesn't exist out of the box on rhel 9. It's
> there on rhel 8 as a symlink to /etc/rc.d/init.d. Couldn't find any
> documentation on it being removed, but I manually added the symlink back
> in, and then the installation worked. The installation script assumes this
> directory exist, so I guess this might be a bug?
>
> Thanks,
>
> Joseph
>
> --
> Joseph Anderson (he, him, his)
> Digital Initiatives Librarian | Assistant Professor
> Gladys Marcus Library | Fashion Institute of Technology
> Seventh Avenue at 27th Street, Room E619
> New York, New York  10001
> joseph_anderson@fitnyc.edu
>

Re: Solr install script fails on rhel 9

Posted by Jan Høydahl <ja...@cominvent.com>.
Good find.

There is an open JIRA https://issues.apache.org/jira/browse/SOLR-14410 on the topic, and it has a PR went stale due to lack of testing and response to review.
If you have the bandwidth to test the solution on RHEL, then we welcome any contribution. I made an OS test matrix on the PR.

Jan

> 21. okt. 2022 kl. 21:20 skrev Joseph Anderson <jo...@fitnyc.edu>:
> 
> Hello,
> 
> Upon trying to install on rhel 9 got the following error:
> 
> cp: cannot create regular file '/etc/init.d/solr': No such file or directory
> 
> It seems that /etc/init.d doesn't exist out of the box on rhel 9. It's
> there on rhel 8 as a symlink to /etc/rc.d/init.d. Couldn't find any
> documentation on it being removed, but I manually added the symlink back
> in, and then the installation worked. The installation script assumes this
> directory exist, so I guess this might be a bug?
> 
> Thanks,
> 
> Joseph
> 
> -- 
> Joseph Anderson (he, him, his)
> Digital Initiatives Librarian | Assistant Professor
> Gladys Marcus Library | Fashion Institute of Technology
> Seventh Avenue at 27th Street, Room E619
> New York, New York  10001
> joseph_anderson@fitnyc.edu