Analog_Bridge not outputting to STDOUT or STDERR?
Matthew 2E0SIP
Thanks for that Steve, thats pretty conclusive. I'll try to figure out whats going on at my end.
Matthew
|
|
root@dvswitch-server:/opt/Analog_Bridge# uname -a
toggle quoted messageShow quoted text
Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux root@dvswitch-server:/opt/Analog_Bridge# wget https://github.com/DVSwitch/Analog_Bridge/raw/master/bin/Analog_Bridge.armhf --2020-09-12 14:17:49-- https://github.com/DVSwitch/Analog_Bridge/raw/master/bin/Analog_Bridge.armhf Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/DVSwitch/Analog_Bridge/master/bin/Analog_Bridge.armhf [following] --2020-09-12 14:17:50-- https://raw.githubusercontent.com/DVSwitch/Analog_Bridge/master/bin/Analog_Bridge.armhf Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.0.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.comroot@dvswitch-server:/opt/Analog_Bridge# uname -a Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux )|199.232.0.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 486128 (475K) [application/octet-stream] Saving to: ‘Analog_Bridge.armhf’ Analog_Bridge.armhf 100%[=========================================================================================================================================>] 474.73K --.-KB/s in 0.1s 2020-09-12 14:17:50 (4.39 MB/s) - ‘Analog_Bridge.armhf’ saved [486128/486128] root@dvswitch-server:/opt/Analog_Bridge# mv Analog_Bridge.armhf Analog_Bridge root@dvswitch-server:/opt/Analog_Bridge# chmod +x Analog_Bridge root@dvswitch-server:/opt/Analog_Bridge# ./Analog_Bridge -v Analog_Bridge version 1.5.9 root@dvswitch-server:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge.ini >stdout.log 2>stderror.log ^C root@dvswitch-server:/opt/Analog_Bridge# more stdout.log I: 2020-09-12 18:18:57.053 Analog_Bridge Version 1.5.9 Fri 4 Sep 22:56:26 UTC 2020 I: 2020-09-12 18:18:57.054 Copyright (C) 2018, 2019, 2020 DVSwitch, INAD. I: 2020-09-12 18:18:57.054 Created by Mike N4IRR and Steve N4IRSroot@dvswitch-server:/opt/Analog_Bridge# uname -a Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux I: 2020-09-12 18:18:57.054 Analog_Bridge comes with ABSOLUTELY NO WARRANTY I: 2020-09-12 18:18:57.054 I: 2020-09-12 18:18:57.054 This software is for use on amateur radio networks only, I: 2020-09-12 18:18:57.054 it is to be used for educational purposes only. Its use on I: 2020-09-12 18:18:57.054 commercial networks is strictly prohibited. I: 2020-09-12 18:18:57.054 I: 2020-09-12 18:18:57.054 Analog_Bridge is starting M: 2020-09-12 18:18:57.054 Setting [MACROS] DMR -> /opt/MMDVM_Bridge/dvswitch.sh mode DMR M: 2020-09-12 18:18:57.054 Setting [MACROS] DSTAR -> /opt/MMDVM_Bridge/dvswitch.sh mode DSTAR M: 2020-09-12 18:18:57.055 Setting [MACROS] NXDN -> /opt/MMDVM_Bridge/dvswitch.sh mode NXDN M: 2020-09-12 18:18:57.055 Setting [MACROS] P25 -> /opt/MMDVM_Bridge/dvswitch.sh mode P25 M: 2020-09-12 18:18:57.055 Setting [MACROS] YSF -> /opt/MMDVM_Bridge/dvswitch.sh mode YSF M: 2020-09-12 18:18:57.055 Setting [MACROS] dbupdate -> /opt/MMDVM_Bridge/dvswitch.sh collectProcessPushDataFiles M: 2020-09-12 18:18:57.055 Setting [MACROS] 9876 -> /opt/Analog_Bridge/parrot.sh M: 2020-09-12 18:18:57.055 Setting [] include -> dvsm.macro M: 2020-09-12 18:18:57.055 Setting [GENERAL] logLevel -> 2 M: 2020-09-12 18:18:57.055 Setting [GENERAL] exportMetadata -> true M: 2020-09-12 18:18:57.055 Setting [GENERAL] transferRootDir -> /tmp M: 2020-09-12 18:18:57.055 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch/subscriber_ids.csv M: 2020-09-12 18:18:57.055 Setting [GENERAL] decoderFallBack -> true M: 2020-09-12 18:18:57.055 Setting [GENERAL] useEmulator -> true M: 2020-09-12 18:18:57.055 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] address -> 127.0.0.1 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txPort -> 31103 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] rxPort -> 31100 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] ambeMode -> DMR M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] minTxTimeMS -> 2500 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] gatewayDmrId -> 3112138 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] repeaterID -> 311213811 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txTg -> 9 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txTs -> 2 M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] colorCode -> 1 M: 2020-09-12 18:18:57.056 Setting [USRP] address -> 127.0.0.1 M: 2020-09-12 18:18:57.056 Setting [USRP] txPort -> 54321 M: 2020-09-12 18:18:57.056 Setting [USRP] rxPort -> 54321 M: 2020-09-12 18:18:57.056 Setting [USRP] usrpAudio -> AUDIO_UNITY M: 2020-09-12 18:18:57.056 Setting [USRP] usrpGain -> 1.10 M: 2020-09-12 18:18:57.056 Setting [USRP] usrpAGC -> -20,10,100 M: 2020-09-12 18:18:57.056 Setting [USRP] tlvAudio -> AUDIO_UNITY M: 2020-09-12 18:18:57.056 Setting [USRP] tlvGain -> 0.35 I: 2020-09-12 18:18:57.056 Open UDP listener on 127.0.0.1:31100 I: 2020-09-12 18:18:57.056 Open USRP on 127.0.0.1:54321 M: 2020-09-12 18:18:57.056 Connecting to DV3000 hardware...... W: 2020-09-12 18:18:57.147 DV3000 did not reset at 127.0.0.1:2460 W: 2020-09-12 18:18:57.147 DV3000 not found at 127.0.0.1:2460 (Reset failed) I: 2020-09-12 18:18:58.019 Subscriber IDs loaded: 172620 I: 2020-09-12 18:18:58.019 Default extended metadata <N4IRS> I: 2020-09-12 18:18:58.019 Connecting to emulator on host 127.0.0.1:2470 W: 2020-09-12 18:18:58.019 Using software MBE decoder version 1.2.3 W: 2020-09-12 18:18:58.019 Using software OP25 IMBE/AMBE vocoder W: 2020-09-12 18:18:58.020 WARNING, USRP can not have same ports (54321) defined for local network interface. Using 169.254.42.42 I: 2020-09-12 18:18:58.020 Sending to USRP clients at 169.254.42.42 on port(s) 54321 I: 2020-09-12 18:18:58.020 Starting TLV --> Analog_Bridge (decoder) --> USRP thread I: 2020-09-12 18:18:58.020 Starting USRP --> Analog_Bridge (encoder) -> TLV thread root@dvswitch-server:/opt/Analog_Bridge# more stderror.log Project 25 IMBE Encoder/Decoder Fixed-Point implementation Developed by Pavel Yazev E-mail: pyazev@... Version 1.0 (c) Copyright 2009 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file ``LICENSE'' for details. root@dvswitch-server:/opt/Analog_Bridge#
On 9/12/20 12:22 PM, Matthew 2E0SIP
wrote:
|
|
Matthew 2E0SIP
Hi Steve,
|
|
Matt,
toggle quoted messageShow quoted text
I just ran a quick test on a RPi. ./Analog_Bridge Analog_Bridge.ini >stdout.log 2>stderror.log root@dvswitch-server:/opt/Analog_Bridge# more stdout.log I: 2020-09-11 22:52:09.963 Analog_Bridge Version 1.5.9 Fri 4 Sep 22:56:26 UTC 2020 I: 2020-09-11 22:52:09.964 Copyright (C) 2018, 2019, 2020 DVSwitch, INAD. I: 2020-09-11 22:52:09.964 Created by Mike N4IRR and Steve N4IRS I: 2020-09-11 22:52:09.964 Analog_Bridge comes with ABSOLUTELY NO WARRANTY I: 2020-09-11 22:52:09.964 I: 2020-09-11 22:52:09.964 This software is for use on amateur radio networks only, I: 2020-09-11 22:52:09.964 it is to be used for educational purposes only. Its use on I: 2020-09-11 22:52:09.964 commercial networks is strictly prohibited. I: 2020-09-11 22:52:09.964 I: 2020-09-11 22:52:09.964 Analog_Bridge is starting M: 2020-09-11 22:52:09.965 Setting [MACROS] DMR -> /opt/MMDVM_Bridge/dvswitch.sh mode DMR M: 2020-09-11 22:52:09.965 Setting [MACROS] DSTAR -> /opt/MMDVM_Bridge/dvswitch.sh mode DSTAR root@dvswitch-server:/opt/Analog_Bridge# more stderr.log more: stat of stderr.log failed: No such file or directory root@dvswitch-server:/opt/Analog_Bridge# more stderror.log Project 25 IMBE Encoder/Decoder Fixed-Point implementation Developed by Pavel Yazev E-mail: pyazev@... Version 1.0 (c) Copyright 2009 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file ``LICENSE'' for details. For stdout.log I did not include the complete output. Steve N4IRS
On 9/11/20 6:40 PM, Matthew 2E0SIP
wrote:
Hi All,
|
|
Matthew 2E0SIP
Hi All,
I am trying to run MMDVM_Bridge, Analog_Bridge etc in Docker to make my bridge a little more portable. If I actually get it working nicely I'll endeavour make it public. By default docker writes the output to STDOUT and STDERR to the log, however with Analog_Bridge most of the output is missing. I've tried redirecting STD* to no avail. Please see the attached image - only the lines in red (STDERR) are included in the Docker logs. I've done some googling and one theory is the process is writing directly to the TTY rather than STDOUT / STDERR When someone gets a moment could they take a look at the code and confirm how these lines are being displayed? Also whilst I'm here I was wondering if you could confirm if Analog_Bridge, MMDVM_Bridge etc support DNS? Thanks Matthew 2E0SIP
|
|