Giter Site home page Giter Site logo

Comments (8)

skx avatar skx commented on September 28, 2024

Just to recap this is the process-flow:

  • Puppet runs on a node.
  • The results of the run are sent to the puppet-master.
  • The puppet-master stores the report locally.
    • And sends a copy of that report to the puppet-summary server.
  • The puppet-summary server writes the report to its local SQLite database.
    • From which all the web-pages are generated.

Your problem? You say node-count doesn't change. Does the host appear at all?

If data doesn't make it to the puppet-summary database then either:

  • The puppetmaster didn't send it.
  • Or the puppet-master sent it, but my server rejected it (failed to parse, out of memory, permission denied writing to the sqlite database, etc).

I'd suggest looking at the logs to try to pin down which part fails.

Does that help at all? Do existing nodes continue to update when they run? (i.e. is everything broken. Or is it just new nodes which are failing.)

from puppet-summary.

tnail avatar tnail commented on September 28, 2024

from puppet-summary.

skx avatar skx commented on September 28, 2024

OK I think that your problem is that when you start it manually you end up with ps.db in the current working directory, and when you start via systemd you're writing to a different location.

If that is the case you can solve the problem either by adding the -db-path argument to serve (as per puppet-summery help serve, or by explicitly setting the current directory.

My systemd unit looks like this, and works fine - note that I set a user which you probably don't have (you seem to be using puppet) as well as the current directory:

  root@master ~ # cat /lib/systemd/system/puppet-summary.service 
  [Unit]
  Description=puppet-summary service

  [Service]
  WorkingDirectory=/srv/puppet-summary
  User=p-s
  ExecStart=/srv/puppet-summary/puppet-summary serve
  Restart=always
  StartLimitInterval=2
  StartLimitBurst=20
  PrivateTmp=yes
  RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX

  [Install]
  WantedBy=multi-user.target

Does that help things? If not I'd probably run find / -name ps.db -print to see if I'm write about different locations.

from puppet-summary.

tnail avatar tnail commented on September 28, 2024

from puppet-summary.

skx avatar skx commented on September 28, 2024

Okay, yes, my systemd unit is using puppet as it’s user, and I cottoned onto the –db-file argument at startup, but I think the WorkingDirectory parameter is what may be missing.

If you're using a full-path then the working directory shouldn't matter. It's just that if you don't use an argument it assumes ./ps.db so the cwd/pwd matters.

Any concerns about using the “ExecStop” command listed above?

Not that I can think of, no. I found stop/restart works fine without anything explicit being written for the stop-command, but having it shouldn't matter.

from puppet-summary.

tnail avatar tnail commented on September 28, 2024

from puppet-summary.

tnail avatar tnail commented on September 28, 2024

Also, sorry about the excess verbiage. Hope you don't mind that I edited my responses to get rid of the email auto-quoting and generally clean up the thread.

from puppet-summary.

skx avatar skx commented on September 28, 2024

No worries, and I'm glad you like it. It scales pretty well, but it does do less than the puppetdb so I guess that the better performance is somewhat to be expected.

Anyway I'll close this now if you're happy that things are working correctly, and as expected.

from puppet-summary.

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.