Date   

Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

Is there something wrong with the [DSTAR} section that it's missing?
 
; Configure the D-Star Partner
; Audio format is AMBE 48 bit (DSAMBE)
[DSTAR]
Address = 127.0.0.1             ; Address to send AMBE TLV frames to (export)
TXPort = 32100                  ; Port to send AMBE TLV frames to (export)
RXPort = 32103                  ; Port to listen on (import)
FallbackID = 1234567            ; In case we can not find a valid DMR id in the database, export this one
ExportTG = 9                    ; Which TG to export
Slot = 2                        ; Export slot
 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

Show me the output of env and and the top 31 linies of dvswitch.sh

On 7/9/20 10:15 PM, w2jon@... wrote:
ls: DVSwitch.ini  MMDVM_Bridge  MMDVM_Bridge.ini  dvswitch.sh
I am running the .sh in the folder with the entire support cast

Test with the full path:

++ parseIniFile /usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
+ exit -1

Test with the symlink:
parseIniFile "$DVSWITCH_INI" "$_MODE" "TXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
+ exit -1
 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

ls: DVSwitch.ini  MMDVM_Bridge  MMDVM_Bridge.ini  dvswitch.sh
I am running the .sh in the folder with the entire support cast

Test with the full path:

++ parseIniFile /usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
+ exit -1

Test with the symlink:
parseIniFile "$DVSWITCH_INI" "$_MODE" "TXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
+ exit -1
 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

If you have dvswitch.sh MMDVM_Bridge.ini and DVSwitch.sh in the same directory without any other symlinks what happens with ./dvswitch.sh mode DSTAR?

On 7/9/20 10:05 PM, w2jon@... wrote:
This was put onto an ARCH 4.14.97 OS .Why Arch? it was a Crompton ASL payload and I wanted to enhance it with DVSwitch.
It's been up running happily for some time now so I cant remember all that much about the build.
All of the /opt Symbolic links are all pointing back to the respective sources but they are under the /usr/local/dvswitch-2019-3-16/opt/...

I know it's not a standard deployment and I shouldn't expect any support but the question remains, Why does it not see the file when it is actually there. 
The script is just looking for a file at a location right? Even if I define the long path it still complanes..
Mind you I am no Linux guru.. I only know enough to cobble things together to get them to work. Clearly my last cobble has some flaws in it.
But can we get around this? I'll take the lumps.. That's how we learn...other than my overall build, where did I go wrong?


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

This was put onto an ARCH 4.14.97 OS .Why Arch? it was a Crompton ASL payload and I wanted to enhance it with DVSwitch.
It's been up running happily for some time now so I cant remember all that much about the build.
All of the /opt Symbolic links are all pointing back to the respective sources but they are under the /usr/local/dvswitch-2019-3-16/opt/...

I know it's not a standard deployment and I shouldn't expect any support but the question remains, Why does it not see the file when it is actually there. 
The script is just looking for a file at a location right? Even if I define the long path it still complanes..
Mind you I am no Linux guru.. I only know enough to cobble things together to get them to work. Clearly my last cobble has some flaws in it.
But can we get around this? I'll take the lumps.. That's how we learn...other than my overall build, where did I go wrong?


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

There may be a symlink from /opt/MMDVM_Bridge/dvswitch.sh to /opt/Analog_Bridge/dvswitch.sh But that's it.

On 7/9/20 9:50 PM, w2jon@... wrote:

[Edited Message Follows]

Th one thing that IS of note is that the /opt/MMDVM_Bridge folder is a symbolic link to /usr/local/dvswitch/opt/MMDVM_Bridge as are all of the other folders under /opt

Also I can manually CAT the /opt/MMDVM_Bridge/DVSwitch.ini file from the Analog_Bridge folder from where the DVSwitch.sh scriptis run.. 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

Thell me about the symlink

On 7/9/20 9:54 PM, w2jon@... wrote:
sorry steve.. here is the last bit of the debug output
getTLVPort
++ getTLVPort
++ getABInfoValue tlv rx_port
getABInfoFileName
+++ getABInfoFileName
+++ '[' -z '' ']'
ls -t /tmp/ABInfo_*.json 2>/dev/null | head -1
++++ ls -t /tmp/ABInfo_34001.json
++++ head -1
+++ declare _json_file=/tmp/ABInfo_34001.json
+++ echo /tmp/ABInfo_34001.json
++ declare _json_file=/tmp/ABInfo_34001.json
++ python -
+ TLV_PORT=30000
+ '[' -z 30000 ']'
+ case $1 in
+ setMode
+ '[' 0 -eq 0 ']'
getABInfoValue tlv ambe_mode
++ getABInfoValue tlv ambe_mode
getABInfoFileName
+++ getABInfoFileName
+++ '[' -z '' ']'
ls -t /tmp/ABInfo_*.json 2>/dev/null | head -1
++++ head -1
++++ ls -t /tmp/ABInfo_34001.json
+++ declare _json_file=/tmp/ABInfo_34001.json
+++ echo /tmp/ABInfo_34001.json
++ declare _json_file=/tmp/ABInfo_34001.json
++ python -
+ echo DMR
DMR
exit $_ERRORCODE
+ exit 0




Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

