Tag Archives: Nacos startup error

[Solved] Nacos Startup Error: [db-load-error]load jdbc.properties error

1. Check whether it is started in cluster mode

In the startup script startup.CMD, modify mode = “standalone”

2. Check database configuration

In the configuration file conf/application.Properties

It’s very annoying to remove the comments from the database configuration. Because Notepad is set to automatically wrap lines, I think the URL line is open and there are no comments, so I checked it for a long time. It’s really careless!

After these two steps are completed, it is basically OK. If another error occurs:

No DataSource set

The database is not connected!!!

To check the database connection and password, mine is mysql8, which is solved after authorizing the user.

3. Ultimate solution

If we can’t find any problems, we can also adjust the log level to debug or trace, so that the log is detailed enough and can basically locate the problems.

The log path is conf/Nacos-logback.xml

How to Solve Nacos startup error

Error 1:

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

Open the startup file, and different operating systems open different files. Open startup.cmd on windows, open startup.sh for others, find set MODE, and change it to standalone mode.

Error 2:

Error creating bean with name ‘memoryMonitor’ defined in URL [jar: File:/D:/Nacos/nacos203/target/Nacos server. Jar!/boot-inf/lib/nacos-config-2.0.3. Jar

Database connection If there is a problem, the correction method is as follows:
open the application.properties file in the nacos/conf/ folder , find the database connection address, pay attention to whether there is &serverTimezone=UTC after it, and add it if not.
db.url.0=jdbc:mysql: …/lamp_nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true &serverTimezone=UTC