Bug#986866: apacheds: ApacheDS fails to start after clean install

tony mancill tmancill at debian.org
Sun May 2 15:29:56 BST 2021


Hello Carlos,

Thank you for reporting this bug and to others for confirming it.
Several comments below:

On Mon, Apr 12, 2021 at 10:09:58PM -0600, Carlos Ramos wrote:
> Package: apacheds
> Version: 2.0.0~M24-4
> Severity: important
> 
> [2021-52-12T21:52:39.039-0600] WARN [org.apache.directory.server.core.DefaultDirectoryService] - You didn't change the admin password of directory service instance 'default'.  Please update the admin password as soon as possible to prevent a possible security breach.
> [2021-52-12T21:52:39.039-0600] DEBUG [org.apache.directory.server.ldap.handlers.extended.StartTlsHandler] - Setting LDAP Service
> [2021-52-12T21:52:39.039-0600] DEBUG [org.apache.directory.server.ldap.handlers.extended.StartTlsHandler] - provider = SUN version 11
> [2021-52-12T21:52:39.039-0600] ERROR [org.apache.directory.server.UberjarMain] - Failed to start the service.
> java.lang.UnsupportedOperationException: 'SO_SNDBUF' not supported
> 	at java.base/sun.nio.ch.ServerSocketChannelImpl.setOption(ServerSocketChannelImpl.java:151)
> 	at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:255)
> 	at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:52)
> 	at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.registerHandles(AbstractPollingIoAcceptor.java:591)
> 	at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:460)
> 	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> 	at java.base/java.lang.Thread.run(Thread.java:829)

1)  The exception is being thrown in the mina library (source package
mina2: https://tracker.debian.org/pkg/mina2), so we will likely end up
reassigning the bug to that package.

2) Because mina2 and apacheds2 haven't changed in over 6 months and this
issue began shortly after the introduction of OpenJDK 11.0.11 to
unstable, I suspect that Apache Mina2 has been setting a socket option
that has been deprecated for a while and is now no longer supported.

That is speculation so far - I haven't yet tracked this down to a
change in OpenJDK (but will try by reverting locally). However,
11.0.11+$x appears in your bug report and others confirming the bug.

Also, when I look at the Java 11 javadoc for ServerSocketChannel [1], I
don't see SO_SNDBUF as a supported option anyway.

Assuming my hunch is correct, I propose patching mina2 to no longer
attempt to set SO_SNDBUF [2].  mina2 is only used by ApacheDS within
Debian, so it should be fairly quick to test the change.

Thanks,
tony

[1] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/channels/ServerSocketChannel.html
[2] https://salsa.debian.org/java-team/mina2/-/blob/master/src/mina-core/src/main/java/org/apache/mina/transport/socket/nio/NioSocketAcceptor.java#L253-256
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210502/9842d8f8/attachment.sig>


More information about the pkg-java-maintainers mailing list