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 YIFAN LI <yi...@berkeley.edu> on 2018/03/15 04:47:21 UTC

Problem encountered upon starting Solr after improper exit

To whom it may concern,

I am running Solr 7.1.0 and encountered a problem starting Solr after I
killed the Java process running Solr without proper cleanup. The error
message that I received is as following:

solr-7.1.0 liyifan$ bin/solr run


dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib

  Referenced from: /usr/local/bin/awk

  Reason: image not found

Your current version of Java is too old to run this version of Solr

We found version , using command 'java -version', with response:

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


Please install latest version of Java 1.8 or set JAVA_HOME properly.


Debug information:

JAVA_HOME: N/A

Active Path:

/Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin

After I reset the JAVA_HOME variable, it still gives me the error:

bin/solr start

dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib

  Referenced from: /usr/local/bin/awk

  Reason: image not found

Your current version of Java is too old to run this version of Solr

We found version , using command
'/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java
-version', with response:

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


Please install latest version of Java 1.8 or set JAVA_HOME properly.


Debug information:

JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

Active Path:

/Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin

and the director /usr/local/opt/mpfr/lib/ only contains the following files:

ls /usr/local/opt/mpfr/lib/

libmpfr.6.dylib libmpfr.a libmpfr.dylib pkgconfig

Do you think this problem is caused by killing the Java process without
proper cleanup? Could you suggest some solution to this problem? Thank you
very much!

Best,
Yifan

Re: Problem encountered upon starting Solr after improper exit

Posted by Erick Erickson <er...@gmail.com>.
I've never heard fo killing a Java doing this. These
lines:

dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
Referenced from: /usr/local/bin/awk

indicate what I expect is the root of your problem, _somehow_
files were deleted. I'd be _very_ surprised if killing the Java
process had anything to do with it, probably files were deleted
and the first time you noticed was when the start script
tried to use awk and failed to load that file.

My bet is that you can't use awk at all anywhere, even
withougy trying to invoke Solr.

Best,
Erick

On Wed, Mar 14, 2018 at 9:47 PM, YIFAN LI <yi...@berkeley.edu> wrote:
> To whom it may concern,
>
> I am running Solr 7.1.0 and encountered a problem starting Solr after I
> killed the Java process running Solr without proper cleanup. The error
> message that I received is as following:
>
> solr-7.1.0 liyifan$ bin/solr run
>
>
> dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
>
>   Referenced from: /usr/local/bin/awk
>
>   Reason: image not found
>
> Your current version of Java is too old to run this version of Solr
>
> We found version , using command 'java -version', with response:
>
> java version "1.8.0_45"
>
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
>
>
> Please install latest version of Java 1.8 or set JAVA_HOME properly.
>
>
> Debug information:
>
> JAVA_HOME: N/A
>
> Active Path:
>
> /Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
> Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin
>
> After I reset the JAVA_HOME variable, it still gives me the error:
>
> bin/solr start
>
> dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
>
>   Referenced from: /usr/local/bin/awk
>
>   Reason: image not found
>
> Your current version of Java is too old to run this version of Solr
>
> We found version , using command
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java
> -version', with response:
>
> java version "1.8.0_45"
>
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
>
>
> Please install latest version of Java 1.8 or set JAVA_HOME properly.
>
>
> Debug information:
>
> JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
>
> Active Path:
>
> /Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
> Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin
>
> and the director /usr/local/opt/mpfr/lib/ only contains the following files:
>
> ls /usr/local/opt/mpfr/lib/
>
> libmpfr.6.dylib libmpfr.a libmpfr.dylib pkgconfig
>
> Do you think this problem is caused by killing the Java process without
> proper cleanup? Could you suggest some solution to this problem? Thank you
> very much!
>
> Best,
> Yifan