sorry steve.. here is the last bit of the debug output
getTLVPort
++ getTLVPort
++ getABInfoValue tlv rx_port
getABInfoFileName
+++ getABInfoFileName
+++ '[' -z '' ']'
ls -t /tmp/ABInfo_*.json 2>/dev/null | head -1
++++ ls -t /tmp/ABInfo_34001.json
++++ head -1
+++ declare _json_file=/tmp/ABInfo_34001.json
+++ echo /tmp/ABInfo_34001.json
++ declare _json_file=/tmp/ABInfo_34001.json
++ python -
+ TLV_PORT=30000
+ '[' -z 30000 ']'
+ case $1 in
+ setMode
+ '[' 0 -eq 0 ']'
getABInfoValue tlv ambe_mode
++ getABInfoValue tlv ambe_mode
getABInfoFileName
+++ getABInfoFileName
+++ '[' -z '' ']'
ls -t /tmp/ABInfo_*.json 2>/dev/null | head -1
++++ head -1
++++ ls -t /tmp/ABInfo_34001.json
+++ declare _json_file=/tmp/ABInfo_34001.json
+++ echo /tmp/ABInfo_34001.json
++ declare _json_file=/tmp/ABInfo_34001.json
++ python -
+ echo DMR
DMR
exit $_ERRORCODE
+ exit 0



Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

This should not be.

On 7/9/20 9:50 PM, w2jon@... wrote:
Th one thing that IS of note is that the /opt/MMDVM_Bridge folder is a symbolic link to /usr/local/dvswitch/opt/MMDVM_Bridge as are all of the other folders under /opt


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

DMR


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

huh?


On 7/9/20 9:50 PM, w2jon@... wrote:
Th one thing that IS of note is that the /opt/MMDVM_Bridge folder is a symbolic link to /usr/local/dvswitch/opt/MMDVM_Bridge as are all of the other folders under /opt


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Steve N4IRS
 

What does /opt/MMDVM_Bridge/dvswitch.sh mode return?


On 7/9/20 9:12 PM, w2jon@... wrote:
Hey Guys/Gals, 
I'm having a strange error.. I have DVSwitch up and running on an ASL deployment and I had configured ASL NODE 1999 for use as a bridge to DMR.
It works just dandy, So I figured it was time to move forward and see about lighting up DStar and maybe another mode.. but for now DStar was the one I was going to start with.

I when I manually invoke a ./dvswitch.sh mode DSTAR the script comes back with the error that the DVSwitch.ini cant be found?
I checked the script and the DVSWITCH_INI variable points to /opt/MMDVM_Bridge/DVSwitch.ini and after checking several if not tens of times, YES the file lives in there along with MMDVM_Bridge and MMDVM_Bridge.ini

What gives? what did I mess up?
I think that in the dvswitch.sh file, I can see that it it's supposed to parse the file and if it cant find the values it assumes its because the file isn't available?
The file permissions are 755 but I have also tried at 777 and it still fails. 

Oh , and YES the [DSTAR] schema is present in the DVSwitch.ini as well as it's associated TXPort and RXPort values this process is looking for.
And the [D-Star] Enable=1 is set in the MMDVM_Bridge.ini..

Thanks, any insight is appreciated.  

-jon W2JON


  


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 
Edited

Th one thing that IS of note is that the /opt/MMDVM_Bridge folder is a symbolic link to /usr/local/dvswitch/opt/MMDVM_Bridge as are all of the other folders under /opt

Also I can manually CAT the /opt/MMDVM_Bridge/DVSwitch.ini file from the Analog_Bridge folder from where the DVSwitch.sh scriptis run.. 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

HAHA.. no its good.. You're going through it with me. I appreciate it

Every thing is root including the group owners


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Mike KB8JNM
 

What about group ownership . I am no help. sorry

On 7/9/2020 9:40 PM, w2jon@... wrote:
The path in the .sh script is set to  DVSWITCH_INI=${DVSWITCH_INI:-"/opt/MMDVM_Bridge/DVSwitch.ini"} 
The file permissions are 755 and the owner is root.. but everything is root on this pi.


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

The path in the .sh script is set to  DVSWITCH_INI=${DVSWITCH_INI:-"/opt/MMDVM_Bridge/DVSwitch.ini"} 
The file permissions are 755 and the owner is root.. but everything is root on this pi.


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Mike KB8JNM
 

isn't there a place to set the path to the .ini file ? I'm not using the newer software so I don't know.

On 7/9/2020 9:37 PM, w2jon@... wrote:
Yes Mike, that's what I meant.. wait a min....I thought I put.....
Yeah, That's the subject of this thread right?


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 

Yes Mike, that's what I meant.. wait a min....I thought I put.....
Yeah, That's the subject of this thread right?


Re: Error, DVSwitch.ini file not found.. But it's right there?!

Mike KB8JNM
 

Are you sure you did not mean DVSwitch.ini 'not found' ?

If so set path and check permissions and ownership of the .ini file

On 7/9/2020 9:31 PM, w2jon@... wrote:
Crazy... Still no worky..
parseIniFile "$DVSWITCH_INI" "$_MODE" "TXPort"
++ parseIniFile ./opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile ./opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
 


Re: Error, DVSwitch.ini file not found.. But it's right there?!

w2jon@...
 
Edited

Crazy... Still no worky.. ( ./Analog_Bridge/dvswitch.sh mode DSTAR )
 

parseIniFile "$DVSWITCH_INI" "$_MODE" "TXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR TXPort
++ python -
+ _MBTX=
parseIniFile "$DVSWITCH_INI" "$_MODE" "RXPort"
++ parseIniFile /opt/MMDVM_Bridge/DVSwitch.ini DSTAR RXPort
++ python -
+ _MBRX=
+ '[' '!' -z ']'
+ echo 'Error, DVSwitch.ini file not found'
Error, DVSwitch.ini file not found
+ _ERRORCODE=-1
exit $_ERRORCODE
+ exit -1
 

1541 - 1560 of 8313