¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

PAT Menu fails treying to open localhost or 127.0.0.1


 

I have two servers, both with Linux mint/73 Linux installed.
One uses either Firefox Browser & Chrome. While the other server I gave Firefox and MS Edge to.

I 'believe' i have disabled any form of firewall. There are no proxys . Both servers can otherwise easily browse the web.

Yet when I run PAT Menu on either, On any browser, I get "ERR_CONNECTION_REFUSED"



NR4U Bob
Kentucky


Sent with Proton Mail secure email.


 

I have the same issue. ?Running Raspbian Bookworm 64bit. ?Pat shows off in Conky. ?ERR_Connection_Refused.


 

Jim, In your case, Pat isn't running in the background. Try running:
pat http
from the command line and see what, if any, errors are produced.

Bob, It could be the same in your case OR it could just be a port issue. Does Conky indicate that Pat is running? If so, open Pat Menu->Quick Stats and see what Port is reported.
If not, follow the advice above.

--
73, de KM4ACK
|
|


 

So, background.? Just spun up 73Linux on a Pi4B 4GB with 64Bit RPI Bookworm.? FLRIG is working with my IC-705 and GPS is working with the 705, as well.? I've only tried to get ARDOP up and going at the moment.? I had Pat-Active in Conky and had the session screen showing in chromium, but clearly below something changed when reloaded the Config in Pat-Menu.? Also, Rig Control in Conky is showing off.? Also, can't get ARDOP to PTT.? Hopefully something below will stand out.

Below are the results from pat http and the config.json

k0jnr@raspberrypi:~ $ pat http
2024/01/14 09:03:39 Unable to load/write config: invalid character '\n' in string literal




