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

Homer 7 Heplify-Server Service port 9060 shutdown #647

Open
hesam476 opened this issue Jul 6, 2024 · 8 comments
Open

Homer 7 Heplify-Server Service port 9060 shutdown #647

hesam476 opened this issue Jul 6, 2024 · 8 comments

Comments

@hesam476
Copy link

hesam476 commented Jul 6, 2024

I have installed homer7 manually when i start heplify agent on my asterisk PBX like this "heplify -hs HOMER_Server:9060 -hn Srv-Test" service heplify-server port 9060 tcp and udp shutdown suddenly on homer server I attach server and client logs. please help
Heplify Server Logs:

Heplify-Server-AfterTest
Heplify-Server-BeforeTest

Heplify Clients Logs :

Heplify-Client-BeforeTest
Heplify-Client-BeforeTest-2
Heplify-Client-Log-AfterTest

Copy link

github-actions bot commented Jul 6, 2024

Please star this repository to motivate the developers and to get higher priority! ⭐

@hesam476
Copy link
Author

hesam476 commented Jul 6, 2024

when i start "./heplify -hs HOMER_SERVER:9060 -hn Srv-Test" heplify-server service on port 9060 is shutdown

Heplify-Server-AfterTest-Ports

and after the test script is stopped heplify-server serice on port 9060 is ok on HOMER Service
Heplify-Server-AfterTest-NTPLU

@lmangani
Copy link
Member

lmangani commented Jul 6, 2024

Does the same happen with fewer options? ./heplify -hs HOMER_SERVER:9060

@hesam476
Copy link
Author

hesam476 commented Jul 6, 2024

yes this happen again with fewer options

@lmangani
Copy link
Member

lmangani commented Jul 6, 2024

I don't see any errors. Make sure you include all the logs and any coredump if the process faults.

@hesam476
Copy link
Author

hesam476 commented Jul 7, 2024

Hi this is some logs from Homer Server /var/log/syslog:

Jul 7 09:51:49 121-Homer systemd[1]: heplify-server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 7 09:51:49 121-Homer systemd[1]: heplify-server.service: Failed with result 'exit-code'.
Jul 7 09:51:59 121-Homer systemd[1]: heplify-server.service: Scheduled restart job, restart counter is at 238.
Jul 7 09:51:59 121-Homer systemd[1]: Stopped HEP Server & Switch in Go.
Jul 7 09:51:59 121-Homer systemd[1]: Started HEP Server & Switch in Go.
Jul 7 09:52:05 121-Homer heplify-server[102948]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:52:05 121-Homer heplify-server[102948]: #011panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:52:05 121-Homer heplify-server[102948]: [signal SIGSEGV: segmentation violation code=0x1 addr=0xb4 pc=0xb177bd]
Jul 7 09:52:05 121-Homer heplify-server[102948]: goroutine 73 [running]:
Jul 7 09:52:05 121-Homer heplify-server[102948]: sync.(*Mutex).Lock(...)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/usr/local/go/src/sync/mutex.go:74
Jul 7 09:52:05 121-Homer heplify-server[102948]: github.com/olivere/elastic.(*BulkProcessor).Flush(0x0, 0x6, 0xfc087b)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/go/pkg/mod/github.com/olivere/[email protected]+incompatible/bulk_processor.go:410 +0x2d
Jul 7 09:52:05 121-Homer heplify-server[102948]: github.com/sipcapture/heplify-server/remotelog.(*Elasticsearch).start.func1(0xc0000a20a0)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/app/remotelog/elasticsearch.go:70 +0x42
Jul 7 09:52:05 121-Homer heplify-server[102948]: panic(0xe826e0, 0x17d8b70)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/usr/local/go/src/runtime/panic.go:679 +0x1b2
Jul 7 09:52:05 121-Homer heplify-server[102948]: github.com/olivere/elastic.(*BulkProcessor).Add(...)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/go/pkg/mod/github.com/olivere/[email protected]+incompatible/bulk_processor.go:404
Jul 7 09:52:05 121-Homer heplify-server[102948]: github.com/sipcapture/heplify-server/remotelog.(*Elasticsearch).start(0xc0000a20a0, 0xc0000320c0)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/app/remotelog/elasticsearch.go:85 +0x31d
Jul 7 09:52:05 121-Homer heplify-server[102948]: github.com/sipcapture/heplify-server/remotelog.(*Remotelog).Run.func1(0xc0000a20c0)
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/app/remotelog/remotelog.go:36 +0x3c
Jul 7 09:52:05 121-Homer heplify-server[102948]: created by github.com/sipcapture/heplify-server/remotelog.(*Remotelog).Run
Jul 7 09:52:05 121-Homer heplify-server[102948]: #11/app/remotelog/remotelog.go:35 +0x6d
Jul 7 09:52:05 121-Homer systemd[1]: heplify-server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 7 09:52:05 121-Homer systemd[1]: heplify-server.service: Failed with result 'exit-code'.
Jul 7 09:52:15 121-Homer systemd[1]: heplify-server.service: Scheduled restart job, restart counter is at 239.
Jul 7 09:52:15 121-Homer systemd[1]: Stopped HEP Server & Switch in Go.
Jul 7 09:52:15 121-Homer systemd[1]: Started HEP Server & Switch in Go.
Jul 7 09:53:26 121-Homer heplify-server[102958]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:53:26 121-Homer heplify-server[102958]: #011panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:53:26 121-Homer heplify-server[102958]: [signal SIGSEGV: segmentation violation code=0x1 addr=0xb4 pc=0xb177bd]

@lmangani
Copy link
Member

lmangani commented Jul 7, 2024

what are the specs of the system running heplify-server? this is definitely not normal

Jul 7 09:53:26 121-Homer heplify-server[102958]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:53:26 121-Homer heplify-server[102958]: #011panic: runtime error: invalid memory address or nil pointer dereference
Jul 7 09:53:26 121-Homer heplify-server[102958]: [signal SIGSEGV: segmentation violation code=0x1 addr=0xb4 pc=0xb177bd]

@hesam476
Copy link
Author

hesam476 commented Jul 8, 2024

OS: Debian 11
Kernel: 5.10.209-2
heplify-server version: 1.59.6
homer-app version: 1.4.59
postgresql version: 13.14
Memory: 4GB - free 2.5GB
"I noticed that the server clock is 7 minutes behind the current time." I fix the time but issue not solved yet what other specs should i check ?

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

2 participants