question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash after running for several days

See original GitHub issue

vaping version: 1.4.2 pypy version: 7.3.5 (python 3.7.10) fping version: 3.10

vaping config:

probes:
  - name: latency
    type: std_fping
    output:
      - prometheus
    testing_hosts:
      hosts:
        - host: 1.1.1.1
          name: Cloudflare DNS
        # few internal hosts omitted
plugins:
  - name: std_fping
    type: fping
    count: 10
    interval: 3s
    output:
      - prometheus
  - name: prometheus
    type: prometheus
    port: 9090

After running fine for several days, crashes and outputs the following exception:

vaping.daemon 'NoneType' object has no attribute 'get' daemon.py:214
PidFile <pid.posix.PidFile object at 0x00007fe8501e2560> closing pidfile: /root/vaping.pid base.py:220
vaping.daemon stopping prometheus daemon.py:254
vaping.daemon stopping latency daemon.py:254
PidFile <pid.posix.PidFile object at 0x00007fe8501e2560> closing pidfile: /root/vaping.pid base.py:220

Has currently happened twice now, but since I normally redirect all the debug output (due to #88) I was not able to get the exception output for the prior crash. Restarted it again and will continue logging the debug output for now.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mattlancommented, Oct 20, 2021

Just as an update… so far so good after patching the prometheus plugin.

1reaction
simonlindbergcommented, Oct 13, 2021

No, the implementation emit in init.py also extracts each element of the "data" list just as prometheus.py. The problem here is that the third party plugin that you are using is reimplementing emit and is thereby totally ignoring my patch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I stop crashing after running? - Reddit
It's normal to feel tired after a good session imo, but just keep busy. Go for a bit of a walk to stretch...
Read more >
Runner's High to a Mood Crash: How to Smooth out the Fall
You need recovery to stabilize, so instead fill your days with things that make you feel good to help offset any lingering negative...
Read more >
Adrenal Fatigue Crash and Recovery Cycle
A crash can take one day to a few months, so instead of trying to will it to end, it's better to focus...
Read more >
7 Possible Causes of Crashing Fatigue (and How to Fix It)
Dehydration may be the leading cause of crashing fatigue. Many people suffer from dehydration because they only drink when they are thirsty.
Read more >
Does your body crash after running - MyFitnessPal Community
I think you need to add lean protein to your after run meal (no more than 30 minutes later). Try it for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found