Discussion:
[Spacewalk-list] How to resolve Spacewalk Crash!
neeraj tiwari
2018-09-20 11:49:54 UTC
Permalink
Hi Folk's,
I have been using spacewalk from past one year in my organization, but now due to a human mistake someone removed following packages from the spacewalk server:-
Sep 19 15:55:04 Erased: rhn-check
Sep 19 15:55:04 Erased: yum-rhn-plugin
Sep 19 15:55:04 Erased: rhn-setup
Sep 19 15:55:05 Erased: rhnsd
Sep 19 15:55:05 Erased: spacewalk-postgresql
Sep 19 15:55:05 Erased: spacewalk-common
Sep 19 15:55:05 Erased: osa-dispatcher-selinux
Sep 19 15:55:14 Erased: spacewalk-selinux
Sep 19 15:55:19 Erased: spacewalk-schema
Sep 19 15:55:19 Erased: spacewalk-setup
Sep 19 15:55:19 Erased: spacewalk-backend-tools
Sep 19 15:55:19 Erased: rhnpush
Sep 19 15:55:19 Erased: spacewalk-backend-app
Sep 19 15:55:19 Erased: spacewalk-backend-xmlrpc
Sep 19 15:55:19 Erased: spacewalk-certs-tools
Sep 19 15:55:19 Erased: rhn-client-tools
Sep 19 15:55:19 Erased: osa-dispatcher
Sep 19 15:55:19 Erased: spacewalk-backend-applet
Sep 19 15:55:19 Erased: spacewalk-backend-config-files
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-tool
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-common
Sep 19 15:55:19 Erased: spacewalk-backend-iss
Sep 19 15:55:19 Erased: spacewalk-backend-iss-export
Sep 19 15:55:19 Erased: spacewalk-backend-xml-export-libs
Sep 19 15:55:19 Erased: spacewalk-backend-package-push-server
Sep 19 15:55:19 Erased: spacewalk-backend-server
Sep 19 15:55:19 Erased: spacewalk-backend-sql
Sep 19 15:55:20 Erased: spacewalk-backend
Sep 19 15:55:20 Erased: rhnlib
Sep 19 15:55:20 Erased: rhn-org-httpd-ssl-key-pair-wa-sat-server
Sep 19 15:55:20 Erased: rhn-org-trusted-ssl-cert


Now I am unable to get the server certificate and httpd is not getting started:-
Starting httpd: Syntax error on line 105 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty
                                                           [FAILED]




Please let me know, is there any possibility to up this same setup or i need to reinstall everything??
I don't have any backups.
Regards,Neeraj Tiwari
Robert Paschedag
2018-09-20 18:37:35 UTC
Permalink
Post by neeraj tiwari
Hi Folk's,
I have been using spacewalk from past one year in my organization, but
now due to a human mistake someone removed following packages from the
spacewalk server:-
Sep 19 15:55:04 Erased: rhn-check
Sep 19 15:55:04 Erased: yum-rhn-plugin
Sep 19 15:55:04 Erased: rhn-setup
Sep 19 15:55:05 Erased: rhnsd
Sep 19 15:55:05 Erased: spacewalk-postgresql
Sep 19 15:55:05 Erased: spacewalk-common
Sep 19 15:55:05 Erased: osa-dispatcher-selinux
Sep 19 15:55:14 Erased: spacewalk-selinux
Sep 19 15:55:19 Erased: spacewalk-schema
Sep 19 15:55:19 Erased: spacewalk-setup
Sep 19 15:55:19 Erased: spacewalk-backend-tools
Sep 19 15:55:19 Erased: rhnpush
Sep 19 15:55:19 Erased: spacewalk-backend-app
Sep 19 15:55:19 Erased: spacewalk-backend-xmlrpc
Sep 19 15:55:19 Erased: spacewalk-certs-tools
Sep 19 15:55:19 Erased: rhn-client-tools
Sep 19 15:55:19 Erased: osa-dispatcher
Sep 19 15:55:19 Erased: spacewalk-backend-applet
Sep 19 15:55:19 Erased: spacewalk-backend-config-files
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-tool
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-common
Sep 19 15:55:19 Erased: spacewalk-backend-iss
Sep 19 15:55:19 Erased: spacewalk-backend-iss-export
Sep 19 15:55:19 Erased: spacewalk-backend-xml-export-libs
Sep 19 15:55:19 Erased: spacewalk-backend-package-push-server
Sep 19 15:55:19 Erased: spacewalk-backend-server
Sep 19 15:55:19 Erased: spacewalk-backend-sql
Sep 19 15:55:20 Erased: spacewalk-backend
Sep 19 15:55:20 Erased: rhnlib
Sep 19 15:55:20 Erased: rhn-org-httpd-ssl-key-pair-wa-sat-server
Sep 19 15:55:20 Erased: rhn-org-trusted-ssl-cert
Now I am unable to get the server certificate and httpd is not getting started:-
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty
                                                           [FAILED]
