WSO2 analytics is breaking when email username is enabled in WSO2 APIM
As mentioned in document here https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#StandardSetup
When email username is enabled in WSO2 APIM then must be admin@wso2.com@carbon.super. Also same username is kept in user-mgmt.xml under in WSO2 APIM. Well this set up is breaking and I am not able to see analytics from WSO2 APIM publisher. Does anyone knows what's wrong with analytics when email username is enabled? Below is log from both WSO2 APIM and Analytics. Please note in below log I have truncated some lines of logs since they were so may lines and was creating problem while posting but main error line is shown properly.
WSO2 APIM log:
TID: [-1] [2019-01-02 12:55:31,408] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://das.wso2-test:7712. {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker}
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://das.wso2-test:7712.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:131)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:54)
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:125)
... 6 more
Caused by: org.apache.thrift.transport.TTransportException
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
Analytics log:
TID: [-1234] [2019-01-02 11:55:33,464] INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin@wso2.com@carbon.super connected {org.wso2.carbon.databridge.core.DataBridge}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl} - Invalid User : admin@wso2.com {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.apache.thrift.server.TThreadPoolServer} - Thrift error occurred during processing of message. {org.apache.thrift.server.TThreadPoolServer}
org.apache.thrift.protocol.TProtocolException: Required field 'message' was not present! Struct: ThriftAuthenticationException(message:null)
TID: [-1234] [2019-01-02 11:55:33,465] WARN {org.apache.thrift.transport.TIOStreamTransport} - Error closing output stream. {org.apache.thrift.transport.TIOStreamTransport}
java.net.SocketException: Socket is closed
I tried all possible approach mentioned in documents but still analytics is not working when email username. Is this already existing issue in WSO2 APIM 2.1.0? I'm asking because I found exact same issue open in github https://github.com/wso2/analytics-apim/issues/583
api-manager.xml:
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<DataPublisher>
<Username>admin@wso2.com@carbon.super</Username>
<Analytics>
<DASUsername>admin@wso2.com@carbon.super</DASUsername>
<DASPassword>${admin.password}</DASPassword>
usr-.xml:
<UserName>admin@wso2.com@carbon.super</UserName>
<Password>admin</Password>
carbml:
<EnableEmailUserName>true</EnableEmailUserName>
Also changes jndi.properties:
connectionfactory.TopicConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientid/carbon?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
connectionfactory.QueueConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientID/test?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
Analytics should work even after enabling email username.
wso2 wso2-das
add a comment |
As mentioned in document here https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#StandardSetup
When email username is enabled in WSO2 APIM then must be admin@wso2.com@carbon.super. Also same username is kept in user-mgmt.xml under in WSO2 APIM. Well this set up is breaking and I am not able to see analytics from WSO2 APIM publisher. Does anyone knows what's wrong with analytics when email username is enabled? Below is log from both WSO2 APIM and Analytics. Please note in below log I have truncated some lines of logs since they were so may lines and was creating problem while posting but main error line is shown properly.
WSO2 APIM log:
TID: [-1] [2019-01-02 12:55:31,408] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://das.wso2-test:7712. {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker}
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://das.wso2-test:7712.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:131)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:54)
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:125)
... 6 more
Caused by: org.apache.thrift.transport.TTransportException
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
Analytics log:
TID: [-1234] [2019-01-02 11:55:33,464] INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin@wso2.com@carbon.super connected {org.wso2.carbon.databridge.core.DataBridge}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl} - Invalid User : admin@wso2.com {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.apache.thrift.server.TThreadPoolServer} - Thrift error occurred during processing of message. {org.apache.thrift.server.TThreadPoolServer}
org.apache.thrift.protocol.TProtocolException: Required field 'message' was not present! Struct: ThriftAuthenticationException(message:null)
TID: [-1234] [2019-01-02 11:55:33,465] WARN {org.apache.thrift.transport.TIOStreamTransport} - Error closing output stream. {org.apache.thrift.transport.TIOStreamTransport}
java.net.SocketException: Socket is closed
I tried all possible approach mentioned in documents but still analytics is not working when email username. Is this already existing issue in WSO2 APIM 2.1.0? I'm asking because I found exact same issue open in github https://github.com/wso2/analytics-apim/issues/583
api-manager.xml:
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<DataPublisher>
<Username>admin@wso2.com@carbon.super</Username>
<Analytics>
<DASUsername>admin@wso2.com@carbon.super</DASUsername>
<DASPassword>${admin.password}</DASPassword>
usr-.xml:
<UserName>admin@wso2.com@carbon.super</UserName>
<Password>admin</Password>
carbml:
<EnableEmailUserName>true</EnableEmailUserName>
Also changes jndi.properties:
connectionfactory.TopicConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientid/carbon?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
connectionfactory.QueueConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientID/test?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
Analytics should work even after enabling email username.
wso2 wso2-das
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
1
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51
add a comment |
As mentioned in document here https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#StandardSetup
When email username is enabled in WSO2 APIM then must be admin@wso2.com@carbon.super. Also same username is kept in user-mgmt.xml under in WSO2 APIM. Well this set up is breaking and I am not able to see analytics from WSO2 APIM publisher. Does anyone knows what's wrong with analytics when email username is enabled? Below is log from both WSO2 APIM and Analytics. Please note in below log I have truncated some lines of logs since they were so may lines and was creating problem while posting but main error line is shown properly.
WSO2 APIM log:
TID: [-1] [2019-01-02 12:55:31,408] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://das.wso2-test:7712. {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker}
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://das.wso2-test:7712.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:131)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:54)
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:125)
... 6 more
Caused by: org.apache.thrift.transport.TTransportException
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
Analytics log:
TID: [-1234] [2019-01-02 11:55:33,464] INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin@wso2.com@carbon.super connected {org.wso2.carbon.databridge.core.DataBridge}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl} - Invalid User : admin@wso2.com {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.apache.thrift.server.TThreadPoolServer} - Thrift error occurred during processing of message. {org.apache.thrift.server.TThreadPoolServer}
org.apache.thrift.protocol.TProtocolException: Required field 'message' was not present! Struct: ThriftAuthenticationException(message:null)
TID: [-1234] [2019-01-02 11:55:33,465] WARN {org.apache.thrift.transport.TIOStreamTransport} - Error closing output stream. {org.apache.thrift.transport.TIOStreamTransport}
java.net.SocketException: Socket is closed
I tried all possible approach mentioned in documents but still analytics is not working when email username. Is this already existing issue in WSO2 APIM 2.1.0? I'm asking because I found exact same issue open in github https://github.com/wso2/analytics-apim/issues/583
api-manager.xml:
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<DataPublisher>
<Username>admin@wso2.com@carbon.super</Username>
<Analytics>
<DASUsername>admin@wso2.com@carbon.super</DASUsername>
<DASPassword>${admin.password}</DASPassword>
usr-.xml:
<UserName>admin@wso2.com@carbon.super</UserName>
<Password>admin</Password>
carbml:
<EnableEmailUserName>true</EnableEmailUserName>
Also changes jndi.properties:
connectionfactory.TopicConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientid/carbon?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
connectionfactory.QueueConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientID/test?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
Analytics should work even after enabling email username.
wso2 wso2-das
As mentioned in document here https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics#StandardSetup
When email username is enabled in WSO2 APIM then must be admin@wso2.com@carbon.super. Also same username is kept in user-mgmt.xml under in WSO2 APIM. Well this set up is breaking and I am not able to see analytics from WSO2 APIM publisher. Does anyone knows what's wrong with analytics when email username is enabled? Below is log from both WSO2 APIM and Analytics. Please note in below log I have truncated some lines of logs since they were so may lines and was creating problem while posting but main error line is shown properly.
WSO2 APIM log:
TID: [-1] [2019-01-02 12:55:31,408] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://das.wso2-test:7712. {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker}
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://das.wso2-test:7712.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:131)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:54)
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:125)
... 6 more
Caused by: org.apache.thrift.transport.TTransportException
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
Analytics log:
TID: [-1234] [2019-01-02 11:55:33,464] INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin@wso2.com@carbon.super connected {org.wso2.carbon.databridge.core.DataBridge}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl} - Invalid User : admin@wso2.com {org.wso2.carbon.identity.authentication.AuthenticationServiceImpl}
TID: [-1234] [2019-01-02 11:55:33,464] ERROR {org.apache.thrift.server.TThreadPoolServer} - Thrift error occurred during processing of message. {org.apache.thrift.server.TThreadPoolServer}
org.apache.thrift.protocol.TProtocolException: Required field 'message' was not present! Struct: ThriftAuthenticationException(message:null)
TID: [-1234] [2019-01-02 11:55:33,465] WARN {org.apache.thrift.transport.TIOStreamTransport} - Error closing output stream. {org.apache.thrift.transport.TIOStreamTransport}
java.net.SocketException: Socket is closed
I tried all possible approach mentioned in documents but still analytics is not working when email username. Is this already existing issue in WSO2 APIM 2.1.0? I'm asking because I found exact same issue open in github https://github.com/wso2/analytics-apim/issues/583
api-manager.xml:
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<DataPublisher>
<Username>admin@wso2.com@carbon.super</Username>
<Analytics>
<DASUsername>admin@wso2.com@carbon.super</DASUsername>
<DASPassword>${admin.password}</DASPassword>
usr-.xml:
<UserName>admin@wso2.com@carbon.super</UserName>
<Password>admin</Password>
carbml:
<EnableEmailUserName>true</EnableEmailUserName>
Also changes jndi.properties:
connectionfactory.TopicConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientid/carbon?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
connectionfactory.QueueConnectionFactory = amqp://admin!wso2.com!carbon.super:admin@clientID/test?brokerlist='tcp://${xxx.trafficManager.host}:${xxx.trafficManager.jms.port}'
Analytics should work even after enabling email username.
wso2 wso2-das
wso2 wso2-das
edited Jan 2 at 16:57
ggorlen
7,5633926
7,5633926
asked Jan 2 at 14:25
Suresh GuptaSuresh Gupta
386
386
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
1
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51
add a comment |
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
1
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
1
1
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54008065%2fwso2-analytics-is-breaking-when-email-username-is-enabled-in-wso2-apim%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54008065%2fwso2-analytics-is-breaking-when-email-username-is-enabled-in-wso2-apim%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you enable email username in analytics server also. username and password in <Analytics> section of api-manager.xml should contain credentials of analytics server. Not APIM
– Tishan
Jan 2 at 18:13
1
I didn't modify api-manager.xml but yes I enabled <EnableEmailUserName>true</EnableEmailUserName> in carbon.xml. Also did changes in user-mgmt.xml <UserName>admin@wso2.com@carbon.super</UserName> and most importantly I changed datasource from jdbc/WSO2CarbonDB to jdbc/WSO2UM_DB in usr-mgmt.xml. Updated master-datasources.xml with datasources WSO2AM_DB, WSO2UM_DB, WSO2REG_DB and WSO2_MB_STORE_DB. After doing all these analytics started working.
– Suresh Gupta
Jan 3 at 13:24
Above changes are done in analytics server.
– Suresh Gupta
Jan 3 at 13:33
Great to hear that. I'll add the answer accordingly
– Tishan
Jan 4 at 7:16
@Tishan I meant its mandatory to have those email id configuration in publisher, store, IS and gateways but apart from those we should have changes in analytics as well. In WSO2 documentation its not properry mentioned how we should put email id related configuration in analytics which was reason I was stuck and my analytics was breaking. But finally when I went to analytics java code and found that it's using same library as APIM. That's why I did email related changes and datasource in analytics.
– Suresh Gupta
Jan 7 at 10:51