allsky-website icon indicating copy to clipboard operation
allsky-website copied to clipboard

No **POST_END_OF_NIGHT_DATA=true** in config/config.sh.

Open jsalsburg opened this issue 1 year ago • 9 comments

          @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

jsalsburg avatar Jul 29 '24 23:07 jsalsburg

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?

jsalsburg avatar Jul 29 '24 23:07 jsalsburg

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.

EricClaeys avatar Jul 30 '24 04:07 EricClaeys

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 avatar Nov 12 '24 14:11 pwe169

@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

EricClaeys avatar Nov 12 '24 15:11 EricClaeys

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

pwe169 avatar Nov 12 '24 15:11 pwe169

I am using the release version: v2023.05.01_05

pwe169 avatar Nov 12 '24 15:11 pwe169

Chang the line to just

PROTOCOL="sftp"

EricClaeys avatar Nov 12 '24 16:11 EricClaeys

Thanks Eric - that worked!!

Annoying message now gone

Pete

pwe169 avatar Nov 12 '24 16:11 pwe169

Glad you got it working!

EricClaeys avatar Nov 12 '24 17:11 EricClaeys