You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "walkovernamtso (via GitHub)" <gi...@apache.org> on 2025/05/20 02:03:36 UTC
[I] shardingsphere-proxy docker run failed [shardingsphere]
walkovernamtso opened a new issue, #35470:
URL: https://github.com/apache/shardingsphere/issues/35470
### Which version of ShardingSphere did you use?
docker pull apache/shardingsphere-proxy
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
shardingsphere-proxy
### Expected behavior
docke run successfully
### Actual behavior
docker fail
### Reason analyze (If you can)
---docker logs 91861e053132--
we find java version: java21, full_version=21.0.5, full_path=/opt/java/openjdk/bin/java
unadapted java version, please notice...
The port is 3308
The classpath is /opt/shardingsphere-proxy/conf:.:/opt/shardingsphere-proxy/lib/*:/opt/shardingsphere-proxy/ext-lib/*
main class org.apache.shardingsphere.proxy.Bootstrap 3308 /opt/shardingsphere-proxy/conf 0.0.0.0 false
Exception in thread "main" java.nio.file.NoSuchFileException: /opt/shardingsphere-proxy/conf/server.yaml
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
at java.base/java.nio.file.Files.newByteChannel(Files.java:431)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:159)
at java.base/java.nio.file.Files.newBufferedReader(Files.java:2897)
at java.base/java.nio.file.Files.newBufferedReader(Files.java:2930)
at org.apache.shardingsphere.infra.util.yaml.YamlEngine.unmarshal(YamlEngine.java:55)
at org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.loadServerConfiguration(ProxyConfigurationLoader.java:104)
at org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.load(ProxyConfigurationLoader.java:84)
at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:60)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
docker run -d \
-v /host/path/to/conf:/opt/shardingsphere-proxy/conf \
-v /host/path/to/ext-lib:/opt/shardingsphere-proxy/ext-lib \
--memory 4g -e PORT=3308 -p13308:3308 apache/shardingsphere-proxy:latest
### Example codes for reproduce this issue (such as a github link).
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-proxy docker run failed [shardingsphere]
Posted by "walkovernamtso (via GitHub)" <gi...@apache.org>.
walkovernamtso commented on issue #35470:
URL: https://github.com/apache/shardingsphere/issues/35470#issuecomment-2892800025
conf file error, bug has been solved
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-proxy docker run failed [shardingsphere]
Posted by "walkovernamtso (via GitHub)" <gi...@apache.org>.
walkovernamtso closed issue #35470: shardingsphere-proxy docker run failed
URL: https://github.com/apache/shardingsphere/issues/35470
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org