[Archivesspace_Users_Group] Unhandled Socket Exception

Mark Cyzyk mcyzyk at jhu.edu
Mon Jul 13 09:12:59 EDT 2020


All,

So there is a record of this in the List, I just figured out the 
solution to this problem:

I was trying to run ASpace as a non-root user on Port 80.  You cannot do 
that.  The Port must be above 1024 for a non-root user.

Onward!

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.

On 7/10/20 3:26 PM, Mark Cyzyk wrote:
>
> 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/20200713/b5d83d50/attachment.html>


More information about the Archivesspace_Users_Group mailing list