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

Failed to publish metrics to OTLP receiver Error #11938

Open
1 task done
dgjinsu opened this issue Jan 13, 2025 · 10 comments
Open
1 task done

Failed to publish metrics to OTLP receiver Error #11938

dgjinsu opened this issue Jan 13, 2025 · 10 comments

Comments

@dgjinsu
Copy link

dgjinsu commented Jan 13, 2025

Prerequisites

  • I have checked the FAQ, and issues and found no answer.

Currently, there are no other issues, but the following error occurs when trying to check the Inspector information.

Error Details
An error occurred while fetching the data.

When I check the Pinpoint Collector logs, I see the following warning:

01-13 01:21:25.025 [trics-publisher] WARN  i.m.r.o.OtlpMeterRegistry                : Failed to publish metrics to OTLP receiver (context: url=http://localhost:4318/v1/metrics, resource-attributes={service.name=application})
java.net.ConnectException: Connection refused
	at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
	at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
	at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) ~[?:?]
	at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) ~[?:?]
	at java.net.Socket.connect(Socket.java:633) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:533) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:638) ~[?:?]
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:281) ~[?:?]
	at sun.net.www.http.HttpClient.New(HttpClient.java:386) ~[?:?]
	at sun.net.www.http.HttpClient.New(HttpClient.java:408) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1323) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1256) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1142) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1071) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1465) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1436) ~[?:?]
	at io.micrometer.core.ipc.http.HttpUrlConnectionSender.send(HttpUrlConnectionSender.java:98) ~[micrometer-core-1.13.2.jar!/:1.13.2]
	at io.micrometer.core.ipc.http.HttpSender$Request$Builder.send(HttpSender.java:306) ~[micrometer-core-1.13.2.jar!/:1.13.2]
	at io.micrometer.registry.otlp.OtlpMeterRegistry.publish(OtlpMeterRegistry.java:167) ~[micrometer-registry-otlp-1.13.3.jar!/:1.13.3]
	at io.micrometer.core.instrument.push.PushMeterRegistry.publishSafelyOrSkipIfInProgress(PushMeterRegistry.java:64) ~[micrometer-core-1.13.2.jar!/:1.13.2]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]

The environment where I run Pinpoint is as follows:

  • Spring Boot (JAVA 21)
  • Agent 3.0.1 (JAVA 21)
  • Collector 3.0.1 (JAVA 17)
  • Web 3.0.1 (JAVA 17)
  • HBASE 2.6.1 (JAVA 17)

Have you seen this type of error before?

How can I remove the warning logs and view the Inspector information properly?

@minwoo-jung
Copy link
Member

@dgjinsu
I understand the login that occurs when performing features related to inspector data.
Please explain in a little more detail what logic is being performed in which component and what error is occurring.

@dgjinsu
Copy link
Author

dgjinsu commented Jan 13, 2025

The current issue occurs when clicking on the Inspector menu, where multiple charts that should appear do not load.

Instead of the charts, the following message is displayed:

An error occurred while fetching the data.

Show details...

When clicking on "Show details," the following message appears:

Error Details
An error occurred while fetching the data.

All logs from pinpoint-web appear normal. However, warning logs were observed in pinpoint-collector. The warning logs have been included in the first question.

Other features like the Servermap and scatter graph are working perfectly fine.

@dgjinsu
Copy link
Author

dgjinsu commented Jan 13, 2025

@minwoo-jung When pinpoint-collector is initially started, the following warning log also appears.

