Request for Support on E-Signet API Configuration Issue

Dear Community,

We are an IT consulting company currently using the E-Signet API for one of our projects. Following the recent release two weeks ago, we encountered local configuration issues that resulted in an API URL error, without any specific logs returned from our UI.

The project is part of GovStack (the bb-esignature) and we are using the Mosip eSignet endpoints from this repo GitHub - mosip/esignet: Open ID based e-Signet service for large scale verification & authentication. from the release-1.5.x

Our project configuration is stuck at the authentication part as it returns the api error I mentioned in the previous email when we start up the e-signet ui microservice.

Would you be available for a call to help us set up the environment and troubleshoot the issue together?

Thank you for your support.

Hi @SOUFIANE_AMGHAR,

We request you to retest with this tag - GitHub - mosip/esignet at v1.5.0 instead of the “release-1.5.x” branch.

Also sharing the screenshots and logs helps us to understand the issue better and help you faster.

regards,
MOSIP team

Hi @Anusha_sunkadh I just did the version change to v1.5.0 and the issue is still there:

Below are the screenshots post login with e-signet, and I got no specific logs from corresponding containers

Ok @SOUFIANE_AMGHAR

So what type of deployment is this?

  1. Docker compose
  2. Kubernetes based

Hello @Anusha_sunkadh it’s docker compose based

Great, So it means that you should have also imported postman collection based on the readme in the docker-compose folder.

[esignet/docker-compose/README.md at v1.5.0 · mosip/esignet · GitHub](https://How to bring up the complete eSignet setup for a Demo?)

From Step 5 in “how-to-bring-up-the-complete-esignet-setup-for-a-demo”:

  1. Onboard relying party in eSignet, import all files under postman-collection folder into your postman. Choose eSignet-with-mock environment in the postman and invoke below requests under OIDC Client Mgmt → Mock folder in postman.

Below placeholders should be replaced in the authorize URL

→ client_id_value : value should be replaced with the value copied from Create OIDC client response.

→ redirect_uri : As used in ODIC client create request.

  • Paste and Go to the updated Authorize URL in the browser.

@SOUFIANE_AMGHAR was the above steps followed?

1 Like

Hello thank you for the detailed steps
I have encountered a blocking issue caused from running the docker compose file provided in the 1.5.0 repository
Below the logs for both plugins and esignet:

{“@timestamp”:“2025-02-17T16:47:51.842Z”,“@version”:“1”,“message”:“sessionId - applicationId - OIDC_PARTNER - Getting Key CSR for application ID: OIDC_PARTNER, RefId: “,“logger_name”:“io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“esignet”}
{”@timestamp”:“2025-02-17T16:47:51.879Z”,“@version”:“1”,“message”:“===================== IDP KEY SETUP COMPLETED ========================”,“logger_name”:“io.mosip.esignet.config.AppConfig”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“esignet”}
Zip has a parent directory inside
Unzip directory
Archive: client.zip
creating: client/
inflating: client/README.md
extracting: client/ref.proxy
extracting: client/ref.softhsm
inflating: client/pkcs11.cfg
inflating: client/libpkcs11-proxy.so.0.1
inflating: client/install.sh
Renaming directory
mv: cannot move ‘client’ to ‘hsm-client/client’: Directory not empty
Zip has a parent directory inside
Unzip directory
Archive: client.zip
replace client/README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as “[N]one” 
)

d=, keyGenerationTime=2025-02-14T16:40:06.470776, keyExpiryTime=2028-02-14T16:40:06.470776, status=null, certThumbprint=FDEA6640392DCD46873F763EACA7039F9073B46D7B956CE25E9127F2F6E77E55, uniqueIdentifier=730499A7B9BC5C5BEFD1D0DC5A6C62CF53A072ED)“,“logger_name”:“io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
{”@timestamp":“2025-02-17T16:47:50.697Z”,“@version”:“1”,“message”:"sessionId - applicationId - MOCK_AUTHENTICATION_SERVICE - Getting Key CSR for application ID: MOCK_AUTHENTICATION_SERVICE, RefId: ",“logger_name”:“io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
Zip has a parent directory inside
Unzip directory
Archive: client.zip
creating: client/
inflating: client/README.md
extracting: client/ref.proxy
extracting: client/ref.softhsm
inflating: client/pkcs11.cfg
inflating: client/libpkcs11-proxy.so.0.1
inflating: client/install.sh
Renaming directory
mv: cannot move ‘client’ to ‘hsm-client/client’: Directory not empty
Zip has a parent directory inside
Unzip directory
Archive: client.zip
replace client/README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as “[N]one” 
)

