Skip to content

Troubleshooting Missing mandatory property PunchPlatformSettingsMapImpl.admin_zk_cluster

Regular punchplatform-channel.sh error

When you try to start a configured channel, you can have the following issue:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
20:24:45 com.thales.services.cloudomc.punchplatform.admin.Main [ERROR] message="MissingRequiredSettingException"
com.thales.services.cloudomc.punchplatform.settings.api.MissingRequiredSettingException: Missing mandatory property 'PunchPlatformSettingsMapImpl.admin_zk_cluster'.
  at com.thales.services.cloudomc.punchplatform.settings.impl.SettingsMapImpl.get(SettingsMapImpl.java:68) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.settings.impl.SettingsMapImpl.getAsRequiredString(SettingsMapImpl.java:358) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.admin.Main.prepareRuntimeServiceForATenant(Main.java:396) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.admin.ChannelMain.main(ChannelMain.java:271) [punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
20:24:45 com.thales.services.cloudomc.punchplatform.admin.ChannelMain [ERROR] Missing required setting exception
com.thales.services.cloudomc.punchplatform.settings.api.MissingRequiredSettingException: Missing mandatory property 'PunchPlatformSettingsMapImpl.admin_zk_cluster'.
  at com.thales.services.cloudomc.punchplatform.settings.impl.SettingsMapImpl.get(SettingsMapImpl.java:68) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.settings.impl.SettingsMapImpl.getAsRequiredString(SettingsMapImpl.java:358) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.admin.Main.prepareRuntimeServiceForATenant(Main.java:396) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
  at com.thales.services.cloudomc.punchplatform.admin.ChannelMain.main(ChannelMain.java:271) ~[punchplatform-admin-service-1.0.5-jar-with-dependencies.jar:1.0.5]
command status .................................................................. FAIL

Reason

The start of a channel requires a specific tenant configuration located in $PUNCHPLATFORM_CONF_DIR/tenants/<tenant>/etc/.

Solution

1) Check in your punchplatform.properties the zookeeper cluster you want to use to store admin settings for this channel. 2) Add the following file in $PUNCHPLATFORM_CONF_DIR/tenants/<tenant>/etc/.

1
2
3
4
#$PUNCHPLATFORM_CONF_DIR/tenants/<tenant>/etc/conf.json
{
  "admin_zk_cluster" : "<zookeeper_cluster_name"
}