01-13 00:57:11.011 [           main] WARN  o.a.h.u.NativeCodeLoader                 : Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
java.lang.reflect.InaccessibleObjectException: Unable to make static boolean java.nio.Bits.unaligned() accessible: module java.base does not "opens java.nio" to unnamed module @3aa9e816
	at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[?:?]
	at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[?:?]
	at java.lang.reflect.Method.checkCanSetAccessible(Method.java:200) ~[?:?]
	at java.lang.reflect.Method.setAccessible(Method.java:194) ~[?:?]
	at org.apache.hadoop.hbase.unsafe.HBasePlatformDependent.checkUnaligned(HBasePlatformDependent.java:176) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.unsafe.HBasePlatformDependent.<clinit>(HBasePlatformDependent.java:49) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.util.Bytes.<clinit>(Bytes.java:130) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.client.ConnectionUtils.<clinit>(ConnectionUtils.java:189) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.client.ConnectionImplementation.<init>(ConnectionImplementation.java:292) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.client.ConnectionImplementation.<init>(ConnectionImplementation.java:272) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
	at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
	at org.apache.hadoop.hbase.client.ConnectionFactory.lambda$null$0(ConnectionFactory.java:233) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
	at javax.security.auth.Subject.doAs(Subject.java:439) ~[?:?]
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1762) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:328) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.client.ConnectionFactory.lambda$createConnection$1(ConnectionFactory.java:232) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.trace.TraceUtil.trace(TraceUtil.java:216) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218) ~[hbase-shaded-client-2.5.10-hadoop3.jar!/:2.5.10-hadoop3]
	at com.navercorp.pinpoint.common.hbase.ConnectionFactoryBean.afterPropertiesSet(ConnectionFactoryBean.java:75) ~[pinpoint-commons-hbase-3.0.1.jar!/:3.0.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:542) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1165) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:542) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1335) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1165) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1355) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1355) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1355) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1192) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) [spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) [spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) [spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975) [spring-beans-6.1.5.jar!/:6.1.5]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962) [spring-context-6.1.5.jar!/:6.1.5]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624) [spring-context-6.1.5.jar!/:6.1.5]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) [spring-boot-3.2.4.jar!/:3.2.4]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) [spring-boot-3.2.4.jar!/:3.2.4]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) [spring-boot-3.2.4.jar!/:3.2.4]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) [spring-boot-3.2.4.jar!/:3.2.4]
	at com.navercorp.pinpoint.common.server.starter.BasicStarter.start(BasicStarter.java:70) [pinpoint-commons-server-3.0.1.jar!/:3.0.1]
	at com.navercorp.pinpoint.collector.CollectorApp.main(CollectorApp.java:36) [classes!/:3.0.1]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [pinpoint-collector-3.0.1-exec.jar:3.0.1]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [pinpoint-collector-3.0.1-exec.jar:3.0.1]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [pinpoint-collector-3.0.1-exec.jar:3.0.1]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) [pinpoint-collector-3.0.1-exec.jar:3.0.1]

@minwoo-jung
Copy link
Member

minwoo-jung commented Jan 13, 2025

You need to distinguish between issues that occur in collector and web.

First of all, I recommend that you troubleshoot the issue where the APIs are not being called properly from the web page of pinpoint-web.
Check the developer tools view(ex. DevTools in chrome) in the browser to see how the API calls are being responded to.

@dgjinsu
Copy link
Author

dgjinsu commented Jan 14, 2025

@minwoo-jung
When checking in the browser developer tools, a 404 error appears.

request url:
http://[IP]:8080/api/inspector/applicationStat/chart?applicationName=app1&serviceTypeName=SPRING_BOOT&from=1736822236000&to=1736822536000&metricDefinitionId=heap

Request Method: GET

Status Code: 404 Not Found

@minwoo-jung
Copy link
Member

The inspector module was not enabled because you got a 404 error. Note that the inspector module is enabled by default.

  1. look again at how to run pinpoint in the manual and make sure you followed the instructions.

  2. please describe in detail how you ran the web, e.g. what command you ran, etc.

  3. check if there are any logs from the first launch of web that might be the problem.

  4. if you don't find any issues, try running web with the -Dpinpoint.modules.web.inspector.enabled=true option.

@dgjinsu
Copy link
Author

dgjinsu commented Jan 14, 2025

@minwoo-jung

The error still persists.

Currently, to run HBase, create tables, and start the collector and web components all at once, I am using the following shell script.

Could there be any problematic parts in this script?

#!/bin/bash

# Java 경로 설정
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH

# HBase 버전 설정
HBASE_VERSION=2.6.1
HBASE_DIR="./hbase-$HBASE_VERSION"

# Pinpoint 버전 설정
PINPOINT_COLLECTOR_JAR="pinpoint-collector-3.0.1-exec.jar"
PINPOINT_WEB_JAR="pinpoint-web-3.0.1-exec.jar"

