# SuMa3 susemanager\_setup fails

**URL:** <https://forums.suse.com/t/suma3-susemanager-setup-fails/29829>\
**Category:** SUSE Multi Linux Manager\
**Created:** [May 24, 2017, 2:52pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829 "2017-05-24T14:52:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![x10050614](https://avatars.discourse-cdn.com/v4/letter/x/e47c2d/32.png) [@x10050614](https://forums.suse.com/u/x10050614)\
**Post date:** [May 24, 2017, 2:52pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/1 "2017-05-24T14:52:54Z")

</div>

Hello,

after installing SuMa3 Packages on SLES12 SP2 and running “yast susemanager\_setup” following errors occuring:

- /var/log/susemanager\_setup.err  
[FONT=Courier New]Synchronizing state of postfix.service with SysV init with /usr/lib/systemd/systemd-sysv-install…  
Executing /usr/lib/systemd/systemd-sysv-install enable postfix  
ERROR: spacewalk-setup failed[/FONT]

- /var/log/susemanager\_setup.log  
[FONT=Courier New]/var/spacewalk already exists. Leaving it untouched.  
…  
…

- Restarting services.  
Tomcat failed to start properly or the installer ran out of tries. Please check /var/log/tomcat\*/catalina.out for errors.[/FONT]

-/var/log/tomcat/catalina.2017-05-24.log  
[FONT=Courier New]…  
…  
24-May-2017 09:12:26.101 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /var/cache/tomcat/Catalina/localhost/rhn.xml has finished in 701 ms  
24-May-2017 09:12:26.130 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-apr-127.0.0.1-8080”]  
24-May-2017 09:12:26.253 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-apr-127.0.0.1-8009”]  
24-May-2017 09:12:26.297 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1016 ms[/FONT]

Do you have any ideas ?

BR u10t010

---

<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:** [May 24, 2017, 4:07pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/2 "2017-05-24T16:07:05Z")

</div>

Hi  
Was this a pre setup system and just added the SuMA product?

Normally it’s a fresh install and then select SuMA extension during install so it can do it’s thing, then run the setup.

