【Arthas 】Can not find Arthas under local: /root/.arthas/lib 解决办法
报错
[INFO] JAVA_HOME: /opt/java/openjdk
[INFO] arthas-boot version: 4.0.4
[INFO] Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.
- [1]: 12 org.springframework.boot.loader.JarLauncher
1
[ERROR] Can not read arthas version from: https://arthas.aliyun.com/api/latest_version
[ERROR] Can not find Arthas under local: /root/.arthas/lib and remote repo mirror: aliyun
[ERROR] Unable to download arthas from remote server, please download the full package according to wiki: https://github.com/alibaba/arthas
原因
原来arthas-boot.jar并不是全量包,它会在启动的时候先去阿里Maven仓库下载一些jar包依赖;如果Maven下载失败,那么它会检查本地是否有jar包依赖文件,例如日志:
[ERROR] Can not find Arthas under local: /root/.arthas/lib
解决办法
下载全量包
https://arthas.aliyun.com/doc/install-detail.html#%E5%85%A8%E9%87%8F%E5%AE%89%E8%A3%85
然后解压复制到容器里面进行排查即可