Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增的Agent 安装状态全部离线 #1947

Open
3 tasks done
fanky357 opened this issue Sep 11, 2024 · 0 comments
Open
3 tasks done

新增的Agent 安装状态全部离线 #1947

fanky357 opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fanky357
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

1.8.3

Installation Type

Official Docker Compose

Service Name

DongTai-agent-java

Describe the details of the bug and the steps to reproduce it

[root@localhost jetty-home-12.0.13]# java -javaagent:/root/DongTai/iast-tool/dongtai-agent.jar -Dproject.name=jetty -jar /root/DongTai/iast-tool/jetty-home-12.0.13/start.jar --add-modules=server --jetty.base=/root/DongTai/iast-tool/jetty-base
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] DongTai Config: /tmp/DemoProject-v1.0.0-43d07341e6b84e9da362204257007aca/iast/iast.properties
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] fluent extract success.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] Agent registered successfully.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-spy was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-core was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-api was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-grpc was successfully written to the local cache.
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai Engine is successfully installed to the JVM, and it takes 1 s
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai Agent Version: v1.7.5, DongTai Server: http://192.168.201.190/openapi
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] Turn on the engine
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai engine start successfully.
WARN : creating start.d in ${jetty.home} is not recommended!

Proceed (y/N)? y
INFO : mkdir ${jetty.base}/start.d
INFO : server initialized in ${jetty.base}/start.d/server.ini
INFO : logging-jetty transitively enabled
INFO : resources transitively enabled
INFO : threadpool transitively enabled, ini template available with --add-modules=threadpool
INFO : logging/slf4j dynamic dependency of logging-jetty
INFO : bytebufferpool transitively enabled, ini template available with --add-modules=bytebufferpool
INFO : Base directory was modified
2024-09-11 19:45:42 [io.dongtai.iast.agent] [INFO] Uninstall engine
2024-09-11 19:45:43 [io.dongtai.iast.agent] [INFO] Engine uninstallation succeeded

执行了这个,发现agent是在线的,过一会agent全部离线

Additional Information

1

Logs

[root@localhost jetty-home-12.0.13]# java -javaagent:/root/DongTai/iast-tool/dongtai-agent.jar -Dproject.name=jetty -jar /root/DongTai/iast-tool/jetty-home-12.0.13/start.jar --add-modules=server --jetty.base=/root/DongTai/iast-tool/jetty-base
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] DongTai Config: /tmp/DemoProject-v1.0.0-43d07341e6b84e9da362204257007aca/iast/iast.properties
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] fluent extract success.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] Agent registered successfully.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-spy was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-core was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-api was successfully written to the local cache.
2024-09-11 19:45:28 [io.dongtai.iast.agent] [INFO] The remote file http://192.168.201.190/openapi/api/v1/engine/download?engineName=dongtai-grpc was successfully written to the local cache.
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai Engine is successfully installed to the JVM, and it takes 1 s
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai Agent Version: v1.7.5, DongTai Server: http://192.168.201.190/openapi
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] Turn on the engine
2024-09-11 19:45:30 [io.dongtai.iast.agent] [INFO] DongTai engine start successfully.
WARN  : creating start.d in ${jetty.home} is not recommended!

Proceed (y/N)? y
INFO  : mkdir ${jetty.base}/start.d
INFO  : server          initialized in ${jetty.base}/start.d/server.ini
INFO  : logging-jetty   transitively enabled
INFO  : resources       transitively enabled
INFO  : threadpool      transitively enabled, ini template available with --add-modules=threadpool
INFO  : logging/slf4j   dynamic dependency of logging-jetty
INFO  : bytebufferpool  transitively enabled, ini template available with --add-modules=bytebufferpool
INFO  : Base directory was modified
2024-09-11 19:45:42 [io.dongtai.iast.agent] [INFO] Uninstall engine
2024-09-11 19:45:43 [io.dongtai.iast.agent] [INFO] Engine uninstallation succeeded
@fanky357 fanky357 added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant