HBlink3 with HBmonitor3
jacomms
Hi
Can someone with a little more experience with HBlink3 & HBmonitor3 please have a quick look at this. What are the prerequisites for the install? I keep having issues with HBmonitor3 on each install. I have tried Debian 9, Debian 10 & Ubuntu 18. I have had HBlink running and using it but wanted to upgrade to HBlink3. Here is the guide Ive been using from LZ5PN's github https://github.com/lz5pn/HBlink3 HBlink3In this repository have all needed to build working HBlink3 server. It is based on HBlink3 created by N0MJS and include Parrot server. Also here is HBmonitor created by SP2ONG. To this project contribute also N4IRS. THis is complete DMR server with WEB based monitor. It allow communication from DMR radio via Pi-Star via HBlink to another Pi-Star and DMR radio connected to it. It allow communication from DMR radio via Pi-Star via HBlink to BrandMeister server as peer and DMR radios connected to talk groups in BrandMeister server. It allow communication from DMR radio via Pi-Star via HBlink to IPSC2 server as peer and DMR radios connected to talk groups in IPSC2 server. It allow communication from DMR radio via Pi-Star via HBlink to XLX as peer and DMR or D-Star radios connected to XLX. It allow communication from DMR radio via Pi-Star via HBlink to HBlink as peer and DMR radios connected to talk groups in HBlink. HBlink server also allow control on traffic. It is possible to setup Talk Group for turn on or off one TG, several TG or all TG. This software provide very good control on DMR traffic, incoming and outgoing to other servers like BrandMeister, IPSC2, XLX and HBlink. Many thanks to N0MJS creator, N4IRS and SP2ONG for this such nice software. Originaly this software was created as software for connection between IPSC2 and BrandMeister. Be careful when you use it and create your communication channels. This software is very good for small networks of few hotspots or repeater or mix of them. It work very well on Raspberry Pi3 with Raspbian Buster, or on Desktop machine with Linux (tested on Linux Mint) I do not provide support for this software. If future updates in operating systems make it not working or not possible to be installed, sorry but I'm not going to fix such problems. Use this software on your own risk. If you cause troubles by inapropriate settings or ussage of this software I do not take any responsibility. Everyone who use this software, is responsible for any problems caused in his or other networks. Follow the next commands in terminal to install HBlink and HBmonitor on raspbian buster or Linux Mint:apt update apt upgrade apt dist-upgrade apt autoremove apt autoclean install hblinkapt install git apt install python3-distutils cd /opt/ wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py apt install python3-twisted apt install python3-bitarray apt install python3-dev git clone https://github.com/lz5pn/HBlink3 mv /opt/HBlink3/ /opt/backup/ mv /opt/backup/HBlink3/ /opt/ mv /opt/backup/HBmonitor/ /opt/ mv /opt/backup/dmr_utils3/ /opt/ rm -r /opt/backup/ cd /opt/dmr_utils3 chmod +x install.sh ./install.sh /usr/bin/python3 -m pip install --upgrade pip pip install --upgrade dmr_utils3 cd /opt/HBlink3 cp hblink-SAMPLE.cfg hblink.cfg cp rules-SAMPLE.py rules.py Autostart HBLink:nano /lib/systemd/system/hblink.service #Copy and paste the next: [Unit] Description=Start HBlink After=multi-user.target [Service] ExecStart=/usr/bin/python3 /opt/HBlink3/bridge.py [Install] WantedBy=multi-user.target systemctl daemon-reload systemctl enable hblink Install Parrot for Echotest:chmod +x playback.py #Create directory for registration files, if /var/log/hblink is not created. mkdir /var/log/hblink #To start Parrot service must use file /lib/systemd/system/parrot.service nano /lib/systemd/system/parrot.service #Copy and paste the next: [Unit] Description=HB bridge all Service After=network-online.target syslog.target Wants=network-online.target [Service] StandardOutput=null WorkingDirectory=/opt/HBlink3 RestartSec=3 ExecStart=/usr/bin/python3 /opt/HBlink3/playback.py -c /opt/HBlink3/playback.cfg Restart=on-abort [Install] WantedBy=multi-user.target #Start Parrot service: systemctl enable parrot.service systemctl start parrot.service systemctl status parrot.service #To create your own configuration edit next two files or leave them as is, just to see is it all work as it is expected. After check, you can edit this files and add peers and bridges as you want. Advice - do not create bridges between peers. Create bridges only between peers and local masters, where are connected your repeaters or spots. Create bridges between peers can make a lot of headace, except if admins of servers where are connected your peers, are agree with this! nano /opt/HBlink3/hblink.cfg nano /opt/HBlink3/rules.py #Test configuration: python3 /opt/HBlink3/bridge.py #If it's ok exit with "ctrl-c" and start service systemctl start hblink systemctl status hblink Install web monitor for HBLink.cd /opt/HBmonitor chmod +x install.sh ./install.sh cp config_SAMPLE.py config.py nano /opt/HBmonitor/config.py #Start monitor as system service: cp utils/hbmon.service /lib/systemd/system/ systemctl enable hbmon systemctl start hbmon systemctl status hbmon Forward TCP ports 8080 and 9000 in router firewallMy HBlink servers: http://kario88.dynamic-dns.net:8184/ and http://lz5pn.freeddns.com:8184/ 73 de LZ5PN
|
|
Unless I am missing something, what is your issue? I just see steps followed but no log or anything to show what error occurs. We need that part. Thanks! Doug W4DBG
On Mon, Aug 2, 2021 at 6:19 AM jacomms <justin@...> wrote: Hi
|
|
jacomms
Hi Doug
The question was only - “What are the prerequisites for the install?”
Do we need a web server installed 1st? PHP?
Here is what I get:
root@HBLink:~# systemctl status hbmon ● hbmon.service - HBMonitor Loaded: loaded (/lib/systemd/system/hbmon.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2021-08-03 07:40:28 AEST; 4s ago Process: 518 ExecStart=/usr/bin/python3 /opt/HBmonitor3/monitor.py (code=exited, status=1/FAILURE) Main PID: 518 (code=exited, status=1/FAILURE)
Aug 03 07:40:26 HBLink systemd[1]: Started HBMonitor. Aug 03 07:40:28 HBLink systemd[1]: hbmon.service: Main process exited, code=exited, status=1/FAILURE Aug 03 07:40:28 HBLink systemd[1]: hbmon.service: Failed with result 'exit-code'. root@HBLink:~#
Log:
Copyright (c) 2016, 2017, 2018, 2019 The Regents of the K0USY Group. All rights reserved.
Python 3 port: 2019 Steve Miller, KC1AWV <smiller@...>
2021-08-03 07:40:27 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded 2021-08-03 07:40:27 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded 2021-08-03 07:40:27 INFO ID ALIAS MAPPER: peer_ids dictionary is available 2021-08-03 07:40:28 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
Thanks again
Justin Albury J Albury Communications / Connect Regional Broadband 0417246791 VK2JUZ ----------------------------------------------------------------- This email, and any attachments are for the use of the intended recipient(s) and may contain confidential/privileged information. If you have received this email in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not copy, disclose or distribute its contents to any other person. We do not accept any liability in connection with transmitting, unauthorised access to, or viruses in this email and its attachments. This notice should not be removed. ----------------------------------------------------------------------------------
From: HBlink@DVSwitch.groups.io <HBlink@DVSwitch.groups.io>
On Behalf Of Doug - W4DBG via groups.io
Sent: Tuesday, 3 August 2021 1:31 AM To: HBlink@dvswitch.groups.io Subject: Re: [HBlink] HBlink3 with HBmonitor3
Unless I am missing something, what is your issue? I just see steps followed but no log or anything to show what error occurs. We need that part.
Thanks!
Doug W4DBG
On Mon, Aug 2, 2021 at 6:19 AM jacomms <justin@...> wrote:
Doug Gooden
|
|
Dave M0UPM
Try cd /opt/HBmonitor3 then python3 monitor.py and show us what errors come up
toggle quoted messageShow quoted text
On 2 Aug 2021, at 22:51, jacomms <justin@...> wrote:
|
|
jacomms
Hi Doug
This is what I see :
root@HBLink:/opt/HBmonitor3# python3 monitor.py 2021-08-03 09:17:33,277 INFO monitor.py starting up 2021-08-03 09:17:33,277 INFO
Copyright (c) 2016, 2017, 2018, 2019 The Regents of the K0USY Group. All rights reserved.
Python 3 port: 2019 Steve Miller, KC1AWV <smiller@...>
2021-08-03 09:17:33,279 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded 2021-08-03 09:17:33,280 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded 2021-08-03 09:17:33,407 INFO ID ALIAS MAPPER: peer_ids dictionary is available 2021-08-03 09:17:34,886 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available Traceback (most recent call last): File "monitor.py", line 664, in <module> loader=PackageLoader('monitor', 'templates'), File "/usr/local/lib/python3.7/dist-packages/jinja2/loaders.py", line 310, in __init__ f"The {package_name!r} package was not installed in a" ValueError: The 'monitor' package was not installed in a way that PackageLoader understands. root@HBLink:/opt/HBmonitor3#
Thanks for taking the time to have a look.
Justin Albury J Albury Communications / Connect Regional Broadband 0417246791 VK2JUZ ----------------------------------------------------------------- This email, and any attachments are for the use of the intended recipient(s) and may contain confidential/privileged information. If you have received this email in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not copy, disclose or distribute its contents to any other person. We do not accept any liability in connection with transmitting, unauthorised access to, or viruses in this email and its attachments. This notice should not be removed. ----------------------------------------------------------------------------------
From: HBlink@DVSwitch.groups.io <HBlink@DVSwitch.groups.io>
On Behalf Of Dave M0UPM via groups.io
Sent: Tuesday, 3 August 2021 8:11 AM To: HBlink@dvswitch.groups.io Subject: Re: [HBlink] HBlink3 with HBmonitor3
Try cd /opt/HBmonitor3 then python3 monitor.py and show us what errors come up
|
|