apollo icon indicating copy to clipboard operation
apollo copied to clipboard

linux不能加载/opt/settings/server.properties

Open tonys111 opened this issue 8 years ago • 2 comments

2018-06-04 21:12:41 449 - com.ctrip.framework.apollo.util.ConfigUtil -3879 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:41 493 - com.ctrip.framework.apollo.util.ConfigUtil -3923 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:41 514 - com.ctrip.framework.apollo.util.ConfigUtil -3944 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:41 515 - com.ctrip.framework.apollo.internals.AbstractConfigRepository -3945 [localhost-startStop-1] WARN com.ctrip.framework.apollo.internals.AbstractConfigRepository - Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:41 515 - com.ctrip.framework.apollo.internals.RemoteConfigRepository -3945 [localhost-startStop-1] DEBUG com.ctrip.framework.apollo.internals.RemoteConfigRepository - Schedule periodic refresh with interval: 5 MINUTES 2018-06-04 21:12:41 521 - com.ctrip.framework.apollo.internals.RemoteConfigLongPollService -3951 [Apollo-RemoteConfigLongPollService-1] DEBUG com.ctrip.framework.apollo.internals.RemoteConfigLongPollService - Long polling will start in 2000 ms. 2018-06-04 21:12:42 008 - com.ctrip.framework.apollo.util.ConfigUtil -4438 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:42 008 - com.ctrip.framework.apollo.internals.LocalFileConfigRepository -4438 [localhost-startStop-1] WARN com.ctrip.framework.apollo.internals.LocalFileConfigRepository - Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:42 508 - com.ctrip.framework.apollo.util.ConfigUtil -4938 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:42 508 - com.ctrip.framework.apollo.internals.LocalFileConfigRepository -4938 [localhost-startStop-1] WARN com.ctrip.framework.apollo.internals.LocalFileConfigRepository - Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:42 509 - com.ctrip.framework.apollo.internals.AbstractConfigRepository -4939 [localhost-startStop-1] WARN com.ctrip.framework.apollo.internals.AbstractConfigRepository - Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.LocalFileConfigRepository, reason: Load config from local config failed! [Cause: Cannot read from local cache file /opt/data/1001/config-cache/1001+default+application.properties] 2018-06-04 21:12:43 008 - com.ctrip.framework.apollo.util.ConfigUtil -5438 [localhost-startStop-1] ERROR com.ctrip.framework.apollo.util.ConfigUtil - env is not set, please make sure it is set in /opt/settings/server.properties! 2018-06-04 21:12:43 008 - com.ctrip.framework.apollo.internals.LocalFileConfigRepository -5438 [localhost-startStop-1] WARN com.ctrip.framework.apollo.internals.LocalFileConfigRepository - Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: env is not set, please make sure it is set in /opt/settings/server.properties!

tonys111 avatar Jun 04 '18 13:06 tonys111

要么是这个文件没有,要么是文件中的env配置不正确

nobodyiam avatar Jun 04 '18 14:06 nobodyiam

case先关闭了,如还有问题,可以提供更多信息,或进群交流。

nobodyiam avatar Jul 21 '18 16:07 nobodyiam