Nighly updates overrule local host files

General support for the Pi-Star System
Post Reply
PE1ER
Posts: 5
Joined: Thu Aug 01, 2019 5:04 am
Location: JO22LL

Nighly updates overrule local host files

Post by PE1ER »

Dear OM's,

I have the following issue for which I need some help:
With my Pi-Star want to connect to my own reflector which is in the same network as the Pi-Star. In the official host file, naturally my external IP address is stated. As my firewall does not allow to go out through the back door and come back in to the front door I made a local host file in the /root directory with the local IP address of my reflector and an 'L' as last character to avoid overriding. After reboot of the Raspberry, it will smoothly link to my reflector. BUT, after the nightly host file updates it remains unlinked. So every morning I have to reboot the raspberry or press the unlink / link buttons on the dashboard. Then It will link again without any modifications to the files.
Is there a solution to solve this issue?
I am using the latest beta as I run the Pi-Star on a 3B+.
Thanks in advance.

73, PE1ER de Ed.
User avatar
KE0FHS
Posts: 1122
Joined: Wed Apr 11, 2018 8:40 pm
Location: Colorado, USA
Contact:

Re: Nighly updates overrule local host files

Post by KE0FHS »

Have a look at this post by Tom, W1TG; it might help:
viewtopic.php?f=4&t=1482&p=7910#p6704
73, Toshen, KE0FHS
Playing with Pi-Star (unofficial notes about setting up and using Pi-Star):
https://amateurradionotes.com/pi-star.htm
PE1ER
Posts: 5
Joined: Thu Aug 01, 2019 5:04 am
Location: JO22LL

Re: Nighly updates overrule local host files

Post by PE1ER »

Hi Toshen,

Thanks for your reply.
I've checked the link and the settings in it. The settings are all correct in my config so this didn't solve the problem.
But thanks anyway.

73, PE1ER, de Ed.
PE1ER
Posts: 5
Joined: Thu Aug 01, 2019 5:04 am
Location: JO22LL

Re: Nighly updates overrule local host files

Post by PE1ER »

Yes it does. When I reboot the RPi it automatically link to my reflector till the nightly host file update. Then it will not link till a power cycle, or till I press the unlink / link buttons on the dashboard.
PE1ER
Posts: 5
Joined: Thu Aug 01, 2019 5:04 am
Location: JO22LL

Re: Nighly updates overrule local host files

Post by PE1ER »

That is what I thought so too.
A hope someone can solve this as I am not a Linux expert.
Thanks for your help.
User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: Nighly updates overrule local host files

Post by VK7HSE »

I have several custom hosts added by this method and if you look at the appropriate hosts file usually the custom one are copied to the very end of the file, this is not happening

Sent from my Pixel 2 XL using Tapatalk

PE1ER
Posts: 5
Joined: Thu Aug 01, 2019 5:04 am
Location: JO22LL

Re: Nighly updates overrule local host files

Post by PE1ER »

I found out that the issue is probably not in the host files. Yesterday I # out the line /usr/local/sbin/HostFilesUpdate.sh in file pistar-daily.cron but the problem persists. This evening I will # out more lines in that file and sees whats happening tomorrow.
Post Reply