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

Fouts, Christopher Christopher.Fouts at Teradata.com
Mon Jun 5 14:47:16 UTC 2017


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





More information about the Spacewalk-list mailing list