Well... It looks like your SSL cert has been deleted. You have to rebuild your SSL certificate, if you do not have a backup and... Maybe also redistribute you CA cert to your spacewalk clients.

Robert
Post by neeraj tiwari
Please let me know, is there any possibility to up this same setup or i
need to reinstall everything??
I don't have any backups.
Regards,Neeraj Tiwari
--
sent from my mobile device
Waldirio Manhães Pinheiro
2018-09-21 00:13:00 UTC
Permalink
Hello

My advice to you should be.

1. Imagining you are doing the backup via db-control

if yes,

1. Reinstall the machine using the same hostname
2. Reinstall the SW
3. Execute db-control to restore the DB backup

After that, all information will be there as before.

Another option could be restore any valid snapshot from this machine *if we
are talking about vm*.

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio
Am 20. September 2018 13:49:54 MESZ schrieb neeraj tiwari <
Post by neeraj tiwari
Hi Folk's,
I have been using spacewalk from past one year in my organization, but
now due to a human mistake someone removed following packages from the
spacewalk server:-
Sep 19 15:55:04 Erased: rhn-check
Sep 19 15:55:04 Erased: yum-rhn-plugin
Sep 19 15:55:04 Erased: rhn-setup
Sep 19 15:55:05 Erased: rhnsd
Sep 19 15:55:05 Erased: spacewalk-postgresql
Sep 19 15:55:05 Erased: spacewalk-common
Sep 19 15:55:05 Erased: osa-dispatcher-selinux
Sep 19 15:55:14 Erased: spacewalk-selinux
Sep 19 15:55:19 Erased: spacewalk-schema
Sep 19 15:55:19 Erased: spacewalk-setup
Sep 19 15:55:19 Erased: spacewalk-backend-tools
Sep 19 15:55:19 Erased: rhnpush
Sep 19 15:55:19 Erased: spacewalk-backend-app
Sep 19 15:55:19 Erased: spacewalk-backend-xmlrpc
Sep 19 15:55:19 Erased: spacewalk-certs-tools
Sep 19 15:55:19 Erased: rhn-client-tools
Sep 19 15:55:19 Erased: osa-dispatcher
Sep 19 15:55:19 Erased: spacewalk-backend-applet
Sep 19 15:55:19 Erased: spacewalk-backend-config-files
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-tool
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-common
Sep 19 15:55:19 Erased: spacewalk-backend-iss
Sep 19 15:55:19 Erased: spacewalk-backend-iss-export
Sep 19 15:55:19 Erased: spacewalk-backend-xml-export-libs
Sep 19 15:55:19 Erased: spacewalk-backend-package-push-server
Sep 19 15:55:19 Erased: spacewalk-backend-server
Sep 19 15:55:19 Erased: spacewalk-backend-sql
Sep 19 15:55:20 Erased: spacewalk-backend
Sep 19 15:55:20 Erased: rhnlib
Sep 19 15:55:20 Erased: rhn-org-httpd-ssl-key-pair-wa-sat-server
Sep 19 15:55:20 Erased: rhn-org-trusted-ssl-cert
Now I am unable to get the server certificate and httpd is not getting started:-
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty
[FAILED]
Well... It looks like your SSL cert has been deleted. You have to rebuild
your SSL certificate, if you do not have a backup and... Maybe also
redistribute you CA cert to your spacewalk clients.
Robert
Post by neeraj tiwari
Please let me know, is there any possibility to up this same setup or i
need to reinstall everything??
I don't have any backups.
Regards,Neeraj Tiwari
--
sent from my mobile device
_______________________________________________
Spacewalk-list mailing list
https://www.redhat.com/mailman/listinfo/spacewalk-list
neeraj tiwari
2018-09-21 09:04:46 UTC
Permalink
Thanks Waldrino and Robert, I have resolved the issue, providing the information below, how i resolved it, so that it can help someone if he/she faces the same:-
1. Checked rhn_installation logs, in which i found that while installation all the certificates and other required RPMs wer backed up in /root/ssl-build directory.2. I copied the server.crt and server.key files from /root/ssl-build to apache ssl directory.3. Restarted httpd service.
And now my spacewalk is running.

Thanks for your support.
Regards,
Neeraj Tiwari


On Friday, 21 September, 2018, 5:43:13 AM IST, Waldirio Manhães Pinheiro <***@gmail.com> wrote:

Hello
My advice to you should be.
1. Imagining you are doing the backup via db-control
if yes,
1. Reinstall the machine using the same hostname
2. Reinstall the SW3. Execute db-control to restore the DB backup
After that, all information will be there as before.
Another option could be restore any valid snapshot from this machine *if we are talking about vm*.
______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio
Post by neeraj tiwari
Hi Folk's,
I have been using spacewalk from past one year in my organization, but
now due to a human mistake someone removed following packages from the
spacewalk server:-
Sep 19 15:55:04 Erased: rhn-check
Sep 19 15:55:04 Erased: yum-rhn-plugin
Sep 19 15:55:04 Erased: rhn-setup
Sep 19 15:55:05 Erased: rhnsd
Sep 19 15:55:05 Erased: spacewalk-postgresql
Sep 19 15:55:05 Erased: spacewalk-common
Sep 19 15:55:05 Erased: osa-dispatcher-selinux
Sep 19 15:55:14 Erased: spacewalk-selinux
Sep 19 15:55:19 Erased: spacewalk-schema
Sep 19 15:55:19 Erased: spacewalk-setup
Sep 19 15:55:19 Erased: spacewalk-backend-tools
Sep 19 15:55:19 Erased: rhnpush
Sep 19 15:55:19 Erased: spacewalk-backend-app
Sep 19 15:55:19 Erased: spacewalk-backend-xmlrpc
Sep 19 15:55:19 Erased: spacewalk-certs-tools
Sep 19 15:55:19 Erased: rhn-client-tools
Sep 19 15:55:19 Erased: osa-dispatcher
Sep 19 15:55:19 Erased: spacewalk-backend-applet
Sep 19 15:55:19 Erased: spacewalk-backend-config-files
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-tool
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-common
Sep 19 15:55:19 Erased: spacewalk-backend-iss
Sep 19 15:55:19 Erased: spacewalk-backend-iss-export
Sep 19 15:55:19 Erased: spacewalk-backend-xml-export-libs
Sep 19 15:55:19 Erased: spacewalk-backend-package-push-server
Sep 19 15:55:19 Erased: spacewalk-backend-server
Sep 19 15:55:19 Erased: spacewalk-backend-sql
Sep 19 15:55:20 Erased: spacewalk-backend
Sep 19 15:55:20 Erased: rhnlib
Sep 19 15:55:20 Erased: rhn-org-httpd-ssl-key-pair-wa-sat-server
Sep 19 15:55:20 Erased: rhn-org-trusted-ssl-cert
Now I am unable to get the server certificate and httpd is not getting started:-
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty
                                                           [FAILED]
Well... It looks like your SSL cert has been deleted. You have to rebuild your SSL certificate, if you do not have a backup and... Maybe also redistribute you CA cert to your spacewalk clients.

Robert
Post by neeraj tiwari
Please let me know, is there any possibility to up this same setup or i
need to reinstall everything??
I don't have any backups.
Regards,Neeraj Tiwari
--
sent from my mobile device
Waldirio Manhães Pinheiro
2018-09-21 12:44:50 UTC
Permalink
Hello

