You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "gzlboy (via GitHub)" <gi...@apache.org> on 2024/08/19 05:43:55 UTC

[I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

gzlboy opened a new issue, #233:
URL: https://github.com/apache/rocketmq-operator/issues/233

   Please describe the issue you observed:
   
   k8s里面部署的rocketmq5.3.0,各个角色pod已经正常running了,进入pod执行mqadmin命令的时候,总是会报"No such file or directory"的错误,见下图,但mqadmin命令可以正常执行,可以看到执行结果
   ![image](https://github.com/user-attachments/assets/29d49009-bc86-4cee-afb5-eab4684153c9)
   ![image](https://github.com/user-attachments/assets/037bc329-09c7-47a1-8c05-c453f5c17382)
   
   就是想问下大神,这个错误什么原因导致?怎么解决呀?
   
   环境:
   rocketmq5.3.0
   k8s 1.28.0
   install chart:https://hub.docker.com/layers/apache/rocketmq/0.0.1/images/sha256-78559fc101daccb7659ffa9df98904d04b86e9b7580625694b8f04ee543ad790?context=explore
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "zhihui921016 (via GitHub)" <gi...@apache.org>.
zhihui921016 commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-2783282154

   您好,您的邮件我已经收到。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5487022876

   **Issue Evaluation**
   
   Category: `question`
   
   The `No such file or directory` error when running `mqadmin` inside the pod, despite the command executing successfully, is typically caused by a missing or incorrect `JAVA_HOME` or script path resolution issue. The command works but produces a stderr warning before execution.
   
   This is a cosmetic issue in the container image — the mqadmin script likely references a path that does not exist (e.g., a missing config file or directory in the startup chain) but the actual Java command still executes.
   
   Check if there is a missing directory referenced in the mqadmin shell script (e.g., `${ROCKETMQ_HOME}/conf` or similar).
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5533790811

   **Issue Evaluation**
   
   Category: `question`
   
   The `No such file or directory` error when running `mqadmin` typically means the script cannot find the Java runtime or the RocketMQ distribution directory.
   
   **Common causes:**
   1. `JAVA_HOME` is not set or points to a non-existent path
   2. The RocketMQ distribution was not properly extracted
   3. The `mqadmin` script path is incorrect
   
   **Fix:** Ensure `JAVA_HOME` is set correctly and the RocketMQ distribution is properly deployed in the container/pod.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5364747890

   **Issue Evaluation**
   
   Category: `question`
   
   The `mqadmin` command works correctly — the topic `test` was created successfully (as shown by the output). The "No such file or directory" error at the end is a non-fatal warning, likely related to a missing configuration file or log directory in the container environment.
   
   This is a cosmetic issue in the Operator's mqadmin exec implementation. The command itself succeeds; the error comes from a post-execution cleanup step or a missing optional config file.
   
   **Workaround:** The error can be safely ignored if the topic creation succeeds. If it's persistent, check the container's filesystem for missing directories referenced in the mqadmin script.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5395022409

   **Issue Evaluation**
   
   Category: `question`
   
   The "No such file or directory" error you see when running `mqadmin` is likely a shell script issue — the command executes successfully but prints an error about a missing file (possibly a temp file or config file that the script tries to source).
   
   This is a known cosmetic issue with the RocketMQ Docker image entrypoint scripts. The command still works because the error occurs after the main logic executes.
   
   **Workaround:** You can ignore the error if the command produces correct output. Alternatively, check the `tools.sh` or `runbroker.sh` scripts in the container for any `source` commands referencing non-existent files.
   
   ---
   *Automated evaluation by github-manager*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5370433694

   Hi @gzlboy! 👋
   
   Thanks for your contribution. This issue has been noted and flagged for maintainer triage.
   
   ---
   🤖 *Automated issue analysis by github-manager*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "jaymie9019 (via GitHub)" <gi...@apache.org>.
jaymie9019 commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-2783280092

   > Please describe the issue you observed:
   > 
   > k8s里面部署的rocketmq5.3.0,各个角色pod已经正常running了,进入pod执行mqadmin命令的时候,总是会报"No such file or directory"的错误,见下图,但mqadmin命令可以正常执行,可以看到执行结果 ![image](https://github.com/user-attachments/assets/29d49009-bc86-4cee-afb5-eab4684153c9) ![image](https://github.com/user-attachments/assets/037bc329-09c7-47a1-8c05-c453f5c17382)
   > 
   > 就是想问下大神,这个错误什么原因导致?怎么解决呀?
   > 
   > 环境: rocketmq5.3.0 k8s 1.28.0 install chart:https://hub.docker.com/layers/apache/rocketmq/0.0.1/images/sha256-78559fc101daccb7659ffa9df98904d04b86e9b7580625694b8f04ee543ad790?context=explore
   
   我也遇到了这个问题了,请问你解决了吗? 另外你是使用 operator 的方式部署的吗,还是直接使用 https://rocketmq.apache.org/docs/quickStart/04quickstartWithHelmInKubernetes 这种 helm 的方式部署的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5655098218

   **Issue Evaluation**
   
   Category: `type/question` | Status: **Needs Info**
   
   The `mqadmin` "No such file or directory" error inside the pod typically indicates a path issue with the RocketMQ installation directory. Please provide:
   - [ ] The exact `mqadmin` command being executed
   - [ ] The output of `ls` in the RocketMQ installation directory inside the pod
   - [ ] The Docker image version being used
   
   ---
   *Automated evaluation by github-manager*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-5537697947

   **Issue Evaluation**
   
   Category: `bug` | Status: **Needs Info**
   
   The mqadmin: No such file or directory error suggests a path or image issue, but more context is needed:
   
   - [ ] Operator version
   - [ ] How the command was invoked (kubectl exec? which container?)
   - [ ] Full error message and command used
   - [ ] Pod status and logs
   
   Please provide these details for proper diagnosis.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 执行mqadmin报No such file or directory错误 [rocketmq-operator]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #233:
URL: https://github.com/apache/rocketmq-operator/issues/233#issuecomment-4689048765

   **Issue Evaluation**
   
   Category: `type/question`
   
   This appears to be a usage question. Please check the project documentation and existing issues/discussions for answers.
   
   For community support, consider using the project's mailing list or discussion forums.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org