Closed benhartwich closed 1 month ago
A couple thoughts.
Using non-standard locations/names is asking for trouble. Not saying that's the issue here, but it's not helping.
I suggest renaming htdocs/allsky-website
to htdocs/allsky
. The most recent image will go there, and the startrails
, keograms
, and videos
directory go there.
The way you've configured ftp-settings.sh suggests you have both a REMOTE Website and a LOCAL Website. The WEB_*_DIR variable are only used for local Websites, and there is no "htdocs" directory on the Pi. Please see the Settings -> Allsky Website documentation page, specifically near the end of the "ftp-settings.sh" section, for examples of what to use for a local Website, a remote Website, and both Websites.
FYI, this is significantly easier and less error-prone in the next release of Allsky. A LOT of people struggle with these settings - so did I when I started.
OK thanks, now it works. Is there any command to bulk upload all files again, which were not uploaded successfully?
Glad you got it working. Only one image file is on the Website, so I assume you mean the startrails, keograms, and timelapse. How many days' files are missing? try this:
cd ~/allsky/images
for i in DATE1 DATE2 # Add all the dates, e.g, 20240727
do
generateForDay.sh --upload ${i}
done
that will upload all 3 image types for all the dates you specify. To upload ALL dates, use for i in *
Eric
Thanks for the help - looking forward to the new release :)
@benhartwich, please let me know how the loop I showed worked for you. Other people have asked the same question, and I should probably document the answer.
Yes it works.
I had the exact same problem and yes the loop works 👍
Environment
Bug Description
I have defined the upload paths and created the specific folders on the remote server. The upload of the command json file works, but the image upload doesn´t:
But a test upload the allsky user works great:
I don´t know what could be the reason. Also the config file is uploaded to the path set in IMAGE_DIR, what is very odd. What can be the reason that the upload doesn´t work via sftp while manual upload works?
Log / configuration files