Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yum install - Unknown operation 'try-reload-or-restart' #31

Closed
tferic opened this issue Jul 27, 2020 · 3 comments
Closed

yum install - Unknown operation 'try-reload-or-restart' #31

tferic opened this issue Jul 27, 2020 · 3 comments

Comments

@tferic
Copy link

tferic commented Jul 27, 2020

Hi

When I try to install my compiled haproxy 2.2.1 rpm packet on a CentOS 7 system, the packet is installing, but I am getting a warning in the post installation hook.

These are the warnings:

Unknown operation 'try-reload-or-restart'.
warning: %post(haproxy-2.2.1-1.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package haproxy-2.2.1-1.el7.x86_64

Am I doing something wrong?

# yum install haproxy-2.2.1-1.el7.x86_64.rpm
Loaded plugins: auto-update-debuginfo, fastestmirror, rhnplugin, tmprepo
This system is receiving updates from RHN Classic or Red Hat Satellite.
Examining haproxy-2.2.1-1.el7.x86_64.rpm: haproxy-2.2.1-1.el7.x86_64
Marking haproxy-2.2.1-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package haproxy.x86_64 0:2.2.1-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================
 Package                                   Arch                                     Version                                          Repository                                                     Size
=========================================================================================================================================================================================================
Installing:
 haproxy                                   x86_64                                   2.2.1-1.el7                                      /haproxy-2.2.1-1.el7.x86_64                                   4.9 M

Transaction Summary
=========================================================================================================================================================================================================
Install  1 Package

Total size: 4.9 M
Installed size: 4.9 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : haproxy-2.2.1-1.el7.x86_64                                                                                                                                                            1/1
Unknown operation 'try-reload-or-restart'.
warning: %post(haproxy-2.2.1-1.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package haproxy-2.2.1-1.el7.x86_64
  Verifying  : haproxy-2.2.1-1.el7.x86_64                                                                                                                                                            1/1

Installed:
  haproxy.x86_64 0:2.2.1-1.el7

Complete!

CentOS 7 is latest, and fully patched:

# cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)
@DBezemer
Copy link
Owner

DBezemer commented Aug 4, 2020

Looking into this one, it's a bit annoying because the function name changed and different CentOS versions have different iterations of the command. (reload-or-try-restart versus try-reload-or-restart).

@tferic
Copy link
Author

tferic commented Sep 1, 2020

I can confirm it's fixed in the latest version. Many thanks!

@DBezemer
Copy link
Owner

DBezemer commented Sep 1, 2020

@tferic thanks for confirming, I'll release a new RPM soon (also for 2.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants