Code Monkey home page Code Monkey logo

homer7-docker's Introduction

HOMER 7 Docker Containers

http://sipcapture.org

This repository provides ready-to-run HOMER recipes using Docker and docker-compose

Running Containers

To start your own bundle or choice, just run the following command inside the selected directory:

$ docker-compose up -d

Data Mapping

The docker-compose scheme will map container data into local directory volumes. Check and extend the provided examples accordingly.


Made by Humans

This Open-Source project is made possible by actual Humans without corporate sponsors, angels or patreons.
If you use this software in production, please consider supporting its development with contributions or donations

Donate

homer7-docker's People

Contributors

lmangani avatar negbie avatar os11k avatar pnrxa avatar raksonibs avatar syco avatar systemcrash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homer7-docker's Issues

Tab SIP flow Issue (Flow & Export & Messages)

Hi,
Running Hom7-prom-all on docker: today i make pull request but it seems an issue appear when displaying SIP flow (there is no Tab message & Flow & Export like befor), i can see sip message captured but can't display the flow or export it

image

image

Loki container alway restart

Hi, I start homer7-docker with server hom7-prom-all and I have problem with Loki container. It alway restart. Error log :
level=error ts=2019-06-05T06:26:51.286856691Z caller=main.go:46 msg="error loading config"
filename=/etc/loki/loki-local-config.yaml err="parsing time "0" as "2006-01-02": cannot parse "0" as
"2006"

Homer 7 Installation and Configuration

Hi guys

Can I maybe get some assistants, I'm trying to install homer in my Lab but for some reason I keep getting stuck. Does anyone maybe have a in-depth guide to install homer 7 and to configure it with a capture agent.

I want to setup a server for the capture agent that will capture the SIP and RTP streams from 4 different networks (each on a separate network port) and then i want to send that to another server on which Homer will run.

I tried installing homer 7 with the docker images, but i'm not seeing any VoIP traffic on homer. Some assistants regarding this will be awesome.

Call produce pg-promise exception

Hi dear Sipcapture Team.
I face this issue when a call is sent to the hom7-hep-influx from heplify.
Here you are the docker output:

heplify-server | SET Bucket ID: hep_proto_1_call
heplify-server | /app/node_modules/pg-promise/lib/formatting.js:154
heplify-server | throw new Error('Property '' + v.name + '' doesn't exist.');
heplify-server | ^
heplify-server |
heplify-server | Error: Property 'sid' doesn't exist.
heplify-server | at query.replace.name (/app/node_modules/pg-promise/lib/formatting.js:154:19)
heplify-server | at String.replace ()
heplify-server | at Object.object (/app/node_modules/pg-promise/lib/formatting.js:134:22)
heplify-server | at $formatQuery (/app/node_modules/pg-promise/lib/formatting.js:295:29)
heplify-server | at format (/app/node_modules/pg-promise/lib/formatting.js:831:16)
heplify-server | at data.map (/app/node_modules/pg-promise/lib/helpers/methods/insert.js:128:26)
heplify-server | at Array.map ()
heplify-server | at Object.insert (/app/node_modules/pg-promise/lib/helpers/methods/insert.js:124:29)
heplify-server | at Object.insert (/app/node_modules/pg-promise/lib/helpers/index.js:52:24)
heplify-server | at Object.exports.insert (/app/src/pgsql.js:101:34)
heplify-server | npm ERR! code ELIFECYCLE
heplify-server | npm ERR! errno 1
heplify-server | npm ERR! [email protected] start: node hepop.js -c /app/myconfig.js
heplify-server | npm ERR! Exit status 1
heplify-server | npm ERR!
heplify-server | npm ERR! Failed at the [email protected] start script.
heplify-server | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
heplify-server |
heplify-server | npm ERR! A complete log of this run can be found in:
heplify-server | npm ERR! /root/.npm/_logs/2019-10-02T14_26_03_761Z-debug.log

call-queue.pcap.zip

Attached the pcap file of the call sniffed by sngrep on the same server where heplify runs.

I noticed that the CALL-ID had a ";" in the string: could it be the possible responsible of the issue? I noticed that on the same system other calls runs without any issues and the CALLID isn't with any ";".

hom7-prom-all/grafana logs: exec user process caused "exec format error"

While docker compose, i got this error:
ERROR: for homer-webapp Container "6809987ccb76" is unhealthy.
ERROR: Encountered errors while bringing up the project.

docker ps: grafan is not launched

docker logs grafana:
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"

CAN YOU HELP PLEASE

[hom7-hep-elastic] "stats data has been not found" just after running docker-compose up

On Centos 7.6

cd /opt/
git clone https://github.com/sipcapture/homer7-docker.git
cd /opt/homer7-docker/heplify-server/hom7-hep-elastic/
docker-compose up

I see the following errors :

homer-webapp      | Error....
homer-webapp      | Debug: handler, error 
homer-webapp      |     {"msec":4.11526899994351,"error":"stats data has been not found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"stats data has been not found"},"headers":{}}}}
homer-webapp      | Error....
homer-webapp      | Debug: handler, error 
homer-webapp      |     {"msec":4.080958999926224,"error":"stats data has been not found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"stats data has been not found"},"headers":{}}}}
....

I activated sip capture on my test Freeswitch and configured it to point to homersrv:9060
I can not find any data in either Homer or Kibana yet ; Am I doing anything wrong?

SIP Metric (ASR & NER) by traffic origin

Hi,

I m using hom7-prom-all 7.7 and faced a problem with KPI, i have add direction tag to the metric in order to differentiate target traffic direction Incoming or Outgoing:

clamp_max((sum(increase(heplify_method_response{target_name="$tn", direction="src", method="INVITE", response="200"}[30m])) * 100) /
(sum(increase(heplify_method_response{target_name=
"$tn", direction="src", method="INVITE", response="INVITE"}[30m]))

Cant get changes to loki-local-config.yaml to take effect inside of container

Attempting to fix #73
I have hit a roadblock/limit of my knowledge with docker.

I have changed the syntax of the duration parameters but cant seem to get them to apply to the container, i have also intentionally malformed the yaml file to trigger a different parse error to verify the config is being honoured and again no indication that its being applied to my container.

I have tried the following commands with no luck, am i doing something wrong?

  1. docker-compose up -d
  2. docker-compose down docker-compose up -d
  3. docker-compose --verbose up --force-recreate --build

hom7-influx-tick - Cannot open call log

Hello

I am running homer7-docker/heplify-server/hom7-influx-tick branch 7.7.
Browser: Chrome 79.0.3945.117
Every time when I click to Session ID (Call Id) I am getting javascript error:

ERROR TypeError: Cannot read property 'protocol_id' of null
at SearchGridCallComponent.push../src/app/components/search-grid-call/search-grid-call.component.ts.SearchGridCallComponent.queryBuilderQOS (main.b0c0ae891134c32fe5c6.js:321570)
at SearchGridCallComponent.push../src/app/components/search-grid-call/search-grid-call.component.ts.SearchGridCallComponent.openTransactionDialog (main.b0c0ae891134c32fe5c6.js:321886)
at SearchGridCallComponent.push../src/app/components/search-grid-call/search-grid-call.component.ts.SearchGridCallComponent.openTransactionForSelectedRows (main.b0c0ae891134c32fe5c6.js:321828)
at ColumnCallidRenderer.push../src/app/components/search-grid-call/renderer/column-callid-renderer.component.ts.ColumnCallidRenderer.openTransactionPopup (main.b0c0ae891134c32fe5c6.js:321183)
at ColumnCallidRenderer_Template_a_click_0_listener (template.html:1)
at executeListenerWithErrorHandling (main.b0c0ae891134c32fe5c6.js:86868)
at wrapListenerIn_markDirtyAndPreventDefault (main.b0c0ae891134c32fe5c6.js:86896)
at HTMLAnchorElement. (main.b0c0ae891134c32fe5c6.js:160133)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.db252f9f61df52652520.js:3271)
at Object.onInvokeTask (main.b0c0ae891134c32fe5c6.js:97771)

The same issue for homer7-docker/heplify-server/hom7-prom-all

hom7-prom-all problem writing to DB

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.

db errors in docker

2019-01-24 17:25:48.567 UTC [31329] ERROR:  out of shared memory
2019-01-24 17:25:48.567 UTC [31329] HINT:  You might need to increase max_locks_per_transaction.
STATEMENT:  COPY hep_proto_1_register(sid,create_date,protocol_header,data_header,raw) FROM STDIN

Postgresql does not create homer_data

using hom7-prom-all with docker-compose up -d I still had to connect to postgres server and create the homer_data database. Is this a bug or was I doing something wrong.

New Installation -- No Data in Homer

I've just installed Homer using docker. I am sending SIP data from OpenSIPs (a pretty old version) and I can see the SIP hit the box on port 9060, however no data seems to be being stored by Homer. I'm assuming I am missing something simple? I would appreciate any help!

Thanks!

unable to start docker for hom7-hep-influx

cloned repo
went into homer7-docker/heplify-server/hom7-hep-influx dir
tried

docker-compose up

error reads

Starting caddy ... 
Starting hom7-hep-influx_db_1_f0dfb2b2f2a9 ... 
Starting hom7-hep-influx_db_1_f0dfb2b2f2a9       ... error

Starting caddy                                   ... error
ERROR: for hom7-hep-influx_db_1_f0dfb2b2f2a9  Cannot start service db: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/e72a9659ea1daad63e7e6828e0b2bdcea9fc658e436ecff5ce4a3c2f3a9578e5/log.json: no such file or directory): runc did not terminate sucessfully: unknown

ERROR: for caddy  Cannot start service caddy: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/085e6d740c56f20e0b689c6cb91e49d0ef952c1a01593dee781d587d6cb35b1e/log.json: no such file or directory): rStarting hom7-hep-influx_influxdb_1_a2447b2e8064 ... error

ERROR: for hom7-hep-influx_influxdb_1_a2447b2e8064  Cannot start service influxdb: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/cebb108938e4468319915db929d58392f556a1981cd5777eda51ffe0207c80e5/log.json: no such file or directory): runc did not terminate sucessfully: unknown

ERROR: for db  Cannot start service db: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/e72a9659ea1daad63e7e6828e0b2bdcea9fc658e436ecff5ce4a3c2f3a9578e5/log.json: no such file or directory): runc did not terminate sucessfully: unknown

ERROR: for caddy  Cannot start service caddy: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/085e6d740c56f20e0b689c6cb91e49d0ef952c1a01593dee781d587d6cb35b1e/log.json: no such file or directory): runc did not terminate sucessfully: unknown

ERROR: for influxdb  Cannot start service influxdb: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/cebb108938e4468319915db929d58392f556a1981cd5777eda51ffe0207c80e5/log.json: no such file or directory): runc did not terminate sucessfully: unknown
ERROR: Encountered errors while bringing up the project.

using debian 9 OS , docker is 18.09.8v ,

hom7-hep-elastic - No dashboard graphs

I've been playing with these settings all day, and can't find any documentation or rhyme or reason as to why I can't add the usual SIPCapture statistics to Homer 7. (the same stats available on the dashboard of Homer 5).

Anyone have any advice for getting some stats in Homer 7?

See attached.

Thanks all!
Screen Shot 2019-09-17 at 9 04 54 PM

Loki continually restarting

Hi,
I'm trying Homer7 with HEPlify + Prometheus + Loki but the Loki container is continually restarting and I can't find any explanation of that.

Any suggestion?

Thanks

Problems to modify metrics

Hello,

I am running the hep-grafana-loki docker version of Homer7.

I need to make some modifications to the Heplify-server metrics so I downloaded the source from: https://github.com/sipcapture/heplify-server and without modifying it, I compiled it.

The problem is that by changing the heplify-server executable by the compiled one and restarting the container, it is continually restarting.

On the console I get messages that contains: invalid input syntax for type json

Is there any incompatibility between the two versions of the server? Should I delete the databases and start them from scratch when I change the executable?

Thanks

Homer7 configuration for docker-compose

Hi team

I have one CentOS VM with two NIC. On one NIC SIP traffic is coming and the second one is being used for internet and management. Only the second NIC has an IP address. docker-compose up is running properly for HEPlify + InfluxDB + LoudML.

When I ran Wireshark trace on NIC one, I am getting SIP packets. But I don't have anything in database and homer app. Can anyone help here?
Here NIC one is receiving mirrored traffic from the switch.

I can see that Heplify-server is listening on port 9060. What configuration I have to do to send NIC traffic (Raw packet) to Heplify-server?

Registration searching

Hi, any call searching is working just fine, but when I try to search something in the registration profile, nothing shows up, but logically that data should be there, when calls are ok. Maybe there is problem with registration profile itself, but I don't know how to debug something like this. When I try to search, this log pops up in CLI up:

2019-03-21 19:32:49.194 UTC [785] ERROR:  relation "hep_proto_1_registration" does not exist at character 119
db_1              | 2019-03-21 19:32:49.194 UTC [785] STATEMENT:  select "id", "sid", "protocol_header", "data_header", ROUND(EXTRACT(epoch FROM create_date)*1000) as create_date from "hep_proto_1_registration" where "create_date" between $1 and $2 limit $3
homer-webapp      | Debug: handler, error 
homer-webapp      |     {"msec":2.069543999619782,"error":"select \"id\", \"sid\", \"protocol_header\", \"data_header\", ROUND(EXTRACT(epoch FROM create_date)*1000) as create_date from \"hep_proto_1_registration\" where \"create_date\" between $1 and $2 limit $3 - relation \"hep_proto_1_registration\" does not exist","data":{"name":"error","length":124,"severity":"ERROR","code":"42P01","position":"119","file":"parse_relation.c","line":"1180","routine":"parserOpenTable","isBoom":true,"isServer":true,"output":{"statusCode":503,"payload":{"statusCode":503,"error":"Service Unavailable","message":"select \"id\", \"sid\", \"protocol_header\", \"data_header\", ROUND(EXTRACT(epoch FROM create_date)*1000) as create_date from \"hep_proto_1_registration\" where \"create_date\" between $1 and $2 limit $3 - relation \"hep_proto_1_registration\" does not exist"},"headers":{}}}}

HEP messages containing REGISTER dialog messages are coming to Homer without error.

No MOS values or graphs

Hi,

we have a setup with rtpengine in the middle between two SIP-Endpoints which both sends RTCP informations.
We have the RTCP packets in homer7 (hom7-hep-influx), but homer7 doesn't show any MOS values or graphs.
grafik

Is there anything missing on our side?

ERROR: invalid input syntax for type json

I keep getting the following error:

postgres    | 2020-03-17 11:15:27.832 UTC [66] ERROR:  invalid input syntax for type json
postgres    | 2020-03-17 11:15:27.832 UTC [66] DETAIL:  Token "bmGhEfDoNeJ0m" is invalid.
postgres    | 2020-03-17 11:15:27.832 UTC [66] CONTEXT:  JSON data, line 1: ...","correlation_id":"M_eP0431313170w"bmGhEfDoNeJ0m...
postgres    | 	COPY hep_proto_1_call, line 80, column protocol_header: "{"protocolFamily":2,"protocol":17,"srcIp":"80.90.160.221","dstIp":"159.65.125.17","srcPort":5060,"ds..."
postgres    | 2020-03-17 11:15:27.832 UTC [66] STATEMENT:  COPY hep_proto_1_call(sid,create_date,protocol_header,data_header,raw) FROM STDIN
heplify     | 2020/03/17 11:15:27.833508 postgres.go:284: ERR pq: invalid input syntax for type json
heplify     | 2020/03/17 11:15:27.834590 postgres.go:292: ERR pq: Could not complete operation in a failed transaction

I'm using a simple Homer stack with heplify version 1.56, following is the compose:

version: "2.1"

services:
  homer:
    container_name: homer
    image: sipcapture/webapp:latest
    ports:
      - "80:80/tcp"
    environment:
      - "DB_HOST=postgres"
      - "DB_USER=root"
      - "DB_PASS=homerSeven"
    restart: unless-stopped
    depends_on:
      - heplify

  heplify:
    container_name: heplify
    image: sipcapture/heplify-server:latest
    ports:
      - "9060:9060/tcp"
      - "9060:9060/udp"
    command:
      - "./heplify-server"
    environment:
      - "HEPLIFYSERVER_HEPADDR=0.0.0.0:9060"
      - "HEPLIFYSERVER_HEPTLSADDR=0.0.0.0:9060"
      - "HEPLIFYSERVER_DBSHEMA=homer7"
      - "HEPLIFYSERVER_DBDRIVER=postgres"
      - "HEPLIFYSERVER_DBADDR=postgres:5432"
      - "HEPLIFYSERVER_DBUSER=root"
      - "HEPLIFYSERVER_DBPASS=homerSeven"
      - "HEPLIFYSERVER_DBDATATABLE=homer_data"
      - "HEPLIFYSERVER_DBCONFTABLE=homer_config"
      - "HEPLIFYSERVER_DBDROPDAYS=30"
      - "HEPLIFYSERVER_LOGLVL=info"
      - "HEPLIFYSERVER_LOGSTD=true"
      - "HEPLIFYSERVER_DEDUP=true"
    restart: unless-stopped
    depends_on:
      - postgres

  postgres:
    container_name: postgres
    image: postgres:11-alpine
    restart: always
    environment:
      POSTGRES_PASSWORD: homerSeven
      POSTGRES_USER: root
    expose:
      - 5432
    restart: unless-stopped
    volumes:
      - ./postgres-init.sh:/docker-entrypoint-initdb.d/init.sh
      - ./postgres-data:/var/lib/postgresql/data

Doesn't start up

Hello,
I've composed hom7-hep-influx package, but I can't get to Homer page, even though it logs "Server started".

It also logs this: E! Error in plugin [inputs.prometheus]: error making HTTP request to http://heplify-server:9096/metrics: Get http://heplify-server:9096/metrics: dial tcp 172.18.0.6:9096: connect: connection refused

I don't really know how to solve this, it is quite different from H5, which worked to me, except of long msg database problem, that's why I am trying H7.

Tables not being created in postgres

Applogies if this is the wrong tracker for this issue, but i seem to have an issue with homer 7.7 docker install, but i dont know if its actually an issue with heplify-server.

Issue
Tables/partitions dont seem to get created in postgres, fillings logs with this:

db | 2020-04-15 12:37:30.256 UTC [225] ERROR: no partition of relation "hep_proto_1_default" found for row' 'db | 2020-04-15 12:37:30.256 UTC [225] DETAIL: Partition key of the failing row contains (create_date) = (2020-04-15 12:37:26.609269+00).
db | 2020-04-15 12:37:30.256 UTC [225] CONTEXT: COPY hep_proto_1_default, line 1: "75acad854ad2620a4f2dc9142d5ab90 2020-04-15T12:37:26.609269Z {"protocolFa..."

If i restart heplify server sudo docker-compose restart heplify-server the tables seem to get created and everything works for a day or so, then the same issue happens until i manually restart it again.

My install is literally the following:

  1. Clone homer7-docker and checkout the 7.7 branch
  2. Run sudo docker-compose up -d

Works fine for a week or so, then needs the heplify server restarted every day.

Am i missing something in my deployment or is a scheduled job failing?

Can't access Homer using hom7-json-influx

Hi guys,

being a docker dummy, I wanted to try to get my hands "dirty", and launch Homer using one of the available scripts. I started with hom7-json-influx, that seemed like a good place to start, but even though the docker compose process seems to start things correctly, I can't access the Homer UI. More precisely, if I open localhost:9080 with a browser, I'm presented with a login page, but inserting the credentials provided in the README nothing happens: after a while, I get an error on a JWT token not being returned, which suggests a DB error.