and for esignet-ui:

Pre-requisites download completed.
Replacing public url placeholder with public url
Replacing completed.
generating env-config file
generation of env-config file completed!
starting nginx
Downloading pre-requisites started.
unzip plugins

./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip plugins

./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip plugins

./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip plugins

./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip plugins

./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory

@Anusha_sunkadh It would be more efficient if you could assist me in a quick call whenever you are available, thanks

Hi @SOUFIANE_AMGHAR,

Yeah, this is a known problem with our docker-compose. As a workaround, we delete the containers and start fresh every time.

I followed the entire process you described and I still got this error when I sign in using eSignet

{
“responseTime”: “2025-02-19T11:12:03.620Z”,
“response”: null,
“errors”: [
{
“errorCode”: “invalid_client_id”,
“errorMessage”: “invalid_client_id”
}
]
}

@Anusha_sunkadh below is my development configuration in the interface side:

{
“development”: {
“BACKEND_URL”: “localhost:8002”,
“API_URL”: “localhost:8002/api/v1”,
“AUTHORIZE_URI”: “http://localhost:3000/authorize”,
“CLIENT_ID”: “IIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm96t+”,
“REDIRECT_URI”: “localhost:7000/auth/callback”,
“TOKEN_URL”: “localhost:8088/v1/esignet/oauth/v2/token”,
“USERINFO_URL”: “localhost:8088/v1/esignet/oidc/userinfo”,
“ESSENTIAL_CLAIMS”: {
“userinfo”: {
“name”: {
“essential”: true
},
“phone_number”: {
“essential”: false
},
“email”: {
“essential”: true
},
“picture”: {
“essential”: true
},
“gender”: {
“essential”: false
},
“birthdate”: {
“essential”: false
},
“address”: {
“essential”: true
}
},
“id_token”: {}
},

Ok. If “invalid_client_id” is thrown when you invoke “authorize/oauth-details” endpoint then the client_id passed in the request body should be cross-checked.

Is it the same as the client ID created in the Create OIDC client response?

Yes it is the same client_id in the Create OIDC client response and yet I still get the error during the login

@Anusha_sunkadh I think it’s better if we can arrange a quick Google meet call to solve this ticket faster whenever you are available

Hello, sorry for the delay but our team is still struggling with the unstable images in the identity block compose file for version 1.5.0

Below a snapshot of the error for e-signet with plugins and mosip containers:
{“@timestamp”:“2025-03-04T13:25:37.700Z”,“@version”:“1”,“message”:“HikariPool-1 - Starting
”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“esignet”}
{“@timestamp”:“2025-03-04T13:25:48.769Z”,“@version”:“1”,“message”:“HikariPool-1 - Exception during pool initialization.”,“logger_name”:“com.zaxxer.hikari.pool.HikariPool”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“org.postgresql.util.PSQLException: The connection attempt failed.\n\tat org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:315)\n\tat org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51)\n\tat org.postgresql.jdbc.PgConnection.(PgConnection.java:225)\n\tat org.postgresql.Driver.makeConnection(Driver.java:465)\n\tat org.postgresql.Driver.connect(Driver.java:264)\n\tat com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)\n\tat com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)\n\tat com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)\n\tat com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)\n\tat com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)\n\tat com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115)\n\tat com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)\n\tat org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)\n\tat org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)\n\tat org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)\n\tat org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)\n\tat org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:176)\n\tat org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118)\n\tat org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1224)\n\tat org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1255)\n\tat org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)\n\tat org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)\n\tat org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391)\n\tat org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378)\n\tat org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)\n\tat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)\n\tat org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:690)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:507)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:374)\n\tat org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1697)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1442)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:408)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)\n\tat org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:211)\n\tat org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:174)\n\tat org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:169)\n\tat org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:154)\n\tat org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:255)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:229)\n\tat org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)\n\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)\n\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)\n\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)\n\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)\n\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)\n\tat org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)\n\tat org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104)\n\tat org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:440)\n\tat org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:193)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:158)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:315)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)\n\tat io.mosip.esignet.EsignetServiceApplication.main(EsignetServiceApplication.java:30)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:107)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:58)\n\tat org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)\nCaused by: java.net.SocketTimeoutException: connect timed out\n\tat java.base/java.net.PlainSocketImpl.socketConnect(Native Method)\n\tat java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)\n\tat java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)\n\tat java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)\n\tat java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\n\tat java.base/java.net.Socket.connect(Socket.java:609)\n\tat org.postgresql.core.PGStream.createSocket(PGStream.java:231)\n\tat org.postgresql.core.PGStream.(PGStream.java:95)\n\tat org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:98)\n\tat org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:213)\n\t
 173 common frames omitted\n”,“appName”:“esignet”}
{“@timestamp”:“2025-03-04T13:25:48.772Z”,“@version”:“1”,“message”:“HHH000342: Could not obtain connection to query metadata”,“logger_name”:“org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator”,“thread_name”:“main”,“level”:“WARN”,“level_value”:30000,“stack_trace”:"org.postgresql.util.PSQLException: The connection attempt failed.\n\tat org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:315)\n\tat org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:51)\n\tat org.postgresql.jdbc.PgConnection.(PgConnection.java:225)\n\tat org.postgresql.Driver.makeConnection(Driver.java:465)\n\tat org.postgresql.Driver.connect(Driver.java:264)\n\tat com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)\n\tat com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)\n\tat com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)\n\tat com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)\n\tat com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)\n\tat com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115)\n\tat com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)\n\tat org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)\n\tat org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)\n\tat org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.

@Anusha_sunkadh Our team still needs support for this issue

Below are the details, thank you for replying asap on this :
Docker image: mosipid/mock-identity-system:0.10.1

Logs:
Getting Key CSR for application ID: ROOT, RefId: “,“logger_name”:“io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {”@timestamp":“2025-03-04T13:41:38.399Z”,“@version”:“1”,“message”:“\n\nError starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.”,“logger_name”:“org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {“@timestamp”:“2025-03-04T13:41:38.471Z”,“@version”:“1”,“message”:“Shutting down ExecutorService ‘applicationTaskExecutor’”,“logger_name”:“org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {“@timestamp”:“2025-03-04T13:41:38.474Z”,“@version”:“1”,“message”:“Closing JPA EntityManagerFactory for persistence unit ‘default’”,“logger_name”:“org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {“@timestamp”:“2025-03-04T13:41:38.478Z”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown initiated
”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {“@timestamp”:“2025-03-04T13:41:38.488Z”,“@version”:“1”,“message”:“HikariPool-1 - Shutdown completed.”,“logger_name”:“com.zaxxer.hikari.HikariDataSource”,“thread_name”:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“mock-identity-system”}
2025-03-04 14:41:38 {“@timestamp”:“2025-03-04T13:41:38.518Z”,“@version”:“1”,“message”:“Application run failed”,“logger_name”:“org.springframework.boot.SpringApplication”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“java.lang.IllegalStateException: Failed to execute ApplicationRunner\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:789)\n\tat org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:776)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:322)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)\n\tat io.mosip.esignet.mock.identitysystem.MockIdentitySystemApplication.main(MockIdentitySystemApplication.java:25)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:107)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:58)\n\tat org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)\nCaused by: io.mosip.kernel.core.keymanager.exception.NoSuchSecurityProviderException: KER-KMA-004 → No such alias: ee04f9b7-89d1-4a70-a54a-c2fcb182fd96\n\tat io.mosip.kernel.keymanager.hsm.impl.pkcs.PKCS12KeyStoreImpl.getAsymmetricKey(PKCS12KeyStoreImpl.java:322)\n\tat io.mosip.kernel.keymanager.hsm.impl.pkcs.PKCS12KeyStoreImpl.getCertificate(PKCS12KeyStoreImpl.java:366)\n\tat io.mosip.kernel.keymanager.hsm.impl.pkcs.PKCS12KeyStoreImpl.getCertificate(PKCS12KeyStoreImpl.java:65)\n\tat io.mosip.kernel.keymanager.hsm.impl.KeyStoreImpl.getCertificate(KeyStoreImpl.java:253)\n\tat io.mosip.kernel.keymanager.hsm.impl.KeyStoreImpl.getCertificate(KeyStoreImpl.java:43)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl.buildResponseObject(KeymanagerServiceImpl.java:627)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl.generateKey(KeymanagerServiceImpl.java:555)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl.generateMasterKey(KeymanagerServiceImpl.java:518)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl$$FastClassBySpringCGLIB$$37c188ac.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)\n\tat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)\n\tat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)\n\tat io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl$$EnhancerBySpringCGLIB$$5835fce5.generateMasterKey()\n\tat io.mosip.esignet.mock.identitysystem.advice.AppConfig.run(AppConfig.java:52)\n\tat org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:786)\n\t
 13 common frames omitted\n”,“appName”:“mock-identity-system”}

