Installation problem

"W. Craig Trader" <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Organization Unicorn's Rest
Message-ID <[email protected]>
Help!

I'm installing Current 1.0.2 on a RedHat 7.2 server, and while it seems like
everything should be working, when I go to start rhn_register (v2.7.2) on a
client, the client complains "A socket error occured: SSL_connect error" 5 times
and then exits.  The current server has been started (on port 7080), and the
stunnel has been started (on port 7443).

Any assistance you can render would be greatly appreciated!

- Craig -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The server log contains this message (repeated 5 times):

Mar 03 08:11:12 requesthandler.log_error(): code 400, message Bad request syntax
('')
Mar 03 08:1112 : EXCEPTION in /usr/share/current/standalone.py, handle_error(),
326 [logException()]
Traceback (innermost last):
    File "/usr/lib/python1.5/site-packages/SocketServer.py", line 213, in
handle_request
      self.process_request(request, client_address)
    File "/usr/lib/python1.5/site-packages/SocketServer.py", line 239, in
process_request
      self.finish_request(request, client_address)
    File "/usr/lib/python1.5/site-packages/SocketServer.py", line 243, in
finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib/python1.5/site-packages/SocketServer.py", line 366, in __init__
      self.handle()
    File "/usr/lib/python1.5/site-packages/BaseHTTPServer.py", line 249, in handle
      self.send_error(400, "Bad request syntax (%s)" % `requestline`)
    File "/usr/lib/python1.5/site-packages/BaseHTTPServer.py", line 283, in
send_error
      self.wfile.write(self.error_message_format %
IOError: [Errno 32] Broken pipe

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Server setup (dirac.inside.unicornsrest.org):

root> cadmin printconfig
Configuration:
{'args': ['printconfig'],
   'channels': {'redhat-i386-7.2': {'arch': 'i386',
                                    'db_dir': '/var/current/redhat-7.2/i386',
                                    'description': 'Red Hat Linux 7.2 with all
the errata',
                                    'label': 'redhat-i386-7.2',
                                    'name': 'RedHat 7.2',
                                    'os_release': '7.2',
                                    'parent_channel': '',
                                    'rpm_dirs':
['/data/archive/images/redhat-7.2/RedHat/RPMS',

'/data/archive/mirror/redhat/7.2/i386',

'/data/archive/mirror/redhat/7.2/noarch'],
                                    'src_dirs': [],
                                    'xrpm_dirs':
'/local/scratch/dulug-7.2/i386/other-pkgs/rawhide'}},
   'config_file': '/etc/current/current.conf',
   'dump': 0,
   'http_port': '7080',
   'https_port': '7443',
   'key_file': '/etc/current/current.pem',
   'kill': 0,
   'log_file': '/var/log/current.log',
   'log_level': '0',
   'nodaemon': 0,
   'pid_file': '/var/run/current.pid',
   'privacy_statement': '"Privacy Statement for Unicorn\'s Rest\'s up2date
server:\012 This is the internet - privacy is an illusion.\012 .\012 Please note
that only anonymous access is supported anyway - so while you\012 have to get a
valid system id (by going through the rhn_register program)\012 there is no
requirement to fill those fields out with real data. :) All\012 that is required
is that your architecture an os_release be accurately\012 reported - and
rhn_register fills that in automatically. "',
   'server_id': 'purple',
   'server_secret': 'Copyright (c) 2001 Hunter Matthews',
   'valid_channels': ['redhat-i386-7.2'],
   'version': '1.0.2',
   'welcome_message': '"Welcome to Unicorn\'s Rest\'s up2date server."'}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Client setup:

::::::::::::::
rhn_register
::::::::::::::
# Automatically generated Red Hat RHN Registration config file, do not edit.
# Format: 1.0
enableProxyAuth[comment]=To use an authenticated proxy or not
enableProxyAuth=0

noSSLServerURL[comment]=Remote server URL without SSL
noSSLServerURL=http://dirac.inside.unicornsrest.org:7080/XMLRPC

oemInfoFile[comment]=A config file for oemSpecific info
oemInfoFile=/etc/sysconfig/rhn/oeminfo

enableProxy[comment]=Use a HTTP Proxy
enableProxy=0

networkSetup[comment]=None
networkSetup=1

httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128
httpProxy=

proxyUser[comment]=The username for an authenticated proxy
proxyUser=

serverURL[comment]=Remote server URL
serverURL=https://dirac.inside.unicornsrest.org:7443/XMLRPC

proxyPassword[comment]=The password for an authenticated proxy
proxyPassword=

debug[comment]=Whether or not debugging is enabled
debug=1

::::::::::::::
up2date
::::::::::::::
# Automatically generated Red Hat Update Agent config file, do not edit.
# Format: 1.0
noSSLServerURL[comment]=Remote server URL without SSL
noSSLServerURL=http://dirac.inside.unicornsrest.org:7080/XMLRPC

debug[comment]=Whether or not debugging is enabled
debug=0

noReplaceConfig[comment]=When selected, no packages that would change
configuration data are automatically installed
noReplaceConfig=1

retrieveOnly[comment]=Retrieve packages only
retrieveOnly=1

keepAfterInstall[comment]=Keep packages on disk after installation
keepAfterInstall=1

systemIdPath[comment]=Location of system id
systemIdPath=/etc/sysconfig/rhn/systemid

serverURL[comment]=Remote server URL
serverURL=https://dirac.inside.unicornsrest.org:7443/XMLRPC

pkgSkipList[comment]=A list of package names, optionally including wildcards, to
skip
pkgSkipList=kernel*;

adminAddress[comment]=List of e-mail addresses for update agent to communicate
with when run in batch mode
adminAddress=root@localhost;

storageDir[comment]=Where to store packages and other data when they are retrieved
storageDir=/var/spool/up2date

fileSkipList[comment]=A list of file names, optionally including wildcards, to skip
fileSkipList=;

removeSkipList[comment]=A list of package names, optionally including wildcards
that up2date will not remove
removeSkipList=kernel*;

enableProxy[comment]=Use a HTTP Proxy
enableProxy=0

retrieveSource[comment]=Retrieve source RPM along with binary package
retrieveSource=0

versionOverride[comment]=Override the automatically determined system version
versionOverride=

httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128
httpProxy=

useGPG[comment]=Use GPG to verify package integrity
useGPG=1

noBootLoader[comment]=To disable modification of the boot loader (lilo, silo, etc)
noBootLoader=0

networkRetries[comment]=Number of attempts to make at network connections before
giving up
networkRetries=1


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

BTW, while I was doing the setup, I noticed that 'cadmin initconfig' was
printing an error message (because I forgot to init the database, bad me) to
STDOUT, instead of STDERR.  This was causing the /etc/init.d/current script to
try and execute the error message.  So I changed line 65 from this:

print 'Removing stale pid_file %s\n' % config.cfg.getItem('pid_file')

to this:

sys.stderr.write('Removing stale pid_file %s\n'%config.cfg.getItem('pid_file'))

-- 
============= Excellence is a journey, not a destination =============
=============== W. Craig Trader <[email protected]> ===============
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.