Open jaszxg opened 2 years ago
@jaszxg We think we've identified where this panic was coming from. I don't know if you still have the reproduction environment available, but can you confirm that the LOGDNA_INGESTION_KEY environment variable was set and the LOGDNA_HOST variable was either set or completely unset (not set to empty) when you ran the agent?
Yes they were set, in fact the workaround we used was to add the extensionless files to the inclusion rules, which worked
Sorry I did not update with latest findings, but the issue turn out to be that after Logdna-agent v3.1, a regression was introduced such that it no longer supports extensionless files. This was acknolwedged by the logdna team to be a bug.
Hi LogDNA team, im seeing logdna-agent crash with the following error on bootup:
[2021-09-10T17:00:36Z INFO fs::tail] initialized "regional-snapshot-86dd4dcf77-t6hjd" with offset 0 thread 'main' panicked at 'called
Option::unwrap()
on aNone
value', /opt/rust/cargo/git/checkouts/logdna-rust-da7bb1a0a2df3f84/d7adef1/src/request.rs:274:49I am not sure if this is related, but further investigating, i find that one of the log file that logdna-agent tries to tail has a log line but in the logdna-agent log it seems to think it is empty:
But looking at the size of the file
which indicates there is a single line
This is observed in logdna-agent v3.1 and later