Showing posts with label unable. Show all posts
Showing posts with label unable. Show all posts

Tuesday, March 11, 2014

My Gateway is unable to log in filesystem

Problem statement :

I have a custom gateway "sch.oauthint.OAuthHandler.wcp" and I can only debug via logging into filesystem (I know only this way of debugging :P unlike webservices which I can do it via eclipse). So I have encountered a strange problem as I saw there is an error in my application and I want to log. Whenever there is any error it logs in a file which starts lik "Gateway...." in my cordys logs folder but in this scenario I was not able to see the file at all. Hence a blocker for me to understand what is the issue. I have not observed this behavior when I do it in my local system. 

One Approach :

What our(me along with my colleague) understanding was that the user context with which it logs into file system was not having rights to write into file system and our understanding was right. Hence we need to give the rights to the folder "Logs" of the instance of cordys.

Below are the images which would help you in solving the problem :
First immediate task is to find out the user for your website. You can do it by going into IIS settings,


Default Web Site : Website where cordys is installed

You will be seeing "Authentication" as one of the artifact under IIS (highlighted)
Double click on that, You will be viewing a screen which is shown below








Now click on the Name which shows "Enabled" under status, in my case it was "Anonymous Authentication" now on the right side there are "Actions", click on the Edit to view the below screen.

 You will now be able to see what is the User with which it is trying to log.

"IUSR" in my case.Now the next immediate thing you have to do is to give the access permissions on folder "Logs" for this user. This step is shown below
Right click on the folder "Logs" under instance and click on sharing property. Give the access to the user you have found out above "IUSR" in my case.

