Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsalsburg opened this issue Jul 29, 2024 · 9 comments
Open

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

jsalsburg opened this issue Jul 29, 2024 · 9 comments
Assignees

Comments

@jsalsburg
Copy link

          @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 AllskyTeam/allsky#1231 (comment)

@jsalsburg
Copy link
Author

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
Copy link
Collaborator

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.

@pwe169
Copy link

pwe169 commented Nov 12, 2024

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

@EricClaeys
Copy link
Collaborator

@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

@pwe169
Copy link

pwe169 commented Nov 12, 2024

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
Copy link

pwe169 commented Nov 12, 2024

I am using the release version: v2023.05.01_05

@EricClaeys
Copy link
Collaborator

Chang the line to just

PROTOCOL="sftp"

@pwe169
Copy link

pwe169 commented Nov 12, 2024

Thanks Eric - that worked!!

Annoying message now gone

Pete

@EricClaeys
Copy link
Collaborator

Glad you got it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants