RTiel Absent Member.
Absent Member.
737 views

zdc access denied for zenadmin

Hello,

I'm trying to run zdc as a prereq for migration to zcm 2017 (virtual appliance installed from ZENworks11SP4_Appliance-x86_64.ova). I've logged in as zenadmin and execute the following command: ./zdc verify -v zendatabase,systemfiles,auditdatabase -b ./data/baseline_17.0.0.zdc. How to troubleshoot the following error (I can confirm that zenadmin has no rights for /etc/opt/novell/zenworks/datamodel):

+ Starting ZENworks Diagnostic Center.

+ ----------------------------------
System Information:
+ ----------------------------------
OS: SUSE Linux Enterprise Server 11 64 bit
Database: Unknown Database
ZCM Version: 11.4.3

+ Loading configuration.
java.io.FileNotFoundException: /etc/opt/novell/zenworks/datamodel/zenaudit.xml (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.novell.zenworks.zdc.config.Configuration.loadAuditDatabaseConfiguration(Configuration.java:413)
at com.novell.zenworks.zdc.config.Configuration.initialize(Configuration.java:224)
at com.novell.zenworks.zdc.DiagnoseZen.startZDC(DiagnoseZen.java:99)
at com.novell.zenworks.zdc.DiagnoseZen.start(DiagnoseZen.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.novell.zenworks.zdc.boot.Bootstrap.main(Bootstrap.java:113)

Thnx Remco
Labels (2)
Tags (3)
0 Likes
5 Replies
Micro Focus Expert
Micro Focus Expert

Re: zdc access denied for zenadmin

Try downloading and using the ZDC found here........
Docs for using are on the download page.........

https://download.microfocus.com/Download?buildid=sXRO54wX9yA~
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
RTiel Absent Member.
Absent Member.

Re: zdc access denied for zenadmin

CRAIGDWILSON;2461614 wrote:
Try downloading and using the ZDC found here........
Docs for using are on the download page.........

https://download.microfocus.com/Download?buildid=sXRO54wX9yA~


Then I receive the same kind of error:


|__ / _ \ / ___| Novell ZENworks(R)
/ /| | | | |
/ /_| |_| | |___ v 0.9 (11.4.3)
/____|____/ \____|


+ Starting ZENworks Diagnostic Center.

+ ----------------------------------
System Information:
+ ----------------------------------
OS: SUSE Linux Enterprise Server 11 64 bit
Database: Unknown Database
ZCM Version: 11.4.3

+ Loading configuration.
java.io.FileNotFoundException: /etc/opt/novell/zenworks/datamodel/zdm.xml (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.novell.zenworks.zdc.config.Configuration.loadDatabaseConfiguration(Configuration.java:392)
at com.novell.zenworks.zdc.config.Configuration.initialize(Configuration.java:228)
at com.novell.zenworks.zdc.DiagnoseZen.startZDC(DiagnoseZen.java:99)
at com.novell.zenworks.zdc.DiagnoseZen.start(DiagnoseZen.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.novell.zenworks.zdc.boot.Bootstrap.main(Bootstrap.java:113)
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: zdc access denied for zenadmin

Try running...

/opt/novell/zenworks/bin/permissions.sh and
/opt/novell/zenworks/bin/core-permissions.sh

These are designed to ensure all permissions are set correctly
See if that allows stuff to run correctly.............
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
RTiel Absent Member.
Absent Member.

Re: zdc access denied for zenadmin

logged in as zenadmin, result for all > operation not permitted

logged in as root, noadjustments for /opt/novell/zenworks/bin/core-permissions.sh

thnx Remco
0 Likes
RTiel Absent Member.
Absent Member.

Re: zdc access denied for zenadmin

something has changed though, I logged in as zenadmin, sudo -s and executed ./zdc verify -v zendatabase,systemfiles,zencontent -b ./data/...zdc
now the script works....

Thnx Remco
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.