Author Topic: "TGIF API: Not Found" Error on New Installation  (Read 254 times)

0 Members and 0 Guests are viewing this topic.

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
"TGIF API: Not Found" Error on New Installation
« on: January 28, 2021, 10:25:53 pm »
Hello Everyone-

I'm brand new to DMR and am having an issue with my hotspot setup joining TGIF.

I have been over and over my settings and have just finished a re-image, update, and then entering only the basic required information and still have the problem.

My Configuration screen matches everything I've seen in posts and videos. My dashboard shows green indicators for DMR and DMR Net. My DMR master shows "TGIF Network."

Clicking on the Admin menu shows a line for TGIF Manager with a blank Talkgroup Number box, TS2 and and Unlink chosen. If I enter 777 into the Talkgroup, choose Link and click Modify Reflector I get the error "TGIF API: Not Found." This exact error doesn't exist anywhere in Google searches.

D-Star and Brandmeister show successful connections in the dashboard but not TGIF.

My MMDVM-<date>.log file doesn't show much that is interesting.

Screenshots of my settings and error are attached.

Any ideas or help are greatly appreciated!

73s
KC8ESE

Share on Facebook Share on Twitter


Offline WB3IHY

  • Full Member
  • ***
  • Posts: 113
  • Location: Northeast Philadelphia, Pennsylvania
  • Referrals: 0
    • QRZ Profile
  • Call Sign: WB3IHY
Re: "TGIF API: Not Found" Error on New Installation
« Reply #1 on: January 29, 2021, 09:20:31 am »
Hi Brian.  Welcome to DMR and TGIF.  Sorry for the difficulty.

Try this: In the DMR Configuration area where your DMR ESSID is listed, try selecting a two digit suffix in the drop down immediately to the right.  Apply changes and reboot the hotspot.

Let me know if that does the trick.

73,
Joe, WB3IHY

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #2 on: January 29, 2021, 09:43:26 am »
Hello Joe, thank you for the reply.

I tried changing the ESSID suffix from None to 01, 12, 99, and back to None.
Each time after the reboot I tried to enter a TG and click Modify Reflector and got the same API error.

73s
Brian

Offline WB3IHY

  • Full Member
  • ***
  • Posts: 113
  • Location: Northeast Philadelphia, Pennsylvania
  • Referrals: 0
    • QRZ Profile
  • Call Sign: WB3IHY
Re: "TGIF API: Not Found" Error on New Installation
« Reply #3 on: January 29, 2021, 10:33:11 am »
Hi Brian.

Whelp, if that didn't work, there's a couple of other possibilities.

