Assistance Needed for Setting Up MOSIP Registration Processor Services

Dear MOSIP Team,

I hope this message finds you well.

I am currently following the MOSIP Registration GitHub repository to set up the registration processor. While I have successfully set up the registration client, I am facing challenges in understanding how to configure and run all seven stage services of the registration processor as standalone services.

Could you please provide guidance or documentation on the step-by-step process to set up and run these services individually? Any pointers or assistance would be greatly appreciated.

Belowed are the logs related to the registation processor receiver stage

{“@timestamp”:“2025-01-28T04:48:51.098Z”,“@version”:“1”,“message”:“Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3712b94: startup date [Tue Jan 28 04:48:51 UTC 2025]; root of context hierarchy”,“logger_name”:“org.springframework.context.annotation.AnnotationConfigApplicationContext”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:53.591Z”,“@version”:“1”,“message”:“Overriding bean definition for bean ‘getPropertiesFromConfigServer’ with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=propertyLoaderConfig; factoryMethodName=getPropertiesFromConfigServer; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.core.config.configserverloader.PropertyLoaderConfig] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=coreConfigBean; factoryMethodName=getPropertiesFromConfigServer; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.core.config.CoreConfigBean]”,“logger_name”:“org.springframework.beans.factory.support.DefaultListableBeanFactory”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:53.592Z”,“@version”:“1”,“message”:“Overriding bean definition for bean ‘getObjectMapper’ with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=true; factoryBeanName=packetReceiverConfig; factoryMethodName=getObjectMapper; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.packet.receiver.config.PacketReceiverConfig] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=coreConfigBean; factoryMethodName=getObjectMapper; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.core.config.CoreConfigBean]”,“logger_name”:“org.springframework.beans.factory.support.DefaultListableBeanFactory”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:53.593Z”,“@version”:“1”,“message”:“Overriding bean definition for bean ‘getRestApiClient’ with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=registrationStatusBeanConfig; factoryMethodName=getRestApiClient; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.status.config.RegistrationStatusBeanConfig] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=restConfigBean; factoryMethodName=getRestApiClient; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.rest.client.config.RestConfigBean]”,“logger_name”:“org.springframework.beans.factory.support.DefaultListableBeanFactory”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:53.594Z”,“@version”:“1”,“message”:“Overriding bean definition for bean ‘getAuditLogRequestBuilder’ with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=registrationStatusBeanConfig; factoryMethodName=getAuditLogRequestBuilder; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.status.config.RegistrationStatusBeanConfig] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=restConfigBean; factoryMethodName=getAuditLogRequestBuilder; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.rest.client.config.RestConfigBean]”,“logger_name”:“org.springframework.beans.factory.support.DefaultListableBeanFactory”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:53.594Z”,“@version”:“1”,“message”:“Overriding bean definition for bean ‘getRestTemplateBuilder’ with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=registrationStatusBeanConfig; factoryMethodName=getRestTemplateBuilder; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.status.config.RegistrationStatusBeanConfig] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=restConfigBean; factoryMethodName=getRestTemplateBuilder; initMethodName=null; destroyMethodName=(inferred); defined in io.mosip.registration.processor.rest.client.config.RestConfigBean]”,“logger_name”:“org.springframework.beans.factory.support.DefaultListableBeanFactory”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/home/aswaryogesh1/registration/registration-processor/init/registration-processor-packet-receiver-stage/target/registration-processor-packet-receiver-stage-1.2.0.2.jar!/BOOT-INF/lib/spring-core-5.0.6.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
{“@timestamp”:“2025-01-28T04:48:54.237Z”,“@version”:“1”,“message”:“@Bean method CoreConfigBean.getPropertiesFromConfigServer is non-static and returns an object assignable to Spring’s BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method’s declaring @Configuration class. Add the ‘static’ modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.”,“logger_name”:“org.springframework.context.annotation.ConfigurationClassEnhancer”,“thread_name”:“main”,“level”:“WARN”,“level_value”:30000}
{“@timestamp”:“2025-01-28T04:48:55.178Z”,“@version”:“1”,“message”:“io.mosip.registration.processor.core.config.CoreConfigBean$$EnhancerBySpringCGLIB$$b2445ebb - - - Getting values from config Server”,“logger_name”:“io.mosip.registration.processor.core.config.CoreConfigBean”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2025-01-28T04:48:55.845Z”,“@version”:“1”,“message”:“io.mosip.registration.processor.core.config.CoreConfigBean$$EnhancerBySpringCGLIB$$b2445ebb - - Connection refused: localhost/127.0.0.1:51000 - Connection refused: localhost/127.0.0.1:51000”,“logger_name”:“io.mosip.registration.processor.core.config.CoreConfigBean”,“thread_name”:“vert.x-eventloop-thread-0”,“level”:“INFO”,“level_value”:20000}

Hi @Dattatray_More,

Thank you for reaching out! We are currently looking into this issue and one of our experts will get back to you. Meanwhile please refer to our Documentation Guide under Pre-Registration and Registration Client.

Best Regards,
Team MOSIP

Hi @Dattatray_More ,

It looks like the configuration server may not be running properly, and you might also need to confirm that you are using the Stage Executor to run the stages correctly.

For detailed guidance, please refer to the Registration Processor Developer’s Guide. This should help you set up and troubleshoot the process effectively.

Let us know if you need further assistance!

Best Regards
Team MOSIP