Registration tasks section missing in Registration client menu

Hi @hamid

The listing of Registration tasks is dynamic based on the synced UI-Spec.

Please check if the Registration process specs are created and published in kernel-masterdata-service.

Sample data:

Thank you @Anusha_sunkadh

I’ve added data to ui_spec table but I still have the issue

Hello @hamid

Sorry was in between other priority tasks.

can you help me understand the issue better by answering the below questions

  1. Based on the previous screenshot shared, do you see schema_0.1.json in your reg-client folder?
  2. Can you pls share the response of this endpoint from your environment
https://api-internal.dev.mosip.net/v1/syncdata/latestidschema?schemaVersion=0
  1. What is the latest version of identity_schema published in your environment?

Hello @Anusha_sunkadh
As I said before I’ve added data to ui_spec table in masterdata database, but after debbuging I found that the search is done in the tables IDENTITY_SCHEMA and PROCESS_SPEC in REG database. So I’ve added the necessary data as bellow .

And I’ve added this files according to the sample data at github.

image

Now the buutons are displayed.

But when I click on a button I have this message :

and I do the synchronization but I still have the message.

image

Hi @hamid,

Did you manually insert data into registration client tables?

if yes, then it is not the right way @hamid
Can you pls answer the below questions?

  1. Based on the previous screenshot shared, do you see schema_0.1.json in your reg-client folder?
  2. Can you pls share the response of this endpoint from your environment
https://api-internal.dev.mosip.net/v1/syncdata/latestidschema?schemaVersion=0
  1. What is the latest version of identity_schema published(mosip_master db) in your environment?

Also, share the reg-client logs.

Hi @Anusha_sunkadh
Yest I’ve inserted manually data into registration client tables.

Here are the answers for the questions:

1- I don’t see schema_0.1.json my reg-client folder
2-


3-

