Astdb.txt will not update

Hello all

I get the following error when I run repeater@Pi-ASL:/var/www/html/allmon2$sudo ./astdb.php.

repeater@Pi-ASL:/var/www/html/allmon2$ sudo ./astdb.php
Retry 1 of 5. Will retry http://allmondb.allstarlink.org/
Retry 2 of 5. Will retry http://allmondb.allstarlink.org/
Retry 3 of 5. Will retry http://allmondb.allstarlink.org/
Retry 4 of 5. Will retry http://allmondb.allstarlink.org/
Retry 5 of 5. Will retry http://allmondb.allstarlink.org/
astdb.txt: Retries exceeded!! 0 bytes - Invalid: file too small, bailing out.

Thanks.

Does this server have internet connect active?
Can you ping something outside your NAT?

Hello Mike

Yes, I can run the asl diagnostic menu. It pings the google DNS and the pings the register.allstarlink.org.

Perhaps check permissions.
I think if you are running this ( ./astdb.php ) from the command line, perhaps sudo ./astdb.php

I set file to rwx rx r - 754 octal

Lets us know your progress.

What results when the file is opened in a browser?

same issue here- trying from supermon and allmon2. Deleted txt from supermon but same results. I changed allmon2 db txt chmod from 644 to 754- no change. Opening web link in browser shows db instantly no problem. Have not changed anything on this node in ages. (also seeing issues w Allscan posted in another thread- unsure if related) thx

Please copy-n-paste both the command and responses to these 2 commands:

echo $PATH; ls -l $(which astdb.php)
ls -l /var/www/html/allmon2 | grep astdb.php

Thank you-

root@Pi-ASL-48654:/home/repeater# echo $PATH; ls -l $(which astdb.php)
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-rwxrwxrwx 1 root root 760 Feb 25 2021 /usr/sbin/astdb.php
root@Pi-ASL-48654:/home/repeater# ls -l /var/www/html/allmon2 | grep astdb.php
-rwxrwx— 1 root root 2813 Dec 21 10:09 astdb.php
root@Pi-ASL-48654:/home/repeater#

OK,thank you. Your initial post quoted user “repeater”, this time it was “root”, so the $PATH now includes the location /usr/sbin where astdb.php resides. In your initial post, you tried to execute a file that doesn’t have permission for user repeater.

So you can type astdb.php at a prompt for either repeater or root, if $PATH for repeater also contains /usr/sbin .

One additional command of interest is:
diff /usr/sbin/astdb.php /var/www/html/allmon2/astdb.php

You are mixing me up with the OP- apologies. The OP last reply was July 2023. I don’t understand your last reply. Appreciate the assistance.

At a root command prompt, type astdb.php

check permissions on the file if it does not run

Permissions differ:
-rwxrwxrwx 1 root root 760 Feb 25 2021 /usr/sbin/astdb.php
-rwxrwx— 1 root root 2813 Dec 21 10:09 /var/www/html/allmon2/astdb.php

As I mentioned astdb.php runs fine just produces the results in the OP. I went to check permissions and ran it again from both locations and both worked fine. Nothing changed I am aware of. No info I can offer as to why it started working again. Thx for the help.

It could e that you were just suffering from the browser cache not being updated and everything was fine in the first place but you didn’t see new data in browser.

No that was not the issue. I was not even looking at a browser. Issue was that running astdb.php produced errors as shown in the OP. I am familiar with ctrl-F5 for clearing browser interfaces. Thx for the suggestion.