Try this: On a computer on the same network/External IP address as your hotspot (that's important), try going to this address: http://tgif.network:5040/api/sessions

It should come back with data showing any hotspots on your network that server sees.  If it doesn't, something might be blocking communication between you and the TGIF server API.  Such as a firewall, network provider block, etc.

It could also be happening due to recent changes in Pi-Star and/or issues with the current TGIF server.  In either case, you might just have to wait until we move to the new server, as both the server API code and the pi-star coding used to access that function will both be changing anyway (hopefully for the better, LOL).

73,
Joe, WB3IHY

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #4 on: January 29, 2021, 11:04:31 am »
Thank you again, Joe.

No active sessions, as I would expect.

Code: [Select]
{
  "sessions": []
}

This evening I'll try tethering to my phone instead of using my home network and see if anything is different.
I have full visibility into my home network and can see the DNS and traffic passing properly to tgif.network so it must be somewhere else.
I'll find it and if it's not an issue on my side then I'll wait.

73s
Brian - KC8ESE

Offline WB3IHY

  • Full Member
  • ***
  • Posts: 113
  • Location: Northeast Philadelphia, Pennsylvania
  • Referrals: 0
    • QRZ Profile
  • Call Sign: WB3IHY
Re: "TGIF API: Not Found" Error on New Installation
« Reply #5 on: January 29, 2021, 12:54:02 pm »
Let me know how you make out with that, Brian.

Thought of something else: It's also possible that Pi-Star's firewall is missing the rule to allow traffic on port 5040.  If the tethering doesn't help, let me know and I'll post the procedure to check for the correct entry and, if missing, how to add it.

73,
Joe, WB3IHY

Offline KG6RUT

  • Newbie
  • *
  • Posts: 5
  • Referrals: 0
  • Call Sign: KG6RUT
Re: "TGIF API: Not Found" Error on New Installation
« Reply #6 on: January 29, 2021, 01:14:06 pm »
Not sure, but if you are actually pointed to the Prime network, I dont believe that 5040 has been opened.....although it does appear you are on legacy....

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #7 on: January 29, 2021, 09:14:02 pm »
Yep, I am on legacy. Just learned about Prime after reading your reply. I found the setup doc so maybe I'll give it a try this weekend.

I opened port 5040 in iptables, both TCP and UDP, no change. Tethered to my phone, no change. Used an OTG ethernet adapter and plugged into my home network to take Wi-Fi out of the equation, no change.

I appreciate your time and don't want to take any more of it, I'll get this figured out.

Thanks again,
 -Brian

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #8 on: January 30, 2021, 07:31:08 am »
I am up and running on the Prime connection!

I can't tell you what the problem was but registering and getting confirmed for Prime and adding that new connection to my hotspot worked.

Thank you again for the help and direction.

73
Brian - KC8ESE

Offline KG6RUT

  • Newbie
  • *
  • Posts: 5
  • Referrals: 0
  • Call Sign: KG6RUT
Re: "TGIF API: Not Found" Error on New Installation
« Reply #9 on: January 30, 2021, 04:35:00 pm »
Prime aint Prime yet :)....still some growing pains, so dont expect things to work fully all the time yet...

Offline N1KK

  • Jr. Member
  • **
  • Posts: 52
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #10 on: February 17, 2021, 08:31:05 pm »
I also have the same problem.  however the problem is only with my 2 pi zero boards.
I have a pi 3.0+ board and it works perfectly when I click the Modify Static button.
My working board was running an earlier version of software without a problem.
I upgraded the software to 4.1.4 and it still works fine.

The 2 pi zero boards are running 3.1.4.17   Both will not work when clicking the Modify Static.  I get back a message Not Found.
I tried upgrading one of them to 4.1.4 and same problem.

I would like to fix it.  I am not ready to move to Prime yet.
I checked my Firewall in the Pistar software
The top 3 are set to PRIVIATE
Auto AP: ON
uPNP:  ON

Any tips would be appreciated.

Thanks, Ken

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #11 on: February 17, 2021, 09:30:18 pm »
Ken, I'm the original poster of the question and I've been able to work around the problem by using DMRGateway to connect to both Legacy and Prime.
That works and now I can use the dashboard to change TGs for TGIF and the self care for TGIF Prime.
So between 2 open browser tabs I can move around.

I can also manual dial on my radio - 5000777 and key up gets me to SCAN on TGIF and 4000777 and key up to SCAN on Prime.
5004000 or 4004000 disconnects. 4000318 is the Michigan TG on Prime, etc.

What I haven't tried is using DMRGateway and only enabling TGIF, not Prime. In theory that should work and you wouldn't need the rewrite rules.

If you're interested I can post the working DMRGateway file a friend of mine worked up (or maybe found, I'm not 100% sure).

73,
-Brian


Offline N1KK

  • Jr. Member
  • **
  • Posts: 52
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #12 on: February 23, 2021, 02:06:14 pm »
hello Brian,
I would be interested in your procedure.

What puzzles me is why it works with my pi 3.0+ board and not the 2 pi zero boards
that have tested also on the latest 4.1.4 update.
I thought maybe because I was using a config backup I was just dragging over
a problem so I built up a pistar from scratch entering all the info manually.
Still no go.  Yet my 3.0+ board works perfectly.  I even went through all the items in setup
of the 3.0 including EXPERT mode under MMDVM and could not find any differences.

The only difference between my 3.0+ board and my pi zero boards is I use a external Nextion 3.2 inch display.
The 2 pi zero boards use the OLED displays.  The pi zero boards used to work to Modify Static giving me a method
to unlink from 777.   For some reason both have stopped.  Someone on the TGIF Facebook page has the same problem
Ken

