Comments (4)
The problem appears to be that the problematic file isn't removed from the mgr.importJobs
list on failure.
Here it returns that 0
files were processed when one of the pcaps in the batch fail to parse.
pkappa2/internal/index/builder/builder.go
Lines 103 to 106 in 73e39cd
The caller only logs the error and continues anyway
pkappa2/internal/index/manager/manager.go
Lines 362 to 365 in 73e39cd
And eventually tries to remove processed files from the job queue, but since processedFiles
is 0
this will go on forever.
pkappa2/internal/index/manager/manager.go
Lines 404 to 410 in 73e39cd
The error handling of the Builder.FromPcap
function seems bogous. Are there any errors where it's useful to retry? Otherwise I'd just ignore the failing files and continue instead of return. All the other early returns need to be looked at as well.
from pkappa2.
pkappa2 refuses to start after it received an invalid pcap once as well. So the problematic pcaps need to be ignored during startup as well. I don't know if we want to delete them upon receival, but maybe moving into an "invalid" folder for later analysis might be good?
pkappa2/internal/index/builder/builder.go
Lines 53 to 56 in 73e39cd
from pkappa2.
i have used some of your patches but left out some that I don't think are needed to fix this and modified some others to have as small an impact as possible.
could you confirm that this is fixed?
from pkappa2.
It appears to be solved now. Thank you!
from pkappa2.
Related Issues (20)
- Handle big request more gracefully HOT 4
- filtering for streams not containing a particular string is broken
- Generated mark tags are not shown in stream detail view
- Converter output not updated after streams receive new packets
- Add checkbox to limit search to last hour quickly HOT 1
- Option to download pcap of stream from search result list
- Search history reverse search
- Add button to download raw data of a stream
- Render http response in iframe with correct content type
- Select stream data with ctrl+a instead of the whole page
- Highlight query matches in stream data
- Support PCAP groups during import
- Improve and document graph UI
- Remember selected converter for a stream
- Add tests
- Allow to abort running queries
- Visualize time between packets in stream data
- Regression: Search selection offsets for every "\r" in the stream
- Cannot remove marks from multiple streams in result view
- Serversent Event support
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 pkappa2.