The logs:
{“@timestamp”:“2023-05-18T18:26:13.120+01:00”,“@version”:“1”,“message”:“Loading props/mosip-application.properties completed”,“logger_name”:“io.mosip.registration.update.ClientSetupValidator”,“thread_name”:“JavaFX Application Thread”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:13.175+01:00”,“@version”:“1”,“message”:“NOTE :: IGNORING LOCAL REGISTRATION CLIENT SETUP VALIDATION AS ITS LOCAL ENVIRONMENT”,“logger_name”:“io.mosip.registration.update.ClientSetupValidator”,“thread_name”:“JavaFX Application Thread”,“level”:“WARN”,“level_value”:30000}
{“@timestamp”:“2023-05-18T18:26:13.269+01:00”,“@version”:“1”,“message”:“Loading props/mosip-application.properties completed”,“logger_name”:“io.mosip.registration.update.ClientIntegrityValidator”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:13.270+01:00”,“@version”:“1”,“message”:“NOTE :: IGNORING LOCAL REGISTRATION CLIENT INTEGRITY CHECK AS ITS LOCAL ENVIRONMENT”,“logger_name”:“io.mosip.registration.update.ClientIntegrityValidator”,“thread_name”:“JavaFX-Launcher”,“level”:“WARN”,“level_value”:30000}
{“@timestamp”:“2023-05-18T18:26:13.813+01:00”,“@version”:“1”,“message”:“Found ‘spring.properties’ file in local classpath”,“logger_name”:“org.springframework.core.SpringProperties”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:14.367+01:00”,“@version”:“1”,“message”:“Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7752dcc3: startup date [Thu May 18 18:26:14 BST 2023]; root of context hierarchy”,“logger_name”:“org.springframework.context.annotation.AnnotationConfigApplicationContext”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/mvn/repository/org/springframework/spring-core/5.0.6.RELEASE/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”:“2023-05-18T18:26:40.762+01:00”,“@version”:“1”,“message”:“BeanFactory id=7185f57e-5cd3-34b3-a16f-34d5e9e200ab”,“logger_name”:“org.springframework.cloud.context.scope.GenericScope”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:44.200+01:00”,“@version”:“1”,“message”:“REGISTRATION - DAO Config - DB - REGISTRATION - REG - ****** SETTING UP DATASOURCE *******”,“logger_name”:“io.mosip.registration.config.DaoConfig”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:44.204+01:00”,“@version”:“1”,“message”:“DB credential backward compatibility fix not applicable”,“logger_name”:“io.mosip.registration.config.DaoConfig”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:44.300+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Instantiating Platform TPM”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:51.534+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Completed getting the instance of Platform TPM”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:26:51.535+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Getting Asymmetric Key Creation from tpm”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:05.100+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Completed Asymmetric Key Creation using tpm. Time taken is 13 seconds”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:05.331+01:00”,“@version”:“1”,“message”:“REGISTRATION - DAO Config - DB - REGISTRATION - Checking Derby Security properties - Started … “,“logger_name”:“io.mosip.registration.config.DaoConfig”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{”@timestamp”:“2023-05-18T18:27:05.332+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Getting Asymmetric Key Creation from tpm”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:06.131+01:00”,“@version”:“1”,“message”:“REGISTRATION - DAO Config - DB - REGISTRATION - REG - Security setup check is complete & success.”,“logger_name”:“io.mosip.registration.config.DaoConfig”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:06.135+01:00”,“@version”:“1”,“message”:“ccSessionID - TPM - - Getting Asymmetric Key Creation from tpm”,“logger_name”:“io.mosip.kernel.clientcrypto.service.impl.TPMClientCryptoServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
Thu May 18 18:27:06 BST 2023 Thread[JavaFX-Launcher,5,main] java.lang.ClassNotFoundException: io.mosip.registration.config.DerbySlf4jBridge
{“@timestamp”:“2023-05-18T18:27:07.219+01:00”,“@version”:“1”,“message”:“Loaded JDBC driver: org.apache.derby.jdbc.EmbeddedDriver”,“logger_name”:“org.springframework.jdbc.datasource.DriverManagerDataSource”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:08.448+01:00”,“@version”:“1”,“message”:“Building JPA container EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:08.519+01:00”,“@version”:“1”,“message”:“HHH000204: Processing PersistenceUnitInfo [\n\tname: hibernate\n\t…]”,“logger_name”:“org.hibernate.jpa.internal.util.LogHelper”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:08.933+01:00”,“@version”:“1”,“message”:“HHH000412: Hibernate Core {5.2.9.Final}”,“logger_name”:“org.hibernate.Version”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:08.947+01:00”,“@version”:“1”,“message”:“HHH000206: hibernate.properties not found”,“logger_name”:“org.hibernate.cfg.Environment”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:09.188+01:00”,“@version”:“1”,“message”:“HCANN000001: Hibernate Commons Annotations {5.0.1.Final}”,“logger_name”:“org.hibernate.annotations.common.Version”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:10.107+01:00”,“@version”:“1”,“message”:“HHH000400: Using dialect: org.hibernate.dialect.DerbyTenSevenDialect”,“logger_name”:“org.hibernate.dialect.Dialect”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:12.130+01:00”,“@version”:“1”,“message”:“HV000001: Hibernate Validator 6.0.9.Final”,“logger_name”:“org.hibernate.validator.internal.util.Version”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:16.030+01:00”,“@version”:“1”,“message”:“Initialized JPA EntityManagerFactory for persistence unit ‘hibernate’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:21.869+01:00”,“@version”:“1”,“message”:“ksSessionId - KeyStoreImpl-Main - KeyStoreImpl - Found Clazz to load for Keystore Impl: io.mosip.kernel.keymanager.hsm.impl.offline.OLKeyStoreImpl”,“logger_name”:“io.mosip.kernel.keymanager.hsm.impl.KeyStoreImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:21.872+01:00”,“@version”:“1”,“message”:“ksSessionId - KeyStoreImpl-Main - KeyStoreImpl - Successfully loaded Clazz for Keystore Impl: io.mosip.kernel.keymanager.hsm.impl.offline.OLKeyStoreImpl”,“logger_name”:“io.mosip.kernel.keymanager.hsm.impl.KeyStoreImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:22.693+01:00”,“@version”:“1”,“message”:“HHH000397: Using ASTQueryTranslatorFactory”,“logger_name”:“org.hibernate.hql.internal.QueryTranslatorFactoryInitiator”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:35.246+01:00”,“@version”:“1”,“message”:“cache2k starting. version=2.4.1.Final”,“logger_name”:“org.cache2k.core.Cache2kCoreProviderImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:35.679+01:00”,“@version”:“1”,“message”:“Starting initialization for vendor mockvendor with params >> {FINGER={threshold=60, classname=io.mosip.mock.sdk.impl.SampleSDK, version=0.9, args=}, IRIS={version=0.9, threshold=60, args=, classname=io.mosip.mock.sdk.impl.SampleSDK}, FACE={threshold=60, classname=io.mosip.mock.sdk.impl.SampleSDK, args=, version=0.9}}”,“logger_name”:“io.mosip.kernel.biosdk.provider.factory.BioAPIFactory”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:35.855+01:00”,“@version”:“1”,“message”:“publishing metrics for LoggingJsonMeterRegistry every 1m”,“logger_name”:“io.micrometer.core.instrument.push.PushMeterRegistry”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.089+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: QUALITY_CHECK”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.090+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: EXTRACT”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.090+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: MATCH”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.091+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: QUALITY_CHECK”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.091+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: EXTRACT”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.091+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: MATCH”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.092+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: QUALITY_CHECK”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.092+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: EXTRACT”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:36.093+01:00”,“@version”:“1”,“message”:“Successfully registered SDK : sample, BiometricFunction: MATCH”,“logger_name”:“io.mosip.kernel.biosdk.provider.impl.BioProviderImpl_V_0_9”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.796+01:00”,“@version”:“1”,“message”:“REGISTRATION - RESTART - RESTART CONTROLLER - REGISTRATION - REG - Initiate Restart Timer started”,“logger_name”:“io.mosip.registration.controller.RestartController”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.796+01:00”,“@version”:“1”,“message”:“REGISTRATION - RESTART - RESTART CONTROLLER - REGISTRATION - REG - Creation of sync restart timer started”,“logger_name”:“io.mosip.registration.controller.RestartController”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.797+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Getting Re-start time started”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.855+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Getting Re-start time completed”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.860+01:00”,“@version”:“1”,“message”:“REGISTRATION - RESTART - RESTART CONTROLLER - REGISTRATION - REG - Creation of sync restart timer completed”,“logger_name”:“io.mosip.registration.controller.RestartController”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:37.860+01:00”,“@version”:“1”,“message”:“REGISTRATION - RESTART - RESTART CONTROLLER - REGISTRATION - REG - Initiate Restart Timer completed”,“logger_name”:“io.mosip.registration.controller.RestartController”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:42.099+01:00”,“@version”:“1”,“message”:“No TaskScheduler/ScheduledExecutorService bean found for scheduled processing”,“logger_name”:“org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:42.241+01:00”,“@version”:“1”,“message”:“Checking for current version started…”,“logger_name”:“io.mosip.registration.update.SoftwareUpdateHandler”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:42.242+01:00”,“@version”:“1”,“message”:“Checking for current version completed : null”,“logger_name”:“io.mosip.registration.update.SoftwareUpdateHandler”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:42.243+01:00”,“@version”:“1”,“message”:“Inside updateDerbyDB currentVersion : {} and {} : {} - null - mosip.reg.services.current.version - 0”,“logger_name”:“io.mosip.registration.update.SoftwareUpdateHandler”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:43.165+01:00”,“@version”:“1”,“message”:“Fetching list of global params”,“logger_name”:“io.mosip.registration.service.config.impl.GlobalParamServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:43.165+01:00”,“@version”:“1”,“message”:“REGISTRATION - GLOBALPARAMS - GLOBAL_PARAM_DAO_IMPL - REGISTRATION - REG - Fetching list of global params”,“logger_name”:“io.mosip.registration.dao.impl.GlobalParamDAOImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:43.358+01:00”,“@version”:“1”,“message”:“REGISTRATION - GLOBALPARAMS - GLOBAL_PARAM_DAO_IMPL - REGISTRATION - REG - List of global params fetched successfully”,“logger_name”:“io.mosip.registration.dao.impl.GlobalParamDAOImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:43.436+01:00”,“@version”:“1”,“message”:“Registration Network Checker had been called → http://dev.mosip.local/v1/syncdata/actuator/health",“logger_name”:“io.mosip.registration.util.restclient.ServiceDelegateUtil”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,"level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.098+01:00”,“@version”:“1”,“message”:“REGISTRATION - LOGINSERVICE - REGISTRATION - REG - Started Initial sync”,“logger_name”:“io.mosip.registration.service.login.impl.LoginServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.098+01:00”,“@version”:“1”,“message”:“Update global param started”,“logger_name”:“io.mosip.registration.service.config.impl.GlobalParamServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.099+01:00”,“@version”:“1”,“message”:“REGISTRATION - GLOBALPARAMS - GLOBAL_PARAM_DAO_IMPL - REGISTRATION - REG - Get Global Param”,“logger_name”:“io.mosip.registration.dao.impl.GlobalParamDAOImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.174+01:00”,“@version”:“1”,“message”:“REGISTRATION - GLOBALPARAMS - GLOBAL_PARAM_DAO_IMPL - REGISTRATION - REG - Updating global param”,“logger_name”:“io.mosip.registration.dao.impl.GlobalParamDAOImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.332+01:00”,“@version”:“1”,“message”:“Update global param ended”,“logger_name”:“io.mosip.registration.service.config.impl.GlobalParamServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.342+01:00”,“@version”:“1”,“message”:“REGISTRATION - LOGINSERVICE - REGISTRATION - REG - completed Initial sync in (ms) : 235”,“logger_name”:“io.mosip.registration.service.login.impl.LoginServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.352+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Jobs initiation was started”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.353+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Fetching sync_job_defs from db”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.353+01:00”,“@version”:“1”,“message”:“REGISTRATION-JOB_CONFIF_DAO - REGISTRATION - REG - Get all Sync Jobs”,“logger_name”:“io.mosip.registration.dao.impl.SyncJobConfigDAOImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.414+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Started invoking Missed Trigger Jobs”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.415+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Completed invoking Missed Trigger Jobs”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.416+01:00”,“@version”:“1”,“message”:“REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Initializing Scheduler Factory Bean started”,“logger_name”:“io.mosip.registration.service.config.impl.JobConfigurationServiceImpl”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.586+01:00”,“@version”:“1”,“message”:“Using default implementation for ThreadExecutor”,“logger_name”:“org.quartz.impl.StdSchedulerFactory”,“thread_name”:“JavaFX-Launcher”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2023-05-18T18:27:44.632+01:00”,“@version”:“1”,“message”:"REGISTRATION - SYNC - Job_Configuration_Service - REGISTRATION - REG - Thread count must be > 0org.quartz.SchedulerConfigException: Thread count must be > 0\r\n\tat org.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:242)\r\n\tat org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1288)\r\n\tat org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1519)\r\n\tat org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(SchedulerFactoryBean.java:637)\r\n\tat org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:511)\r\n\tat io.mosip.registration.service.config.impl.JobConfigurationServiceImpl.getSchedulerFactoryBean(JobConfigurationServiceImpl.java:889)\r\n\tat io.mosip.registration.service.config.impl.JobConfigurationServiceImpl.initiateJobs(JobConfigurationServiceImpl.java:210)\r\n\tat io.mosip.registration.controller.ClientApplication.handleInitialSync(ClientApplication.java:216)\r\n\tat io.mosip.registration.controller.ClientApplication.init(ClientApplication.java:95)\r\n\tat com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:824)\r\n\tat com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)\r\n\ta

which version of reg-client are you running?
And how are you running reg-client?

Hi @Anusha_sunkadh
I’m running the version 1.2.0.
And I run the reg-client by running the Initialization class.
image

Ok great,

Seems like you are running reg-client from your IDE.

Please go through this diagram and document, reg-client will need a syncdata-service to be up and running.

All the masterdata and configurations are downloaded from SyncData-service.

So you don’t have to manually insert data in reg-client DB.

Note: Pls update the domain name where syncdata-service is up and running

Do you have MOSIP env already setup?

Hi @Anusha_sunkadh
I have Syncdata-service up and running.

Ok,

  1. Can you pls share the response of this endpoint from your environment
https://api-internal.dev.mosip.net/v1/masterdata/idschema/latest

using auth-token of “mosip-syncdata-client” clientId


I’ve used the auth token as you said

Please try it this way:

curl -X 'POST' \
  'https://api-internal.dev.mosip.net/v1/authmanager/authenticate/clientidsecretkey' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "version": "string",
  "requesttime": "2023-05-19T14:39:29.432Z",
  "metadata": {},
  "request": {
    "clientId": "mosip-syncdata-client",
    "secretKey": "<client secret>",
    "appId": "registrationclient"
  }
}'

expected reponse:

take the auth-token from the response “authorization” header
and then try the below endpoint with the new auth-token

curl -X ‘GET’
https://api-internal.dev.mosip.net/v1/masterdata/idschema/latest?schemaVersion=0
–header ‘Cookie: Authorization=auth-token’

Hi @Anusha_sunkadh
I still get Unauthorized


Hi @hamid

Can you pls tell us more about how are you running your environment?
Are you using our deployment scripts?

Hi @hamid ,

The above 401 error will come when the roles doesn’t match against the one that is configured, i.e., you are not authorized to perform this operation.

The token that you have added…
image

Can you decode it using jwt.io and share the token details?

The token has information about the roles, and the role should match the role configured by you in your syncdata-default.properties.

If the token has these roles and is active, then you should be able to authenticate.

Hi @nayakrounak
I’ve added the roles at Keycloak. Now I have 500 response

Hi @Anusha_sunkadh and @nayakrounak
I had some issues in keymanager.
Here is the response of “http://dev.mosip.local/v1/syncdata/latestidschema?schemaVersion=0

ok @hamid
Did you try masterdata sync in registration-client after fixing the issue in keycloak? If you still see the same issue, Please send the complete response of
http://dev.mosip.local/v1/syncdata/latestidschema?schemaVersion=0” request.