Universal Automation not working

Hello,
I’m trying to deploy UA on a IIS server that is on an AWS EC2 Windows Server 2016.
The thing is that I can’t even run it normal.
The steps i made so far.
Downloaded the zip from ironmansoftware website.
Copied the zip file to the server.
Extract to a c:\inetpub\wwwroot\Universal
Installed the .net 4.7.2
installed the aspnet bundle necessary for iis hosting.

Now, when i try to run the Universal Automation server, it does not work. (not as an iis app, but simple, double click on the .exe )
I get the following

2020-10-13 03:31:35 [INFO] (Hangfire.BackgroundJobServer) Starting Hangfire Server using job storage: ‘Hangfire.MemoryStorage.MemoryStorage’
2020-10-13 03:31:35 [INFO] (Hangfire.BackgroundJobServer) Using the following options for Hangfire Server:
Worker count: 20
Listening queues: ‘default’
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
2020-10-13 03:31:35 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff successfully announced in 122.2832 ms
2020-10-13 03:31:35 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler…
2020-10-13 03:31:35 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff all the dispatchers started
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49953, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49956, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49959, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49962, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49965, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49968, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49971, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49974, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49977, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49980, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49983, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49986, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49989, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49992, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49995, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe with command line -NonInteractive -NoProfile -Command “& { [System.Reflection.Assembly]::LoadFrom(‘C:\inetpub\wwwroot\Coeus\Host-v5\Host.dll’) | Out-Null; [UniversalHost.AgentService]::StartApi(49998, 7072) }”
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
2020-10-13 03:31:45 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff caught stopping signal…
2020-10-13 03:31:45 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff caught stopped signal…
2020-10-13 03:31:45 [INFO] (Hangfire.Server.BackgroundServerProcess) Server ec2amaz-697acnc:7072:64a995ff All dispatchers stopped
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at LiteDB.LiteRepository.Query[T](String collectionName)
at UniversalAutomation.LiteDBTable1.ToArray() in D:\a\universal\universal\src\UniversalAutomation.LiteDB\LiteDBDatabase.cs:line 527 at UniversalAutomation.LiteDBTable1.Get() in D:\a\universal\universal\src\UniversalAutomation.LiteDB\LiteDBDatabase.cs:line 470
at Universal.Server.Services.ApiProxy.Start() in D:\a\universal\universal\src\Universal.Server\Services\ApiProxy.cs:line 70
at Universal.Server.Services.ApiProxy.<>c__DisplayClass17_0.b__2(Object sender, EventArgs args) in D:\a\universal\universal\src\Universal.Server\Services\ApiProxy.cs:line 96
at System.Diagnostics.Process.OnExited()
at System.Diagnostics.Process.RaiseOnExited()
at System.Diagnostics.Process.CompletionCallback(Object waitHandleContext, Boolean wasSignaled)
at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(Object state, Boolean timedOut)
at System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context_f(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location where exception was thrown —
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(_ThreadPoolWaitOrTimerCallback helper, Boolean timedOut)

Any sugestions?
Thank you in advance.

Also, powershell version is 5.1, i have .net 4.7.2 installed, and UA is Universal.win-x64.1.4.3

It’s failing to start the API PowerShell process. Can you ensure that you unblocked the files after downloading the ZIP?

dir -recurse | Unblock-File 

Yes, unblocked the files. I just downloaded the nighlty build, 1.5.0 and this version is working when double clicking. trying to figure out how to host it under iis. followed the tutorial that you have in the docs but it doesn’t seen to work.
In iis when i test the connection it says this
image

my web.config is this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="C:\inetpub\wwwroot\Coeus\Universal.Server.exe" arguments="" forwardWindowsAuthToken="false" stdoutLogEnabled="true" stdoutLogFile=".\logs\log" hostingModel="OutOfProcess" />
  </system.webServer>
</configuration>
<!--ProjectGuid: 588ACF2E-9AE5-4DF1-BC42-BCE16A4C4EDE-->

what might i be doing wrong here ?

It kind of seems like permissions. Can you try setting the app pool identity to a user with local admin permissions to see if that changes the behavior?