Question

Pega Robot Runtime will exit becasue it cannot connect to the server.

Hi

I am running Pega Studio v 19.1 in standalone mode. When I try to run a solution, it gives following error: "Pega Robot Runtime will exit becasue it cannot connect to the server."

I have tried to update the runtimeconfig.xml with AllowRunWithNoPackage flag as both true and false but no luck.

Any suggestion on how to resolve this issue will highly appreciated. Thanks

Correct Answer
September 18, 2019 - 12:58pm

Hi, I was able to resolve this by moving the solution to a different folder as the old folder was part of one drive. Looks like one drive sync process was causing the issue. Thanks

Comments

Keep up to date on this post and subscribe to comments

September 10, 2019 - 10:27pm

The reason runtime is exiting is because it is not connect to Robot Manager or Pega Deployment Portal depending on which of them is enable. If you hadn't intended to enable to settings you can disable them. The connection setting values are picked up from CommonConfig.xml located under C:\ProgramData\Pegasystems. 

More details on the CommonConfig.xml here: 

http://help.openspan.com/80/index.htm#Platform_Configuration/OpenSpan_Management_Console_Configuration_Settings.htm

 

September 10, 2019 - 11:40pm
Response to Rushabh Shah

Hi,Thank you for your response.My  config file has no connection information. Below is how it looks like:

<manifest>

 

 

<ServerConfiguration tenant="">

<Servers>

<Server name="RobotManager" baseURL="" enabled="false" proxyAddress="" RPA="false" authenticationType="Basic" RPAServiceOperator="RPAOperator" workgroup="" robotName="{MachineName}" />

<Server name="Config" baseURL="" enabled="false" proxyAddress="" />

<Server name="Intelligence" baseURL="" enabled="false" proxyAddress="" />

<Server name="IdP" baseURL="" enabled="false" proxyAddress="" />

<Server name="CredentialManager" enabled="false" baseURL="" mappingFileLocation="CommonApplicationData" providerType="DPAPI" />

<Server name="PegaDevServer" baseURL="" enabled="false" proxyAddress="" />

</Servers>

</ServerConfiguration>

 

 

  <ConfigurationLocation>ApplicationData</ConfigurationLocation>

<DisplayConnectionError>True</DisplayConnectionError>

</manifest>

September 10, 2019 - 11:57pm

Hi,

I am also did a test and seems to be a project specific error. I can run another project just fine. 

September 11, 2019 - 4:07pm

I also see following error in log file when running solution. Not sure if its related:

 

1) Exception Information
*********************************************
Exception Type: System.Security.SecurityException
Action: 0
PermissionType: NULL
FirstPermissionThatFailed: NULL
PermissionState: NULL
Demanded: NULL
GrantedSet: NULL
RefusedSet: NULL
DenySetInstance: NULL
PermitOnlySetInstance: NULL
FailedAssemblyInfo: NULL
Method: NULL
Zone: MyComputer
Url: NULL
Message: "Requested registry access is not allowed."
Data: IDictionary (System.Collections.ListDictionaryInternal) with 0 items
TargetSite: Void ThrowSecurityException(System.ExceptionResource)
HelpLink: NULL
Source: "mscorlib"
HResult: -2146233078

StackTrace Information
*********************************************
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at System.Diagnostics.EventLogInternal.GetLogRegKey(String currentMachineName, Boolean writable)
   at System.Diagnostics.EventLogInternal.set_MaximumKilobytes(Int64 value)
   at System.Diagnostics.EventLog.set_MaximumKilobytes(Int64 value)
   at OpenSpan.Services.EventLogInstance.set_MaximumKilobytes(Int64 value)
ERROR | 2019-09-11 13:02:51,895 |       1 | 1   | 20216 | STA   | Exception                 |                                |                                | Requested registry access is not allowed., Verbose Message: General Information

 

September 18, 2019 - 8:07am

I am having the same issue. I have a project and I wanted to modify some aspects of it so I copied the entire folder on my desktop and then removed some automations and a win form, and renamed some components. When I tried to run it, in order to test then new format, I get the same error as mentioned above. Already tried and changed all the config file values from the other posts related to this issue but the error persists. And is only for this project that I copied from the default location to my desktop. 

Maybe this helps others better understand the situation. 

Can anyone help?

 

September 18, 2019 - 12:58pm

Hi, I was able to resolve this by moving the solution to a different folder as the old folder was part of one drive. Looks like one drive sync process was causing the issue. Thanks

September 19, 2019 - 2:08am
Response to PareshJ3

This seems to be the issue in my case as well. I moved the folder to a section not synced with one drive and it works. Thank you for the help with this!