artemiscloud / activemq-artemis-operator

Apache License 2.0
69 stars 63 forks source link

Enabling Persistence results in readinessProbe failing #283

Closed kahootali closed 8 months ago

kahootali commented 2 years ago

Describe the bug If I enable persistence, the readinessProbe fails and never passes I am using operator version 1.0.4 also tried with 1.03 and 1.0.2. Kubernetes: 1.22

I deployed the operator running the commands given

# Crds
kubectl create -f ./crds
# Resources
kubectl create -f ./deploy/service_account.yaml -n activemq
kubectl create -f ./deploy/role.yaml -n activemq
kubectl create -f ./deploy/role_binding.yaml -n activemq
kubectl create -f ./deploy/election_role.yaml -n activemq
kubectl create -f ./deploy/election_role_binding.yaml -n activemq
kubectl create -f ./deploy/operator_config.yaml -n activemq
kubectl create -f ./deploy/operator.yaml -n activemq

and then deployed using the official examples in the repo given

apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
  name: ex-aao
spec:
  deploymentPlan:
    size: 2
    image: placeholder
    persistenceEnabled: true
    messageMigration: true

it creates a StatefulSet but the readiness probe of 1st replica never passes so the 2nd replica never comes up, and it stays like that. I have also used 1 replica to disable clustering but still same issue

Screenshots

image
kahootali commented 2 years ago

@RoddieKieley any thoughts on this?

kahootali commented 2 years ago

@gaohoward any thoughts on this?

bergner commented 2 years ago

I can confirm this is still a problem on Openshift. With "persistenceEnabled: false" the logs look like this:

Removing provided -XX:+UseParallelOldGC in favour of artemis.profile provided option
Platform is x86_64
Running server env: home: /home/jboss AMQ_HOME /opt/amq CONFIG_BROKER false RUN_BROKER
NO RUN_BROKER defined
Using custom configuration. Copy from /amq/init/config to /home/jboss/amq-broker
bin
data
etc
lib
log
tmp
Running Broker in /home/jboss/amq-broker
     _        _               _
    / \  ____| |_  ___ __  __(_) _____
   / _ \|  _ \ __|/ _ \  \/  | |/  __/
  / ___ \ | \/ |_/  __/ |\/| | |\___ \
 /_/   \_\|   \__\____|_|  |_|_|/___ /
 Apache ActiveMQ Artemis 2.23.0

Oct 29, 2022 10:40:11 AM java.lang.System$LoggerFinder lambda$accessProvider$0
WARNING: Failed to instantiate LoggerFinder provider; Using default.
2022-10-29 10:40:11,583 INFO  [org.apache.activemq.artemis.integration.bootstrap] AMQ101000: Starting ActiveMQ Artemis Server
2022-10-29 10:40:11,631 INFO  [org.apache.activemq.artemis.core.server] AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=true,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/large-messages,pagingDirectory=data/paging)
2022-10-29 10:40:11,702 INFO  [org.apache.activemq.artemis.core.server] AMQ221013: Using NIO Journal
2022-10-29 10:40:11,776 INFO  [org.apache.activemq.artemis.core.server] AMQ221057: Global Max Size is being adjusted to 1/2 of the JVM max size (-Xmx). being defined as 1,002,438,656
2022-10-29 10:40:12,301 INFO  [org.jgroups.JChannel] local_addr: 34c92152-e44e-47bd-81c8-9cdb71389531, name: test-amq-ss-0-5396
2022-10-29 10:40:12,326 INFO  [org.jgroups.protocols.FD_SOCK2] server listening on *.7900

