问题
Failed to read config /usr/local/Cellar/neo4j/5.3.0/libexec/conf/neo4j.conf: Unrecognized setting. No declared setting with name: wrapper.java.additional.4. Cleanup the config or disable 'server.config.strict_validation.enabled' to continue.
Run with '--verbose' for a more detailed error message.
neo4j start --verbose
neo4j 5.3.0
VM Name: OpenJDK 64-Bit Server VM
VM Vendor: Homebrew
VM Version: 19.0.1
JIT compiler: HotSpot 64-Bit Tiered Compilers
VM Arguments: [-Xmx128m, -Dapp.name=neo4j, -Dapp.pid=12015, -Dapp.repo=/usr/local/Cellar/neo4j/5.3.0/libexec/repo, -Dapp.home=/usr/local/Cellar/neo4j/5.3.0/libexec, -Dbasedir=/usr/local/Cellar/neo4j/5.3.0/libexec]
Configuration files used (ordered by priority):
/usr/local/Cellar/neo4j/5.3.0/libexec/conf/neo4j.conf
--------------------
org.neo4j.cli.CommandFailedException: Failed to read config /usr/local/Cellar/neo4j/5.3.0/libexec/conf/neo4j.conf: Unrecognized setting. No declared setting with name: wrapper.java.additional.4. Cleanup the config or disable 'server.config.strict_validation.enabled' to continue.
at org.neo4j.server.startup.Bootloader.buildConfig(Bootloader.java:220)
at org.neo4j.server.startup.Bootloader.config(Bootloader.java:185)
at org.neo4j.server.startup.Bootloader.validateConfig(Bootloader.java:171)
at org.neo4j.server.startup.Bootloader$Dbms.start(Bootloader.java:361)
at org.neo4j.server.startup.StartCommand.execute(StartCommand.java:37)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.server.startup.Neo4jAdminCommand.call(Neo4jAdminCommand.java:122)
at org.neo4j.server.startup.Neo4jAdminCommand.call(Neo4jAdminCommand.java:42)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.server.startup.Neo4jCommand.main(Neo4jCommand.java:41)
at org.neo4j.server.startup.Neo4jBoot.main(Neo4jBoot.java:30)
Caused by: java.lang.IllegalArgumentException: Unrecognized setting. No declared setting with name: wrapper.java.additional.4. Cleanup the config or disable 'server.config.strict_validation.enabled' to continue.
at org.neo4j.configuration.Config.getActiveSettings(Config.java:718)
at org.neo4j.configuration.Config.<init>(Config.java:628)
at org.neo4j.configuration.Config$Builder.build(Config.java:330)
at org.neo4j.server.startup.Bootloader.buildConfig(Bootloader.java:204)
... 26 more
解决
添加下面设置到配置文件
server.config.strict_validation.enabled=false
配置文件
/usr/local/Cellar/neo4j/5.3.0/libexec/conf/neo4j.conf