# Uyuni Installation

**URL:** https://forums.suse.com/t/uyuni-installation/35260
**Category:** General Discussion
**Created:** [August 28, 2020, 8:20pm UTC](https://forums.suse.com/t/uyuni-installation/35260 "2020-08-28T20:20:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jason.keefe](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jason.keefe](https://forums.suse.com/u/jason.keefe)
#### Post date: [August 28, 2020, 8:20pm UTC](https://forums.suse.com/t/uyuni-installation/35260/1 "2020-08-28T20:20:38Z")

</div>

Trying to finish installing/configuring a new Uyuni box to move away from Spacewalk. Having issues with SSL cert. Says to check /var/log/rhn/rhn\_installation.log for more info, all I can find is this:

Exception type \<class ‘ModuleNotFoundError’\>

Exception Handler Information  
Traceback (most recent call last):  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/ **init**.py”, line 53, in \_\_init\_\_DB  
my\_db = \_\_DB  
NameError: name ‘\_\_DB’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/lib/python3.6/site-packages/spacewalk/satellite\_tools/rhn\_ssl\_dbstore.py”, line 55, in processCommandline  
rhnSQL.initDB()  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/ **init**.py”, line 110, in initDB  
\_\_init\_\_DB(backend, host, port, username, password, database, sslmode, sslrootcert)  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/ **init**.py”, line 55, in \_\_init\_\_DB  
db\_class = dbi.get\_database\_class(backend=backend)  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/dbi.py”, line 47, in get\_database\_class  
module = get\_database\_module(backend=backend)  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/dbi.py”, line 37, in get\_database\_module  
module = **import** (driver\_dir, globals(), locals(), [driver\_mod])  
File “/usr/lib/python3.6/site-packages/spacewalk/server/rhnSQL/driver\_postgresql.py”, line 23, in   
import psycopg2  
ModuleNotFoundError: No module named ‘psycopg2’  
#####################################################

I’ve installed python-psycopg2, and tried to launch YaST Uyuni Setup again, but it fails out with the same error. What am I missing? Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [August 28, 2020, 8:29pm UTC](https://forums.suse.com/t/uyuni-installation/35260/2 "2020-08-28T20:29:55Z")

</div>

Hi and welcome to the Forum 🙂  
Unfortunately you posted in General Discussion rather than the specific OS release area 😉  
Since your running python3, then you need the python3 version, eg python3-psycopg2

---

<div class="post-metadata">

### Author: ![jason.keefe](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jason.keefe](https://forums.suse.com/u/jason.keefe)
#### Post date: [August 28, 2020, 8:53pm UTC](https://forums.suse.com/t/uyuni-installation/35260/3 "2020-08-28T20:53:56Z")

</div>

Sorry about that, wasn’t sure where to post. Could I move it to the right section?  
Also, the server shows as running 2.7, so I’m not sure where it’s getting the 3.6 info

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [August 28, 2020, 9:26pm UTC](https://forums.suse.com/t/uyuni-installation/35260/4 "2020-08-28T21:26:12Z")

</div>

@“[jason.keefe@eclinicalworks.com](mailto:jason.keefe@eclinicalworks.com)” What release of SLES?

```auto
cat /etc/os-release

```

---

<div class="post-metadata">

### Author: ![jason.keefe](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jason.keefe](https://forums.suse.com/u/jason.keefe)
#### Post date: [August 28, 2020, 9:32pm UTC](https://forums.suse.com/t/uyuni-installation/35260/5 "2020-08-28T21:32:16Z")

</div>

Leap 15.1

---

<div class="post-metadata">

### Author: ![jason.keefe](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jason.keefe](https://forums.suse.com/u/jason.keefe)
#### Post date: [August 28, 2020, 9:34pm UTC](https://forums.suse.com/t/uyuni-installation/35260/6 "2020-08-28T21:34:03Z")

</div>

installed python3-psycopg2 module and 3 other dep packages, got past the SSL part, but now it’s failing the Tomcat start, lol. I’ll keep checking the logs and keep plugging along. Thanks for the help!

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [August 29, 2020, 1:02am UTC](https://forums.suse.com/t/uyuni-installation/35260/7 "2020-08-29T01:02:07Z")

</div>

Hi  
Ahh, you need to be over at [https://forums.opensuse.org](https://forums.opensuse.org) this forum is for the Enterprise release… 😉 Repost over there and should get some help 🙂

---

<div class="post-metadata">

### Author: ![jason.keefe](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jason.keefe](https://forums.suse.com/u/jason.keefe)
#### Post date: [September 15, 2020, 3:14pm UTC](https://forums.suse.com/t/uyuni-installation/35260/8 "2020-09-15T15:14:09Z")

</div>

Thanks again
