-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Nacos Server Start Error!!! #3607
Comments
some information
|
@geekeritcom , It seems that derby embedded database is no ready. Can you remove ${nacos.home}/data and then restart nacos to retry? |
@KomachiSion It's not worked for me. when I removed data and logs folder then retry start nacos-server but exceptions still exist. |
The same problem |
我也启动错误 win10 MODE =“ standalone” 测试了一下 从V1.0版开始都不能启动(Unable to start embedded Tomcat) V0.9到V0.6经过测试都可以 |
@zitongchen The problem still exists after change MODE to "standalone", the exceptions info like below
|
I find the key of this problem, I found every failed start nacos the exceptions include some SQL exception,then i change application.properties and import SQL to my local database,and problem is resolved. step 1. step 2.
step 3. start your nacos server with standalone MODE hope to help someone like this situation. @zongtanghu Looking forward to getting better together. |
@geekeritcom I see it.The way you have tried is using external database(mysql).And the exception reported above is inner database(derby).What you said above i not the key of the problem. |
@zongtanghu Okay, I just hit it by mistake. In order to get started quickly, I am not going to find the internal database problem for the time being. |
@geekeritcom okay, I will try my best to find the root cause of internal database problem. |
I also encountered this problem, may I ask how to solve? |
Nacos-server-1.3.0 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat** |
Database use mysql instead of derby, nacos can run~! Thanks upstairs~ But I want to know why it can’t run with derby. It will report many exceptions. |
重新配置java环境解决 |
I also encountered this problem, I successfully solved the problem according to the following steps:
|
This problem can be solved by setting the timeout period. It may be that the performance of the server is not enough, which causes the startup to be very slow. private synchronized void initialize(String jdbcUrl) {
HikariDataSource ds = new HikariDataSource();
ds.setDriverClassName(jdbcDriverName);
ds.setJdbcUrl(jdbcUrl);
ds.setUsername(userName);
ds.setPassword(password);
ds.setIdleTimeout(30_000L);
ds.setMaximumPoolSize(80);
// this line
ds.setConnectionTimeout(60000L);
DataSourceTransactionManager tm = new DataSourceTransactionManager();
tm.setDataSource(ds);
if (jdbcTemplateInit) {
jt.setDataSource(ds);
tjt.setTransactionManager(tm);
} else {
jt = new JdbcTemplate();
jt.setMaxRows(50000);
jt.setQueryTimeout(5000);
jt.setDataSource(ds);
tjt = new TransactionTemplate(tm);
tjt.setTimeout(5000);
jdbcTemplateInit = true;
}
reload();
}``` |
@error523 Can you submit an PR to solve this problem? |
@error523 If you can submit a pr then it's yours.Otherwise, I can submit a pr to fix it. |
thankyou |
这问题解决了吗?我用的 2.0.2 版本还是遇到这个问题。 |
Describe the bug
Nacos server start failed after download and throw many exceptions.
Expected behavior
quickly use Nacos.
Acutally behavior
Can not start.
How to Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: