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

hom7-prom-all problem writing to DB #60

Closed
marcozink opened this issue Jan 29, 2020 · 4 comments
Closed

hom7-prom-all problem writing to DB #60

marcozink opened this issue Jan 29, 2020 · 4 comments
Assignees

Comments

@marcozink
Copy link

marcozink commented Jan 29, 2020

I deleted my old 7 setup and started fresh with 7.7, found that no info was being showed in Prometheus and Homer.

Removing the values from the variables according to #50 did start to fill up Prometheus, thanks for that.

There seems to be a problem writing to the database:

db                | 2020-01-29 15:44:30.337 UTC [51] ERROR:  invalid input syntax for type json
db                | 2020-01-29 15:44:30.337 UTC [51] DETAIL:  Token "NOTIFY" is invalid.
db                | 2020-01-29 15:44:30.337 UTC [51] CONTEXT:  JSON data, line 1: ...ion_id":"o: <sip:172.18.0.27:5060>;method="NOTIFY...
db                | 	COPY hep_proto_5_default, line 77, column protocol_header: "{"protocolFamily":2,"protocol":17,"srcIp":"172.18.0.27","dstIp":"172.18.135.98","srcPort":60315,"dst..."
db                | 2020-01-29 15:44:30.337 UTC [51] STATEMENT:  COPY hep_proto_5_default(sid,create_date,protocol_header,data_header,raw) FROM STDIN

I pulled the latests version and also deleted everything and cloned from scratch, It seems the database does get created #58, but tables aren't receiving data from the HEP packets being received.

Thanks for the hard work and help.

@adubovikov
Copy link
Member

Looks like your heplify try to write NOTIFY message to HEP 5 ? (rtcp) IMHO this is not correct way, because for HEP 5 we expect JSON body

@marcozink
Copy link
Author

Thanks @adubovikov, you are right, so this is a different problem, could it be a bug with the NOTIFY message?

Any idea on how to debug information not showing in homer? I tried connecting to postgre buy was unable to.

@marcozink
Copy link
Author

Closing since a few hours later information started showing in HomerUI and in DB. Didn't really do anything,

@lmangani
Copy link
Member

Sounds like a timezone issue? Glad you have data, let us know if you run into any issues and make sure you upgrade the homer-app container often as its updated daily.

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