Ashley
Ashley

Reputation: 2318

Package errors on install Crx/de - no logs - AEM 6.3

When attempting to upload and install a file created via ./mvnw clean install I'm running into the error below:

Install Package: /etc/packages/apple-cms/cms-content-v1.zip

Mon Mar 19 2018 15:53:13 GMT-0400 (EDT)

Installing content    
Collecting import information...    
Installing node types...
Installing privileges...
Importing content...
- /
... (contents of installation truncated)
saving approx 1 nodes...
Package imported (with errors, check logs!)

Content is missing from the crx/de tree under /etc/map/publish/http - so I wish to check the logs.

Attempting to tail all of the logs under ../author/crx-quickstart/logs but not getting any output at all - same for both publish and authoring instance.

filter.xml

<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
  <filter root="/apps/apple-members"/>
  <filter root="/apps/sling" mode="update"/>
  <filter root="/etc/clientlibs/apple-members"/>
  <filter root="/etc/map.publish" mode="update"/>
  <filter root="/etc/designs/apple-members/fonts" mode="update"/>
  <filter root="/etc/designs/apple-members/images" mode="update"/>
  <filter root="/etc/designs/apple-members/styles" mode="update"/>
</workspaceFilter>

Upvotes: 1

Views: 4504

Answers (2)

Robert Wunsch
Robert Wunsch

Reputation: 301

You can see what happens during installation of a package in packagemanager by creating a custom log on

org.apache.jackrabbit.vault.packaging.impl

at DEBUG or TRACE level.

You can find how to create a custom log here, basically e.g. directly in the OSGi-Felix-Console in Log Support.

  • Log Level Debug
  • Log File logs/packagemanager.log
  • Message Pattern {0,date,dd.MM.yyyy HH:mm:ss.SSS} {4} [{2}] {3} {5}
  • Logger org.apache.jackrabbit.vault.packaging.impl

The log entries will show up in the folder cq-quickstart/logs/packagemanager.log.

Upvotes: 5

Alexander Berndt
Alexander Berndt

Reputation: 1728

There are no real log-entries created by the package manager.

You have 3 options to see the package manager output.

  1. Go to the pacakge manager http://localhost:4502/crx/packmgr/index.jsp and re-install the package manually.

  2. Set the content-package-maven-plugin in verbose mode on the command line with:

    mvn clean install -PautoInstallPackage -Dvault.verbose=true

  3. Enable the verbose mode in the pom.xml file permanently.

    <groupId>com.day.jcr.vault</groupId> <artifactId>content-package-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <verbose>true</verbose> ...

Upvotes: 1

Related Questions