Ref: [https://www.suse.com/documentation/suse-manager/book\_suma3\_quickstart\_3/data/quickstart3\_sec\_suma\_installation\_sles12\_sp1\_sumaext.html](https://www.suse.com/documentation/suse-manager/book_suma3_quickstart_3/data/quickstart3_sec_suma_installation_sles12_sp1_sumaext.html)

---

<div class="post-metadata">

**Author:** ![x10050614](https://avatars.discourse-cdn.com/v4/letter/x/e47c2d/32.png) [@x10050614](https://forums.suse.com/u/x10050614)\
**Post date:** [May 24, 2017, 4:29pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/3 "2017-05-24T16:29:37Z")

</div>

Hi Malcolm,

thank you for your reply.  
This is a SLES12 SP2 installation from scratch (SLE-12-SP2-Server-DVD-x86\_64-GM-DVD1) running on VMware. After finished this basic installation, the SUSE Manager 3 extension was added.  
Then tried several times the SUSE MAnager setup procedure ( “yast susemanager\_setup” ) without success.

Cheers u10t010  
P.S. i’m out of office on 25.May until 29.May

---

<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:** [May 24, 2017, 4:49pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/4 "2017-05-24T16:49:06Z")

</div>

> [@](#):
>
> On Wed 24 May 2017 01:34:01 PM CDT, x10050614 wrote:
> 
> Hi Malcolm,
> 
> thank you for your reply.  
> This is a SLES12 SP2 installation from scratch  
> (SLE-12-SP2-Server-DVD-x86\_64-GM-DVD1) running on VMware. After finished  
> this basic installation, the SUSE Manager 3 extension was added.  
> Then tried several times the SUSE MAnager setup procedure ( “yast  
> susemanager\_setup” ) without success.
> 
> Cheers u10t010  
> P.S. i’m out of office on 25.May until 29.May

Hi  
Did it not ask to add the extension during install? Or was the system  
installed offline and registered later?

Can you do an install with system online?

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE Leap 42.2|GNOME 3.20.2|4.4.62-18.6-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![x10050614](https://avatars.discourse-cdn.com/v4/letter/x/e47c2d/32.png) [@x10050614](https://forums.suse.com/u/x10050614)\
**Post date:** [May 24, 2017, 5:27pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/5 "2017-05-24T17:27:52Z")

</div>

Hi Malcolm,

this VM was created from a VMware Template (including our standard users, configs, cronjobs, etc). Then this SLES12 SP2 has been re-registered on scc. After that the extension SUSE Manager 3 has been added and installed.  
If we do a online installation it is much more effort. Is there no other way to solve the problem?  
If there is no other way to solve the problem, the online installation could be done not before next week.

thank you for your help and best regards,  
u10t010

---

<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:** [May 24, 2017, 5:51pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/6 "2017-05-24T17:51:36Z")

</div>

[QUOTE=x10050614;37977]Hi Malcolm,

this VM was created from a VMware Template (including our standard users, configs, cronjobs, etc). Then this SLES12 SP2 has been re-registered on scc. After that the extension SUSE Manager 3 has been added and installed.  
If we do a online installation it is much more effort. Is there no other way to solve the problem?  
If there is no other way to solve the problem, the online installation could be done not before next week.

thank you for your help and best regards,  
u10t010[/QUOTE]  
Hi  
AFAIK during the install it does some postfix tweaking etc which maybe your standard configs touch this?

So in the setup log, the database, tomact configuration, ssl gets completed?

---

<div class="post-metadata">

**Author:** ![u10t010](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@u10t010](https://forums.suse.com/u/u10t010)\
**Post date:** [May 29, 2017, 4:48pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/7 "2017-05-29T16:48:38Z")

</div>

Hi Malcom,

now we’ve installed the VM again from scratch (SLE-12-SP2-Server-DVD-x86\_64-GM-DVD1) and have included the extension SUSE Manager 3 while the installation.  
After running “yast susemanager\_setup” following errors occuring (it looks similar like before):

- /var/log/susemanager\_setup.log  
[FONT=Courier New]/var/spacewalk already exists. Leaving it untouched.  
Filesystem type for /var/cache is ext4 - ok.  
Open needed firewall ports…

- Loading answer file: /root/spacewalk-answers.  
\*\* Database: Setting up database connection for PostgreSQL backend.  
\*\* Database: Populating database.  
\*\* Database: --clear-db option used. Clearing database.  
\*\* Database: Shutting down spacewalk services that may be using DB.  
\*\* Database: Services stopped. Clearing DB.  
\*\*\* Progress: #
- Configuring tomcat.
- Setting up users and groups.  
\*\* GPG: Initializing GPG and importing key.
- Performing initial configuration.
- Configuring apache SSL virtual host.  
\*\* /etc/apache2/vhosts.d/vhost-ssl.conf has been backed up to vhost-ssl.conf-swsave
- Configuring jabberd.
- Creating SSL certificates.  
\*\* SSL: Generating CA certificate.  
\*\* SSL: Deploying CA certificate.  
\*\* SSL: Generating server certificate.  
\*\* SSL: Storing SSL certificates.
- Deploying configuration files.
- Update configuration in database.
- Setting up Cobbler…  
atftpd.service is not a native service, redirecting to systemd-sysv-install  
Executing /usr/lib/systemd/systemd-sysv-install enable atftpd
- Restarting services.  
Tomcat failed to start properly or the installer ran out of tries. Please check /var/log/tomcat\*/catalina.out for errors.[/FONT]

- /var/log/susemanager\_setup.err  
[FONT=Courier New]Synchronizing state of postfix.service with SysV init with /usr/lib/systemd/systemd-sysv-install…  
Executing /usr/lib/systemd/systemd-sysv-install enable postfix  
createdb: database creation failed: ERROR: database “susemanager” already exists  
ERROR: role “susemanager” already exists  
ERROR: spacewalk-setup failed  
[/FONT]

Maybe there is another basic error ?

Cheers, Samuel

---

<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:** [May 29, 2017, 6:37pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/8 "2017-05-29T18:37:00Z")

</div>

> [@](#):
>
> On Mon 29 May 2017 01:54:02 PM CDT, u10t010 wrote:
> 
> Hi Malcom,
> 
> now we’ve installed the VM again from scratch  
> (SLE-12-SP2-Server-DVD-x86\_64-GM-DVD1) and have included the extension  
> SUSE Manager 3 while the installation.  
> After running “yast susemanager\_setup” following errors occuring (it  
> looks similar like before):
> 
> - /var/log/susemanager\_setup.log  
> /var/spacewalk already exists. Leaving it untouched.  
> Filesystem type for /var/cache is ext4 - ok.  
> Open needed firewall ports…
> 
> - Loading answer file: /root/spacewalk-answers.  
> \*\* Database: Setting up database connection for PostgreSQL backend.  
> \*\* Database: Populating database.  
> \*\* Database: --clear-db option used. Clearing database.  
> \*\* Database: Shutting down spacewalk services that may be using DB.  
> \*\* Database: Services stopped. Clearing DB.  
> \*\*\* Progress: #
> - Configuring tomcat.
> - Setting up users and groups.  
> \*\* GPG: Initializing GPG and importing key.
> - Performing initial configuration.
> - Configuring apache SSL virtual host.  
> \*\* /etc/apache2/vhosts.d/vhost-ssl.conf has been backed up to  
> vhost-ssl.conf-swsave
> - Configuring jabberd.
> - Creating SSL certificates.  
> \*\* SSL: Generating CA certificate.  
> \*\* SSL: Deploying CA certificate.  
> \*\* SSL: Generating server certificate.  
> \*\* SSL: Storing SSL certificates.
> - Deploying configuration files.
> - Update configuration in database.
> - Setting up Cobbler…  
> atftpd.service is not a native service, redirecting to  
> systemd-sysv-install  
> Executing /usr/lib/systemd/systemd-sysv-install enable atftpd
> - Restarting services.  
> Tomcat failed to start properly or the installer ran out of tries.  
> Please check /var/log/tomcat\*/catalina.out for errors.
> 
> - /var/log/susemanager\_setup.err  
> Synchronizing state of postfix.service with SysV init with  
> /usr/lib/systemd/systemd-sysv-install…  
> Executing /usr/lib/systemd/systemd-sysv-install enable postfix  
> createdb: database creation failed: ERROR: database “susemanager”  
> already exists  
> ERROR: role “susemanager” already exists  
> ERROR: spacewalk-setup failed
> 
> Maybe there is another basic error ?
> 
> Cheers, Samuel

Hi  
No custom configuration during install (well add users etc), just a  
stock SP2 install and SuMA?

I know this might be a pain, but can you try SLES 12 SP1 instead of SP2?

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE Leap 42.2|GNOME 3.20.2|4.4.62-18.6-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [May 30, 2017, 7:10pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/9 "2017-05-30T19:10:56Z")

</div>

Hi Samuel,

what catches the eye:

[QUOTE=u10t010;38005]Hi Malcom,

now we’ve installed the VM again from scratch  
[…]  
[FONT=Courier New]createdb: database creation failed: ERROR: database “susemanager” already exists  
ERROR: role “susemanager” already exists  
ERROR: spacewalk-setup failed  
[/FONT][/QUOTE]

Do you happen to place things (i.e. database storage) on a network share you didn’t clean out? Because else I’d been asking myself where the database did come from, if you set up the system from scratch?

Regards,  
J

---

<div class="post-metadata">

**Author:** ![kwk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kwk/32/11997_2.png) [@kwk](https://forums.suse.com/u/kwk)\
**Post date:** [May 31, 2017, 3:30pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/10 "2017-05-31T15:30:50Z")

</div>

On PostgreSQL (which is the preferred DB) you can clean it with these commands:  
su - postgres -c “dropdb $MANAGER\_DB\_NAME” 2\> /dev/null  
su - postgres -c “dropuser $MANAGER\_USER” 2\> /dev/null  
su - postgres -c “dropdb $MANAGER\_DB\_NAME” 2\> /dev/null  
su - postgres -c “dropuser $MANAGER\_USER” 2\> /dev/null

---

<div class="post-metadata">

**Author:** ![x10050614](https://avatars.discourse-cdn.com/v4/letter/x/e47c2d/32.png) [@x10050614](https://forums.suse.com/u/x10050614)\
**Post date:** [May 31, 2017, 4:17pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/11 "2017-05-31T16:17:16Z")

</div>

Hi Malcolm, J and kwk,

thanks a lot for your kind help and patience.

Now SuSE Manager 3 Installation has been successfully finished, with a SLES12 SP1 installation from scratch and selecting SUSE Manager Extension and without any custom configuration.

Best Regards, u10t010

---

<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:** [May 31, 2017, 4:25pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/12 "2017-05-31T16:25:07Z")

</div>

[QUOTE=x10050614;38069]Hi Malcolm, J and kwk,

thanks a lot for your kind help and patience.

Now SuSE Manager 3 Installation has been successfully finished, with a SLES12 SP1 installation from scratch and selecting SUSE Manager Extension and without any custom configuration.

Best Regards, u10t010[/QUOTE]  
Hi  
So all working ok? What I did after mirroring down a few repos and adding some systems was run zypper migration to move to SP2 😉

---

<div class="post-metadata">

**Author:** ![x10050614](https://avatars.discourse-cdn.com/v4/letter/x/e47c2d/32.png) [@x10050614](https://forums.suse.com/u/x10050614)\
**Post date:** [May 31, 2017, 5:10pm UTC](https://forums.suse.com/t/suma3-susemanager-setup-fails/29829/13 "2017-05-31T17:10:49Z")

</div>

Hi Malcolm,

yes, thanky you, all working ok now 🙂  
Migration to SP2 will be done later.

Cheers, u10t010
