Comments (5)
hey!
So we think we tracked this down to a change made in #240 moving the service files.
I think what is happening is when the old versions are uninstalled.. the files for /etc/ systemd are removed after the call to systemctl daemon-reload.
I think the fix here is to make sure systemctl daemon-reload is also called as part of postun scriptlet as the postun for the old package is called after the new package is installed on the system.
from sensu-omnibus.
Sounds like #265 did not solve this issue.
@amdprophet @jspaleta can you please add your comments here?
from sensu-omnibus.
tl; dr;
my proposed fix in postuninstall of the new package was not sufficient to solve the problem, due to an order of operations of how rpm packaging scripts are run.
Next thing to try is putting systemctl daemon-reload logic in a posttrans scriptlet to make sure it gets run after the old package is uninstalled.
Workaround is to manually run systemctl daemon-reload.
from sensu-omnibus.
@jspaleta can you provide guidance on how to reproduce the issue? I can work on this issue so long as I can properly test it.
from sensu-omnibus.
Testable situation:
-
install sensu-1.1.1-1.el7.x86_64.rpm
-
make sure sensu-server process is running correctly:
systemctl status sensu-server
-
confirm service files are installed in /etc/systemd/system/:
rpm -ql sensu |grep service
-
Now update to latest sensu 1.4.x package
-
confirm service files are now installed in /lib/systemd/system
-
check service status with: systemctl status sensu-server:
systemctl status sensu-server
-
get error message:
Failed to get properties: Access denied
-
Recover working systemd with:
sudo systemctl daemon-reload
from sensu-omnibus.
Related Issues (20)
- Ruby 2.4 issue #13794 affects sensu-client on AIX HOT 4
- [REGRESSION] EMBEDDED_RUBY default changed? HOT 4
- Broken SSL certificate handling in Linux packages HOT 2
- Copy sensu-translate to omnibus bin dir HOT 1
- Build packages for Ubuntu 18.04
- Add builds for Ubuntu 18.04 HOT 2
- FreeBSD 11 builds are failing in CI HOT 2
- RPM packages should include changelog HOT 2
- postinstall scriptlet breaks LDAP sensu user on Linux
- Mac builds are failing HOT 2
- Solaris 10 packages do not install service manifest in /lib/svc/manifest/site HOT 1
- Solaris 10 packages fail to install cleanly due to missing directories HOT 1
- Packages for Ubuntu 16.04 and 18.04 collide HOT 1
- Update sensu-translator gem to 1.0.0 (for Sensu Go GA)
- Sensu Core 1.x packages conflict with Sensu Go packages
- sc command fails on Windows 2003 HOT 1
- rubygems-2.7.9 breaks --source option HOT 2
- Ruby version in README too low? HOT 1
- Upgraded embedded Ruby version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensu-omnibus.