Cool. Just have in mind, a bunch of packages was removed, then now looks
like everything is working but you can face some issues on the future
*weird issues*, remember, this could be the root cause.

The best approach, in this case, to guarantee everything is fine should be
or VM snapshot or SW backup using db-control.

Have a good one.
______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio
Post by neeraj tiwari
Thanks Waldrino and Robert, I have resolved the issue, providing the
information below, how i resolved it,
so that it can help someone if he/she faces the same:-
1. Checked rhn_installation logs, in which i found that while installation
all the certificates and other required RPMs wer backed up in
/root/ssl-build directory.
2. I copied the server.crt and server.key files from /root/ssl-build to
apache ssl directory.
3. Restarted httpd service.
And now my spacewalk is running.
Thanks for your support.
Regards,
Neeraj Tiwari
On Friday, 21 September, 2018, 5:43:13 AM IST, Waldirio Manhães Pinheiro <
Hello
My advice to you should be.
1. Imagining you are doing the backup via db-control
if yes,
1. Reinstall the machine using the same hostname
2. Reinstall the SW
3. Execute db-control to restore the DB backup
After that, all information will be there as before.
Another option could be restore any valid snapshot from this machine *if
we are talking about vm*.
______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio
Am 20. September 2018 13:49:54 MESZ schrieb neeraj tiwari <
Post by neeraj tiwari
Hi Folk's,
I have been using spacewalk from past one year in my organization, but
now due to a human mistake someone removed following packages from the
spacewalk server:-
Sep 19 15:55:04 Erased: rhn-check
Sep 19 15:55:04 Erased: yum-rhn-plugin
Sep 19 15:55:04 Erased: rhn-setup
Sep 19 15:55:05 Erased: rhnsd
Sep 19 15:55:05 Erased: spacewalk-postgresql
Sep 19 15:55:05 Erased: spacewalk-common
Sep 19 15:55:05 Erased: osa-dispatcher-selinux
Sep 19 15:55:14 Erased: spacewalk-selinux
Sep 19 15:55:19 Erased: spacewalk-schema
Sep 19 15:55:19 Erased: spacewalk-setup
Sep 19 15:55:19 Erased: spacewalk-backend-tools
Sep 19 15:55:19 Erased: rhnpush
Sep 19 15:55:19 Erased: spacewalk-backend-app
Sep 19 15:55:19 Erased: spacewalk-backend-xmlrpc
Sep 19 15:55:19 Erased: spacewalk-certs-tools
Sep 19 15:55:19 Erased: rhn-client-tools
Sep 19 15:55:19 Erased: osa-dispatcher
Sep 19 15:55:19 Erased: spacewalk-backend-applet
Sep 19 15:55:19 Erased: spacewalk-backend-config-files
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-tool
Sep 19 15:55:19 Erased: spacewalk-backend-config-files-common
Sep 19 15:55:19 Erased: spacewalk-backend-iss
Sep 19 15:55:19 Erased: spacewalk-backend-iss-export
Sep 19 15:55:19 Erased: spacewalk-backend-xml-export-libs
Sep 19 15:55:19 Erased: spacewalk-backend-package-push-server
Sep 19 15:55:19 Erased: spacewalk-backend-server
Sep 19 15:55:19 Erased: spacewalk-backend-sql
Sep 19 15:55:20 Erased: spacewalk-backend
Sep 19 15:55:20 Erased: rhnlib
Sep 19 15:55:20 Erased: rhn-org-httpd-ssl-key-pair-wa-sat-server
Sep 19 15:55:20 Erased: rhn-org-trusted-ssl-cert
Now I am unable to get the server certificate and httpd is not getting started:-
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty
[FAILED]
Well... It looks like your SSL cert has been deleted. You have to rebuild
your SSL certificate, if you do not have a backup and... Maybe also
redistribute you CA cert to your spacewalk clients.
Robert
Post by neeraj tiwari
Please let me know, is there any possibility to up this same setup or i
need to reinstall everything??
I don't have any backups.
Regards,Neeraj Tiwari
--
sent from my mobile device
_______________________________________________
Spacewalk-list mailing list
https://www.redhat.com/mailman/listinfo/spacewalk-list
Loading...