Xconnect Connection Issue - sitecore

"Message": "Operation failed: One or more dependencies failed",
"ExceptionMessage": "One or more dependencies failed",
"ExceptionType": "Sitecore.XConnect.Operations.DependencyFailedException",
"StackTrace": null,
"InnerException": {
"Message": "An error has occurred.",
"ExceptionMessage": "Store Error: Cannot open database \"espire_Xdb.Collection.ShardMapManager\" requested by the login. The login failed.\r\nLogin failed for user 'espire_collectionuser'.. The error occurred while attempting to perform the underlying storage operation during 'Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreException: Error occurred while performing store operation. See the inner SqlException for details. ---> System.Data.SqlClient.SqlException: Cannot open database \"espire_Xdb.Collection.ShardMapManager\" requested by the login. The login failed.\r\nLogin failed for user 'espire_collectionuser'.\r\n at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessTok
Update the user for that table and in xconnect webconfig

Based on your error message, you are experiencing a login failure when connecting to your data store. Either your database is rejecting the connection, or you have the wrong credentials to access that database.
Since it seems to be SQL, you can try using SQL Management Studio and logging in directly with the credentials in your configuration file. If that doesn't work, then you will know it's the credentials that are the issue.
If the credentials are fine, then you need to look at why SQL Server might be rejecting your connection from your application. It might be that remote connections are not enabled, or that you have the wrong connection details for the SQL Server instance.

Related

"oauth2: cannot fetch token: 401 Unauthorized" happens sometime in Google Workspace Directory API

I created the code which get the member's information by Google Workspace Directory API. This code is executed everyday, and sometime I fece the error which is "oauth2: cannot fetch token: 401 Unauthorized".
Bad thing is that this error is happend only 1-2 times per month, and I cannnot reproduce by myself. I mean, if I re-execute the code after facing this error, it works well.
I paste full error message below:
"failed to get the members by email, email ="***#***": Get "https://admin.googleapis.com/admin/directory/v1/groups/***": oauth2: cannot fetch token: 401 Unauthorized
Response: {
"error": "unauthorized_client",
"error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
}"
API is executed by using Service Account which has appropriate roles below:
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.group.member.readonly
https://www.googleapis.com/auth/admin.directory.group.readonly
Is it only better solution to use exponential back off?
Thank you in advance.

I get the following environment-dependent error in terraform

I get the following environment-dependent error in terraform.
What action should I take to resolve it?
Error: Post "https://composer.googleapis.com/v1beta1/projects/project/locations/asia-northeast1/environments?alt=json&prettyPrint=false": Post "https://oauth2.googleapis.com/token": dial tcp 172.217.25.202:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
The error that was output when opening the above url is as follows.
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
The terraform code used is as follows.
resource "google_storage_bucket" "auto-expire" {
name = "auto-expiring-bucket"
location = "US"
}
teraform apply without any arguments.
You would need to follow this Terraform doc adding-credentials to setup credentials.
Related access_token client_config.
This could also happen if your config is extremely large as those tokens timeout after an hour.

WSO2 Authentication Failed

I logged in as admin in the carbon/admin of the api management but I keep seeing this error when I access the statistics tab.
Authentication failed:Error processing data: java.io.IOException: Error looking up user javax.security.auth.login.AccountNotFoundException: Invalid User : guest {org.wso2.andes.server.handler.ConnectionStartOkMethodHandler}

WSO2 - Reset password reports an AuthenticationException in the logs

We are using the ResetPassword API from UserInformationRecoveryService WSDL (https://localhost:9443/services/UserInformationRecoveryService), to request a password reset without captcha for the user 'dummy' with the following body, providing the admin/admin user.
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.identity.carbon.wso2.org" xmlns:xsd="http://beans.mgt.captcha.carbon.wso2.org/xsd">
<x:Header/>
<x:Body>
<ser:verifyUser>
<ser:username>dummy</ser:username>
</ser:verifyUser>
</x:Body>
</x:Envelope>
The request returns a 200 status code with the token but when checking the console, it reports the following error:
Invalid remote address detected.
org.wso2.carbon.core.common.AuthenticationException: Authentication Failed : Invalid remote address passed - 0:0:0:0:0:0:0:1
Am I missing any configuration? The WSDL doesn't show any remote address field to send like the login API, so it should be something else.
Or is this log error expected?
UPDATE:
Here are the requested DEBUG logs of multiple wso2 components: http://hastebin.com/ubasixagev.coffee
log4j.logger.org.wso2.carbon.user.core=DEBUG
log4j.logger.org.wso2.carbon.identity=DEBUG
log4j.logger.org.wso2.carbon.identity.sso.saml=DEBUG
log4j.logger.org.wso2.carbon.identity.application=DEBUG
log4j.logger.org.wso2.carbon.identity.application.authentication.framework=DEBUG
log4j.logger.org.wso2.carbon.core=DEBUG
log4j.logger.org.wso2.carbon.identity.core=DEBUG

WSO2 IS 5.0.0 error thrown then logging in as locked user

When using WSO2 IS 5.0.0 and setting a user account to locked, http://wso2.org/claims/identity/accountLocked, we get this error below when the login page posts back.
Authentication Error !
Something went wrong during the authentication process. Please try signing in again.
If the user is unlocked and login is re-attempted they will login successfully.
When looking at the wso2carbon.log on the IS we only see this error message recorded.
WARN {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - User account is locked for user : <user>. cannot login until the account is unlocked {org.wso2.carbon.identity.mgt.IdentityMgtEventListener}
Is there a way to prevent this exception or to catch it so that the login page is not replaced with an exception message?
Identity Server Login page resides in authentication-endpoint web app[1]. Login fail can be occurred due to reasons such as invalid credentials, invalid user and account Lock. It can be configured Identity server to send exact reason of login failure [2].
So, web app can be customized based on the login failure. (In your case account locking)
[1]https://docs.wso2.com/display/IS500/Customizing+Login+Pages
[2]https://docs.wso2.com/display/IS500/Customizing+Error+Messages