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

SYNCAPI/Passive Not working #1686

Open
jshall77 opened this issue Nov 28, 2024 · 5 comments
Open

SYNCAPI/Passive Not working #1686

jshall77 opened this issue Nov 28, 2024 · 5 comments

Comments

@jshall77
Copy link

Hello,

I am attempting to set up secondary sites to mirror my RPI's running Indi-Allsky, however it appears that the scripts used for creating the new user and API key don't work or need more dependencies than are already installed. Is there another way that the SYNCAPI feature can be implemented? I even tried setting up a "standard" installation of indi-allsky that mirrored my current config, other than the secondary is running on an Ubuntu VM vs RPI, and still didn't have any luck.

@aaronwmorris
Copy link
Owner

Did you have the python virtualenv activated when running the user management commands?

source virtualenv/indi-allsky/bin/activate

./misc/usertool.py

@jshall77
Copy link
Author

Well, on Ubuntu 22.04 I can't even get that far. Running the "web_only_setup" script generates the attached error.

Running it on RPI generates the second error attachment.
Screenshot 2024-11-29 161017
Screenshot 2024-11-29 161033

@aaronwmorris
Copy link
Owner

aaronwmorris commented Nov 30, 2024

This usually happens when a version of flask is installed outside of the virtualenv or maybe in the user home directories.

@jshall77
Copy link
Author

So I abandoned the "web_only_setup" and just installed as normal, selecting "Indi-Passive" as my camera config, then ran the API script and that worked fine. I was able to set up 2 API-Sync VMs to mirror my current Allsky devices. However, I do still have a couple questions:
Does this sync all previous data? ie. images, timelapses, etc. or just what is there from the point of configuring the Sync?
If I change a retention setting on the secondary instance, does this also change on the primary or am I able to have separate retention settings?

Thanks as always for your awesome work!
Jeff

@aaronwmorris
Copy link
Owner

The retention settings are separate on both sides. However, because the image expiration occurs in the capture process which does not run on the remote side, you will have to manually expire images using the ./misc/expire_images.py script.

The previous images and videos are not synced automatically, but you should be able to manually sync them using the ./misc/upload_sync.py script.

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

No branches or pull requests

2 participants