[
https://issues.apache.org/jira/browse/ARTEMIS-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gašper Čefarin updated ARTEMIS-5558:
------------------------------------
Issue Type: Improvement (was: New Feature)
> Cannot bind to port 80/443 as non root user
> -------------------------------------------
>
> Key: ARTEMIS-5558
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5558
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Web Console
> Affects Versions: 2.41.0
> Reporter: Gašper Čefarin
> Priority: Major
>
> {{By default non-root users cannot bind to ports below 1024 on linux
> systems.}}
> {{Another problem is that if I'm running artemis as a systemd service, there
> is no info about what went wrong.}}
> {code:java}
> 2025-07-01 13:27:18,519 INFO [org.apache.activemq.artemis] AMQ241003:
> Starting embedded web server
> 2025-07-01 13:27:18,987 ERROR [org.apache.curator.ConnectionState]
> Authentication failed
> 2025-07-01 13:27:19,214 INFO [org.apache.activemq.artemis.core.server]
> AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.41.0
> [068bbac1-8d2d-11ef-9f69-00155dedaddc] stopped, uptime 0.784 seconds{code}
> {{If I run ./artemis run as the intended user, I get some more info.}}
> {{Not sure why this happens. The stack trace should be seen also when running
> as a service.}}
> {code:java}
> 2025-07-01 13:26:58,388 INFO [org.apache.activemq.artemis] AMQ241003:
> Starting embedded web server
> 2025-07-01 13:26:58,858 ERROR [org.apache.curator.ConnectionState]
> Authentication failed
> java.io.IOException: Failed to bind to xxxxxxxxxxxxxxxxxxx/1.1.1.1:443
> at
> org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:349)
> at
> org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:313)
> at org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:571)
> at
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
> at
> java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
> at
> java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
> at
> java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
> at
> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
> at
> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
> at
> java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
> at
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
> at
> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at
> java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
> at org.eclipse.jetty.server.Server.doStart(Server.java:567)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
> at
> org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:245)
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1007)
> at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:146)
> at
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:222)
> at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:170)
> at
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:149)
> at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61)
> Caused by: java.net.BindException: Permission denied
> at java.base/sun.nio.ch.Net.bind0(Native Method)
> at java.base/sun.nio.ch.Net.bind(Net.java:565)
> at
> java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:344)
> at
> java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:301)
> at
> org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
> ... 23 more
> 2025-07-01 13:26:59,092 INFO [org.apache.activemq.artemis.core.server]
> AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.41.0
> [068bbac1-8d2d-11ef-9f69-00155dedaddc] stopped, uptime 0.829 seconds{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact