No **POST_END_OF_NIGHT_DATA=true** in config/config.sh.
@Stephen2615 The end of night script calls `postData.sh`, but ONLY if **POST_END_OF_NIGHT_DATA=true** in config/config.sh.
The very last thing the website installation script does is tell the user to update that setting. Did you see that line?
The next release will set POST_END_OF_NIGHT_DATA automatically which will eliminate this problem.
Originally posted by @EricClaeys in https://github.com/AllskyTeam/allsky/issues/1231#issuecomment-1166179151
There is no POST_END_OF_NIGHT_DATA=true in my config/config.sh. What do I do to correct the ** WARNING: data.json ** error?
We got rid of the POST_END_OF_NIGHT_DATA setting a couple releases ago. If you have a local and/or remote Website then postData.sh is automatically called during the end-of-night processing to upload the data.json file.
That "WARNING: data.json..." you are seeing is almost always due to incorrect settings in ftp-setting.sh.
The easiest check if you are running the newest Allsky is to run postData.sh --debug and see what it says. If it can't upload the file, look at the "Troubleshooting -> Uploads" documentation page, including the last section.
Hi, I have the same problem with postdata. This is the result from -- debug:- pi@allsky:~ $ postData.sh --debug ERROR: Unknown PROTOCOL: 'sftp # or another protocol' postData.sh: WARNING: No local or remote website found.
Everything else works apart from the Data file being updated
Any help would be appreciated
@pwe169, I suspect you are missing a double quote on the PROTOCOL= line, so it's picking up the whole line.
It should look like
PROTOCOL="sftp" # optional comment
Thanks for replying Eric.
This is what I have:- PROTOCOL="sftp" # or another PROTOCOL
All the other images etc upload OK so sftp into my IONOS site works
I am using the release version: v2023.05.01_05
Chang the line to just
PROTOCOL="sftp"
Thanks Eric - that worked!!
Annoying message now gone
Pete
Glad you got it working!