TeslaCN commented on issue #25098:
URL: 
https://github.com/apache/shardingsphere/issues/25098#issuecomment-1502820783

   Hi @Administrator-Xorex 
   I tried your command. The Proxy startup failure was caused by no server.yaml.
   
   ```
    ~/Downloads/ docker run -id \                   
   -v 
/home/user/shardingsphere-proxy/proxy-latest/conf:/opt/shardingsphere-proxy/conf
 \
   -v 
/home/user/shardingsphere-proxy/proxy-latest/ext-lib:/opt/shardingsphere-proxy/ext-lib
 \
   -v 
/home/user/shardingsphere-proxy/proxy-latest/logs:/opt/shardingsphere-proxy/logs
 \
   -p 3307:3307 \
   --name proxy-latest \
   apache/shardingsphere-proxy:latest
   Unable to find image 'apache/shardingsphere-proxy:latest' locally
   latest: Pulling from apache/shardingsphere-proxy
   Digest: 
sha256:a3a1b6e439731a4c94ede8ca34b18fc76d87b9f137bd4262c62c4ed0b0454060
   Status: Downloaded newer image for apache/shardingsphere-proxy:latest
   e5979e008e7fb988884f0999b58d77a88068a00a24a5a4cf293094482f93228b
    ~/Downloads/ docker ps -a
   CONTAINER ID   IMAGE                                 COMMAND                 
 CREATED          STATUS                      PORTS     NAMES
   e5979e008e7f   apache/shardingsphere-proxy:latest    "/bin/sh -c '${LOCAL…"  
 2 seconds ago    Exited (1) 2 seconds ago              proxy-latest
   b47ff2d7c757   mysql:8.0.32                          "docker-entrypoint.s…"  
 35 minutes ago   Up 35 minutes                         bold_ishizaka
   83fda880157a   postgres:15.1                         "docker-entrypoint.s…"  
 25 hours ago     Up 25 hours                           hardcore_tharp
   4f2a8b2b7677   postgres:15.1                         "docker-entrypoint.s…"  
 2 months ago     Up 25 hours                           pg15
   df6ac7b51f6d   gcr.io/k8s-minikube/kicbase:v0.0.36   "/usr/local/bin/entr…"  
 4 months ago     Exited (137) 2 months ago             minikube
   5560b9c7c0fb   enmotech/opengauss:3.0.0              "entrypoint.sh gauss…"  
 8 months ago     Exited (0) 3 months ago               opengauss3
   6ad4a9e11c15   postgres:14.2                         "docker-entrypoint.s…"  
 12 months ago    Exited (0) 2 months ago               pg14
   2a349e0764c1   mysql:8.0.28                          "docker-entrypoint.s…"  
 12 months ago    Up About an hour                      mysql8
   28ba784b005e   mysql:5.7.36                          "docker-entrypoint.s…"  
 16 months ago    Exited (0) 5 weeks ago                mysql57
    ~/Downloads/ docker logs proxy-latest 
   we find java version: java17, full_version=17.0.6, 
full_path=/opt/java/openjdk/bin/java
   The classpath is 
/opt/shardingsphere-proxy/conf:/opt/shardingsphere-proxy/conf:.:/opt/shardingsphere-proxy/lib/*:/opt/shardingsphere-proxy/ext-lib/*
   main class org.apache.shardingsphere.proxy.Bootstrap -1 
/opt/shardingsphere-proxy/conf 0.0.0.0 false
   Exception in thread "main" java.io.FileNotFoundException: 
/opt/shardingsphere-proxy/conf/server.yaml (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at 
org.apache.shardingsphere.infra.util.yaml.YamlEngine.unmarshal(YamlEngine.java:53)
        at 
org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.loadServerConfiguration(ProxyConfigurationLoader.java:79)
        at 
org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.load(ProxyConfigurationLoader.java:65)
        at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:51)
   ```
   
   
![image](https://user-images.githubusercontent.com/20503072/231086690-eba62381-e5e2-4105-add2-0e6ce24b4f58.png)
   


-- 
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