ZRS fails to run scheduled reports with error 'cannot rexec cp'

  • 7009006
  • 18-Jul-2011
  • 03-Jul-2012

Environment

Novell ZENworks 11 Configuration Management (ZCM)
Novell ZENworks 11 Configuration Management Reporting Server (ZRS)
Novell ZENworks 11 Configuration Management Business Objects Reporting
Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1
Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1 Reporting Server
Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1 Business Objects Reporting
BusinessObjects Enterprise (BOE)
SUSE Linux Enterprise Server 11 Service Pack 1 (SLES)

Situation

- Create a custom ZRS report on the Linux Appliance

- Schedule the report to run

- Within the ZRS web interface using these settings:
Output Format = MS Excel
Output Format Details = File Location
Destination for the output format = unselect option: Use the Job Server's defaults
Define a local directory owned by root
Specify a report name
Enter root credentials

The report fails to run, returning this error in the instance details:
destination directory error. [cannot rexec cp]: [CrystalEnterprise.DiskUnmanaged]

Resolution

This is fixed in version 11.2 - see KB 7010044 "ZENworks Configuration Management 11.2 - update information and list of fixes" which can be found at https://www.novell.com/support


Workaround for ZCM 11.0:

Use one of the following options
1) Change the directory's owner
2) Install and configure rexec

1) Change the directory's owner
The scheduled report is saved by the local Linux zenworks user.  If the owner of a local directory is changed to zenworks the report can be scheduled with no credentials and therefore rexec does not need to be installed.

Change a directory's owner example:
# chown zenworks:zenworks /dir/subdir

2) Install and configure rexec

Obtain the rsh-server package from the original shipping SLES 11 sp1 media from: https://download.novell.com.
The shipping versions are:
rsh-server-0.17-706.16.x86_64.rpm
rsh-server-0.17-706.16.i586.rpm

Install the rsh-server package:
rpm -Uvh [package_name]

Check package has installed (this will return the package name if installed):
rpm -qa | grep rsh

Make the following configuration changes to enable rsh:

Enable the rsh services to run at server boot:
# chkconfig rsh on
# chkconfig rlogin on
# chkconfig xinetd on

To check these have been set to on:
# chkconfig --list | grep rsh
# chkconfig --list | grep rlogin
# chkconfig --list | grep xinetd

Edit /etc/securetty, add these lines:
rsh
rlogin
rexec

Edit /etc/xinetd.d/rexec and change:
disable = no

Edit /etc/pam.d/rsh change the following line:
auth sufficient pam_rhosts.so

Edit /etc/pam.d/rlogin, comment out the following line by inserting a hash/pound sign (#):
# auth [...] pam_securetty.so

Reboot the ZRS server


Workaround for ZCM 11.1:
Edit /etc/xinetd.d/rexec and change:
disable=no

To:
disable = no

(add spaces either side of the equals sign)

Additional Information

For 11.0: when supplying credentials within the scheduled report, ZRS attempts to use rexec to copy the report into place.  rexec is not installed by default on the ZRS Linux Appliance.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.