I didn’t do much troubleshooting yet, but upgrading from 5.6.13 to 2026.1.0 caused all of my apps to fail to start. Errors indicating New-UDApp didn’t exist.
I tried upgrading, from 5.6.13, didn’t work at all.
First indication something was wrong was that it asked me which account to use for the service, I gave it the credentials and continued.
Then it said my account had not permissions to install the service, and gave me no other choice than to abort the upgrade and rollback. After that everythiing works in 5.6.13 again.
This has never happened before for me, I’m used to keep the servers upgraded to the last version. So something has changed here.
This is on a server running Server 2025 Datacenter 24H2, using the msi installer.
Sounds right, this was my first upgrade since completely reinstalling to get to 5.6. I don’t really get though, is there a way to get around it? I did input the credentials for the service account and still it said it couldn’t install the service because of permisson problems (unfortunately I didn’t write down the exact error).
You could try to unselect Start Service so that the installer doesn’t actually try to do that. Once the install has completed, go to services.msc, set the credentials for the service account and attempt the run the service.
The downside here is that the install won’t rollback automatically. The good thing is that while 2026.1 is a major upgrade in number, it’s not in going to cause any issue to go back to 5.6.13. You’d need to uninstall 2026.1 and then install 5.6.13.
I don’t know why the credentials didn’t work while entered in the installer itself. I’ve actually seen that in previous versions for some customers and the services.msc trick seems to work for them.
Could it be a question of which format is used? I’m using a domain account but I only entered the username, maybe it should be username@domain or domain\username?
Tried this now. Unfortunately the service doesn’t start. I get the following in the event log, sounds like the problem is SQL permissions? Howerver the service account used to run PSU has the permissions in the database that it always had, it’s reader and writer.
Event log says this
Application: Universal.Server.exe
CoreCLR Version: 9.0.1225.60609
.NET Version: 9.0.12
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot find the object “Settings” because it does not exist or you do not have permissions.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, SqlCommand command, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean isAsync, Int32 timeout, Boolean asyncWrite)
at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String methodName) at Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary2 parameterValues)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.Execute(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.<>c.b__3_1(DbContext _, ValueTuple6 s) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean commitTransaction, Nullable1 isolationLevel) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementation(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<>c.<Migrate>b__20_1(DbContext c, ValueTuple4 s)
at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_02.<Execute>b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func3 operation, Func3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade) at PowerShellUniversal.SQL.DatabaseFeature.InitializeDatabase(IConfiguration configuration, ILogger logger) in D:\a\powershell-universal\powershell-universal\src\PowerShellUniversal.SQL\Plugin.cs:line 117 at Universal.Server.Services.SystemPluginService..ctor(IConfiguration configuration) in D:\a\powershell-universal\powershell-universal\src\Universal.Server\Services\SystemPluginService.cs:line 48 at Universal.Server.Startup.ConfigureServices(IServiceCollection services) in D:\a\powershell-universal\powershell-universal\src\Universal.Server\Startup.cs:line 75 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass7_0.b__0(HostBuilderContext context, IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Universal.Server.Program.Main(String args) in D:\a\powershell-universal\powershell-universal\src\Universal.Server\Program.cs:line 41
ClientConnectionId:81e3f977-9e59-4014-9607-73a66264b039
Error Number:1088,State:13,Class:16
edit: Don’t know if it’s relevant, but my connection string in appsettings.json looks like this:
“Server=[obfuscated server name];Database=PSU;Integrated Security=true;TrustServerCertificate=true;”
Just adding to the thread, I updated today (I use an automated method via the MSI), running as a service, none of the above issues seen for me & no other problems so far
Wondering what could be the difference. I bet either it’s something to do with running the service using a domain account or authenticating against database using integrated logon.
I’ll file an issue tomorrow and include all my info there!
I attempted updating and had the same issues dbytes and Dynamic are reporting. Didnt spend much time looking into it because our sever is used in production so Im back on 5.6.13 after uninstalling 2026.1 and reinstalling 5.6.13
we use the msi installer and run on windows server 2019 if it helps. Using Sqlite for the database