Sun Desktop Manager

I am trying to implement this little rascal but to no avail. I want to use a file-based repository. So successful installation, then create repository - no problems. Then I had some problems figuring out how to add users to the Domain tree but that's done too. I did some profile tuning but now when I fire up the SunRay clients they don't recognize the profile settings I'm trying to apply. I actually added root to the list in the SDM but it doesn't use my profile either. Do you have any ideas on how exactly to set up a file-based repository and make it work?

Thank you for you time.

[604 byte] By [kuchev] at [2007-11-26 11:03:09]
# 1

From what I see in the logs the user named kiosk is able to connect to the SDM but can't find the profile. I'm posting the log from /rep/Logs, where /rep is the dir where my repository is. You will see it register kiosk twice since I added it by username and by IP.

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user kiosk

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Oct 26, 2006 2:01:29 PM PolicyBackend openPolicyBackend

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

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

at com.sun.apoc.daemon.apocd.HostPolicyBackend.<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)

at com.sun.apoc.daemon.apocd.CacheFactory.openCache(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.daemon.misc.APOCException: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

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

... 14 more

Caused by: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

at com.sun.apoc.spi.PolicyMgrFactoryImpl.createPolicyMgr(Unknown Source)

... 15 more

Oct 26, 2006 2:01:29 PM PolicyBackend openPolicyBackend

FINER: THROW

com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.daemon.misc.APOCException: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

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

at com.sun.apoc.daemon.apocd.UserPolicyBackend.<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)