-------------------------------------------------------------------
GMS: address=test-amq-ss-0-5396, cluster=activemq_broadcast_channel, physical address=10.129.2.191:7800
-------------------------------------------------------------------
2022-10-29 10:40:14,379 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE
2022-10-29 10:40:14,380 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-amqp-protocol]. Adding protocol support for: AMQP
2022-10-29 10:40:14,381 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-hornetq-protocol]. Adding protocol support for: HORNETQ
2022-10-29 10:40:14,382 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-mqtt-protocol]. Adding protocol support for: MQTT
2022-10-29 10:40:14,382 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-openwire-protocol]. Adding protocol support for: OPENWIRE
2022-10-29 10:40:14,383 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-stomp-protocol]. Adding protocol support for: STOMP
2022-10-29 10:40:14,439 INFO  [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
2022-10-29 10:40:14,440 INFO  [org.apache.activemq.artemis.core.server] AMQ221035: Live Server Obtained live lock
2022-10-29 10:40:14,515 INFO  [org.apache.activemq.artemis.core.server] AMQ221080: Deploying address DLQ supporting [ANYCAST]
2022-10-29 10:40:14,530 INFO  [org.apache.activemq.artemis.core.server] AMQ221003: Deploying ANYCAST queue DLQ on address DLQ
2022-10-29 10:40:14,635 INFO  [org.apache.activemq.artemis.core.server] AMQ221080: Deploying address ExpiryQueue supporting [ANYCAST]
2022-10-29 10:40:14,636 INFO  [org.apache.activemq.artemis.core.server] AMQ221003: Deploying ANYCAST queue ExpiryQueue on address ExpiryQueue
2022-10-29 10:40:14,881 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started EPOLL Acceptor at test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:61616 for protocols [CORE]
2022-10-29 10:40:14,884 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started EPOLL Acceptor at test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:5672 for protocols [AMQP]
2022-10-29 10:40:14,886 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started EPOLL Acceptor at test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:61613 for protocols [STOMP]
2022-10-29 10:40:14,887 INFO  [org.apache.activemq.artemis.core.server] AMQ221007: Server is now live
2022-10-29 10:40:14,888 INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.23.0 [amq-broker, nodeID=10afd6ee-5776-11ed-bb48-0a580a8102bf]
2022-10-29 10:40:14,899 INFO  [org.apache.activemq.artemis] AMQ241003: Starting embedded web server
2022-10-29 10:40:15,294 INFO  [org.apache.activemq.hawtio.branding.PluginContextListener] Initialized activemq-branding plugin
2022-10-29 10:40:15,398 INFO  [org.apache.activemq.hawtio.plugin.PluginContextListener] Initialized artemis-plugin plugin
2022-10-29 10:40:16,076 INFO  [io.hawt.HawtioContextListener] Initialising hawtio services
2022-10-29 10:40:16,083 INFO  [io.hawt.system.ConfigManager] Configuration will be discovered via system properties
2022-10-29 10:40:16,085 INFO  [io.hawt.jmx.JmxTreeWatcher] Welcome to Hawtio 2.15.0
2022-10-29 10:40:16,094 INFO  [io.hawt.web.auth.AuthenticationConfiguration] Starting hawtio authentication filter, JAAS realm: "activemq" authorized role(s): "admin" role principal classes: "org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal"
2022-10-29 10:40:16,112 INFO  [io.hawt.web.auth.LoginRedirectFilter] Hawtio loginRedirectFilter is using 1800 sec. HttpSession timeout
2022-10-29 10:40:16,148 INFO  [io.hawt.web.proxy.ProxyServlet] Proxy servlet is disabled
2022-10-29 10:40:16,153 INFO  [io.hawt.web.servlets.JolokiaConfiguredAgentServlet] Jolokia overridden property: [key=policyLocation, value=file:/home/jboss/amq-broker/etc/jolokia-access.xml]
2022-10-29 10:40:16,614 INFO  [org.apache.activemq.artemis] AMQ241001: Embedded web server started at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161
2022-10-29 10:40:16,614 INFO  [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161/console/jolokia
2022-10-29 10:40:16,615 INFO  [org.apache.activemq.artemis] AMQ241004: Artemis Console available at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161/console
2022-10-29 10:40:56,546 INFO  [org.apache.activemq.artemis.core.server] AMQ221027: Bridge ClusterConnectionBridge@15070e4d [name=$.artemis.internal.sf.my-cluster.2a703ecd-5776-11ed-a518-0a580a8300b7, queue=QueueImpl[name=$.artemis.internal.sf.my-cluster.2a703ecd-5776-11ed-a518-0a580a8300b7, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::name=amq-broker], temp=false]@77c98579 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@15070e4d [name=$.artemis.internal.sf.my-cluster.2a703ecd-5776-11ed-a518-0a580a8300b7, queue=QueueImpl[name=$.artemis.internal.sf.my-cluster.2a703ecd-5776-11ed-a518-0a580a8300b7, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::name=amq-broker], temp=false]@77c98579 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=artemis, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=61616&host=test-amq-ss-1-test-amq-hdls-svc-default-svc-cluster-local], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@447486093[nodeUUID=10afd6ee-5776-11ed-bb48-0a580a8102bf, connector=TransportConfiguration(name=artemis, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=61616&host=test-amq-ss-0-test-amq-hdls-svc-default-svc-cluster-local, address=, server=ActiveMQServerImpl::name=amq-broker])) [initialConnectors=[TransportConfiguration(name=artemis, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?port=61616&host=test-amq-ss-1-test-amq-hdls-svc-default-svc-cluster-local], discoveryGroupConfiguration=null]] is connected

