WSO2 API Manager Analytics doesn't works - wso2

the wso2 API Manager it's working normaly but the analytics inside the wso2-am and the product wso2-am Analytics doesn't works
I execute all the steps describes in the documentation of the wso2-apim Analytics (Quick Setup and
Standard Setup) but nothing works.
when I was configuring the Enterprise Integrator the analytics has'nt work but when I configured the "synapse.properties" file the analytics started to work normaly.
it's important to know that the wso2-ei, wso2-am and wso2-am Analytics is running in the same machine.
Enterprise Integrator offset = 0
API Manager Offset = 4
API Manager Analytics - Offset = 5
the documentation of WSO2 Administration Guide "Default Ports of WSO2 Products" it is a folow description:
for API Manager:
7711 + Port offset of the APIM Analytics Server - Thrift SSL port for secure transport when publishing analytics to the API Manager Analytics server.
for Enterprise Integrator:
7712 - Thrift SSL port for secure transport, where the client is authenticated to DAS
I verifyed the log file "wso2server.log" of the wso2-am and I see the folow error:
ERROR - Error while trying to connect to the endpoint. Cannot borrow client for ssl://localhost:7712
ERROR - Thrift exception
I don't know if the fact of the wso2-am Analytics isn't work it's related to the error showing in the log of the wso2-am.
someone can help me to make the wso2-am Analytics works normaly?

Related

I'm unable to login into Wso2 APIM

I'm unable login into Wso2 APIM and showing invalid login details but yesterday it was working fine and able to login.
Apim version: 3.2.0.
Identity server wso2 is-km: 5.10.0
I have not changed any of the configuration.
My Wso2 APIM is integrated with wso2 Is.
Below error:
2022-03-07 13:58:07,464] INFO - TimeoutHandler This engine will expire all callbacks after GLOBAL_TIMEOUT: 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2022-03-07 13:58:07,749] ERROR - OAuth2Service Error while finding application state for application with client_id: oYDtSc**************
After that tried logging into Wso2 Identify server with admin as usually but not data it showing like list of users and list of identity providers but previously I saw list of providers etc.
Please help me in this situation.

WSO2 APIM Analytics 3.2.0 dashboard login page doesn't open

I am running WSO2 APIM 3.2.0 and Analytics 3.2.0 on different client servers. I did all the required settings to configure WSO2 APIM with WSO2 Analytics. Started both the servers successfully and WSO2 APIM URL's open well. But, when I open the Analytics Dashboard URL (https://<Analytics_Host>:9643/analytics-dashboard/login), I get the below warning in the dashboard server logs, and the login page does not appear. Only a blank screen appears.
WARN {org.wso2.msf4j.internal.MSF4JHttpConnectorListener} - Unmapped
exception feign.RetryableException: No subject alternative names
matching IP address <APIM_IP> found executing GET
https://<APIM_Host>:9443/api/am/admin/v0.16/custom-urls/carbon.super
In the browser console I can see errors as shown in the below screenshot.
One more thing I noticed is in the management console of WSO2 APIM, difference in Service Providers list when compared with my local. I didn't find all the service providers on the client server which I can see on my local.
WSO2 APIM Carbon Console Service Providers list on my local:
WSO2 APIM Carbon Console list on the client server:
Am I missing out on some configurations? Need suggestions on this issue.

WSO2 ESB 5.00 server getting an OutOfMemoryError when connected to ESB analytics

I'm trying to use WSO2 ESB 5.0.0 with WSO2 ESB Analytics on my local machine (ubuntu 14.04). I have created an API using wso2 development studio and deployed it to WSO2 server. While running both WSO2 server and analytics server on my local machine, the newly created API was called through PostMan. I'm getting correct response, but I can see following error on WSO2 ESB console.
Exception in thread "message-flow-reporter-0-tenant--1234" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:622)
at java.lang.StringBuilder.append(StringBuilder.java:202)
at java.util.AbstractMap.toString(AbstractMap.java:539)
at org.apache.synapse.aspects.flow.statistics.publishing.PublishingEvent.getObjectAsList(PublishingEvent.java:274)
at org.apache.synapse.aspects.flow.statistics.publishing.PublishingFlow.addEvent(PublishingFlow.java:43)
at org.apache.synapse.aspects.flow.statistics.util.TracingDataCollectionHelper.createPublishingFlow(TracingDataCollectionHelper.java:170)
at org.wso2.carbon.das.messageflow.data.publisher.services.MessageFlowReporterThread.processAndPublishEventList(MessageFlowReporterThread.java:225)
at org.wso2.carbon.das.messageflow.data.publisher.services.MessageFlowReporterThread.run(MessageFlowReporterThread.java:95)
When analytics server is stopped, I'm not getting that error. After getting this error, analytics server will not update with any statistics until next server restart.
Does anyone know why I'm getting this kind of error?

WSO2 API Manager : API Creation Issue

I installed the APIM and started the APIM and created a new API. The ApI which i created comprises of a URL which points at our company production server. I gave the URL in the api creation mode to the production endpoint and sandbox Endpoint boxes. Then i set the required parameters under the GET method. Then i try it out at the store but the request does not hit the production server. I want to see the URL output from your api manager which passes to our production server. Because i want to see what is whether there is an error on that as it it doesnot hit our production server.
Can you help me with the issue?
Thanks in advance.
You can enable wire log to see the what are the requests which came to APIM and what are the requests APIM made for backend. Follow the steps in How to get wire logs from WSO2 ESB blog post to enable wire log. Those instructions are given for ESB, but they are valid for APIM as well.

WSO2 1.9 API Manager HTTP Listener - Transports Statistics

I'm not receiving any input on the Transport Statistics metrics page on the API Manager web page. Is this supposed to work out of the box? Please help me with how to setup this up so I receive data. I'm looking to identify how much data (size) is being transferred during API calls. Is there a different way?
API Manager is not provided Transport Statistics by default. We can configure Wso2 API Manger 1.9 with WSO2 BAM (Business Activity Monitor) or Google Analytics to achieve your requirement.
You can follow the steps mentioned in the document [1] to configure API manager with BAM or Google Analytics.
[1]- https://docs.wso2.com/display/AM190/Working+with+Statistics