Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Occasional problem with web farm synch on live site View modes: 
User avatar
Certified Developer 8
Certified Developer 8
nrinat-ecentricarts - 8/22/2013 9:04:05 AM
   
Occasional problem with web farm synch on live site
Hello

I have a web farm on the live site. I have a daily scheduled task that utilizes the Kentico API to upload new media library images. After an image is uploaded it is synched between the two web farm servers.
It usually works with no incident. Once in a while the synch fails. The web farm tasks log shows the following error:
Exception has been thrown by the target of an invocation.

We suspect it happens only after deployment and after a while it returns to work normally, but we're not sure.

Do you have any leads for investigation? We were not able to reproduce the problem locally.
Please tell me if there's other information that I can provide that would help you to help us.

Thank you!

Norm

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/22/2013 11:35:48 AM
   
RE:Occasional problem with web farm synch on live site
Do you have Microsoft DFS setup on your servers to physically sync the files across as well? There could be exclusions/inclusions that are causing problems.

User avatar
Certified Developer 8
Certified Developer 8
nrinat-ecentricarts - 8/23/2013 8:46:47 AM
   
RE:Occasional problem with web farm synch on live site
DFS is not installed on the clients network.
Thanks for the tip though!

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/23/2013 11:05:01 AM
   
RE:Occasional problem with web farm synch on live site
How are you creating the servers within the CMS? Automatically or defined in the web.config? I've never been ver successful with automatically creating them so defined them in the web.config. I've also come across issues when in a DMZ and there was restricted traffic/ports. Which was odd because you'd think it would fail all the time not sporadically.

User avatar
Certified Developer 8
Certified Developer 8
nrinat-ecentricarts - 8/29/2013 8:16:08 AM
   
RE:Occasional problem with web farm synch on live site
The servers are defined in config. The problem still persists. All we get is the "Exception has been thrown by the target of an invocation" error at the web farm log.

Any ideas?


<appSettings>
...
<add key="ChartImageHandler" value="storage=session;timeout=20;" />
<add key="CMSApplicationGuid" value="36e76fb8-a928-461c-8168-c7eb140fc89c" />
<add key="CMSWebFarmServerName" value="Server1_cpiweb004" />
<add key="CMSApplicationName" value="ClientName"/>
</appSettings>

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/5/2013 2:32:14 AM
   
RE:Occasional problem with web farm synch on live site
Hi,

We were dealing with this issue in a ticket. Did the suggestion helped?

For others reference - this issue usually occured when creating media files using the API and I suggested to use SetMediafileInfo method instead of ImportMediaFileInfo method.

Best regards,
Juraj Ondrus

User avatar
Certified Developer 8
Certified Developer 8
nrinat-ecentricarts - 9/5/2013 8:07:32 AM
   
RE:Occasional problem with web farm synch on live site
Thank you Juraj.

Since this is a production problem only it will take some time before I can provide an update.