Giter VIP home page Giter VIP logo

Comments (5)

jspaleta avatar jspaleta commented on August 22, 2024

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.

portertech avatar portertech commented on August 22, 2024

Sounds like #265 did not solve this issue.

@amdprophet @jspaleta can you please add your comments here?

from sensu-omnibus.

jspaleta avatar jspaleta commented on August 22, 2024

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.

amdprophet avatar amdprophet commented on August 22, 2024

@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.

jspaleta avatar jspaleta commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.