You can view that in the following screen. 
When I have seen this option the access to the user "IUSR" was "Contribute"(I don't know what is the meaning of this option :P) but I have changed this setting to "Read/Write" which is when my problem got solved.


Note : However this was my approach of solving the problem. There might be different ways also to solve this problem (Windows user can be changed but I did not do that as this approach given me solution).  


Wednesday, February 5, 2014

Unable to start CARS Error 1067



When we try to restart cars we faced the error "Unable to start CARS ERROR 1067"


Reason :

Cars DB (berkely DB) is corrupted and hence has to be rolled back.

Resolution :

As a resolution to the above problem we have to recover the database of cars. Unfortunately there is no GUI to do this operation and one has to do it from command prompt,

The following command has to be executed,
db_recover -v -h "c:\Cordys\AdminRepositoryServer\CU17\bdb"

Note : This command has to be executed from the path "c:\Cordys\AdminRepositoryServer\CU17\bin"

above command can also be executed to a particular timestamp by using the parameter -t yyyyMMddHHmmSS (the modified time of the bdb folder).
db_recover -v -h "<<bdbFolder>>" -t "yyyyMMddHHmmSS"

A Sample error from event viewer captured in my case was given below,

Faulting application name: slapd.exe, version: 0.0.0.0, time stamp: 0x4c87499e
Faulting module name: MSVCR80.dll, version: 8.0.50727.4940, time stamp: 0x4ca2b4dd
Exception code: 0xc000000d
Fault offset: 0x0000000000056460
Faulting process id: 0x1378
Faulting application start time: 0x01cf2251bc1c2e2d
Faulting application path: D:\Program Files\Cordys\bop41cu6\bin\slapd.exe
Faulting module path: C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCR80.dll

Report Id: fa9850c0-8e44-11e3-9814-005056c00008


--------------------------------------------------------------------------------------------------------
[Update : 06 Sept 2019] 

Before attempting db recovery, try to remove alock file which will be present in bdb folder and restart once. Even if the problem persists, then go for db recovery.

-- Credits @Mahipal Reddy

Wednesday, January 15, 2014

Unable to publish the Project

Hi All,
 
      We are getting following error in cordys while publishing the project in Dev server.
Let us know if any one have idea on this issue.

Error details: 
The "UpdateSearchableAttributes" request did not process successfully because of "<update reply="no"><tuple><new><NOTIFICATION_SEARCH_COLRUNNING><SEARCH_TYPE_ID>005056A1-0084-11E1-FD73-9F4E9CB693E9</SEARCH_TYPE_ID><DATATYPE>STRING</DATATYPE><AVAILABLE_COLUMN>1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25</AVAILABLE_COLUMN></NOTIFICATION_SEARCH_COLRUNNING></new><error TYPE="Enumeration"><elem>Error :java.sql.SQLException: ORA-00001: unique constraint (CAPS2NEW.NSCR_PK) violated
</elem></error></tuple></update>".

at com.cordys.cws.internal.client.SoapClientBase.convertSOAPFaultToException(SoapClientBase.java:293)
at com.cordys.cws.internal.client.SoapClientBase.sendRequest(SoapClientBase.java:106)
at com.cordys.cws.internal.client.SoapClientBase.sendRequest(SoapClientBase.java:71)
at com.cordys.cws.internal.client.SoapClientBase.sendRequest(SoapClientBase.java:153)
at com.cordys.workflow.modeler.WorkflowSoapClient.execute(DeployWorkFlowDeliveryModel.java:209)
at com.cordys.workflow.modeler.DeployBuildWorkFlowDeliveryModelTask.execute(DeployWorkFlowDeliveryModel.java:135)
at com.cordys.cws.tasks.StudioTaskHelper.executeTask(StudioTaskHelper.java:50)
at com.cordys.cws.tasks.StudioTaskHelper.executeTasks(StudioTaskHelper.java:63)
at com.cordys.cws.tasks.StudioTaskHelper.executeTasks(StudioTaskHelper.java:71)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:666)
at com.cordys.cws.internal.deploy.DeployEngine.deployDependencyBox(DeployEngine.java:993)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:654)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:718)
at com.cordys.cws.internal.deploy.DeployEngine.deployDependencyBox(DeployEngine.java:993)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:703)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:718)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:718)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:718)
at com.cordys.cws.internal.deploy.DeployEngine.deployDocument(DeployEngine.java:147)
at com.cordys.cws.deploy.Deployer.doOperation(Deployer.java:180)
at com.cordys.cws.internal.operation.OperationBase.execute(OperationBase.java:110)
at com.cordys.cws.internal.operation.CompositeOperation.doOperation(CompositeOperation.java:64)
at com.cordys.cws.internal.operation.OperationBase.execute(OperationBase.java:110)
at com.cordys.cws.internal.operation.runner.OperationRunner$AsynchronousOperationRunner$AsyncBrokerOperation.execute(OperationRunner.java:295)
at com.cordys.cws.internal.operation.broker.BrokerServerOperationThread.runOperation(BrokerServerOperationThread.java:74)
at com.cordys.cws.internal.operation.pool.CustomOperationThread.run(CustomOperationThread.java:206)

-- Harish Munaga DH
------------------------------------------------------------------------------------------------------------------------------------------------
Hi All,
     I searched in the cordys db for "NOTIFICATION_SEARCH_COLRUNNING" table and i found out the record. Please check it in below
  Present cordys db details:
SEARCH_TYPE_ID=005056A1-0084-11E1-FD73-9F4E9CB693E9
DATATYPE=STRING
AVAILABLE_COLUMN=6,13,14,16,17,24,8,20,2,3,18,5,23,7,25,9,4,11,12,2,3,18,5,23,20,7,25,9,4,11,12,22,15,19,8,10,21,1,2,3,18,5,23,20,7,25,9,4,11,12,22,15,19,8,10,21,1,1,22,15,19,8,10,21,20,2,3,18,5,23,7,25
I don't know what to do in order to resolve this issue.If any one know this issue let us know ASAP.
-- Harish Munaga DH
-------------------------------------------------------------------------------------------------------------------------------------------------
Hi Amit,
No we have not changed anything in the cordys Dattabase,
We just republish the project folder by folder and then the complete project.

-- Rajneet Patel
--------------------------------------------------------------------------------------------------------------------------------------------------