Another thing, postgres is not bundled with spacewalk-service. So, it's not restart when I run "spacewalk-service restart" Should I stop the postgres manually before I run "spacewalk-hostname-rename"? And then restart it before "Starting spacewalk services...?
Francis From: Yakin, Francis Sent: Tuesday, July 17, 2018 2:14 PM To: spacewalk-list@redhat.com Subject: RE: spacewalk-hostname-rename failed Postgres I did that, I use spacewalk-service restart before I ran "spacewalk-hostname-rename" script [root@ala-spacewalk-prod ~]# spacewalk-service restart Shutting down spacewalk services... Redirecting to /bin/systemctl stop taskomatic.service Stopping cobblerd (via systemctl): [ OK ] Redirecting to /bin/systemctl stop rhn-search.service Redirecting to /bin/systemctl stop osa-dispatcher.service Redirecting to /bin/systemctl stop httpd.service Redirecting to /bin/systemctl stop tomcat.service Redirecting to /bin/systemctl stop jabberd.service Done. Starting spacewalk services... Redirecting to /bin/systemctl start jabberd.service Redirecting to /bin/systemctl start tomcat.service Waiting for tomcat to be ready ... Redirecting to /bin/systemctl start httpd.service Redirecting to /bin/systemctl start osa-dispatcher.service Redirecting to /bin/systemctl start rhn-search.service Starting cobblerd (via systemctl): [ OK ] Redirecting to /bin/systemctl start taskomatic.service Done. [root@ala-spacewalk-prod ~]# spacewalk-hostname-rename 147.11.147.159 Validating IP ... OK ============================================= hostname: ala-spacewalk-prod.wrs.com ip: 147.11.147.159 ============================================= Stopping spacewalk services ... OK Testing DB connection ... FAILED Your database isn't running. Fix the problem and run /bin/spacewalk-hostname-rename again Francis From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Wilkinson, Matthew Sent: Tuesday, July 17, 2018 1:55 PM To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] spacewalk-hostname-rename failed which DB are you using postgres or oracle? If you used the spacewalk-service command to stop with the bundled DB, it will stop postgres and you'll have to start it up before you run the command. --Matthew Wilkinson From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Yakin, Francis Sent: Tuesday, July 17, 2018 15:39 To: spacewalk-list@redhat.com Subject: [Spacewalk-list] spacewalk-hostname-rename failed [This is an external email. Be cautious with links, attachments and responses.] ________________________________ Hi All, I encountered this issue when I try to run "spacewalk-hostname-rename" script [root@ala-spacewalk-prod init.d]# /bin/spacewalk-hostname-rename 147.11.147.159 Validating IP ... OK ============================================= hostname: ala-spacewalk-prod.wrs.com ip: 147.11.147.159 ============================================= Stopping spacewalk services ... OK Testing DB connection ... FAILED Your database isn't running. Fix the problem and run /bin/spacewalk-hostname-rename again Francis Yakin | IT System Admin | direct: 510-749-2027 500 Wind River Way, Alameda, CA 94501 [cid:image001.png@01D12D0C.E17713F0]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.windriver.com_&d=DwMFAg&c=GUDVeAVg1gjs_GJkmwL1m3gEzDND7NeJG5BIAX_2yRE&r=zxSMv3Yyn0u8GiLjBm805qsHQ-PQnlWklaJFaNwJsRdou0Rx32Ld6bt57-Tq1kdA&m=5gxv-oyYguavxooD6KV1W941gpXl9o3gebqrkNukZrw&s=vJ6SRJMhwHwyi1fM62NUzpQqpcyeyLzJbAF0xYoCFsk&e=> AN INTEL COMPANY
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list