[Spacewalk-list] Can't start OSAD in Spacewalk client?

Dimitri Yioulos dyioulos at netatlantic.com
Mon Jun 5 17:13:12 UTC 2017


Again, I don't know if this will be of use to you, but I have osad successfully running on CentOS 6 and 7.  Here are the steps I took; maybe they're helpful (please don't be offended if you've already done all of this):

“rpm -ivh http://yum.spacewalkproject.org/2.6-client/RHEL/7/x86_64/spacewalk-client-repo-2.6-0.el7.noarch.rpm”
“rpm --import http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2015”
“yum -y install rhn-client-tools rhncfg-actions rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin osad”
“rpm -Uvh http://spacewalk.mycompany.com/pub/rhn-org-trusted-ssl-cert-1.0-2.noarch.rpm”
“/usr/sbin/rhnreg_ks --force --serverUrl=http://spacewalk.mycompany/XMLRPC --activationkey=1-mycompanyspacewalkkey”
“systemctl enable osad”
“systemctl start osad”

Dimitri


-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Fouts, Christopher
Sent: Monday, June 05, 2017 12:02 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Can't start OSAD in Spacewalk client?

I’ve submitted Bugzilla issue https://bugzilla.redhat.com/show_bug.cgi?id=1458851

Chris


On 6/5/17, 10:47 AM, "spacewalk-list-bounces at redhat.com on behalf of Fouts, Christopher" <spacewalk-list-bounces at redhat.com on behalf of Christopher.Fouts at Teradata.com> wrote:

    Yes I have osad and osa-common installed.
    
    # systemctl status osad -l
    ● osad.service - OSAD daemon
       Loaded: loaded (/usr/lib/systemd/system/osad.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Mon 2017-06-05 14:38:01 UTC; 1min 29s ago
      Process: 24468 ExecStart=/usr/sbin/osad --pid-file /var/run/osad.pid (code=exited, status=1/FAILURE)
    
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal systemd[1]: Starting OSAD daemon...
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal osad[24468]: Unable to load module osad
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal osad[24468]: No module named i18n
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal systemd[1]: osad.service: control process exited, code=exited status=1
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal systemd[1]: Failed to start OSAD daemon.
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal systemd[1]: Unit osad.service entered failed state.
    Jun 05 14:38:01 ip-10-22-2-55.ec2.internal systemd[1]: osad.service failed.
    Jun 05 14:39:27 ip-10-22-2-55.ec2.internal systemd[1]: Stopped OSAD daemon.
    
    
    # yum install rhnlib --nogpgcheck
    Loaded plugins: fastestmirror, rhnplugin
    This system is receiving updates from RHN Classic or Red Hat Satellite.
    Loading mirror speeds from cached hostfile
    Resolving Dependencies
    --> Running transaction check
    ---> Package rhnlib.noarch 0:2.5.65-2.el7 will be updated
    ---> Package rhnlib.noarch 0:2.6.3-1.el7 will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package     Arch        Version           Repository                      Size
    ================================================================================
    Updating:
     rhnlib      noarch      2.6.3-1.el7       spacewalk-repo-client-2.6       68 k
    
    Transaction Summary
    ================================================================================
    Upgrade  1 Package
    
    Total size: 68 k
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Updating   : rhnlib-2.6.3-1.el7.noarch                                    1/2 
      Cleanup    : rhnlib-2.5.65-2.el7.noarch                                   2/2 
      Verifying  : rhnlib-2.6.3-1.el7.noarch                                    1/2 
      Verifying  : rhnlib-2.5.65-2.el7.noarch                                   2/2 
    
    Updated:
      rhnlib.noarch 0:2.6.3-1.el7                                                   
    
    Complete!
    [root at ip-10-22-2-55 ~]# 
    
    # systemctl start osad
    Job for osad.service failed because the control process exited with error code. See "systemctl status osad.service" and "journalctl -xe" for details.
    
    
    # systemctl status osad -l
    ● osad.service - OSAD daemon
       Loaded: loaded (/usr/lib/systemd/system/osad.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Mon 2017-06-05 14:44:56 UTC; 7s ago
      Process: 24492 ExecStart=/usr/sbin/osad --pid-file /var/run/osad.pid (code=exited, status=1/FAILURE)
    
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal systemd[1]: Starting OSAD daemon...
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal osad[24492]: Unable to load module osad
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal osad[24492]: cannot import name idn_ascii_to_pune
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal systemd[1]: osad.service: control process exited, code=exited status=1
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal systemd[1]: Failed to start OSAD daemon.
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal systemd[1]: Unit osad.service entered failed state.
    Jun 05 14:44:56 ip-10-22-2-55.ec2.internal systemd[1]: osad.service failed.
    # yum repolist
    Plugin "rhnplugin" can't be imported
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    repolist: 0
    
    
    On 6/2/17, 5:37 AM, "spacewalk-list-bounces at redhat.com on behalf of Michael Mraka" <spacewalk-list-bounces at redhat.com on behalf of michael.mraka at redhat.com> wrote:
    
        Fouts, Christopher:
        > BTW, after I upgraded rhnlib, I can’t see my Spacewalk repos anymore, that is, when I do a yum repolist, I see 0 mirrors.
        
        What's the exact error (in terminal or in /var/log/up2date)?
        
        > Chris
        > 
        > I have Spacewalk v2.6 running on my server.
        > 
        > I was able to register a client to the server, and have osa-dispatcher running as well. Now am trying to run osad on the client. I installed the osad package and tried to start it and got…
        > 
        > Jun  1 20:12:04 ip-172-31-18-165 systemd: Starting OSAD daemon...
        > Jun  1 20:12:04 ip-172-31-18-165 osad: Unable to load module osad
        > Jun  1 20:12:04 ip-172-31-18-165 osad: No module named i18n
        > 
        > So I updated the rhnlib package (per google search), and now I get this…
        > 
        > Jun  1 20:27:51 ip-172-31-18-165 systemd: Starting OSAD daemon...
        > Jun  1 20:27:51 ip-172-31-18-165 osad: Unable to load module osad
        > Jun  1 20:27:51 ip-172-31-18-165 osad: cannot import name idn_ascii_to_pune
        
        Do you have osad and osa-common packages from spacewalk-client repo or
        from Fedora / CentOS / RHEL?
        
        > I can’t find anything in the forum about it.
        > 
        > Chris
        
        Regards,
        
        --
        Michael Mráka
        System Management Engineering, Red Hat
        
        _______________________________________________
        Spacewalk-list mailing list
        Spacewalk-list at redhat.com
        https://www.redhat.com/mailman/listinfo/spacewalk-list
    
    
    _______________________________________________
    Spacewalk-list mailing list
    Spacewalk-list at redhat.com
    https://www.redhat.com/mailman/listinfo/spacewalk-list


_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list