docker-compose.yml:
services:
database:
image: ‘postgres:bookworm’
ports:
- 5455:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql

mock-identity-system:
image: ‘mosipid/mock-identity-system:0.10.1’
user: root
ports:
- 8082:8082
environment:
- container_user=mosip
- active_profile_env=default,local
- SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/mosip_mockidentitysystem?currentSchema=mockidentitysystem
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- MOSIP_MOCK_IDA_KYC_TRANSACTION_TIMEOUT_SECS=900
depends_on:
- database

esignet:
image: ‘mosipid/esignet-with-plugins:1.5.1’
user: root
ports:
- 8088:8088
environment:
- container_user=mosip
- active_profile_env=default,local
- plugin_name_env=esignet-mock-plugin.jar
- SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/mosip_esignet?currentSchema=esignet
- MOSIP_ESIGNET_MOCK_DOMAIN_URL=http://mock-identity-system:8082
- MOSIP_ESIGNET_INTEGRATION_KEY_BINDER=MockKeyBindingWrapperService
depends_on:
- database
- mock-identity-system

esignet-ui:
image: ‘mosipid/oidc-ui:1.5.0’
user: root
ports:
- 3000:3000
environment:
- container_user=mosip
- DEFAULT_WELLKNOWN=%5B%7B%22name%22%3A%22OpenID%20Configuration%22%2C%22value%22%3A%22%2F.well-known%2Fopenid-configuration%22%7D%2C%7B%22name%22%3A%22Jwks%20Json%22%2C%22value%22%3A%22%2F.well-known%2Fjwks.json%22%7D%2C%7B%22name%22%3A%22Authorization%20Server%22%2C%22value%22%3A%22%2F.well-known%2Foauth-authorization-server%22%7D%5D
- SIGN_IN_WITH_ESIGNET_PLUGIN_URL=https://raw.githubusercontent.com/mosip/artifactory-ref-impl/master/artifacts/src/mosip-plugins/sign-in-with-esignet/sign-in-with-esignet.zip
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- esignet

volumes:
postgres_data:

HI @SOUFIANE_AMGHAR

I see that the Postgres data folder is mounted, to retain the data after the container restarts. But the keystore files created in mock-identity-system and esignet are not persistent. hence its failing to find keys with existing alias(key_alias table) in the newly generated local.p12 file in the mock-identity-system & esignet container.

solution:

  1. truncate key_alias table in both esignet_mockidentitysystem and mosip_esignet db
  2. mount an external volume to store p12 file in both mock-identity-system and eSignet containers.

thanks & regards
MOSIP team

Hello @Anusha_sunkadh , thank you for the prompt response but just to stay on the same page. We were using version 1.5.0 and now 1.5.1 to see if the bug was mitigated and I am seeing a 1.4.2 config ?

Hi @Anusha_sunkadh , I think it’s better again if we arrange a quick Google meet to solve this issue faster since our team is still stuck here. There are also other points we can ask you about, whenever you are available. Please and thank you !