comment-defaultPermissions-contrib.xml use WriteLifeCycle permission.
An error is thrown if nuxeo-core is not deployed before this contribution.
The first solution is to move comment-defaultPermissions-contrib.xml to nuxeo-platform-comment-core and add the nuxeo-core dependency.
The second solution is to build permission in leazy mode.
There is the same issue for org.nuxeo.ecm.webengine.sites.security.defaultPermissions contribution
(even if there is "<require>org.nuxeo.ecm.core.security.defaultPermissions</require>")