Comments on How to install Spacewalk on CentOS

Spacewalk manages software package updates for Red Hat derived distributions such as Fedora, CentOS, and Scientific Linux. In this tutorial. I'll go trough the installation of Spacewalk in detail and show you how to configure it to be production ready along with all the feature we can use with it.

22 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Sam

Nice Article

By: Ricardo

Hi, nicey written article. I did run into an issue and was wondering if you encountered the same:

This was during the step "yum install -y spacewalk-setup-postgresql spacewalk-postgresql"

Transaction check error:  file /usr/share/java/commons-fileupload.jar conflicts between attempted installs of jakarta-commons-fileupload-1:1.2.1-1.jpp5.noarch and apache-commons-fileupload-1.3.2-3.el7.noarch

By: Alex

 I also encountered the same "Transaction check" error with apache and jakarta commons-fileupload, what I did was install the "spacewalk-jpp-workaround" package from the spacewalk repo and add "--skip-broken" to the spacewalk-postgresql install.

 

This seems to have done the job, as nothing reported to be broken, though I did have an issue with the postgresql database setup, but thats another issue...

By: Alex

Forgot to add that I still don't recommend using the "--skip-broken" flag as this may end up skipping other broken dependencies and messing up the entire installation.

By: Ricardo

Thank you for your responses Alex. I agree, using --skip-broken is never a good idea, because you'll miss packages and configurations.

However I find it a bid odd that the article is written quite recently and it seems that the author (iron_michael86) did not encounter the same issue that I raised above. I hope that the author will reply and share his with his opinion and findings.

By: iron_michael86

Please make sure centos 7 is upto date.

run yum update -y and then start these steps

 

By: iron_michael86

first run yum -y update

and then start the installation

By: Ricardo

Hi iron_michael86, thank you for your reply. I did make sure that centos 7 is up to date, but I still ended up with the Transaction check error shared earlier. The user Alex encountered the same issue.

By: Ricardo

Centos 7 is up to date, but I still end up receiving the Transaction check error that I shared in an earlier comment.

By: iron_michael86

Guys,

Please follow these steps

#yum -y update

Added the repos

#rpm -Uvh http://yum.spacewalkproject.org/2.6/RHEL/7/x86_64/spacewalk-repo-2.6-0.el7.noarch.rpm

#cat > /etc/yum.repos.d/jpackage-generic.repo << EOF

[jpackage-generic]name=JPackage genericbaseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/#mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0enabled=1gpgcheck=1gpgkey=http://www.jpackage.org/jpackage.ascEOF

#rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

This is the step I forgot to mention every time you add a new repo , you will need to refresh the cache to avoid errors, sorry

# yum clean all

And then run

#yum install -y spacewalk-setup-postgresql spacewalk-postgresql

You will have a perfect installation

Regards

Sunil

By: iron_michael86

Run yum clean all  to refresh the cache , before you start the installation

By: iron_michael86

Guys,

Really sorry just ignore the last two comments looks like there is conflict of packages recently they have updated this package

please install this first 

#yum install -y http://mirrors.sohu.com/fedora-epel/7/x86_64/a/apache-commons-fileupload-1.3.1-4.el7.noarch.rpm

The new package has a conflict with jpackager which was recently added 

apache-commons-fileupload

We will install the previous version to fix this issue and the install should get completed with out any issues :)

 

By: Ricardo

Hi iron_michael86, thank you for your response. That indeed did the trick. For everyone else. Install the package listed in the previous post from iron_michael86 before executing Step "Installing PostgreSQL for spacewalk:".

By: Giuseppe

Hi iron_michael86,

I followed the steps that you recommended but afther that I receive the same error of the other guys:

Transaction check error:  file /usr/share/java/commons-fileupload.jar conflicts between attempted installs of jakarta-commons-fileupload-1:1.2.1-1.jpp5.noarch and apache-commons-fileupload-1.3.2-3.el7.noarch

This is my CentOS's release: CentOS Linux release 7.3.1611 (Core)

 

By: iron_michael86

please install this package

#yum install -y http://mirrors.sohu.com/fedora-epel/7/x86_64/a/apache-commons-fileupload-1.3.1-4.el7.noarch.rpm

To avoid conflict since the new version which was release in march 2017 is having issue.

 

By: Giuseppe

 Hi,

After that I removed the new version of apache-commons-fileupload and installed the version that you recommended, Spacewalk's installation works fine. Thanks for your help!

By: Pierre

Hi, good job.

But i have the same error with apache-commons-fileupload-1.3.1-4.el7 :( and i can't found it or by your links.

Can you help me please, i still have the error.

Thanks.

By: iron_michael86

Pierre,

I didn't understand .Were you able to download the package if yes install it first and then run .

#yum update -y

#yum install -y http://mirrors.sohu.com/fedora-epel/7/x86_64/a/apache-commons-fileupload-1.3.1-4.el7.noarch.rpm

#yum install -y spacewalk-setup-postgresql spacewalk-postgresql

By: cmkync

 Hi, I'm getting an error

[root@test]# spacewalk-setup-postgresql create --db spacewalk --user spacewalkuser --password spacewalkuser

-bash: spacewalk-setup-postgresql: command not found

 

By: John

Cant get beyond this error when running: spacewalk-setup-postgresql create --db spacewalk --user spacewalkuser --password password

createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)HINT:  Use the same encoding as in the template database, or use template0 as template.

By: John

This link 'http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/' doesn't work anymore. Instead you can use 'http://vesta.informatik.rwth-aachen.de/ftp/pub/comp/Linux/jpackage/5.0/generic/free/' for example.

By: T. Devine

Is there a way to build a Spacewalk Agent/Client install package/kit with all dependencies?  

The kit would then be made available locally for servers without internet access.  

The current agent install process requires internet access to download Spacewalk agent and agent dependencies.