No Established Sessions corresponding to Session Indexes - wso2

I am testing wso2stratos-is-1.5.2 in a stand alone mode. I unzip the product. I enter the bin directory and run ./wso2server.sh , i login as admin, I try to logout and I get the following error message in the log file
Stratos Identity]ERROR
{org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor}
- No Established Sessions corresponding to Session Indexes provided. {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor}
I wonder if some one of greater knowledge could inform me why this happens out of the box?

What i ended up doing to fix this problem is like I said in my comment.
I copied the repository/conf/advanced directory from the working full stratos install IS Server and pasted it into the stand-alone version of Stratos IS. And made sure the port number in authenticators.xml was pointing to the stand-alone port number.
Then I copied the following files from the working Stratos IS Server and pasted into the Stand-alone version, modifying the port numbers to be relevant to the stand-alone
1. sso-idp-config.xml
2. Identity.xml
3. Carbon.xml
Now I can logout properly.

Please check whether the ACS URL in the relying party entry related to Stratos IS in the sso-idp-config.xml has the same hostname as in the hostname parameter in carbon.xml.
Thanks,
Thilina

Related

WSO2 identity server login page is empty

I am new to WSO2 identity server and going through their documentation for samples. But after running the server when i hit the browser with below url
https://localhost:9443/carbon/admin/login.jsp
i am getting empty page only (I have added the https security exception as well).
Do i need to do anything additionally ? for the admin user (admin/admin)
I found the solution. We need to setup only the tested jdks that are mentioned in their page. But it should also support later versions too. Looks crazy some time. I have used the latest jdk 8.161 for wso2 is 5.0.
Run WSO2 from command line and check out the logs for end points or wso2 services Port already in use: xxxx error before java.net.BindException: Address already in use (Bind failed) which may caused by other startup process and kill them.
On linux will be:
sudo kill -9 `sudo lsof -t -i:xxxx`
(where the xxxx is the port number)

WSO2 api manager configuration

I'm using wso2-am 2.
I have enabled analytics (from api-manager.xml) and modified DASServerURL to use port 7714 instead of 7712.
But I'm getting theses exception:
org.wso2.carbon.databridge.agent.exception.DataEndpointSecurityException: Error while trying to connect to ssl://localhost:7712
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.java:61)
It look like it is still using the old port 7712?
A second question, I know that the api manager is persisting the configuration in it's database, so my question is: if i modify for example api-manager.xml, will it update the new setting in the DB or how to force this update?
Thanks
You have to change port settings in two places.
<APIM_HOME>/repository/conf/api-manager.xml
<APIM_HOME>/repository/conf/log4j.properties only if you have added DAS_AGENT to log4j.rootLogger
By default analytics distribution port offset set to 1 in carbon.xml. But it seems you have set it to 3. Make sure to change the port in above two places.
The answer to your second question is, API-M persist API data in the database. There are certain server configurations such as user data, registry data persisted in the database. But above configuration is not persisted and if you changed it, you have to restart the server to effect that.
Hope this would help you.
1.if your DAS offset is 3. You should set the tcp port is 7614 and restart your APIM. your 7612 is configed in apim, cannot change on admin-dashboard.
2.when you change the *.properties or *.xml.I suggest you restart your app.

change port in wso2 sample

I am executing sample programm of wso2. I have installed wso2is on different machine and tomcat is on local machine. I have changed localhost:9443 to my ipaddress(eg 192.168.1.xxx) from travelocity.properties and avi.properties. But when I execute sample from click on login button it always redirecting me localhost and giving error.
I think you need to try the following,
While the tomcat is running,
Open the travelocity.war with an archive manager
Edit the travelocity.properties file,
update SAML2.IdPURL value
eg : SAML2.IdPURL=https://192.168.1.7:9443/samlsso
Save and update the travelocity.com web app
Restart the tomcat server just to be sure (You don't really have to do this since tomcat hot deploys once it detects a change)
I tried this locally and it redirected me to the IP address I put in SAML2.IdpURL. Clearly the problem seems to be a configuration error on the travelocity.com web app side :)
You need to change <HostName> and <MgtHostName> attributes at repository/conf/carbon.xml of your Identity Server with your IP address. By default they are set as localhost, so when logging it will be redirected to location specified there.

Informatica administrator is not available

I have done the installation of informatica power 9.6.1 for the first time during installation by the step 7. I got an error:
informatica administrator is not available
The domain was created successfully but the informatica administrator is not accessible. I have click continue once installation done I am not able to login admin page it shows like:
http status 404 -/administrator/.
Can anyone help on this issue to get it resolved?
You need to check the correct URL (especially the correct port) for Informatica Administrator page in the
$INFA_HOME/tomcat/conf/server.xml
$INFA_HOME/tomcat/temp/_AdminConsole/conf/server.xml
Usually the URL is like https://[put the IP of the server where you installed Informatica]:[take the port you find in the XML files above]/administrator/

WSO2 IS 5.0.0 saml authentication always redirects to localhost

I'm playing with travelocity sample application, but I'm having a problem:
when I access the application at 10.0.3.124:8080/travelocity.com I end up at https://localhost:9444/commonauth?SAMLRequest=... even though I configured the "host" parameter in carbon.xml. I've also searched for localhost in authenticators.xml and application-authentication.xml and found IdentityProviderSSOServiceURL that i changed from localhost to machine ip.
I'm on a laptop and my application server and IS istances run on a different machine with the 10.0.3.124 IP.
I successfully access the IS admin console.
Where's the problem?
It seems that I also had to configure the <MgtHostName>10.0.3.124</MgtHostName> in carbon.xml.
Thanks
There is a file named identity.xml in side IS_HOME/repository/conf which carries following configuration.
<SSOService>
<IdentityProviderURL>https://localhost:9443/samlsso</IdentityProviderURL>
Please configuring this with your environment parameters.
Thanks,
Pushpalanka