UA Dashboard on IIS?

Hey Adam,

I have the stdout logs set but they are failing in the event log to even right… :frowning: but I did upgrade UD in the local PS Repository and UA is now able to “launch” but i get Call failed code 502 for like STATS Apis…etc.

Also I set the UD-License, and put the License.lic file in the folder but it is still not licensing so I get the UDEnterprise unlicecsed remotely covering the screen.

I realized we never published the beta7 with the -RepositoryPath parameter. I think UA is actually failing to start. I will get that published today.

As for the UD license, you put the UD license file in the net472 directory and it didn’t work?

Hey Adam,

Event log shows:
Application ‘MACHINE/WEBROOT/APPHOST/ITA’ with physical root ‘C:\inetpub\ita’ failed to start process with commandline ‘powershell.exe -File .\universal-automation.ps1’, ErrorCode = ‘0x80004005’ : 0.

Okay were making progress :). Got the licensed part of the UD working, now with UA im still getting the 500 errors. I noticed as well i can run the UA from the cmd line and it allows me to launch the server even though it should throw an “already running” error I would think.

changed my domain name, obviously it isnt .domain haha. The server isn’t having any issues looking up the DNS.

PS C:\Windows\system32> Get-UAScript -ComputerName http://itauto.domain:8080
Get-UAScript : Call failed with status code 500 (Internal Server Error): GET
http://itauto.domain:8080/api/v1/Script
At line:1 char:1
+ Get-UAScript -ComputerName http://itauto.domain:8080
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-UAScript], FlurlHttpException
    + FullyQualifiedErrorId : Flurl.Http.FlurlHttpException,UniversalAutomation.GetScriptCommand

Got it working… Permissions error with the account I was using to access the DB File.

Just as soon as i thought we were good. Tried to run a script and got this output.

[02/12/2020 11:02:44] [ERROR] Call failed. An error occurred while sending the request. GET http://localhost:10000/api/v1/Job/1
[02/12/2020 11:02:46] [ERROR] Call failed. An error occurred while sending the request. GET http://localhost:10000/api/v1/Script/1

Shouldn’t it be accessing my hostname and my custom port? http://itauto.domain:8080

If i do it manually it looks like it works substituting my hostname and port

    PS C:\Windows\system32> Invoke-RestMethod -Method Get -Uri http://itauto.domain:8080/api/v1/Script/1
    id                        : 1
    name                      : Test Sciprt.ps1
    description               : Play Around in here!
    createdTime               : 2020-02-12T11:02:35.799-08:00
    manualTime                : 0.0
    commitId                  : ca6c094272894ac3d948985b77c0804a3ce64a7e
    content                   : Get-ADUser Obie
    scriptParameters          :
    identity                  : @{id=1; name=; source=0; role=}
    tags                      : {}
    schedules                 :
    status                    : 0
    folder                    : @{id=1; name=; path=; parent=; scripts=System.Object[]}
    fullPath                  : Test Sciprt.ps1
    requiredPowerShellVersion : 5.1.14393.3383
    errorAction               : 1
    commitNotes               : Test Get-ADUser
    disableManualInvocation   : False

This is a bug. Just checked the code. I will be posting a new build of UA to resolve it.

You tha man. I’ll try to test it out when i see the new build, but I think i just got the email my trail expired O_O is there a way to get a new key or do I need to buy it at this point?

Thanks again
-Obie

We changed the licensing so you can run it for however long you want but are limited by the number of concurrent jobs and jobs per day. If you want an unhindered trial, DM me and I can hook you up with a new trial key.

Expect a release early next week.

I am getting an error “Handler “aspNetCore” has a bad module “AspNetCoreModule” in it module list”. I have followed the IIS Hosting instructions.

See screenshot.

in web.config file replace modules=“AspNetCoreModule” with modules=“AspNetCoreModuleV2”

That got me further. The UD is now operational. I do get a UA 500 Error both in Powershell and UD.