Comments (8)
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.
from puppet-summary.
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.
from puppet-summary.
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.
from puppet-summary.
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.
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)
- Feature Request, tab for environments HOT 1
- Pruning/auto-pruning not working due to locked database HOT 2
- Performance issues in initial display HOT 1
- Add static-check analysis to the test-script,. HOT 1
- Add screenshots, remove sample link.
- Do not depend on external sites HOT 3
- Feature Request: Certificate request manual approvals
- stale environments in drop down for environments HOT 18
- max limit on node report display is 50? HOT 3
- static font files are 404 HOT 1
- add a donation link to readme HOT 2
- search results are not sortable HOT 3
- Add option to delete database record if status is unchanged and yaml_file is pruned HOT 1
- puppet-summary fails on CentOS 7 due to too old glibc HOT 1
- debian 11 - go install - nothing happens HOT 1
- Improve build instructions HOT 1
- How to listen on any IP address HOT 3
- systemd service file HOT 4
- Improve visibility of bars 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 puppet-summary.