neo4j 无法启动:无法获取本地主机名/名称或服务未知

neo4j 无法启动:无法获取本地主机名/名称或服务未知

我正在尝试在测试机器上启动 neo4j 社区版本 1.8.2。此机器有一个仅适用于本地网络的自定义主机名。

我能够启动 neo4j 服务器一次(大约 2 周前)但之后就再也没有出现过。我知道它开始出现是因为我能够访问端口 7474 上的 Web 界面。

我似乎无法弄清楚为什么没有有效的主机名可能会成为启动服务的问题,因为我以前没有遇到过这个问题。

下面是我尝试启动 neo4j 时打印的反向跟踪(无论是以工作目录的 root 身份启动,还是使用 /etc/init.d/ 中的服务启动它时,反向跟踪完全相同)。

任何意见都是有用的。提前致谢。

解决方案:

这本身并不是一个很好的解决方案。我所做的只是从头开始安装 neo4j,因为我没有存储任何重要数据。我想这是由于数据损坏(可能是机器休眠次数过多而没有正确关闭 neo4j)。

警告:最多允许打开 1024 个文件,建议最少打开 40 000 个。请参阅 Neo4j 手册。警告!您正在使用不受支持的 Java 运行时。请使用 Oracle(R) Java(TM) 运行时环境 6。正在启动 Neo4j 服务器...00:05:28,335 |-INFO 位于 ch.qos.logback.classic.LoggerContext[default] - 无法找到资源 [logback.groovy] 00:05:28,336 |-INFO 位于 ch.qos.logback.classic.LoggerContext[default] - 无法找到资源 [logback-test.xml] 00:05:28,336 |-INFO 位于 ch.qos.logback.classic.LoggerContext[default] - 在 [jar:file:/home/chris/Software/neo4j-community-1.8.2/system/lib/neo4j-server-1.8.2.jar!/logback.xml] 找到资源 [logback.xml] 00:05:28,351 |-INFO 位于ch.qos.logback.core.joran.spi.ConfigurationWatchList@3c41068b - URL [jar:file:/home/chris/Software/neo4j-community-1.8.2/system/lib/neo4j-server-1.8.2.jar!/logback.xml] 不是文件类型 00:05:28,396 |-ch.qos.logback.classic.joran.action.ConfigurationAction 中的 INFO - 未设置调试属性 00:05:30,521 |-ch.qos.logback.core.util.ContextUtil@5114ae94 中的 ERROR - 无法获取本地主机名 java.net.UnknownHostException: acer.lap: acer.lap: 名称或服务未知 java.net.UnknownHostException: acer.lap: acer.lap: 名称或服务未知java.net.InetAddress.getLocalHost(InetAddress.java:1438) 在 ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:30) 在 ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:39) 在 ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:48) 在 ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:277) 在 ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:149) 在 ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:131) 在ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) 在 ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:148) 在 ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134) 在 ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:97) 在 ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) 在 ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) 在 ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)在 org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) 在 org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55) 在 org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) 在 org.slf4j.LoggerFactory。performInitialization(LoggerFactory.java:108) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at at org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) at at org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) at at org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) at at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 原因:java.net.UnknownHostException:acer.lap:名称或服务未知,位于 java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method),位于 java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866),位于 java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258),位于 java.net.InetAddress.getLocalHost(InetAddress.java:1434) ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加程序00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点LoggerFactory.getILoggerFactory(LoggerFactory.java:279) 在 org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) 在 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 在org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) at at org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) at at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 原因:java.net.UnknownHostException:acer.lap:名称或服务未知,位于 java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method),位于 java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866),位于 java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258),位于 java.net.InetAddress.getLocalHost(InetAddress.java:1434) ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加程序00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点LoggerFactory.getILoggerFactory(LoggerFactory.java:279) 在 org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) 在 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 在org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) at at org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) at at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 原因:java.net.UnknownHostException:acer.lap:名称或服务未知,位于 java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method),位于 java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866),位于 java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258),位于 java.net.InetAddress.getLocalHost(InetAddress.java:1434) ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加程序00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点252) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) 在 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) 在 org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) 在org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-info in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点252) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) 在 org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) 在 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) 在 org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) 在org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-info in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 处在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) 处在 org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) 处在 org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) 处在 org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) 处org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知 at at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:121) 处在 org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:154) 处在 org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252) 处在 org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:142) 处在 org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) 处org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知 at at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知 at at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设默认类型[ch.qos.logback.classic.encoder.PatternLayoutEncoder] 用于 [encoder] 属性 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。 00:05:30,596 |-ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 中的 INFO - 将当前配置注册为安全回退点java:142) at at org.neo4j.server.configuration.PropertyFileConfigurator.(PropertyFileConfigurator.java:76) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.getConfigurator(PreStartupStoreUpgrader.java:135) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.run(PreStartupStoreUpgrader.java:78) at at org.neo4j.server.storemigration.PreStartupStoreUpgrader.main(PreStartupStoreUpgrader.java:57) 导致:java.net.UnknownHostException:acer.lap:名称或服务未知 at at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at at java.net.InetAddress.getLocalHost(InetAddress.java:1434) at ... 省略了 30 个公共框架 00:05:30,521 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设默认类型[ch.qos.logback.classic.encoder.PatternLayoutEncoder] 用于 [encoder] 属性 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 将名为 [STDOUT] 的附加器附加到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。 00:05:30,596 |-ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 中的 INFO - 将当前配置注册为安全回退点AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 附加名为 [STDOUT] 的附加器到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点AppenderAction - 即将实例化类型为 [ch.qos.logback.core.ConsoleAppender] 的附加器 00:05:30,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - 将附加器命名为 [STDOUT] 00:05:30,544 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - 假设 [encoder] 属性的默认类型为 [ch.qos.logback.classic.encoder.PatternLayoutEncoder] 00:05:30,589 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 将 ROOT 记录器的级别设置为 INFO 00:05:30,589 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 附加名为 [STDOUT] 的附加器到 Logger[ROOT] 00:05:30,591 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@45828b22 - 将 [file:/home/chris/Software/neo4j-community-1.8.2/conf/custom-logback.xml] 添加到配置监视列表。00:05:30,596 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7d7c88d4 - 将当前配置注册为安全回退点

答案1

我认为堆栈跟踪中的关键行是:

UnknownHostException: acer.lap: Name or service not known

我猜猜,你是在 Acer 笔记本电脑上运行这个程序?无论如何,除了你之外,没有人知道为什么会寻找或找不到该主机。你在这 2 周内一定做了一些改变。

假设我处于你的位置,我会 grep 我能找到的每个配置文件(neo4j 文件、/etc/hosts 等等)acer.lap

答案2

解决方案是从头开始安装 neo4j。我在这台测试机上没有存储太多数据,所以这不是问题。

我认为这是由于数据损坏(可能是机器休眠次数过多且没有正确关闭 neo4j)。

相关内容