[Spacewalk-list] osa-dispatcher - Database instance has no attibute

Murdoch, Steven Steven.Murdoch at cdk.com
Fri Apr 15 10:06:48 UTC 2016


Hi  - can you please help.

My Spacewalk Master has recently migrated from Oracle to PostgreSQL (may not be relevant - or may be the cause, not sure).
The Master has been working well for the last 2 weeks, but today it has developed a fault, initially with waiting on tomcat6 to get ready, but I fixed this by # rm -rf /var/lib/jabberd/db/* - then restarting the satellite.

Now I have a problem with the osa-dispatcher it starts ok BUT with an error (result below):

# spacewalk-service start
Starting spacewalk services...
Initializing jabberd processes ...
Starting router:                                           [  OK  ]
Starting sm:                                               [  OK  ]
Starting c2s:                                              [  OK  ]
Starting s2s:                                              [  OK  ]
Starting tomcat6:                                          [  OK  ]
Waiting for tomcat to be ready ...
Starting httpd:                                            [  OK  ]
Starting osa-dispatcher: Spacewalk 25346 2016/04/15 10:48:41 +01:00: ('Error caught:',)
Spacewalk 25346 2016/04/15 10:48:41 +01:00: ('Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 118, in main\n    self.setup_config(config)\n  File "/usr/share/rhn/osad/osa_dispatcher.py", line 112, in setup_config\n    rhnSQL.initDB()\n  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 153, in initDB\n    closeDB()\n  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 194, in closeDB\n    __DB.commit()\n  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 233, in commit\n    self.dbh.commit()\nAttributeError: Database instance has no attribute \'dbh\'\n',)
                                                           [  OK  ]
Starting rhn-search...
Starting cobbler daemon:                                   [  OK  ]
Starting RHN Taskomatic...
Done.
#


Any ideas how to fix this?
Any feedback welcome.
Many thanks
Steve..

-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of spacewalk-list-request at redhat.com
Sent: 15 April 2016 08:03
To: spacewalk-list at redhat.com
Subject: Spacewalk-list Digest, Vol 95, Issue 41

Send Spacewalk-list mailing list submissions to
	spacewalk-list at redhat.com

To subscribe or unsubscribe via the World Wide Web, visit
	https://www.redhat.com/mailman/listinfo/spacewalk-list
or, via email, send a message with subject or body 'help' to
	spacewalk-list-request at redhat.com

You can reach the person managing the list at
	spacewalk-list-owner at redhat.com

When replying, please edit your Subject line so it is more specific than "Re: Contents of Spacewalk-list digest..."

----------------------------------------------------------------------
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.




More information about the Spacewalk-list mailing list