at com.sun.apoc.daemon.apocd.CacheFactory.openCache(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.daemon.misc.APOCException: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

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

... 14 more

Caused by: com.sun.apoc.spi.environment.InvalidParameterException: The parameter organization PROVIDER_URL#protocol (null) is not valid, the value must be comprised in {ldaps,ldap,https,http,file}.

at com.sun.apoc.spi.PolicyMgrFactoryImpl.createPolicyMgr(Unknown Source)

... 15 more

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client session created:

userId= kiosk

sessionId= -4687229142274743147

dataSource1

Name: kiosk/localHost/local/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1e78fc6

Backend: null

dataSource2

Name: kiosk/10.2.4.4/global/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1901437

Backend: null

dataSource3

Name: kiosk/localUser/local/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1f6226

Backend: null

dataSource4

Name: kiosk/kiosk/global/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@64ea66

Backend: null

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: AddListener transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: AddListener transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client added

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user kiosk

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Creating new client session

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authenticating user kiosk

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Authentication successful

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client session created:

userId= kiosk

sessionId= 1303263487290535725

dataSource1

Name: kiosk/localHost/local/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1e78fc6

Backend: null

dataSource2

Name: kiosk/10.2.4.4/global/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1901437

Backend: null

dataSource3

Name: kiosk/localUser/local/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1f6226

Backend: null

dataSource4

Name: kiosk/kiosk/global/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@64ea66

Backend: null

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: New client session created:

userId= kiosk

sessionId= 5961168775745377582

dataSource1

Name: kiosk/localHost/local/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1e78fc6

Backend: null

dataSource2

Name: kiosk/10.2.4.4/global/host

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1901437

Backend: null

dataSource3

Name: kiosk/localUser/local/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@1f6226

Backend: null

dataSource4

Name: kiosk/kiosk/global/user

Cache: com.sun.apoc.daemon.localdatabase.LocalDatabase@64ea66

Backend: null

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: CreateSession transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: List transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: AddListener transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: AddListener transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: DestroySession transaction started

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client session ( sessionId = 1303263487290535725 ) closed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: DestroySession transaction completed

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finest

FINEST: Unexpected EOF while reading client channel

Oct 26, 2006 2:01:29 PM com.sun.apoc.daemon.misc.APOCLogger finer

FINER: Client removed

And this is the errors I get from the /var/opt/SUNWut/log/messages.

Oct 26 14:12:10 SunRay gconfd (kiosk-17477): [ID 702911 user.info] Exiting

Oct 26 14:12:10 SunRay utauthd: [ID 794400 user.info] SessionManager0 NOTICE: EMPTY: ACTIVE session

Oct 26 14:12:11 SunRay dtlogin[17699]: [ID 118685 user.info] pam_sunray_amgh::[DPY=3] AMGH_SUMMARY: token=user.1155651308-7053, username=, AMGH_Done?=NO(Local Session), Details=A

MGH is not configured., AMGH_Target=*NONE*

Oct 26 14:12:23 SunRay dtlogin[17699]: [ID 118685 user.info] pam_sunray_amgh::[DPY=3] AMGH_SUMMARY: token=user.1155651308-7053, username=kiosk, AMGH_Done?=NO(Local Session), Deta

ils=AMGH is not configured., AMGH_Target=*NONE*

Oct 26 14:12:24 SunRay gconfd (kiosk-17856): [ID 702911 user.info] starting (version 2.6.1), pid 17856 user 'kiosk'

Oct 26 14:12:24 SunRay gconfd (kiosk-17858): [ID 702911 user.info] starting (version 2.6.1), pid 17858 user 'kiosk'

Oct 26 14:12:24 SunRay gconfd (kiosk-17858): [ID 702911 user.warning] Failed to get lock for daemon, exiting: Failed to lock '/var/tmp/gconfd-kiosk/lock/ior': probably another pr

ocess has the lock, or your operating system has NFS file locking misconfigured (Resource temporarily unavailable)

Oct 26 14:12:25 SunRay gconfd (kiosk-17856): [ID 702911 user.info] Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0

Oct 26 14:12:25 SunRay gconfd (kiosk-17856): [ID 702911 user.info] Resolved address "apoc:readonly:mandatory@" to a read-only config source at position 1

Oct 26 14:12:25 SunRay gconfd (kiosk-17856): [ID 702911 user.info] Resolved address "xml:readwrite:/export/home/kiosk/.gconf" to a writable config source at position 2

Oct 26 14:12:25 SunRay gconfd (kiosk-17856): [ID 702911 user.info] Resolved address "apoc:readonly:" to a read-only config source at position 3

Oct 26 14:12:25 SunRay gconfd (kiosk-17856): [ID 702911 user.info] Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 4

Oct 26 14:12:25 SunRay DesktopControl[17854]: [ID 188575 user.error] An error occurred starting the applications: Connection failure

Oct 26 14:12:25 SunRay DesktopControl[17853]: [ID 444735 user.info] listening for changes to launcher definitions

Oct 26 14:12:25 SunRay DesktopControl[17853]: [ID 185135 user.info] updating applications menu definition

Oct 26 14:12:25 SunRay DesktopControl[17853]: [ID 942602 user.info] no applications menu definition found

Oct 26 14:12:25 SunRay DesktopControl[17853]: [ID 170714 user.info] listening for changes to applications menu definition

Oct 26 14:12:25 SunRay bonobo-activation-server (kiosk-17959): [ID 702911 user.warning] iid OAFIID:BrokenNoType:20000808 has a NULL type

Oct 26 14:12:25 SunRay bonobo-activation-server (kiosk-17959): [ID 702911 user.warning] invalid character '#' in iid 'OAFIID:This#!!%$iid%^$%_|~!OAFIID_ContainsBadChars'

If you have any ideas I will greatly appreciate it.

Message was edited by:

kuchev

kuchev at 2007-7-7 3:17:00 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 2

Hi,

According to the log files, it would appear your configuration agent on the Sun Ray server is incorrectly configured when it comes to pointing to the location of your file repository. The location of the repository must be provided as a URL, so for instance file:///path/to/rep if the directory is local to the Sun Ray server. I would suggest you run again the apoc-config utility to check that the repository location parameter is correct.

If it still doesn't work, please post the contents of /etc/apoc/policymgr.properties (you can remove the lines containing Password or CREDENTIALS if you've provided any password which you don't wish to show) and we'll try and figure out what the problem could be.

Regards,

Cyrille

cyrillem at 2007-7-7 3:17:01 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 3

Thank you for the replay. I ran the apoc-config again but that didn't help. The repository location is file:///rep. The config looks ok. Almost everything else is with the default values. This is what's in polocymgr.properties:

#Mon Oct 30 14:02:44 EST 2006

HostIdentifierType=IPAddress

ConnectTimeout=1

Password=

AuthType=Anonymous

AuthDn=

PROVIDER_URL=10.2.4.4

If you can come up with something I would be vary grateful. Thank you.

kuchev at 2007-7-7 3:17:01 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 4
Do you also think that it could be a problem with permissions to the /rep folder? It is owned by noaccess group, and only noaccess has write privileges as it was advised in the manual.
kuchev at 2007-7-7 3:17:01 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 5

The PROVIDER_URL field in your policymgr.properties is wrong, it should be file:///rep according to your setup, and not the IP address of a machine. In apoc-config, when you get to the page asking about the file repository URL, you would need to input "file:///rep" instead of that IP address.

To answer your other question, the /rep directory has to be owned by noaccess, have write permissions for that user and read and traverse for anyone else (only the management tool writes in that directory, the desktop components only read the data).

I hope this helps, if for some reason apoc-config doesn't properly change the policymgr.properties file, you can also edit it manually (setting PROVIDER_URL=file:///rep) and reload the configuration with /usr/lib/apoc/apocd reload.

cyrillem at 2007-7-7 3:17:01 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 6
Thank you very much. That was my mistake. When I changed the URL it worked right away. You made my day.
kuchev at 2007-7-7 3:17:01 > top of Java-index,Desktop,Sun Ray Software - General Discussion...