Sconadm registration failed

#cat RegistrationProfile.properties

# CLI registration profile template version 1.0

# ******** WARNING ********

# This profile contains sensitive data: passwords and subscription

# keys. You should take care in how you handle it, ensuring that it

# is always adequately protected (mode 400 or 600, owned by root)

# and not stored on insecure file systems like those exported through

# standard NFS.

#

# Sun Online account information. A new account can be created by visiting

# http://updates.sun.com

#

userName=user1234

password=pass1234

#

# Name (label) of this machine as you would like it to appear on the Sun Connection

# portal. If left blank hostname will be used

#

hostName=myhost

#

# Service Plan / contract number with Sun. For more information on this topic

# please visit http://www.sun.com/service/warrantiescontracts/ . NOTE - a

# subscription key is required to use the Sun Connection Portal.

#

subscriptionKey=****************

#

# Allow this host to be managed by the Sun Connection Portal. If set to true,

# a subscription key is required.

#

portalEnabled=false

#

# HTTPS proxy information needed to connect to Sun for registration and patch

# updates.

#

proxyHostName=

proxyPort=

proxyUserName=

proxyPassword=

Returns:

sconadm is running

Authenticating user ...

Sun On-line Account authentication failed

failed registration!

I have tried this for almost a day with many different configuration. I have confirmed my online login id and password many times. Still nothing.

[1755 byte] By [imana] at [2007-11-26 20:48:23]
# 1

Upon further notice the error logs indicate incorrect hostname :

Mar 7, 2007 4:38:52 PM com.sun.cns.basicreg.BasicReg loadPropertiesFromHomeDir

INFO: properties file loaded from the default config.properties

Mar 7, 2007 4:38:52 PM com.sun.scn.util.Utils getLocalHostNames

INFO: get hostname 207.5.42.247

Mar 7, 2007 4:38:52 PM com.sun.scn.util.Utils getLocalHostNames

INFO: first returned hostname 207.5.42.247

Mar 7, 2007 4:46:23 PM com.sun.cns.basicreg.cacao.ClientLoginCacaoAdapter getLoginResult

INFO: SCN Fault: Connection refused to host: 207.5.42.247; nested exception is:

java.net.ConnectException: Connection timed out

Mar 7, 2007 4:46:23 PM com.sun.cns.basicreg.BasicRegCLI run

SEVERE: Sun On-line Account authentication failed

I have no idea where the hostname above came from or why but it is incorrect.

imana at 2007-7-10 2:11:31 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

Mar 7, 2007 4:46:23 PM com.sun.cns.basicreg.BasicRegCLI run SEVERE: Sun On-line Account authentication failed

The problem appears to be that you have not setup a Sun Online account with the username as yet. This needs to be created before attempting to register the system with Update Connection.

This can be created through most Sun portals including the optional Update Connection portal via the "Create an account" link: https://updates.sun.com

--

Modski

ForumModeratora at 2007-7-10 2:11:31 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3
Although we have support contract at work, I _don't_ for my home boxen. The patching issues of the last couple of years aren't worth getting into. I recommend this work-around: install PCA from http://www.par.univie.ac.at/solaris/pca/
sacresa at 2007-7-10 2:11:31 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

Well it appears the answer was in the hostname. By doing a 'uname -n' we discovered the hostname was 'unknown'. This occurred because I initially set the server up using DHCP and have now noticed many people have had these same nightmares trying to get the hostname back after initially using DHCP during install. A week later we have finally rid the server of all DHCP entries and put it back to static IP and Sconadm locked in with no problems. Thanks to all the guys at Sun tech support for the help. Won't make that same mistake again.

imana at 2007-7-10 2:11:31 > top of Java-index,Administration Tools,Sun Update Connection-System...