Thank you Paras for your reply, yes I downloaded src, after re-download the binary, it is working as expected here.
*------------------------------------------------* *Sincerely yours,* *Raymond* On Tue, Sep 17, 2019 at 9:26 AM Paras Lehana <paras.leh...@indiamart.com> wrote: > Hi Raymond, > > ERROR: start.jar file not found in /opt/solr-8.2.0/solr/server! >> > > You had probably downloaded the source version. *Download the binary one* > (TGZ > <https://www.apache.org/dyn/closer.lua/lucene/solr/8.2.0/solr-8.2.0.tgz> > or ZIP > <https://www.apache.org/dyn/closer.lua/lucene/solr/8.2.0/solr-8.2.0.zip>). > Yes, it does mean that the package is incomplete. > > On Tue, 17 Sep 2019 at 18:40, Raymond Xie <xie3208...@gmail.com> wrote: > >> Thank you Paras: >> >> If I am already user of root, and still run sudo? no, it doesn't work: >> [root@pocnnr1n1 solr]# sudo bin/solr start -force >> sudo: bin/solr: command not found >> >> [root@pocnnr1n1 solr]# ls -l bin/solr >> -rw-r--r-- 1 root root 80630 Jul 19 09:09 bin/solr >> >> So, I followed your suggestion and added +x, now run the command again: >> [root@pocnnr1n1 solr]# bin/solr start >> *** [WARN] *** Your open file limit is currently 1024. >> It should be set to 65000 to avoid operational disruption. >> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to >> false in your profile or solr.in.sh >> *** [WARN] *** Your Max Processes Limit is currently 63397. >> It should be set to 65000 to avoid operational disruption. >> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to >> false in your profile or solr.in.sh >> WARNING: Starting Solr as the root user is a security risk and not >> considered best practice. Exiting. >> Please consult the Reference Guide. To override this check, >> start with argument '-force' >> >> alright, I'll add the -force option: >> [root@pocnnr1n1 solr]# bin/solr start -force >> *** [WARN] *** Your open file limit is currently 1024. >> It should be set to 65000 to avoid operational disruption. >> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to >> false in your profile or solr.in.sh >> *** [WARN] *** Your Max Processes Limit is currently 63397. >> It should be set to 65000 to avoid operational disruption. >> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to >> false in your profile or solr.in.sh >> >> ERROR: start.jar file not found in /opt/solr-8.2.0/solr/server! >> Please check your -d parameter to set the correct Solr server directory. >> >> BUT: the folder server is there, and no start.jar >> >> [root@pocnnr1n1 solr]# ls /opt/solr-8.2.0/solr >> bin common-build.xml licenses server webapp >> bin-test contrib LICENSE.txt site >> build.xml core LUCENE_CHANGES.txt solrj >> CHANGES.txt docs NOTICE.txt solr-ref-guide >> cloud-dev example README.txt test-framework >> >> [root@pocnnr1n1 server]# ll >> total 16 >> drwxr-xr-x 2 root root 6 Jul 19 09:09 solr-webapp >> drwxr-xr-x 3 root root 27 Jul 19 09:09 scripts >> -rw-r--r-- 1 root root 3959 Jul 19 09:09 README.txt >> -rw-r--r-- 1 root root 5740 Jul 19 09:09 ivy.xml >> -rw-r--r-- 1 root root 2214 Jul 19 09:09 build.xml >> drwxr-xr-x 2 root root 135 Sep 16 21:13 etc >> drwxr-xr-x 2 root root 36 Sep 16 21:13 contexts >> drwxr-xr-x 2 root root 82 Sep 16 21:13 resources >> drwxr-xr-x 2 root root 90 Sep 16 21:13 modules >> drwxr-xr-x 3 root root 73 Sep 16 21:13 solr >> >> *So this seems to be something missing from the solr package?* >> >> *Thank you.* >> >> *------------------------------------------------* >> *Sincerely yours,* >> >> >> *Raymond* >> >> >> On Tue, Sep 17, 2019 at 8:42 AM Paras Lehana <paras.leh...@indiamart.com> >> wrote: >> >>> Hey Raymond, >>> >>> >>> bin/solr start -force >>> >>> >>> I know this could be useless, but did you try the following (notice the >>> sudo)? >>> >>> *sudo* bin/solr start -force >>> >>> >>> Also, I suggest you to review permission of solr file by: >>> >>> ls -l bin/solr >>> >>> >>> If you don't see required executable permissions, you can provide root >>> user the permission to execute the file by: >>> >>> *chmod +x bin/solr* >>> >>> >>> Hope this helps. >>> >>> On Tue, 17 Sep 2019 at 18:03, Raymond Xie <xie3208...@gmail.com> wrote: >>> >>>> Thank you. >>>> >>>> As I suspected, this is something else. It prompts me the same error >>>> here: >>>> [root@pocnnr1n1 solr]# bin/solr start -force >>>> -bash: bin/solr: Permission denied >>>> [root@pocnnr1n1 solr]# >>>> >>>> It is not a good practice to use root directly, however, using root >>>> should not have permission error. This is odd. >>>> >>>> >>>> *------------------------------------------------* >>>> *Sincerely yours,* >>>> >>>> >>>> *Raymond* >>>> >>>> >>>> On Tue, Sep 17, 2019 at 12:49 AM Paras Lehana < >>>> paras.leh...@indiamart.com> wrote: >>>> >>>>> Hi Raymond, >>>>> >>>>> It's not recommended to run solr as root (security reasons >>>>> <https://lucene.apache.org/solr/guide/8_1/taking-solr-to-production.html#create-the-solr-user>). >>>>> Nevertheless, in order to answer your question, try this command: >>>>> >>>>> *sudo bin/solr start -force* >>>>> >>>>> >>>>> From Solr Control Script Reference >>>>> <https://lucene.apache.org/solr/guide/8_1/solr-control-script-reference.html#start-parameters> >>>>> : >>>>> >>>>> If attempting to start Solr as the root user, the script will exit >>>>>> with a warning that running Solr as "root" can cause problems. It is >>>>>> possible to override this warning with the -force parameter. >>>>> >>>>> >>>>> PS: I suggest you to go through *Service Installation Script *in Taking >>>>> Solr to Production >>>>> <https://lucene.apache.org/solr/guide/8_1/taking-solr-to-production.html> >>>>> that >>>>> describes the ideal Solr setup. A must read! >>>>> >>>>> Hope I helped. >>>>> >>>>> >>>>> On Tue, 17 Sep 2019 at 08:37, Raymond Xie <xie3208...@gmail.com> >>>>> wrote: >>>>> >>>>>> [root@pocnnr1n1 solr-8.2.0]# ll >>>>>> total 88 >>>>>> -rw-r--r-- 1 root root 4023 Jul 19 09:09 README.md >>>>>> -rw-r--r-- 1 root root 32153 Jul 19 09:09 build.xml >>>>>> -rw-r--r-- 1 root root 27717 Jul 19 09:09 NOTICE.txt >>>>>> -rw-r--r-- 1 root root 12646 Jul 19 09:09 LICENSE.txt >>>>>> drwxr-xr-x 10 root root 174 Sep 16 21:13 dev-tools >>>>>> drwxr-xr-x 30 root root 4096 Sep 16 21:13 lucene >>>>>> drwxr-xr-x 16 root root 4096 Sep 16 21:13 solr >>>>>> >>>>>> [root@pocnnr1n1 solr]# bin/solr start >>>>>> -bash: bin/solr: Permission denied >>>>>> >>>>>> Can anyone please help me to sort it out? >>>>>> >>>>>> Thank you. Regards. >>>>>> *------------------------------------------------* >>>>>> *Sincerely yours,* >>>>>> >>>>>> >>>>>> *Raymond* >>>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> Regards, >>>>> >>>>> *Paras Lehana* [65871] >>>>> Software Programmer, Auto-Suggest, >>>>> IndiaMART Intermesh Ltd. >>>>> >>>>> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142, >>>>> Noida, UP, IN - 201303 >>>>> >>>>> Mob.: +91-9560911996 >>>>> Work: 01203916600 | Extn: *8173* >>>>> >>>>> IMPORTANT: >>>>> NEVER share your IndiaMART OTP/ Password with anyone. >>>>> >>>> >>> >>> -- >>> -- >>> Regards, >>> >>> *Paras Lehana* [65871] >>> Software Programmer, Auto-Suggest, >>> IndiaMART Intermesh Ltd. >>> >>> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142, >>> Noida, UP, IN - 201303 >>> >>> Mob.: +91-9560911996 >>> Work: 01203916600 | Extn: *8173* >>> >>> IMPORTANT: >>> NEVER share your IndiaMART OTP/ Password with anyone. >>> >> > > -- > -- > Regards, > > *Paras Lehana* [65871] > Software Programmer, Auto-Suggest, > IndiaMART Intermesh Ltd. > > 8th Floor, Tower A, Advant-Navis Business Park, Sector 142, > Noida, UP, IN - 201303 > > Mob.: +91-9560911996 > Work: 01203916600 | Extn: *8173* > > IMPORTANT: > NEVER share your IndiaMART OTP/ Password with anyone. >