Offline KC8ESE

  • Newbie
  • *
  • Posts: 8
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #13 on: February 23, 2021, 02:43:17 pm »
Hello Ken-

Sorry this is kind of long but should be all necessary details. I'm new to all this but I'm computer/Pi/Linux savvy so I've been digging in.

I'm glad to know I'm not the only one with the issue on the Pi Zero.
This is what is currently working for me, letting me be on both networks at the same time for over a week now.

MMDVMHost Configuration:
DMR Mode: on
MMDVM Display Type: OLED type 3 on /dev/ttyAMA0

General Configuration:
All my location settings and STM32-DVM hat, as normal

DMR Configuration:
DMR Master: DRMGateway
All other settings are default (not currently using Brandmeister)

Attached are a screenshot of my Admin screen (note the displayed active BM connection despite it being disabled in the configuration) and my DMRGateway file with my personal information replaced with "your-xxxxx" for you to fill in.

This setup works for me just fine on the Pi Zero. The Legacy talkgroups start with 5 and the Prime with 4.

From the radio (you need to pad zeroes to make 7 digits):
Dial 5000777 for Legacy scan
Dial 5031665 for Legacy "TGIF" talkgroup
Dial 50xxxxx for your Legacy talkgroup of choice, padding zeroes as necessary
Dial 5004000 for Legacy disconnect
Dial 4000777 for Prime scan
Dial 4031665 for Prime "TGIF" talkgroup
Dial 40xxxxx for your Prime talkgroup of choice, padding zeroes as necessary
Dial 4004000 for Prime disconnect

From the dashboard Admin tab:
Enter your talkgroup of choice (just the TG number), click Link, and then Modify static to change TGs on Legacy
You can do this while the hotspot is transmitting, for example to break out of a busy QSO or scan.

From your web browser:
https://prime.tgif.network/profile.php?tab=SelfCare
Enter your Prime talkgroup of choice here. No padding here, just the straight TG number. Works while the hotspot is transmitting

http://tgif.network:5040/api/sessions/update/your-dmr-id/1/4000
This will send a 4000 disconnect on Legacy.
You can keep a browser tab open, change the TG number and hit enter to move around. Redundant since the dashboard works but interesting.

This combination is letting me move around freely on both networks - with the radio if the hotspot isn't transmitting and with the dashboard/self care if it is or if it's more convenient.

If I switch off DMRGateway and put everything back to just Legacy settings, it still doesn't work at all. I have no idea why but I'm not touching anything until the switchover to Prime.

Hope that's helpful to you, Ken, or anyone else who might find it useful.

73
 -Brian, KC8ESE
« Last Edit: February 23, 2021, 03:36:38 pm by KC8ESE »

Offline N1KK

  • Jr. Member
  • **
  • Posts: 52
  • Referrals: 0
Re: "TGIF API: Not Found" Error on New Installation
« Reply #14 on: February 23, 2021, 11:37:32 pm »
Well that is quite involved.  I did watch a youtube that talked about what looks to be the same.

I used to have that address to do the unlink but lost it.
I made a shortcut and placed it on my desktop so all I have to do is click the icon and
it disconnects my hotspot.   I have the 2 zero boards and will make up to shortcut icons for
each of the pi zero boards.

I'll have to think about if I want to get into making new channels with the leading numbers
so it knows which server to deal with using the gateway. 
I heard Prime is getting closer to taking over.
I would still have the problems trying to disconnect when tethering off my cell
phone unless that web address will work on the cell.  If it does I have to figure out
how I can get around having to type that out every time I need to disconnect

Thanks
Ken

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
24 Views
Last post August 10, 2019, 01:15:39 pm
by Robert K4WZV
2 Replies
48 Views
Last post August 19, 2019, 09:06:41 am
by PY1IP
1 Replies
39 Views
Last post January 16, 2020, 10:36:38 pm
by Robert K4WZV
1 Replies
38 Views
Last post June 15, 2020, 12:25:15 am
by Robert K4WZV
2 Replies
95 Views
Last post November 23, 2020, 06:54:15 am
by N1JWW