Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logdna agent 2.0 breaks for on-prem installs #206

Closed
darakian opened this issue Oct 9, 2020 · 2 comments · Fixed by #208
Closed

Logdna agent 2.0 breaks for on-prem installs #206

darakian opened this issue Oct 9, 2020 · 2 comments · Fixed by #208
Assignees

Comments

@darakian
Copy link

darakian commented Oct 9, 2020

Hey all,

Just got through an incident where logs were no longer arriving for an "on-prem " install of your service. The issue is something to do with the 2.0 release which we install through your repos. We were seeing logs of the sort

[error] { Error: An error occured while sending logs to the cloud.
    at process.nextTick (/usr/bin/node_modules/@logdna/logger/lib/logger.js:719:25)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  meta:
   { actual: 'Request failed with status code 403',
     code: 403,
     firstLine: 'Oct  9 17:25:47 ip-172-24-4-240 polkitd[1056]: Registered Authentication Agent for unix-process:27029:844371184 (system bus name :1.14602 [/usr/bin/pkttyagent --notify-fd 6 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)',
     lastLine: '2020-10-09 17:25:47 0000 [info] got SIGTERM signal, shutting down...',
     retrying: false,
     attempts: 1 } }

with the 2.0 agent. After downgrading back to 1.6.5 we see

2020-10-09 17:43:46 0000 [info] logdna-agent/1.6.5 started on some_host (some_ip)
2020-10-09 17:43:46 0000 [info] streaming /var/log/: 49 file(s)
2020-10-09 17:43:49 0000 [info] got SIGTERM signal, shutting down...
2020-10-09 17:43:50 0000 [info] logdna-agent/1.6.5 started on some_host (some_ip)
2020-10-09 17:43:50 0000 [info] streaming /var/log/: 49 file(s)
2020-10-09 17:43:56 0000 [info] got SIGTERM signal, shutting down...
2020-10-09 17:43:56 0000 [info] logdna-agent/1.6.5 started on some_host (some_ip)
2020-10-09 17:43:56 0000 [info] streaming /var/log/: 49 file(s)

This seems to be the case across all rhel/debian based hosts. Our logs are sent to a domain of the form a.b.c.d which differs from your regular logs.logdna.com path. Perhaps that's the issue.

@darakian
Copy link
Author

darakian commented Oct 9, 2020

Perhaps the removal of the LOGDNA_LOGHOST variable here

46875a1

Just a note, it would be really nice to see the host being used in the event of failure in the agent logs.

@darinspivey
Copy link
Contributor

Thanks for the suggestion, @darakian. We will be fixing the environment variables to be the way they were before. Your suggestion to have the host as part of the error is a good one! That change would go in @logdna/logger package. Feel free to open an issue in that repository and we'll get it in shortly. That being said, the logger only has a full URL (not the individual parts of host, endpoint, etc), however we can provide that URL in its entirety as part of those errors.

darinspivey added a commit that referenced this issue Oct 15, 2020
Previously, we attempted to move to a single URL
for the logger client and remove the many env vars
that previously "built" the URL.  However, doing a `major`
release for this wasn't sufficient enough to not break
customers, so we are putting them back until such time
we can ensure a safer upgrade path for such breaking
changes.

Semver: patch
Fixes: #206
Ref: LOG-7618
darinspivey added a commit that referenced this issue Oct 16, 2020
Previously, we attempted to move to a single URL
for the logger client and remove the many env vars
that previously "built" the URL.  However, doing a `major`
release for this wasn't sufficient enough to not break
customers, so we are putting them back until such time
we can ensure a safer upgrade path for such breaking
changes.

Semver: patch
Fixes: #206
Ref: LOG-7618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants