Great question — answering as the UphillTech team:
Without seeing the script itself, one strong possibility I'd suggest investigating is that the networking isn't fully level by the time your script executes. The reason it manually succeeds is that you've executed it after the networking is fully up. I have a git repo my own pi camera application is dependent on for shoveling pictures & videos it captures to the cloud. My script just keep looping the git clone until it either succeeds or at least makes me aware its failed: until git clone https://github.com/andreafabrizi/Dropbox-Uploader.git do echo echo "Download of Dropbox-Uploader repo failed. Retrying" echo "CTRL +C to exit if failing endlessly" echo done
Full answer by F1Linux: https://unix.stackexchange.com/a/567181 (CC BY-SA 4.0).
Need it done for your business? UphillTech.