Appointment module stopped after created an Image on AWS

Application Name: Reference Application Version Number: 2.6.0

Question: I am using AWS. The OpenMRS application works fine no problem. I do create a backup image of the server every now and then and use it for testing purposes. I have been doing this for a while with no issues. Until recently, when the appointment scheduling UI stopped working after I deployed a recent Image. The module works fine on the server where I tool the image from. I tried to restart the appointment scheduling UI module m but it give a message error in starting. Here are the server logs

INFO - LoggingAdvice.invoke(115) 2022-03-14 11:15:14,212 In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: search.indexVersion value: 3,
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:15:14,213 Exiting method saveGlobalProperty
INFO - HibernateContextDAO.updateSearchIndex(497) 2022-03-14 11:15:14,213 Finished updating the search index
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:15:48,943 In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: appointmentschedulingui.started value: true,
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:15:48,944 Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:15:48,944 In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: appointmentschedulingui.mandatory value: false,
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:15:48,945 Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:15:52,118 In method SchedulerService.saveToMemento. Arguments:
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:15:52,129 Exiting method saveToMemento
INFO - ServiceContext.startRefreshingContext(816) 2022-03-14 11:15:52,134 Refreshing Context
WARN - SimpleUrlHandlerMapping.registerHandlers(115) 2022-03-14 11:16:35,431 Neither ‘urlMap’ nor ‘mappings’ set on SimpleUrlHandlerMapping
INFO - ServiceContext.doneRefreshingContext(827) 2022-03-14 11:16:35,438 Done refreshing Context
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:36,965 In method ReportService.deleteOldReportRequests. Arguments:
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:36,970 Exiting method deleteOldReportRequests
ERROR - OwaActivator.contextRefreshed(91) 2022-03-14 11:16:44,854 java.io.IOException: Destination ‘C:\Windows\system32\config\systemprofile\Application Data\OpenMRS\vcc\owa/conceptdictionary.owa’ already exists
ERROR - OwaActivator.contextRefreshed(111) 2022-03-14 11:16:44,876 Failed to deploy OWA from zip file: conceptdictionary.owa
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:44,899 In method UserService.saveRole. Arguments: Role=Privilege Level: Full,
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:44,902 Exiting method saveRole
ERROR - AppFrameworkActivator.registerAppsAndExtensions(101) 2022-03-14 11:16:44,944 Error loading app framework. Some apps might not work.org.openmrs.module.appframework.factory.UserAppFactory@7faae168
WARN - SerializedDefinitionServiceImpl.getDefinitionByUuid(131) 2022-03-14 11:16:45,223 Unable to deserialize Definition : Serialized org.openmrs.module.appointmentscheduling.reporting.dataset.definition.AppointmentDataSetDefinition named <appointmentschedulingui.appointmentDataSetDefinition.dailyAppointments>
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:45,236 In method DefinitionService.saveDefinition. Arguments: Definition=appointmentschedulingui.appointmentDataSetDefinition.dailyAppointments,
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:45,239 In method SerializedDefinitionService.saveDefinition. Arguments: Definition=appointmentschedulingui.appointmentDataSetDefinition.dailyAppointments,
ERROR - SqlExceptionHelper.logExceptions(146) 2022-03-14 11:16:45,262 Duplicate entry ‘c1bf0730-e69e-11e3-ac10-0800200c9a66’ for key ‘serialized_object_uuid_index’
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:45,263 Exiting method saveDefinition
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:45,263 Exiting method saveDefinition
WARN - ModuleUtil.refreshApplicationContext(889) 2022-03-14 11:16:45,267 Unable to invoke started() method on the module’s activator
WARN - SerializedDefinitionServiceImpl.getDefinitionByUuid(131) 2022-03-14 11:16:45,284 Unable to deserialize Definition : Serialized org.openmrs.module.appointmentscheduling.reporting.dataset.definition.AppointmentDataSetDefinition named <appointmentschedulingui.appointmentDataSetDefinition.dailyAppointments>
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:45,287 In method DefinitionService.purgeDefinition. Arguments: Definition=AppointmentDataSetDefinition[hashCode=3b77ddc5,uuid=31ef19a8-2827-4ae7-b38c-2bd5a30a89cc],
INFO - LoggingAdvice.invoke(115) 2022-03-14 11:16:45,287 In method SerializedDefinitionService.purgeDefinition. Arguments: Definition=AppointmentDataSetDefinition[hashCode=3b77ddc5,uuid=31ef19a8-2827-4ae7-b38c-2bd5a30a89cc],
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:45,288 Exiting method purgeDefinition
INFO - LoggingAdvice.invoke(155) 2022-03-14 11:16:45,288 Exiting method purgeDefinition
WARN - ModuleFactory.stopModule(1202) 2022-03-14 11:16:45,289 Unable to call module’s Activator.shutdown() method

I appreciate any help in this regards .**

Which exact OpenMRS platform version are you running?

The proposed fix is switching to the latest version of the serialization xstream module: OpenMRS Add Ons

You will also need to run this sql statement against your database before you restart openmrs: delete from serialized_object where uuid = 'c1bf0730-e69e-11e3-ac10-0800200c9a66'

@yadamz oh sorry for the error! What do you think is we use pastebin to share the error logs. @ibacher, @dkayiwa was this issue meant to fix this problem or am confusing myself.

It worked … Much appreciate your ongoing support Daniel … Amazing as alway