On-Prem Deployment - Storage Service Issues
Storage Issues
- All calls to storage service fail with the following returned error message and log
request response:
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111
log:
{"timestamp":"2022-05-11 19:10:29.444","thread":"main","logger":"org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener","message":"\n\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.","context":"default","severity":"INFO"}
{"timestamp":"2022-05-11 19:10:29.600","thread":"main","logger":"org.springframework.boot.SpringApplication","message":"Application run failed","context":"default","exception":"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantFactory' defined in URL [jar:file:/app/storage-gcp.jar!/BOOT-INF/lib/core-lib-gcp-0.14.0-rc2.jar!/org/opengroup/osdu/core/gcp/multitenancy/TenantFactory.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.opengroup.osdu.core.gcp.multitenancy.TenantFactory]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:338)\n\tat org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)\n\tat org.springframework.boot.builder.SpringApplicationBuilder.runAndExtractParent(SpringApplicationBuilder.java:227)\n\tat org.springframework.boot.builder.SpringApplicationBuilder.sibling(SpringApplicationBuilder.java:258)\n\tat org.opengroup.osdu.storage.provider.gcp.StorageApplicationGCP.main(StorageApplicationGCP.java:37)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:108)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:58)\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.opengroup.osdu.core.gcp.multitenancy.TenantFactory]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)\n\t... 25 common frames omitted\nCaused by: java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.\n\tat com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)\n\tat com.google.cloud.ServiceOptions.<init>(ServiceOptions.java:304)\n\tat com.google.cloud.datastore.DatastoreOptions.<init>(DatastoreOptions.java:97)\n\tat com.google.cloud.datastore.DatastoreOptions.<init>(DatastoreOptions.java:35)\n\tat com.google.cloud.datastore.DatastoreOptions$Builder.build(DatastoreOptions.java:86)\n\tat org.opengroup.osdu.core.gcp.multitenancy.DatastoreCreator.get(TenantInfoDatastoreRepo.java:90)\n\tat org.opengroup.osdu.core.gcp.multitenancy.TenantInfoDatastoreRepo.<init>(TenantInfoDatastoreRepo.java:46)\n\tat org.opengroup.osdu.core.gcp.multitenancy.TenantFactory.<init>(TenantFactory.java:37)\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)\n\t... 27 common frames omitted\n","severity":"ERROR"}