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

Unable to run the analyzer (unforunatelly) - exception is raised #3

Open
brutany opened this issue May 23, 2022 · 8 comments
Open

Unable to run the analyzer (unforunatelly) - exception is raised #3

brutany opened this issue May 23, 2022 · 8 comments

Comments

@brutany
Copy link

brutany commented May 23, 2022

HI

I am so excited to have something like this awesomeanalyzer (wireshark sucks!!!)
BUT unfortunately I am not able to run it.
IT throws exception
Can you please please please try to help?

Thank you very much
p.s my OS verion:
[Linux]osboxes 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

networkanalyzer.txt

@SadeghKrmi
Copy link
Owner

Hey @brutany, Can you share more information? At which level are you receiving this error? did you change some configurations?

@brutany
Copy link
Author

brutany commented May 25, 2022 via email

@brutany
Copy link
Author

brutany commented May 26, 2022 via email

@SadeghKrmi
Copy link
Owner

@brutany
Are you running the program with root user privilege?

@brutany
Copy link
Author

brutany commented May 26, 2022 via email

@brutany
Copy link
Author

brutany commented May 26, 2022 via email

@SadeghKrmi
Copy link
Owner

Please contact me at [email protected]

@usermx01
Copy link

usermx01 commented Aug 31, 2023

