sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
207 stars 85 forks source link

Homer7 (7.7.031 prod) cannot export PCAP #316

Closed systemcrash closed 4 years ago

systemcrash commented 4 years ago

Current pcap sizes are 24 bytes. i.e. effectively empty.

Any suggestions?

Currently viewing any flow, shows similar to this in the logs:

homer-webapp      | {"level":"error","msg":"GetTransactionData: We have got error:  pq: relation \"hep_proto_100_call\" does not exist","time":"2020-03-10T15:23:32Z"}
homer-webapp      | {"level":"error","msg":"GetTransactionData: We have got error:  pq: relation \"hep_proto_5_call\" does not exist","time":"2020-03-10T15:23:32Z"}
homer-webapp      | {"level":"error","msg":"GetTransactionData: We have got error:  pq: relation \"hep_proto_100_call\" does not exist","time":"2020-03-10T15:23:53Z"}
homer-webapp      | {"level":"error","msg":"GetTransactionData: We have got error:  pq: relation \"hep_proto_5_call\" does not exist","time":"2020-03-10T15:23:53Z"}
systemcrash commented 4 years ago

Showing export TXT also results in 0 byte files.

lmangani commented 4 years ago

Please check what the browser console is posting in the query to the API please

lmangani commented 4 years ago

@systemcrash i just tested on the latest build and I can export a PCAP just fine. Are you exporting a Call related session or some other transaction type perhaps?

systemcrash commented 4 years ago

Call (session).

lmangani commented 4 years ago

Cannot reproduce it. Are you using a container or system installed version of homer-app?

systemcrash commented 4 years ago

First displaying the flow, I get:

ERROR TypeError: "Argument 1 of Selection.setBaseAndExtent is not an object."

and then

{ "data": "", "message": "no agent subscription object found for type [cdr]" }

Everything is docker.

systemcrash commented 4 years ago

Export flow as PNG is OK, however.

adubovikov commented 4 years ago

need to know the version of homer-app and UI

adubovikov commented 4 years ago

IMHO you have to allow popup in your browser. This can be an issue

systemcrash commented 4 years ago

IMHO you have to allow popup in your browser. This can be an issue

Thanks - definitely not the issue here. Disabled all ad-blockers.

homer-webapp | Version: homer-app 1.1.35

UI: 7.7.031 - same as subject

adubovikov commented 4 years ago

and you have all messages in the popup ?

systemcrash commented 4 years ago

Yes - poking into individual messages shows each content correctly

systemcrash commented 4 years ago

The "Share link" opens a new window, which shows zero results...

adubovikov commented 4 years ago

@systemcrash can you provide an access to check ?

systemcrash commented 4 years ago

From what subnet?

adubovikov commented 4 years ago

212.60.251.0/24

systemcrash commented 4 years ago

http://193.180.23.2

adubovikov commented 4 years ago

works without any issues :-)

adubovikov commented 4 years ago

Screenshot from 2020-03-10 19-10-15

adubovikov commented 4 years ago

and share link works as well :-) Screenshot from 2020-03-10 19-11-05

adubovikov commented 4 years ago

maybe you have some cache or proxy or something else... ? Can you go to F12 -> Application and clean up the local storage ?

systemcrash commented 4 years ago

Bizarre. When accessed via IP or a different domain name, things work.....

adubovikov commented 4 years ago

:-) check your network topology. IMHO the ticket can be closed

systemcrash commented 4 years ago

Yeah, I think for now..... gremlins :(