[Archivesspace_Users_Group] Unhandled Socket Exception

Mark Cyzyk mcyzyk at jhu.edu
Fri Jul 10 15:26:07 EDT 2020


Dear Aspace List,

I am This Close to duplicating our ASpace in my Vagrant box.  But the 
very last step, booting it up, results in some nastiness:

> Unhandled Java exception: java.net.SocketException: Permission denied
> java.net.SocketException: Permission denied
>                               bind0 at sun/nio/ch/Net.java:-2
>                                bind at sun/nio/ch/Net.java:433
>                                bind at sun/nio/ch/Net.java:425
>                                bind at 
> sun/nio/ch/ServerSocketChannelImpl.java:220
>                                bind at 
> sun/nio/ch/ServerSocketAdaptor.java:85
>                                open at 
> org/eclipse/jetty/server/nio/SelectChannelConnector.java:182
>                             doStart at 
> org/eclipse/jetty/server/AbstractConnector.java:311
>                             doStart at 
> org/eclipse/jetty/server/nio/SelectChannelConnector.java:260
>                               start at 
> org/eclipse/jetty/util/component/AbstractLifeCycle.java:59
>                             doStart at 
> org/eclipse/jetty/server/Server.java:283
>                               start at 
> org/eclipse/jetty/util/component/AbstractLifeCycle.java:59
>                              invoke at java/lang/reflect/Method.java:498
>   invokeDirectWithExceptionHandling at 
> org/jruby/javasupport/JavaMethod.java:438
>                        invokeDirect at 
> org/jruby/javasupport/JavaMethod.java:302
>                invokeOther148:start at launcher/launcher.rb:92
>                        start_server at launcher/launcher.rb:92
>         invokeOther321:start_server at launcher/launcher.rb:173
>                                main at launcher/launcher.rb:173
>                 invokeOther454:main at launcher/launcher.rb:261
>                              <main> at launcher/launcher.rb:261
>                 invokeWithArguments at 
> java/lang/invoke/MethodHandle.java:627
>                           runScript at org/jruby/Ruby.java:827
>                         runNormally at org/jruby/Ruby.java:746
>                         runNormally at org/jruby/Ruby.java:764
>                         runFromMain at org/jruby/Ruby.java:577
>                       doRunFromMain at org/jruby/Main.java:417
>                         internalRun at org/jruby/Main.java:305
>                                 run at org/jruby/Main.java:232
>                                main at org/jruby/Main.java:204

This is on Ubuntu**20.04 LTS, OpenJDK8, ASpace 2.5.1.  (And is all is 
preparation for upgrading to 2.7.1)

 From what I'm reading this may have something to do with the Java MySQL 
Connector attempting to use "native sockets" instead of IPV4 for its 
connectivity.  So just before attempting to boot ASpace, I do this:

    sudo export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"


Still no joy.

Any advice on how to handle this Unhandled Socket Exception would be 
greatly appreciated.

THIS close!

Mark

-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Mark Cyzyk, M.A., M.L.S.
Library Applications Group
The Sheridan Libraries
The Johns Hopkins University
mcyzyk at jhu.edu

Verba volant, scripta manent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200710/43a3f3c2/attachment.html>


More information about the Archivesspace_Users_Group mailing list