I see a similar problem in my tests. Im using python3.9 since 3.8 wont let me get to the actual website when running. I see with my configuration the trace is being analyzed based on the console logs, but the sample trace fails while reading the payload at some point with the error:
[30/Aug/2023 22:40:13] "GET /analyzer/ HTTP/1.1" 302 0 [30/Aug/2023 22:40:13] "GET /login/?redirect_to=/analyzer/ HTTP/1.1" 200 2914 [30/Aug/2023 22:40:13] "GET /static/reginstration/signin.css HTTP/1.1" 200 767 [30/Aug/2023 22:40:13] "GET /static/reginstration/signinlogo.png HTTP/1.1" 200 144077 [30/Aug/2023 22:40:13] "GET /static/reginstration/favicon.png HTTP/1.1" 200 2076 [30/Aug/2023 22:40:19] "POST /login/ HTTP/1.1" 302 0 [30/Aug/2023 22:40:19] "GET / HTTP/1.1" 200 3962 [30/Aug/2023 22:40:20] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 200 160392 [30/Aug/2023 22:40:20] "GET /static/stickyNote/dist/jquery.postitall.css HTTP/1.1" 200 113212 [30/Aug/2023 22:40:20] "GET /static/stickyNote/dist/jquery-ui.css HTTP/1.1" 200 37326 [30/Aug/2023 22:40:20] "GET /static/fontawesome/css/all.css HTTP/1.1" 200 73625 [30/Aug/2023 22:40:20] "GET /static/jQueryConfirm/jquery-confirm.min.css HTTP/1.1" 200 22538 [30/Aug/2023 22:40:20] "GET /static/snackbar/toast.min.css HTTP/1.1" 200 912 [30/Aug/2023 22:40:20] "GET /static/snackbar/toast.min.js HTTP/1.1" 200 5693 [30/Aug/2023 22:40:20] "GET /static/jQueryConfirm/jquery-confirm.min.js HTTP/1.1" 200 27896 [30/Aug/2023 22:40:20] "GET /static/stickyNote/dist/jquery.postitall.js HTTP/1.1" 200 185791 [30/Aug/2023 22:40:20] "GET /static/stickyNote/dist/jquery-ui.js HTTP/1.1" 200 520714 [30/Aug/2023 22:40:20] "GET /static/images/trace_figure.png HTTP/1.1" 200 307545 [30/Aug/2023 22:40:21] "GET /analyzer/ HTTP/1.1" 200 120376 [30/Aug/2023 22:40:22] "GET /static/sidebar/sidebar.css HTTP/1.1" 200 2151 [30/Aug/2023 22:40:22] "GET /static/datatables/css/select.dataTables.css HTTP/1.1" 200 4370 [30/Aug/2023 22:40:22] "GET /static/datatables/css/jquery.dataTables.min.css HTTP/1.1" 200 14110 [30/Aug/2023 22:40:22] "GET /static/jsonformatter/source/jsonFormatter.min.css HTTP/1.1" 200 1678 [30/Aug/2023 22:40:22] "GET /static/docApp/move-to-top.css HTTP/1.1" 200 748 [30/Aug/2023 22:40:22] "GET /static/datatables/css/buttons.dataTables.css HTTP/1.1" 200 11879 [30/Aug/2023 22:40:22] "GET /static/docApp/move-to-top.js HTTP/1.1" 200 348 [30/Aug/2023 22:40:22] "GET /static/datatables/js/dataTables.altEditor.free.js HTTP/1.1" 200 51834 [30/Aug/2023 22:40:22] "GET /static/datatables/js/dataTables.buttons.js HTTP/1.1" 200 51437 [30/Aug/2023 22:40:22] "GET /static/datatables/js/dataTables.responsive.js HTTP/1.1" 200 40542 [30/Aug/2023 22:40:22] "GET /static/sidebar/sidebar.js HTTP/1.1" 200 348 [30/Aug/2023 22:40:22] "GET /static/datatables/js/jquery.dataTables.min.js HTTP/1.1" 200 86550 [30/Aug/2023 22:40:22] "GET /static/jsonformatter/source/jsonFormatter.min.js HTTP/1.1" 200 3298 [30/Aug/2023 22:40:22] "GET /static/datatables/js/dataTables.select.js HTTP/1.1" 200 32597 [30/Aug/2023 22:40:22] "GET /static/fontawesome/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 80300 [30/Aug/2023 22:40:22] "POST /analyzer/ajax/ngapUpdater HTTP/1.1" 200 994 [30/Aug/2023 22:40:22] "POST /analyzer/ajax/pfcpUpdater HTTP/1.1" 200 1048 processing file: test_TestRegistration-20230830224028.pcap ------------- PFCP: packet Number 253, MessageType: 5, MessageName: Association Setup Request ------------- Is there any filter on parameters? False Is it requred? True ie_type is: 60 and ie_name is: Node ID ie_type is: 96 and ie_name is: Recovery Time Stamp ie_type is: 89 and ie_name is: CP Function Features ------------- PFCP: packet Number 255, MessageType: 6, MessageName: Association Setup Response ------------- Is there any filter on parameters? False Is it requred? True ie_type is: 60 and ie_name is: Node ID ie_type is: 19 and ie_name is: Cause ie_type is: 96 and ie_name is: Recovery Time Stamp ie_type is: 116 and ie_name is: User Plane IP Resource Information ------------- Http2: packet Number 420, MessageType: header ------------- ------------- Http2: packet Number 421, MessageType: payload ------------- Traceback (most recent call last): File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/main.py", line 145, in <module> seq_diagram = fiveG.create_puml_seq_diagram(packets, protocols, traceName) File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/pcap.py", line 174, in create_puml_seq_diagram seqevents = self.packets_to_seqevents(packets, protocols, traceName) File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/pcap.py", line 167, in packets_to_seqevents for seqevent in self.packet_to_seqevents(packet, traceName): File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/pcap.py", line 151, in packet_to_seqevents self.get_message_lines(packet, traceName), File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/pcap.py", line 136, in get_message_lines message_lines = http2.http2Anlayzer(packet, traceName) File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/http2.py", line 221, in http2Anlayzer dataInSeq = jsonOrganizer(jsonData, streamId, streamType) File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/http2.py", line 34, in jsonOrganizer http2_payload = list(JsonWrapperData(jsonData)) File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/http2.py", line 61, in JsonWrapperData for x in JsonWrapperData(members): File "/5G-Trace-Analyzer/fiveGseqAnalyzer/analyzerApp/libs/http2.py", line 90, in JsonWrapperData k = item.get('json.key') AttributeError: 'str' object has no attribute 'get' Bad Request: /analyzer/ajax/AnalyzeTrace [30/Aug/2023 22:40:33] "POST /analyzer/ajax/AnalyzeTrace HTTP/1.1" 400 0

Dockerfile.txt

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

No branches or pull requests

3 participants