APOC Desktop Manager

I have recently installed APOC and the Sun Desktop manager. Both appear to be running OK but seem to have no effect upon login. I see the following errors in my log file:

An error occurred while running the desktop applications 'launchers' plugin: Database error

An error occurred while running the desktop applications 'menu' plugin: Database error

I have searched for days on this and I can't figure this out. I would be very grateful for any ideas or advice.

Thanks so much.

[513 byte] By [Jon_Olivera] at [2007-11-27 5:11:13]
# 1

Hi,

These errors are generated by the application run when the desktop session starts and which tries to create the extra menu items and application launchers on the desktop. The specific error you're seeing is normally related to a problem when accessing the local data cache.

What I would suggest is to:

- disable the configuration agent -> /usr/lib/apoc/apocd disable

- go to /var/opt/apoc and rename the directory LocalDB into something else (LocalDB.bak for instance);

- if you haven't enabled logging for the configuration agent, launch apoc-config and go to the page where you can set up the agent logging level (INFO by default) and change it to FINEST;

- reenable the agent -> /usr/lib/apoc/apocd enable

If you're still experiencing the problem, please have a look at the log file in /var/opt/apoc/Logs to see if any exceptions are featured, and provide them here so that we can maybe have a better idea as to what problem you're experiencing. Please also indicate which version of the Desktop Manager you've installed and the revision of the client side patches for APOC you've applied.

Thanks,

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 2

Cyrillem,

Thanks so much. I have tried disabling the agent, renaming the LocalDB folder and restarting but the configuration agent won't restart without the folder it seems. Here are the apoc logs...

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:46 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:46 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:47 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:47 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:47 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:47 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:48 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:48 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:48 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:49 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:49 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:49 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 3:02:58 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

May 23, 2007 3:02:58 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction started

May 23, 2007 3:02:58 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Capability transaction ended

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user joliver

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 3:02:59 PM CreateSessionTransaction executeTransaction

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Inva

lid DN syntax

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.createPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Session.<init>(Unknown Source)

at com.sun.apoc.daemon.transaction.CreateSessionTransaction.executeTransaction(Unk nown Source)

at com.sun.apoc.daemon.transaction.Transaction.execute(Unknown Source)

at com.sun.apoc.daemon.apocd.ClientEventHandler.handleEvent(Unknown Source)

at com.sun.apoc.daemon.apocd.EventWorkerThread.run(Unknown Source)

Caused by: com.sun.apoc.policy.common.RegistryException: An authorized connection could not be established: netscape.ldap.LDAPException: error result (34); Invalid DN; Invalid DN syntax

at com.sun.apoc.policy.pmgr.LdapClientContext.<init>(Unknown Source)

at com.sun.apoc.policy.pmgr.ClientContext.getContext(Unknown Source)

at com.sun.apoc.policy.pmgr.PolicyMgrFactory.<init>(Unknown Source)

