Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
Hi,
I've been trying to troubleshoot why my schedule isn't working at all after a Winter hiatus. I have been regularly updating even though it hasn't been in use. I've run a multi-meter across the master output while it should be running but get no output, however the selected station gives me ~ 24VAC.
After investigating I found the Master was no longer set as a master so I changed that in the settings and saved it but it still fails, if I reset or reboot it reverts to being a standard station so I think this is a software issue rather than hardware. Any ideas anyone? Is there a config file I can edit directly to set it as a master?
Thank you
David
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
2024 Nov 28, 03:40 PM
(This post was last modified: 2024 Nov 28, 03:43 PM by dan.)
The config file that holds the master setting is SIP/data/sd.json
the master setting is named "mas".
Can you try a different station as master?
What version of SIP are you running?
<p><br></p>
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
2024 Nov 29, 04:11 PM
(This post was last modified: 2024 Nov 29, 04:12 PM by dan.)
I did some testing with SIP version 5.1.80 (2024-11-20) and did not see the master reset after a run-once or restart.
In fact the master did not appear on the run-once page.
<p><br></p>
Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
2024 Nov 29, 09:53 PM
(This post was last modified: 2024 Nov 29, 09:59 PM by DavidCNZ.)
Yes, it's the same for me until I restart or reboot. After that no master is set and (of course) all the Activate Master settings are lost. This probably started happening several months ago towards the end of our Autumn. I'd assumed I had a cabling problem with the master but after confirming that was OK found this problem.
I know it definitely updates in sd.json, I set up the master yesterday and sd.json had a date\time of 29/11/2024 7:39:45 pm and scheduled runs have been working since, after the restart the master settings are gone and the file date\time is now showing as when I did the restart 20\11\24 10:45:10 am. Something is rewriting it during the restart process.
I think I might be best to take a copy of the settings and rebuild it.
I set the master etc. again and saved and can see the master set in sd.json after that. However the date\time hasn't updated on the file, it's still the same as the restart time.
Posts: 135
Threads: 11
Joined: May 2017
Reputation:
4
A wild guess, could it be file permissions or running SIP on a account with insufficient privs?
--Gerard
Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
OK bear with me. @Dan I found those lines of code in gv.py and commented them out. SIP GUI refused to connect so I put them back again and instead changed the name of the file it would create and then restarted. The new file didn't get created but the Master settings were again lost.
I don't think it's permissions, everything looks normal. I decided to do a complete rebuild as I found "Manage Plugins" wasn't working either, I'd click on it and the page would refresh and leave me still on the home screen.
So I bit the bullet and set up the current installation with the Data folder moved to a flashdrive. Then I did a completely fresh install of Raspian lite on a new SD Card. Installed RPIGPO, PIP, Paho-MQTT etc. Installed SIP and set it to point to the flashdrive Data folder.
Everything looking good... except if I choose Reset or Reboot from the settings in the GUI then they are lost yet again. If I reboot from ssh then they aren't lost. It has to be something running from SIP, if I just pull the power and start it again nothing is lost.
Any other thoughts most welcome.
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
2024 Dec 02, 02:48 PM
(This post was last modified: 2024 Dec 02, 02:55 PM by dan.)
I see it happen when restarting SIP from the settings page.
I will look for the cause.
<p><br></p>