Looking at the docker-compose output, I see a couple of things that seem out of place and that may be the cause of the issue:

hepsub            | 
hepsub            | > [email protected] start /app
hepsub            | > nodejs helloworld.js
hepsub            | 
kapacitor_1       | ts=2019-11-06T15:34:37.697Z lvl=info msg="listening for signals" service=run
hepsub            | sh: nodejs: not found
hom7-hep-influx_provisioning_1 exited with code 0
hepsub            | npm ERR! file sh
hepsub            | npm ERR! code ELIFECYCLE
hepsub            | npm ERR! errno ENOENT
hepsub            | npm ERR! syscall spawn
hepsub            | npm ERR! [email protected] start: `nodejs helloworld.js`
hepsub            | npm ERR! spawn ENOENT
hepsub            | npm ERR! 
hepsub            | npm ERR! Failed at the [email protected] start script.
hepsub            | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
hepsub            | 
hepsub            | npm ERR! A complete log of this run can be found in:
hepsub            | npm ERR!     /root/.npm/_logs/2019-11-06T15_34_41_966Z-debug.log
db_1              | 2019-11-06 15:34:42.165 UTC [73] FATAL:  password authentication failed for user "homer"
db_1              | 2019-11-06 15:34:42.165 UTC [73] DETAIL:  Role "homer" does not exist.
db_1              | 	Connection matched pg_hba.conf line 95: "host all all all md5"
homer-webapp      | error: password authentication failed for user "homer"
homer-webapp      |     at Connection.parseE (/app/node_modules/pg/lib/connection.js:545:11)
homer-webapp      |     at Connection.parseMessage (/app/node_modules/pg/lib/connection.js:370:19)
homer-webapp      |     at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:113:22)
homer-webapp      |     at emitOne (events.js:116:13)
homer-webapp      |     at Socket.emit (events.js:211:7)
homer-webapp      |     at addChunk (_stream_readable.js:263:12)
homer-webapp      |     at readableAddChunk (_stream_readable.js:250:11)
homer-webapp      |     at Socket.Readable.push (_stream_readable.js:208:10)
homer-webapp      |     at TCP.onread (net.js:601:20)
hepsub exited with code 1
db_1              | 2019-11-06 15:34:42.864 UTC [74] ERROR:  role "postgres" does not exist
db_1              | 2019-11-06 15:34:42.864 UTC [74] STATEMENT:  GRANT postgres to homer_user;
heplify-server    | 2019/11/06 15:34:42.864657 rotator.go:364: WARN pq: role "postgres" does not exist

The first is the nodejs error: this might be because most nodejs installations now only install /usr/bin/node and not /usr/bin/nodejs. I thought this was tied to my local installation (which does lack a nodejs executable), but even adding a symbolic link the error remained, so it's likely a missing executable inside the image itself. Not sure if that can be the cause of the issue, though.

Another likely culprit seems to be the password authentication failed for user "homer", which seems to indeed suggest a DB error: for some reason the application can't contact Postgres at startup, which may be why the login process timeouts when I try it later on. I already tried removing the influx and postgres-data folders more than once and bring the image back up using docker-compose, but nothing changed.

Unfortunately, since everything is retrieved and deployed automatically via docker, I have no idea on how I can mess with the image to see if I can fix things myself manually. Any hint on what may be going wrong, and/or how I can fix it?

Thanks!

Error in H7 + InfluxDB docker installation

Hi
I am using Debian 9. I downloaded docker file for H7 + InfluxDB docker installation from here. But facing issue while running docker-compose up command.

The output of the docker-compose up command is attached below.

Screenshot from 2019-06-28 15-05-27

homer7-docker/heplify-server/hom7-prom-all -- postgres.go:283: ERR pq: no partition of relation "hep_proto_1_default

Hi sipcapture fans,

i tried homer-7 and there homer7-docker/heplify-server/hom7-prom-all
3963a6e
after 8 days uptime i saw that i got many errors from the heplify-server (see below):
And i could not find any things in the webgui.

Could that only solve with "docker-compose down" and "docker-compose up -d"

I am not sure how to debug the "rotation" process. Maybe that is not clean.

2020/04/09 19:05:08.923474 postgres.go:283: ERR pq: no partition of relation "hep_proto_1_default" found for row 2020/04/09 19:05:08.923529 postgres.go:283: ERR pq: no partition of relation "hep_proto_1_default" found for row 2020/04/09 19:05:08.923566 postgres.go:283: ERR pq: no partition of relation "hep_proto_1_default" found for row 2020/04/09 19:05:08.923857 postgres.go:291: ERR pq: Could not complete operation in a failed transaction 2020/04/09 19:05:08.923864 postgres.go:291: ERR pq: Could not complete operation in a failed transaction 2020/04/09 19:05:08.923886 postgres.go:291: ERR pq: Could not complete operation in a failed transaction 2020/04/09 19:05:08.925969 postgres.go:283: ERR pq: no partition of relation "hep_proto_1_default" found for row 2020/04/09 19:05:08.926138 postgres.go:291: ERR pq: Could not complete operation in a failed transaction

Cheers Karsten

Default Admin Authentication

The default Admin authentication :
user: admin
password: sipcature

Fails with Email and password combination not recognised error.

screenshot from 2019-01-08 13-49-58

This seem to affect Homer7 deployments.

Screenshot captures homer7-docker/hepop/hom7-json-influx instance

UPDATE:

This is the Docker deployments seems to be related to this guy

Tag Dropdown not working in hom7-hep-influx

Steps to reproduce:

  • Edit InfluxDB Chart Settings
  • Select Fields/Measurement
  • Select heplify_method_response from dropdown
  • Select counter in Counter dropdown
  • The Tag dropdown is empty

Tested in Firefox & Chrome.

502 Bad Gateway

Hi,

I'm trying to start a docker-compose image "hom7-prom-all" and when I put the web page myserver:9080 the system ask for user/passwd and then send de message "502 Bad Gateway".

The OS is an Ubuntu Server 18.04.

Any suggestion?

Thanks

Problem with docker-compose images

Hi

I am trying to install Homer7 via Docker and I am having problems running docker-compose up (with hom7-hep-influx)
This gives an error that says:

Pulling influxdb (influxdb:1.5-alpine)...
1.5-alpine: Pulling from library/influxdb
ERROR: no matching manifest for linux/386 in the manifest list entries

The server is an Ubuntu 18.04 and claims to have a linux/i686 architecture.

Any suggestions?
Thanks.

Homer Logo/Link not returning to dashboard

I did a fresh install of 7.7 hom7-prom-all yesterday and I noticed that when viewing the results page clicking the top left logo/link does not return to the dashboard but results in a blank page being displayed and the URL does not change from /call/result

Tested using Firefox 71.0

HTH
Mark.

Docker setup loads old version

After completely clean install of docker container it loaded version 7.7.021 of the Homer-UI which is somewhat outdated.

loki home page not found

hi,
i am very new in grafana/loki/hep and in github as well(sorry for my formatting), trying to run the containers from docker_compose file, where loki looks like:

loki:
image: grafana/loki:master
container_name: loki
restart: unless-stopped
expose:
- 3100
ports:
- "3100:3100"
labels:
org.label-schema.group: "monitoring"
however, my loki home page is not found:
[r$]# curl http://localhost:3100
404 page not found
[r$]#
i am seeing following logs in container of loki, but not sure what those means:
level=info ts=2020-01-29T03:20:14.383411595Z caller=table_manager.go:364 msg="creating table" table=index_2565
level=info ts=2020-01-29T03:20:14.383438423Z caller=table_manager.go:364 msg="creating table" table=index_2521
level=info ts=2020-01-29T03:20:14.383466714Z caller=table_manager.go:364 msg="creating table" table=index_2572
level=info ts=2020-01-29T03:20:14.383494233Z caller=table_manager.go:364 msg="creating table" table=index_2580
level=info ts=2020-01-29T03:20:14.383520919Z caller=table_manager.go:364 msg="creating table" table=index_2603
level=info ts=2020-01-29T03:20:14.383549634Z caller=table_manager.go:364 msg="creating table" table=index_2569