{
? "mycall": "K0JNR",
? "secure_login_password": "",
? "auxiliary_addresses": [],
? "locator": "EM48ON",
? "service_codes": [
? ? "PUBLIC"
? ],
? "http_addr": "127.0.0.1:5050",
? "motd": [
? ? "Open source Winlink client - getpat.io"
? ],
? "connect_aliases": {
? ? "telnet": "telnet://{mycall}:CMSTelnet@...:8772/wl2k? },
? "listen": [],
? "hamlib_rigs": {
? ? "my-rig": {
? ? ? "address": "127.0.0.1:4001",
? ? ? "network": "tcp"
? }
?}
? "ax25": {
? ? "engine": "linux",
? ? "rig": "my-rig",
? ? "beacon": {
? ? ? "every": 3600,
? ? ? "message": "Winlink P2P",
? ? ? "destination": "IDENT"
? ? }
? },
? "ax25_linux": {
? ? "port": "wl2k"
? },
? "agwpe": {
? ? "addr": "localhost:8000",
? ? "radio_port": 0
? },
? "serial-tnc": {
? ? "path": "/dev/ttyUSB0",
? ? "serial_baud": 9600,
? ? "hbaud": 1200,
? ? "type": "Kenwood",
? ? "rig": ""
? },
? "ardop": {
? ? "addr": "127.0.0.1:8515",
? ? "arq_bandwidth": {
? ? ? "Forced": false,
? ? ? "Max": 2000
? ? },
? ? "rig": "my-rig",
? ? "ptt_ctrl": true,
? ? "beacon_interval": 0,
? ? "cwid_enabled": true
? },
? "pactor": {
? ? "path": "/dev/ttyUSB0",
? ? "baudrate": 57600,
? ? "rig": "",
? ? "custom_init_script": ""
? },
? "telnet": {
? ? "listen_addr": ":8774",
? ? "password": ""
? },
? "varahf": {
? ? "addr": "localhost:8300",
? ? "bandwidth": 2300,
? ? "rig": "my-rig",
? ? "ptt_ctrl": true
? },
? "varafm": {
? ? "addr": "localhost:8300",
? ? "bandwidth": 0,
? ? "rig": "my-rig",
? ? "ptt_ctrl": true
? },
? "gpsd": {
? ? "enable_http": false,
? ? "allow_forms": false,
? ? "use_server_time": false,
? ? "addr": "localhost:2947"
? },
? "schedule": {},
? "version_reporting_disabled": false
}
?


 

Jim, Your config file is corrupt. json is super picky about syntax. One character out of place destroys the file's readability. To resolve, open Pat Menu->Manage Pat Winlink->Repair Pat Config. That should give you a good config file. You can verify that pat is running with:
sudo systemctl status pat@$USER

Also, I notice that two ports have been changed from default.
"http_addr" was changed to 5050
"address" was changed to 4001
Unless there is a specific reason, these ports should be left at default. IF you change the "http_addr" port, be sure to update the Pat Menu settings to match whichever port you set in the Pat config file.
--
73, de KM4ACK
|
|


 

Thanks. ?Well, I¡¯ve run repair several times to no avail. ?This morning, I deleted all the configure file and rebuilt new. ?Still the same result. ?Is there value in deleting pat and re-installing??


 

Possibly. Shouldn't need to uninstall Pat first. Should be able to install right over the already installed version.

I am a bit confused though. By running the repair, it creates a fresh copy of the config file and restarts the Pat service. That should have worked.
--
73, de KM4ACK
|
|


 

Just to verify my sanity, I botched my config file on a 64bit version of Bookworm. Stopped the pat service. Tried to restart, got error. Ran the repair in Pat Menu and it fixed the config file as expected. At this point, I would certainly suggest reinstalling Pat. I can't imagine what else would cause the error.
--
73, de KM4ACK
|
|


 

This value is not closed fyi (literal new line in string)


connect_aliases": {
? ? "telnet": "telnet://{mycall}:CMSTelnet@...:8772/wl2k? },


 

Maybe I'm being really dense but I haven't seen you try entering the selected port number in your browser. For example, if in the configuration file the port is specified as 5050, then in the browser it would be?127.0.0.1:5050.


 

73Linux
Pi4B - 4GB
RPI Bookworm 64-Bit
IC-705 using Flrig

Thanks for the replys.? So, here are some updates.? Deleted the 73Linux Folders, config.json file to ensure all previous settings were removed.

Installed a Fresh install of 73Linux.?

1. The Gridsquare in Conky started working.? I had previous followed the conky fix from Jason's video, but it did not fix it.? However this re-install allowed it work.

2.? The reinstall gave me a clean Pat Configure.? Updated? the Pat config settings in Pat Menu.? However, the changes do not update Pat Configure, nor does the repair.? However, if I update Pat Configure with my callsign, winlink passowrd, grid square then Pat Server becomes active.

3. Right now, I'm focused on getting ARDOP working.? With Pat Active, I Start ARDOP Modem, Pat Launches with ARDOP.? The waterfall can shows that it is listening.? However, if I try to send a CW ID, ARDOP goes into transmit, but it does not key the 705 via FLRIG.? RIGCTL shows OFF in Conky.? I suspect this is because I don't have Pat Configure set right for rigctl.? I think this is due to Pat Settings/Config not properly update Pat Configure.? So, If I can see a good example of what a 705 with flrig looks like, I should be able to make some manual entries.

73
Jim K0JNR
ReelfootJim
{
? "mycall": "K0JNR",
? "secure_login_password": "",
? "auxiliary_addresses": [],
? "locator": "EM48ON",
? "service_codes": [
? ? "PUBLIC"
? ],
? "http_addr": "localhost:8080",
? "motd": [
? ? "Open source Winlink client - getpat.io"
? ],
? "connect_aliases": {
? ? "telnet": "telnet://{mycall}:CMSTelnet@...:8772/wl2k"
? },
? "listen": [],
? "hamlib_rigs": {},
? "ax25": {
? ? "engine": "linux",
? ? "rig": "",
? ? "beacon": {
? ? ? "every": 3600,
? ? ? "message": "Winlink P2P",
? ? ? "destination": "IDENT"
? ? }
? },
? "ax25_linux": {
? ? "port": "wl2k"
? },
? "agwpe": {
? ? "addr": "localhost:8000",
? ? "radio_port": 0
? },
? "serial-tnc": {
? ? "path": "/dev/ttyUSB0",
? ? "serial_baud": 9600,
? ? "hbaud": 1200,
? ? "type": "Kenwood",
? ? "rig": ""
? },
? "ardop": {
? ? "addr": "localhost:8515",
? ? "arq_bandwidth": {
? ? ? "Forced": false,
? ? ? "Max": 2000
? ? },
? ? "rig": "my-rig",
? ? "ptt_ctrl": true,
? ? "beacon_interval": 0,
? ? "cwid_enabled": true
? },
? "pactor": {
? ? "path": "/dev/ttyUSB0",
? ? "baudrate": 57600,
? ? "rig": "",
? ? "custom_init_script": ""
? },
? "telnet": {
? ? "listen_addr": ":8774",
? ? "password": ""
? },
? "varahf": {
? ? "addr": "localhost:8300",
? ? "bandwidth": 2300,
? ? "rig": "",
? ? "ptt_ctrl": false
? },
? "varafm": {
? ? "addr": "localhost:8300",
? ? "bandwidth": 0,
? ? "rig": "",
? ? "ptt_ctrl": false
? },
? "gpsd": {
? ? "enable_http": false,
? ? "allow_forms": false,
? ? "use_server_time": false,
? ? "addr": "localhost:2947"
? },
? "schedule": {},
? "version_reporting_disabled": false
}
?