at com.sun.apoc.daemon.config.DaemonConfig.getPolicyMgrFactory(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackend.createPolicyMgrFactory(Unknown Source)

... 8 more

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

May 23, 2007 3:02:59 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user <Daemon administrator>

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user <Daemon administrator>

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Channel manager stopped

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Client manager stopped

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Admin manager stopped

May 23, 2007 11:42:34 PM com.sun.apoc.daemon.misc.APOCLogger info

INFO: Daemon finishing

Thank you for even considering to look at this...

Jon

Jon_Olivera at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 3

Hi Jon,

Judging from the traces in the log, the problem is actually not really in the local database, but rather in establishing the communication between the configuration agent and your LDAP repository.

From the messages, it seems you're using an authenticated connection to talk to the server, I should first point out that if your server allows anonymous connections (as would be the default for Sun Directory Server or OpenLDAP), it's unnecessary to provide any credentials for the agent connection since the agent only performs read operations. If you really need to connect to the server using an actual DN/password combination, you should ensure that the information you provided is in the valid format, specifically that you entered a full DN (the exception message seems to indicate this isn't the case).

I would suggest you do the following:

- if your server allows anonymous connections, launch apoc-config, go to the page dealing with the agent-server communication and change the setting to anonymous, then save the change;

- if your server doesn't allow anonymous connections or you really want to use an authenticated connection, launch apoc-config, go to the page dealing with the agent-server communication and ensure the DN you've entered is a valid one (it should be something looking like "cn=someuser,dc=mycompany,dc=com") and save the change.

At any rate, if you're still getting the same error, please paste the contents of your /etc/apoc/policymgr.properties file here (removing the lines starting with Password= or SECURITY_CREDENTIALS= just to be safe) and we'll try and figure out how to address the problem.

Thanks,

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 4

Cyrille,

Thanks so much for all your help! Your suggestion did indeed work. Setting the agent to connect anonymously was the key. Thank you...thank you!

Two last questions if you don't mind:

How do I know if I am running the latest version and how do I add connectors for apps such as Firefox?

Thanks again.

Jon

Jon_Olivera at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 5

Hi Jon,

Glad to hear it's now working. The Desktop Manager application had only one release until now, with the Sun Ray Software 4 (the release included with the first update to that product is identical to the original one), so you're most likely running the last version of it. The client components (the agent and its configuration tool) are part of Solaris 10 and as such, are updated through patches. The patches involved are 119546 and 120099 (or 119547 and 120100 depending on your platform), a copy of these patches is provided with the Desktop Manager installation zip, but newer revisions of these patches exist (the latest revision is 07) and are available through sunsolve. You can check which patch revisions are installed on a system with the showrev command.

There should be a new revision of these patches shortly, and they correspond to the 1.0.1 version of the Desktop Manager which is currently in beta and will be available with the next update of Sun Ray Software. You can have a look if you're interested at the beta at http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=7&PartDetailId=SunR ay-4-U2-SP-LX-G-B&TransactionId=try

Regarding Firefox, the Desktop Manager installation zip contains a preview version of an adapter for that application, and the corresponding template for the management application. There are instructions on how to install the adapter and the templates in the README file, don't hesitate to ask if you encounter any problems. Note that this is however not a supported component, but that Firefox should be offered as an alternative mail client in an upcoming update of Solaris 10.

Regards,

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 6
Cyrille,I must apologize....I realized only now that I forgot to thank you for all your help!I really appreciate it!Jon
Jon_Olivera at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 7

Hi,

I have successfully configured Configuration Agent (that comes with Desktop Manager 1.0.1) in a new machine to connect to existing Desktop Manager version 1.0 on another machine. New server desktop profile has also been created in existing Desktop Manager with existing profiles.

Looking at the apoc log file I don't see any critical/exception message, except for the below

-

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user demo8

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client session created:

userId= demo8

sessionId= -1025471360934749485

dataSource1

Name: demo8/HOST/192.168.2.232/local

Cache: HOST/192.168.2.232/local

Backend: demo8/HOST/192.168.2.232/local

dataSource2

Name: demo8/HOST/192.168.2.232/global

Cache: HOST/192.168.2.232/global

Backend: demo8/HOST/192.168.2.232/global

dataSource1

Name: demo8/USER/demo8/local

Cache: USER/demo8/local

Backend: demo8/USER/demo8/local

dataSource2

Name: demo8/USER/demo8/global

Cache: USER/demo8/global

Backend: demo8/USER/demo8/global

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction completed

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction started

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction completed

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: DestroySession transaction started

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client session ( sessionId = -1025471360934749485 ) closed

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: DestroySession transaction completed

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

Jun 15, 2007 12:14:17 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

-

The problem is that I can't see any policies applied to the desktop.

Any guide/help is much appreciated.

Thanks,

Jonathan

jwloea at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 8

Hi Jonathan,

According to your logs, there doesn't seem to be any errors but there also don't seem to be any profiles assigned to either "demo8" or "192.168.2.232". It'd be good to have a bit more information on the problem context, what type of repository are you using (LDAP, files?), what sort of setting does your profile contain?

From your message it sounds like you have other desktop machines for which your existing Desktop Manager and its profiles work fine, do you see any difference between the files named policymgr.properties in /etc/apoc on both the working and the non-working machine?

Thanks,

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 9

Hi Cyrille,

Thanks Cyrille, pleased to hear your reply.

I'm using LDAP type of repository. The type of settings is basically simple, to add default icons onto the desktop of a group (ie. Firefox, RealPlayer, etc).

I see lot of difference of the file policymgr.properties between the new machine (sunray-03) and the working machine (sunray-02). Below is the 'cat' of both files.

[sunray-02]

root@sunray-02 [/etc/apoc] cat policymgr.properties

#Tue Apr 25 17:07:42 SGT 2006

Password_ENCODING=scramble

AuthType=Anonymous

AuthDn=

PROVIDER_URL=ldap://ssc-ldap:389/dc=sun,dc=one

Password=

ConnectTimeout=1

HostIdentifierType=Hostname

--

[sunray-03]

root@sunray-03:/etc/apoc $ cat policymgr.properties

#Fri Jun 15 13:54:40 SGT 2007

Password_ENCODING=scramble

SECURITY_CREDENTIALS_ENCODING=scramble

AuthType=Anonymous

USER_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

USER_ASSIGNMENT_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

USER_PROFILE_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

HOST_PROFILE_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

HOST_ASSIGNMENT_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

ConnectTimeout=1

HOST_PROVIDER_URL=ldap\://192.168.2.65\:389/dc\=sun,dc\=one

HostIdentifierType=IPAddress

Hope the above helps.

Thanks,

Jonathan

jwloea at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 10

Hi Jonathan,

Thank you for providing that information, most of the differences between the two files can be assigned to the fact that you're using different revisions of the agent and most likely don't have any adverse impact on your setup. There's one significant difference, though, on sunray-02 you're using the host name as the identifier of the object in the LDAP repository to which settings are assigned, while on sunray-03 you're using the IP address.

Since if I'm not mistaken, you said your profile is assigned to the machine (and not the user) in the Desktop Manager, this may be the source of your problem. If the LDAP object is named sunray-03, the agent will not be able to identify it when configured to use the IP address. I would suggest you run apoc-config on sunray-03 and modify the host identifier type from IP Address to Host Name if this is the case and check whether this improves your situation.

Regards,

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 11

Hi Cyrille,

Strangely enough after applying your instruction, I get the following exception message

Jun 20, 2007 5:20:29 PM com.sun.apoc.daemon.misc.APOCLogger config

CONFIG: Daemon configuration:

MaxClientThreads = 5

USER_PROFILE_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

SECURITY_CREDENTIALS_ENCODING = scramble

TransactionTimeout = 15

HOST_ASSIGNMENT_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

USER_ASSIGNMENT_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

LogLevel = FINEST

InitialChangeDetectionDelay = 10

HOST_PROFILE_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

DataDir = /var/opt/apoc

IdleThreadDetectionInterval = 15

HOST_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

MaxClientConnections = 50

Password_ENCODING = scramble

ConnectionReadTimeout = 5000

DaemonPort = 3809

MaxDatabaseLocks = 12000

ConnectTimeout = 1

ApplyLocalPolicy = true

ThreadTimeToLive = 5

AuthType = Anonymous

TimeToLive = 10080

ChangeDetectionInterval = 1

DaemonChangeDetectionInterval = 1

HostIdentifierType = Hostname

GarbageCollectionInterval = 10080

MaxRequestSize = 4096

USER_PROVIDER_URL = ldap://ssc-ldap:389/dc=sun,dc=one

Jun 20, 2007 5:20:29 PM com.sun.apoc.daemon.misc.APOCLogger info

INFO: Daemon starting

Jun 20, 2007 5:20:29 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Garbage collection scheduled ( interval = 10080 minutes )

Jun 20, 2007 5:20:30 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Client manager started

Jun 20, 2007 5:20:30 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Channel manager started

Jun 20, 2007 5:20:30 PM com.sun.apoc.daemon.misc.APOCLogger fine

FINE: Admin manager started

Jun 20, 2007 5:20:30 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user <Daemon administrator>

Jun 20, 2007 5:20:30 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Jun 20, 2007 5:20:31 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user <Daemon administrator>

Jun 20, 2007 5:20:31 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Jun 20, 2007 5:20:35 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

Jun 20, 2007 5:20:35 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

Jun 20, 2007 5:20:35 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

Jun 20, 2007 5:20:35 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user demo8

Jun 20, 2007 5:20:35 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Jun 20, 2007 5:20:35 PM PolicyBackend openPolicyBackend

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.daemon.misc.APOCException:

com.sun.apoc.spi.OpenConnectionException: An error occured while connecting to ldap://ssc-ldap:389.

at com.sun.apoc.daemon.apocd.PolicyBackend.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.PolicyBackendFactory.openPolicyBackend(Unknown Source)

at com.sun.apoc.daemon.apocd.Cache$DataSource.openPolicyBackend(Unknown

Source)

at com.sun.apoc.daemon.apocd.Cache$DataSource.open(Unknown Source)

at com.sun.apoc.daemon.apocd.Cache.createDataSources(Unknown Source)

at com.sun.apoc.daemon.apocd.Cache.<init>(Unknown Source)

at com.sun.apoc.daemon.apocd.CacheFactory.createNewCache(Unknown Source

[snipped]

In curiosity, I reverted to my previous setting (to use "IP Address") and I didn't get the exception above. With the exception, the documentation recommends to check the existence of LDAP server. I've tried executing several commands to check and in fact LDAP server is healthy and alive.

Any idea what's happening?

Thanks,

Jonathan

jwloea at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 12

Hi Jonathan,

This is quite strange, the exception is indeed related to the basic connection to the LDAP server, so changing the host identifier type shouldn't have an impact on it. There wouldn't happen to be some sort of sub-exception (an actual LDAPException flagged as the cause) below the one you've pasted, would there?

I see you've also changed (from the previous configuration) the LDAP server specification from using its IP directly to using its host name (ssc-ldap), are you sure that host name is resolvable from this machine? What does "ldapsearch -h ssc-ldap -b dc=sun,dc=one dc=sun" run from that Sun Ray server return?

If there's an issue with resolving the host name, you can put back the LDAP server IP address (as was the case before) in the configuration, but keep Hostname as the host type identifier for the agent.

Cyrille

cyrillema at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 13

Hi Cyrille,

Yes, you're right. It works fine now. Apparently, there's nothing wrong with my DNS. the hostname can be resolved using 'nslookup' perfectly fine. Right now, I still have no idea what's the cause of the problem. I'll certainly figure this out myself.

Anyway, it works now, so all thanks to you! :)

Best Regards,

Jonathan

jwloea at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 14

Hi Cyrille,

Just want to clarify my observation, does APOC take sometime (few minutes) to update its Desktop Manager after rebooting the system? I did 'apocd reload', 'apocd change-detect' but somehow users' desktop profiles were not uploaded onto user's desktop until i ran 'apoc-config'. And it does even take sometime to reload (by looking log file shown below)

Jun 25, 2007 5:33:45 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Notification sent:

sessionId= -225158541786968907

component name = com.sun.argus.applications

type= Add

FYI, user ids and home directories of sunray-03 are 'automount'ed through existing LDAP server. These users are also shared by another existing sunray server having a different desktop profile and configuration agent v1.0.

Might this be the cause? Hope you'd be able to help me.

Thanks heaps,

Jonathan

jwloea at 2007-7-12 10:31:30 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 15

Hi Jonathan,

The APOC agent is in charge of keeping the local data as up to date as possible, but the adapters (used by the actual applications) only ever use the local data, so it's important to understand when that local data gets refreshed.

When an application requests data for the first time for a given user, it gets downloaded into the local cache, but if the data already exists for that application and user, it will not get immediately refreshed even if it's out of date (the reason for that being that we don't want to slow down the startup process), but a refresh is queued for a minute later.

Finally, every so often (as defined using apoc-config in the change detection interval, by default 60 minutes) and whenever apocd change-detect is run, the agent will refresh if necessary the data associated with the currently running sessions.

The above means that running apocd change-detect before anyone's logged in will not do anything (incidentally, apocd reload is only about refreshing the agent's own configuration, so there's no need to use it unless you manually changed that), and changes to a user which occurred while that user was logged off might have a delay after logging in before they appear.

If the explanations above do not seem consistent with what you're seeing in your environment, please describe in a bit more detail the sequence of events you're testing and what happens and we'll see whether there's an actual bug there.

Thanks,

Cyrille

cyrillema at 2007-7-21 21:21:35 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 16
Hi Cyrille,Thanks for your technical explanation. Now I understand how apoc works. Your sincere assistance since the beginning is greatly appreciated. Thanks Cyrille! :)Best Regards,Jonathan
jwloea at 2007-7-21 21:21:35 > top of Java-index,Desktop,Sun Ray Software - General Discussion...