apache / apache/rocketmq-site

Run RocketMQ in Docker shell didn't work

Open Beginner friendly
#737 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
66
Forks
262
Avg merge
4d 19h
Merged PRs (30d)
2

Description

if run the docker command as the document, you'll probable see the follow exception:
```log
java.lang.NullPointerException

at org.apache.rocketmq.broker.schedule.ScheduleMessageService.configFilePath(ScheduleMessageService.java:273)

at org.apache.rocketmq.common.ConfigManager.persist(ConfigManager.java:79)

at org.apache.rocketmq.broker.BrokerController.shutdownBasicService(BrokerController.java:1522)

at org.apache.rocketmq.broker.BrokerController.shutdown(BrokerController.java:1618)

at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:250)

at org.apache.rocketmq.proxy.ProxyStartup.createBrokerController(ProxyStartup.java:218)

at org.apache.rocketmq.proxy.ProxyStartup.createMessagingProcessor(ProxyStartup.java:176)

at org.apache.rocketmq.proxy.ProxyStartup.main(ProxyStartup.java:77)
```

actually, you should just mount ***logs, store*** two directory as you use docker run command, just like:

```shell
docker run -d \
--name rmqbroker \
--network rocketmq \
-p 10912:10912 -p 10911:10911 -p 10909:10909 \
-p 8080:8080 -p 8081:8081 \
-e "NAMESRV_ADDR=rmqnamesrv:9876" \
-v $pwd/broker.conf:/home/rocketmq/rocketmq-5.3.2/conf/broker.conf \
-v $pwd/logs:/home/rocketmq/logs \
-v $pwd/store:/home/rocketmq/store \
apache/rocketmq:5.3.2 sh mqbroker --enable-proxy \
-c /home/rocketmq/rocketmq-5.3.2/conf/broker.conf
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Find the RocketMQ 5.3.2 Docker run documentation containing the broker command shown in the issue. Compare its volume mounts with the supplied command, then verify the documented command mounts both logs and store and no longer produces the reported NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, shell
Domain
devops, documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.