# 로그 디렉토리 생성
LOG_DIR="./logs"
mkdir -p $LOG_DIR

# 1. Start HBase
echo "Starting HBase (Version: $HBASE_VERSION)..."
JAVA_HOME=$JAVA_HOME $HBASE_DIR/bin/start-hbase.sh > $LOG_DIR/hbase-start.log 2>&1
if [ $? -ne 0 ]; then
  echo "HBase failed to start. Check the log: $LOG_DIR/hbase-start.log"
  exit 1
fi
echo "HBase started successfully."

# 2. Run HBase shell to create tables
echo "Running HBase shell for table creation..."
JAVA_HOME=$JAVA_HOME $HBASE_DIR/bin/hbase shell hbase-create.hbase > $LOG_DIR/hbase-create.log 2>&1
if [ $? -ne 0 ]; then
  echo "HBase shell execution failed. Check the log: $LOG_DIR/hbase-create.log"
  exit 1
fi
echo "HBase tables created successfully."

# 3. Start Pinpoint Collector
echo "Starting Pinpoint Collector (Version: $PINPOINT_VERSION)..."
nohup $JAVA_HOME/bin/java -jar -Dpinpoint.zookeeper.address=localhost $PINPOINT_COLLECTOR_JAR > $LOG_DIR/collector.log 2> $LOG_DIR/collector-error.log &
if [ $? -ne 0 ]; then
  echo "Pinpoint Collector failed to start. Check the log: $LOG_DIR/collector-error.log"
  exit 1
fi
echo "Pinpoint Collector started successfully."

# 4. Start Pinpoint Web
echo "Starting Pinpoint Web (Version: $PINPOINT_VERSION)..."
# nohup $JAVA_HOME/bin/java -jar -Dpinpoint.zookeeper.address=localhost $PINPOINT_WEB_JAR > $LOG_DIR/web.log 2> $LOG_DIR/web-error.log &
nohup $JAVA_HOME/bin/java --add-opens java.base/java.nio=ALL-UNNAMED -jar -Dpinpoint.zookeeper.address=localhost -Dpinpoint.modules.web.inspector.enabled=true $PINPOINT_WEB_JAR > $LOG_DIR/web.log 2> $LOG_DIR/web-error.log &
if [ $? -ne 0 ]; then
  echo "Pinpoint Web failed to start. Check the log: $LOG_DIR/web-error.log"
  exit 1
fi
echo "Pinpoint Web started successfully."

echo "All services started successfully."

@minwoo-jung
Copy link
Member

@dgjinsu

I checked the script file you shared.
Instead of pinpoint-collector-3.0.1-exec.jar and pinpoint-web-3.0.1-exec.jar, use pinpoint-collector-starter-3.0.1-exec.jar and pinpoint-web-starter-3.0.1-exec.jar respectively.

PINPOINT_COLLECTOR_JAR="pinpoint-collector-3.0.1-exec.jar"
PINPOINT_WEB_JAR="pinpoint-web-3.0.1-exec.jar"

Also, I'm curious if you created your own script files.
If it's a script file provided by pinpoint somewhere, I'll modify it myself.

Note

There is a difference between the pinpoint-web-3.0.1.jar file and the pinpoint-web-starter-3.0.1-exec.jar.

  • The pinpoint-web-3.0.1.jar file contains only the core functionality of web, while the pinpoint-web-starter-3.0.1-exec.jar file contains all the various features added in recent versions.
  • There is some confusing wording in some of the guides about using jar files, and this is something that needs to be improved.

@dgjinsu
Copy link
Author

dgjinsu commented Jan 17, 2025

@minwoo-jung

Thank you. Sorry for the delayed response. I will try making the modifications and share the results. The script file is something I created myself.

@whmmm
Copy link

whmmm commented Jan 20, 2025

use application metric Inspector stats in 3.0.1 ,
you must install kafka and pinot .

see https://pinpoint-apm.gitbook.io/pinpoint/documents/new-inspector.
if you want still use hbase , pelease use collector 3.0.0 , and use old ui (v2 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants