cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connection failure C SDK to the proxy. Error reports can not find log config file

robert.weidman
New Poster

Reporting this as a bug/FYI. using appdynamics-sdk-native-64bit-windows-4.3.1.5 sdk.


When trying to connect to the controller, and behind a firewall, the following lines are output before the appd_sdk_init returns -1.

Error: APPD_SDK_STATUS_CODE __cdecl ApiUtils::init_boilerplate(void): Invalid logging config file: "C:/Users\conf\appdynamics_sdk_log4.cxxx.xml"
Error: APPD_SDK_STATUS_CODE __cdecl appdynamics_sdk_init_base(struct _APPD_SDK_ENV_RECORD *, unsigned int, int): Error code 8.
Error: int __cdecl appd_sdk_init(const struct appd_config *): Error code 8.

 

No errors are reported in the Proxy logs

4 REPLIES 4

Sajna.Sreenivasan
AppDynamics Team

Hi Robert,

 

Were you able to install using the install.bat script?Currently, it seems like install was not a success and it didn't create appdynamics_sdk_log4.cxxx.xml file .

Could you please try running the install.bat script again after following the below steps

Steps to do
1.Replace the install.bat in your environment with the one attached
2.Please use the appdynamics_sdk_log4cxx.xml.win.template attached to the ticket instead of xml.template in your environment.

Once it is done can you please restart proxy and try running the application again.Let us know how it goes.

 

Thanks and Regards,

Sajna Sreenivasan

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Yes I had successfully run the install batch file (after editing it because of the name of the template was different.)

What I just noticed is that the application that has the AppDynamics SDK linked in has to have the logging xml config file local (in a conf subdirectory.)  It does not see the one in the sdk/proxy installation directories

Is there a setting like an environment variable we can use to point to a logging config file for C/C++ applications using the SDK?
The only way I can get the apps to find it, is by creating c:\users\conf directory and putting it in there.

Hi Robert,

 

Yes, It is possible to do that.

The following should give you some directions

https://docs.appdynamics.com/pages/viewpage.action?pageId=45486534#C/C++AgentSDKReference-appd_confi...

 

Thanks,

Sajna Sreenivasan



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.