Upgrade stuck with "in progress - upgrading database" in client admin

We were attempting to upgrade from FAM 8.3 to 8.4 but the upgrade is stuck with “in progress - upgrading database.” We are not able to cancel the upgrade or retry installation. We are not able to re-upload the upgrade package due to it already existing. Not sure what we can do to address this.

Hi

do you see any error in the Watchdog service on the User interface server
if there is a problem it should print the error out

you can also try to stop and start the watchdog service it can help

Restarting the service did not help. I noticed in the watchdog logs that there are error messages related to “Invalid column name ‘upgrade_package_type_id’” in the upgrade_component_view table.

ok so this is the issue why are you upgrading from 8.3 to 8.4? 
the package is no longer available there is a direct upgrade to 8.4 SP5

in any case if the upgrade process is stuck and did not start you can go to the whiteops.upgrade table

and change the status of the upgrade line to -1 which is failed or even delete it and it would clear the entry from the CLIENT.

but this is only if nothing ran yet and in any case i would backup the DB before those changes

Thank you. I will give that a try.

any time

I backed up the database, set phase to -1 for the 8.4.0.0 line and that changed the status to “Suspended due to database.” I was then able to upload the 8.4.0.5000 package but as soon as I click start it changes the status to “in progress - upgrading database” and hangs there. No progress for any of the 508 services which are all stuck in pending. Any ideas?

morning

have you tried deleting the entry for the 8.4?
it will not let you upgrade until the current is done or removed

Morning. I had not tried that. Gave it a shot just now and same result. So I also removed the line for the 8.4 sp5 upgrade and then reuploaded the package to try again. Still the same issue.

If you have not already, you may want to make sure the you upgraded your servers to the latest ASP.NET Core 8.0.x Hosting Bundle.

Hope this helps

was the 8.3 a clean install?
it appears that somthing is not right maybe from passed upgrades

qlso true there are some pre requisits like net 8 hosting and a certificate script

Thank you, both. I have installed .net 8 and ran the certificate script. The 8.3 was an update from 8.2, not a clean install.

I see this invalid column name error repeated over and over in the WatchDog log. I’m not sure if it is related but it does reference checking for upgrades. I confirmed that this column does not exist in the referenced view.

2025-02-13 08:57:55.4330,27,Error,WBX.whiteOPS.DAO.NHibernate.GenericDAO`2.findByConditions - Caught Exception: NHibernate.Exceptions.GenericADOException: could not execute query
[ SELECT this_.id as y0_, this_.name as y1_, this_.source_version as y2_, this_.version as y3_, this_.guid as y4_, this_.upgrade_package_name as y5_, this_.upgrade_type_id as y6_, this_.start_timestamp as y7_, this_.upgrade_id as y8_, this_.file_id as y9_, this_.upgrade_package_type_id as y10_ FROM upgrade_component_view this_ ]
[SQL: SELECT this_.id as y0_, this_.name as y1_, this_.source_version as y2_, this_.version as y3_, this_.guid as y4_, this_.upgrade_package_name as y5_, this_.upgrade_type_id as y6_, this_.start_timestamp as y7_, this_.upgrade_id as y8_, this_.file_id as y9_, this_.upgrade_package_type_id as y10_ FROM upgrade_component_view this_]
---> System.Data.SqlClient.SqlException (0x80131904): Invalid column name ‘upgrade_package_type_id’.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at NHibernate.AdoNet.AbstractBatcher.DoExecuteReader(DbCommand cmd)
at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(DbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(DbCommand st, QueryParameters queryParameters, ISessionImplementor session, IResultTransformer forcedResultTransformer)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
ClientConnectionId:5186c62f-f830-4429-bf7d-81091c2bc5ac
Error Number:207,State:1,Class:16
--- End of inner exception stack trace ---
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
at NHibernate.Loader.Criteria.CriteriaLoaderExtensions.LoadAllToList[T](IList`1 loaders, ISessionImplementor session)
at NHibernate.Impl.SessionImpl.List[T](CriteriaImpl criteria)
at NHibernate.Impl.CriteriaImpl.List[T]()
at WBX.whiteOPS.DAO.NHibernate.GenericDAO`2.findByConditions(List`1 conditions, List`1 propertiesToReturn, Nullable`1 transactionId, Boolean withNoLock)