Debug broke 2 different server installs

Product: PowerShell Universal
Version: 1.4.6

I originally started to demo your product (unlicensed) on my main lab machine, everything was good until i used the Wait-Debugger. As soon as i did that the server stopped responding (desktop edition on windows 10). nothing i did would start desktop again.
I learned about debugged being a paid feature and just chalked it up to some bug related to not being licensed.

Fast forward and i’ve created a windows 2022 server, requested a trial key. played with new scripts and built several different dashboards then last time. So i used Wait-Debugger as my lic. was going to end soon, and everything comes to a halt.
restarted the server and nothing.
Service won’t start.

I went back to the wiki to see if there was something i missed in the install but i’m at a loss.

Both are the same command.
I’ve tried to manually run the universal.server.exe as admin but the service still fails to stay going.

I would love to find out what the problem is so i continue my product recommendation to my work.

Event 1000
Faulting application name: Universal.Server.exe, version: 1.0.0.0, time stamp: 0x6387d353
Faulting module name: coreclr.dll, version: 6.0.1322.58009, time stamp: 0x6387cbf1
Exception code: 0xc00000fd
Fault offset: 0x0000000000094f6e
Faulting process id: 0x14b0
Faulting application start time: 0x01d967d4b905e921
Faulting application path: C:\Program Files (x86)\Universal\Universal.Server.exe
Faulting module path: C:\Program Files (x86)\Universal\coreclr.dll
Report Id: adb9c224-e488-4d1d-b37c-0cee416fc81f
Faulting package full name:
Faulting package-relative application ID:

Event 1001
Fault bucket 1271713086013774701, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: Universal.Server.exe
P2: 1.0.0.0
P3: 6387d353
P4: coreclr.dll
P5: 6.0.1322.58009
P6: 6387cbf1
P7: c00000fd
P8: 0000000000029b26
P9:
P10:

Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.9cdf2376-96bc-46f4-ac1a-b4f9319b7fb1.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.ae89884f-421e-4da2-892f-42b95078f6f9.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.3eaa0159-5e7f-4c62-8cb9-1307f5588c9c.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.ce6889cb-4a6c-42dc-a77c-5c84dc588491.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2e0ec7a4-1539-4ec3-b998-ee6da1c4840a.tmp.txt

These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Universal.Server_86963ac074572e5560cb85ff511a2f822939fbd9_ce6cdf41_e0a52e94-90d6-4ea8-8543-3942b3e89832

Analysis symbol:
Rechecking for solution: 0
Report Id: 13c65b99-cfe1-4f80-8f3c-50f8fc5538b1
Report Status: 268435456
Hashed bucket: e374e051a4b96294c1a608505c111b6d
Cab Guid: 0

There is likely another event viewer error with a stack trace. It should happen right before or after the one you posted. Can you please share that?

Hello Adam,

Thanks for the reply.
I was able to find an event 1026 that look simlar to other stack traces i find on here. Apologies, I’m a infra guy playing self taught “programming”. please let me know if there is something additional you need.

Application: Universal.Server.exe
CoreCLR Version: 6.0.1322.58009
.NET Version: 6.0.13
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException: The process cannot access the file ‘C:\ProgramData\UniversalAutomation\database-log.db’ because it is being used by another process.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy…ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at LiteDB.Engine.FileStreamFactory.GetStream(Boolean canWrite, Boolean sequencial)
at LiteDB.Engine.StreamPool.<>c__DisplayClass3_0.<.ctor>b__0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at System.Lazy1.get_Value()
at LiteDB.Engine.StreamPool.get_Writer()
at LiteDB.Engine.DiskService.<.ctor>b__8_0()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue() at LiteDB.Engine.DiskService.WriteAsync(IEnumerable1 pages)
at LiteDB.Engine.TransactionService.PersistDirtyPages(Boolean commit)
at LiteDB.Engine.TransactionService.Commit()
at LiteDB.Engine.LiteEngine.CommitAndReleaseTransaction(TransactionService transaction)
at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn) at LiteDB.Engine.LiteEngine.EnsureIndex(String collection, String name, BsonExpression expression, Boolean unique) at LiteDB.LiteCollection1.EnsureIndex(String name, BsonExpression expression, Boolean unique)
at UniversalAutomation.LiteDBv5Database.SetupTables() in C:\actions-runner_work\universal\universal\src\UniversalAutomation.LiteDBv5\LiteDBDatabase.cs:line 163
at UniversalAutomation.LiteDBv5Database…ctor(IServiceProvider serviceProvider, String connectionString) in C:\actions-runner_work\universal\universal\src\UniversalAutomation.LiteDBv5\LiteDBDatabase.cs:line 70
at UniversalAutomation.LiteDBv5.DatabaseFeature.GetDatabase(IServiceProvider serviceProvider, String connectionString) in C:\actions-runner_work\universal\universal\src\UniversalAutomation.LiteDBv5\Plugin.cs:line 41
at Universal.Server.Services.PluginService.<>c__DisplayClass3_0.b__2(IServiceProvider x) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\PluginService.cs:line 100
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at Universal.Server.Program.<>c__DisplayClass3_0.b__0(Options o) in C:\actions-runner_work\universal\universal\src\Universal.Server\Program.cs:line 72
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action1 action)
at Universal.Server.Program.Main(String args) in C:\actions-runner_work\universal\universal\src\Universal.Server\Program.cs:line 52

Something is locking your database file. Can you check to see if you have a Universal.Server.exe process running?

Hello Adam

I found that the universal.server.exe was running,

I stopped the process, and re-ran the exe, i ensure the service is running. IIS is running. nothing works.

could it be an issue with server 2022?

My demo expired over the weekend. If it would be possible to get another i wouldn’t be against rebuilding the VM and doing a clean recommended install. and see if i get the same results.

would this be possible?

Thanks,
Dilli

Can you email support@ironmansoftware.com? We can help from there.