do you think in docker compose some volumes are missing?

these are the files in the root directory:

[r$]# ls -lrth
total 20K
-rw-r--r-- 1 root root 5.0K Jan 29 00:39 docker_compose.yml
drwxr-xr-x 3 root root 25 Jan 29 00:41 grafana
drwxr-xr-x 2 root root 6 Jan 29 00:42 init-user-db.sh
drwxr-xr-x 2 root root 23 Jan 29 00:48 alertmanager
drwxr-xr-x 2 root root 45 Jan 29 00:50 prometheus
drwxr-xr-x 2 root root 22 Jan 29 00:50 caddy
-rw-r--r-- 1 root root 238 Jan 29 00:57 to_ring_up.txt
-rw-r--r-- 1 root root 1 Jan 29 01:17 bootstrap
drwxr-xr-x 2 root root 83 Jan 29 05:37 loki
drwx------ 19 70 root 4.0K Jan 29 05:37 postgres-data
[r$]#

docker_compose is just copy paste from here

thanks in advance,

h248 and Diameter support

Hello,

Do you have plan to support H.248 protocol and Diameter protocols?
Or is there any fast way to support a new protocol?
Thanks!

Regards,
Leon

hom7-prom-all. No rows to show.

Hey guys,

First of all - thanks a lot for your time to develop and maintain such an interesting project!

My issue may be super simple and stupid, but I am wondering why no data was shown to the Web UI when I trying to generate some SIP packets with hepgen tool.

Here is what I did:

  • git clone https://github.com/sipcapture/homer7-docker
  • cd homer7-docker/heplify-server/hom7-prom-all
  • simply run all the containers needed by firing a docker-compose up -d command
  • cd to hepgen folder (outside) and run node hepgen.js -s 127.0.0.1 -p 9060 -c "./config/b2bcall_rtcp.js" command
  • saw a lot of fake SIP traffic directly to heplify-server container on the same machine: vd: 43, parsed: 27, hepsent: 26, err: 0, heperr: 0

How it looks like in a Homer Web App:
image

Nothing was changed in config files since git clone command (as mentioned above).

init-user-db.sh:

#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
	CREATE DATABASE homer_config;
EOSQL

Some logs of db container:

PostgreSQL init process complete; ready for start up.

2020-02-02 16:53:09.778 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2020-02-02 16:53:09.779 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2020-02-02 16:53:09.802 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-02-02 16:53:09.874 UTC [57] LOG:  database system was shut down at 2020-02-02 16:53:09 UTC
2020-02-02 16:53:09.883 UTC [58] FATAL:  the database system is starting up
2020-02-02 16:53:09.897 UTC [1] LOG:  database system is ready to accept connections
2020-02-02 16:53:12.316 UTC [78] ERROR:  role "postgres" does not exist
2020-02-02 16:53:12.316 UTC [78] STATEMENT:  GRANT postgres to homer_user;

Please pay attention at this error: ERROR: role "postgres" does not exist
May it broke the whole system? What is the best way to fix that?

Thanks in advance!

Regards,
Dmitry

hom7-prom-all - XRTP Dashboard Empty

Hi Guys,

Dont really know where else to ask this, as I dont really think its an issue, rather something im overlooking, so apologies in advance.

i have deployed hom7-prom-all, however my XRTP dashboard in Grafana currently shows no data.

image

Is this something on hepfliy's end, does it require a certain flag to capture+send XRTP?

These are the flags im using currently:
/usr/bin/heplify -i bond0 -hi 103 -pr 5050-5060 -hs my.hepserver.com:9060 -e -m SIPRTCP

Im receiving all SIP and RTCP data, as the other dashboards populate fine.

Please let me know if this is the incorrect place to post this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.