impactCn opened a new issue #2947:
URL: https://github.com/apache/incubator-shenyu/issues/2947


   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   admin normal sync.
   
   ### Expected Behavior
   
   Using container startup, SQL script to initialize postgres fails.
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.4.2
   ```
   
   
   ### Debug logs
   
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: relation "plugin" does not exist
     Position: 109
   ### The error may exist in class path resource [mappers/plugin-sqlmap.xml]
   ### The error may involve 
org.apache.shenyu.admin.mapper.PluginMapper.selectByNames-Inline
   ### The error occurred while setting parameters
   ### SQL: select                   id, date_created, date_updated, 
name,config,role, sort, enabled               from plugin         where name in 
         (               ?          ,              ?          ,              ?  
        ,              ?          ,              ?          )
   ### Cause: org.postgresql.util.PSQLException: ERROR: relation "plugin" does 
not exist
     Position: 109
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: relation "plugin" does not exist
     Position: 109
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
           at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
           at 
org.apache.shenyu.admin.ShenyuAdminBootstrap.main(ShenyuAdminBootstrap.java:36)
   
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to