With "persistenceEnabled: true" the logs has a couple of errors in it, and one of these lead to the readiness probe not succeeding:

Removing provided -XX:+UseParallelOldGC in favour of artemis.profile provided option
Platform is x86_64
Running server env: home: /home/jboss AMQ_HOME /opt/amq CONFIG_BROKER false RUN_BROKER
NO RUN_BROKER defined
Using custom configuration. Copy from /amq/init/config to /home/jboss/amq-broker
bin
etc
lib
log
tmp
Running Broker in /home/jboss/amq-broker
Failed to invoke setter setFileName with value /opt/test-amq/data/log/artemis.log
.java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.lambda$applyPostCreate$1(AbstractPropertyConfiguration.java:226)
    at org.jboss.logmanager.config.WrappedAction.execute(WrappedAction.java:61)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.applyPostCreate(AbstractPropertyConfiguration.java:223)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.applyPostCreate(AbstractPropertyConfiguration.java:203)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.doApplyPostCreate(LogContextConfigurationImpl.java:313)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:345)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:289)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.commit(LogContextConfigurationImpl.java:298)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:546)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97)
    at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:170)
    at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:132)
    at java.logging/java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:446)
    at java.logging/java.util.logging.LogManager$2.run(LogManager.java:395)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
    at java.logging/java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:383)
    at java.logging/java.util.logging.LogManager.getLogManager(LogManager.java:431)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:649)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:718)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:702)
    at org.apache.activemq.artemis.boot.Artemis.<clinit>(Artemis.java:40)
Caused by: java.io.FileNotFoundException: /opt/test-amq/data/log/artemis.log (No such file or directory)
    at java.base/java.io.FileOutputStream.open0(Native Method)
    at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
    at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
    at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)
    at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:109)
    at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:189)
    ... 25 more
Failed to invoke setter setFileName with value /opt/test-amq/data/log/audit.log
.java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.lambda$applyPostCreate$1(AbstractPropertyConfiguration.java:226)
    at org.jboss.logmanager.config.WrappedAction.execute(WrappedAction.java:61)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.applyPostCreate(AbstractPropertyConfiguration.java:223)
    at org.jboss.logmanager.config.AbstractPropertyConfiguration$1.applyPostCreate(AbstractPropertyConfiguration.java:203)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.doApplyPostCreate(LogContextConfigurationImpl.java:313)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:345)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:289)
    at org.jboss.logmanager.config.LogContextConfigurationImpl.commit(LogContextConfigurationImpl.java:298)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:546)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97)
    at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:170)
    at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:132)
    at java.logging/java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:446)
    at java.logging/java.util.logging.LogManager$2.run(LogManager.java:395)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
    at java.logging/java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:383)
    at java.logging/java.util.logging.LogManager.getLogManager(LogManager.java:431)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:649)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:718)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:702)
    at org.apache.activemq.artemis.boot.Artemis.<clinit>(Artemis.java:40)
Caused by: java.io.FileNotFoundException: /opt/test-amq/data/log/audit.log (No such file or directory)
    at java.base/java.io.FileOutputStream.open0(Native Method)
    at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
    at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
    at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)
    at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:109)
    at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:189)
    ... 25 more
     _        _               _
    / \  ____| |_  ___ __  __(_) _____
   / _ \|  _ \ __|/ _ \  \/  | |/  __/
  / ___ \ | \/ |_/  __/ |\/| | |\___ \
 /_/   \_\|   \__\____|_|  |_|_|/___ /
 Apache ActiveMQ Artemis 2.23.0

