AllskyTeam / allsky-website

Web interface displaying an image from an allsky camera.
54 stars 42 forks source link

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

Open jsalsburg opened 1 month ago

jsalsburg commented 1 month ago
          @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 commented 1 month ago

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?

EricClaeys commented 1 month ago

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.