Environment
Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1
Novell ZENworks 11 Configuration Management Support Pack 2 - ZCM 11 SP2
Novell ZENworks 11 Configuration Management Support Pack 2 - ZCM 11 SP2
Situation
Content Import will fail if the Administrator logs out of ZCC or if the ZCC session expires prior to the content being fully imported to the content repository.
ERROR (in loader-messages.log):
[DEBUG] [4/17/12 1:41:53 PM] [] [Loader.Content Import] [17] [] [(Event) Restarting the processing of 03daf23591424add906981e573c5afeb.] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [Entering ImportContent for ZUID: 03daf23591424add906981e573c5afeb, File: /var/opt/novell/zenworks/content-repo/tmp/zencs1225615915469821129.tmp] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content UID: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Containing Object UID: 5861037148a0d5c44839e83f78a95bad] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Server UID: d4cf758e9099c55a4f53d932fac5685b] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content Files Root Path: /var/tmp/03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/Colic Installer.exe] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/iColicTexasAMInstaller.exe] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/Install Readme.rtf] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/si3d.7zip] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Include other files: true] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [Done processing: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [An error occurred while importing content: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [java.lang.NullPointerException
at com.novell.zenworks.content.ImportContent.deleteSubdirectories(ImportContent.java:1168)
at com.novell.zenworks.content.ImportContent.deleteInputFiles(ImportContent.java:1199)
at com.novell.zenworks.content.ImportContent.importContent(ImportContent.java:775)
at com.novell.zenworks.content.ImportContent.run(ImportContent.java:1029)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
ERROR (in loader-messages.log):
[DEBUG] [4/17/12 1:41:53 PM] [] [Loader.Content Import] [17] [] [(Event) Restarting the processing of 03daf23591424add906981e573c5afeb.] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [Entering ImportContent for ZUID: 03daf23591424add906981e573c5afeb, File: /var/opt/novell/zenworks/content-repo/tmp/zencs1225615915469821129.tmp] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content UID: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Containing Object UID: 5861037148a0d5c44839e83f78a95bad] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Server UID: d4cf758e9099c55a4f53d932fac5685b] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content Files Root Path: /var/tmp/03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/Colic Installer.exe] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/iColicTexasAMInstaller.exe] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/Install Readme.rtf] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Content File: /var/tmp/03daf23591424add906981e573c5afeb/si3d.7zip] [] []
[DEBUG] [4/17/12 1:41:53 PM] [] [ImportContent] [25] [] [ Include other files: true] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [Done processing: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [An error occurred while importing content: 03daf23591424add906981e573c5afeb] [] []
[DEBUG] [4/17/12 1:41:54 PM] [] [ImportContent] [25] [] [java.lang.NullPointerException
at com.novell.zenworks.content.ImportContent.deleteSubdirectories(ImportContent.java:1168)
at com.novell.zenworks.content.ImportContent.deleteInputFiles(ImportContent.java:1199)
at com.novell.zenworks.content.ImportContent.importContent(ImportContent.java:775)
at com.novell.zenworks.content.ImportContent.run(ImportContent.java:1029)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Resolution
This is fixed in version 11.4.2 - see KB 7017469 "ZENworks Configuration Management 11.4.2 - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7017469
Workaround
Stay logged into ZCC while content is importing to the primary. See also
Workaround
Stay logged into ZCC while content is importing to the primary. See also
https://www.novell.com/documentation/zenworks11/zen11_cm_software_distribution/data/bvm2lp1.html
"...
E.5 Creating Bundles with Large Content
"...
E.5 Creating Bundles with Large Content
If using zman bc or pc to create bundle or policy with content, use start-shell-as-service to keep zman logged in during content import.
..."
..."
Cause
Uploaded files get removed before they get imported to the content repository if and when the ZCM administrator ZCC session gets ended by logout or timeout before the content import finishes. This is caused by a server internal issue of handling the uploaded files which relates them to the admin user session.
Additional Information
When content is uploading, it is temporarily copied to a sub folder of the tomcat temp folder
Also a <GUID>.import file is then created under:
The importData directory is monitored by the zenloader service for <GUID>.import files. When it finds one, it tries to import the respective content located in the tomcat temp folder. If the required content is not found, it errors out but does not delete the <GUID>.import file. It just keeps trying and failing. Once bad <GUID>.import files have been identified, they can get manually removed to stop this cycle.
- Linux: /var/tmp/
or /var/opt/novell/zenworks/content-repo/tmp - Windows: %zenworks_home%\share\tomcat\temp\
Also a <GUID>.import file is then created under:
- Linux: /var/opt/novell/zenworks/content-repo/content/importData/
- Windows: %zenworks_home%\work\content-repo\content\importData\
The importData directory is monitored by the zenloader service for <GUID>.import files. When it finds one, it tries to import the respective content located in the tomcat temp folder. If the required content is not found, it errors out but does not delete the <GUID>.import file. It just keeps trying and failing. Once bad <GUID>.import files have been identified, they can get manually removed to stop this cycle.
Per development, this can be duplicated with even a single file in the uploaded directory.