Oct 29, 2022 10:43:38 AM java.lang.System$LoggerFinder lambda$accessProvider$0
WARNING: Failed to instantiate LoggerFinder provider; Using default.
2022-10-29 10:43:38,637 INFO  [org.apache.activemq.artemis.integration.bootstrap] AMQ101000: Starting ActiveMQ Artemis Server
2022-10-29 10:43:39,169 WARN  [org.apache.activemq.artemis.core.server] AMQ222141: Node Manager can not open file /opt/test-amq/data/journal/server.lock: java.io.IOException: No such file or directory
    at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) [java.base:]
    at java.base/java.io.File.createNewFile(File.java:1043) [java.base:]
    at org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:146) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:108) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:99) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:644) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:571) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:64) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:127) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:160) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:108) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:135) [artemis-cli-2.23.0.jar:2.23.0]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java.base:]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [java.base:]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java.base:]
    at java.base/java.lang.reflect.Method.invoke(Method.java:568) [java.base:]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134) [artemis-boot.jar:2.23.0]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50) [artemis-boot.jar:2.23.0]

2022-10-29 10:43:39,173 ERROR [org.apache.activemq.artemis.core.server] AMQ224097: Failed to start server: java.io.IOException: No such file or directory
    at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) [java.base:]
    at java.base/java.io.File.createNewFile(File.java:1043) [java.base:]
    at org.apache.activemq.artemis.core.server.impl.FileBasedNodeManager.setUpServerLockFile(FileBasedNodeManager.java:146) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.setUpServerLockFile(FileLockNodeManager.java:108) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:99) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:644) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:571) [artemis-server-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:64) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:127) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:160) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:108) [artemis-cli-2.23.0.jar:2.23.0]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:135) [artemis-cli-2.23.0.jar:2.23.0]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java.base:]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [java.base:]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java.base:]
    at java.base/java.lang.reflect.Method.invoke(Method.java:568) [java.base:]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134) [artemis-boot.jar:2.23.0]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50) [artemis-boot.jar:2.23.0]

2022-10-29 10:43:39,194 INFO  [org.apache.activemq.artemis] AMQ241003: Starting embedded web server
2022-10-29 10:43:40,908 INFO  [org.apache.activemq.hawtio.branding.PluginContextListener] Initialized activemq-branding plugin
2022-10-29 10:43:41,005 INFO  [org.apache.activemq.hawtio.plugin.PluginContextListener] Initialized artemis-plugin plugin
2022-10-29 10:43:41,347 INFO  [io.hawt.HawtioContextListener] Initialising hawtio services
2022-10-29 10:43:41,359 INFO  [io.hawt.system.ConfigManager] Configuration will be discovered via system properties
2022-10-29 10:43:41,363 INFO  [io.hawt.jmx.JmxTreeWatcher] Welcome to Hawtio 2.15.0
2022-10-29 10:43:41,369 INFO  [io.hawt.web.auth.AuthenticationConfiguration] Starting hawtio authentication filter, JAAS realm: "activemq" authorized role(s): "admin" role principal classes: "org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal"
2022-10-29 10:43:41,380 INFO  [io.hawt.web.auth.LoginRedirectFilter] Hawtio loginRedirectFilter is using 1800 sec. HttpSession timeout
2022-10-29 10:43:41,421 INFO  [io.hawt.web.proxy.ProxyServlet] Proxy servlet is disabled
2022-10-29 10:43:41,428 INFO  [io.hawt.web.servlets.JolokiaConfiguredAgentServlet] Jolokia overridden property: [key=policyLocation, value=file:/home/jboss/amq-broker/etc/jolokia-access.xml]
2022-10-29 10:43:41,612 INFO  [org.apache.activemq.artemis] AMQ241001: Embedded web server started at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161
2022-10-29 10:43:41,612 INFO  [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161/console/jolokia
2022-10-29 10:43:41,612 INFO  [org.apache.activemq.artemis] AMQ241004: Artemis Console available at http://test-amq-ss-0.test-amq-hdls-svc.default.svc.cluster.local:8161/console
eric-engberg commented 2 years ago

You can set this in the deploymentPlan to get persistence working podSecurityContext:     fsGroup: 185     runAsGroup: 185     RunAsUser: 185     runAsNonRoot: true