Might this be a result of the Raspberry Pi Network connection not having been started at the time the startup process runs your script?
There is an option in the raspi-config utility to control this behaviour. Option 3, then B2.
I am following a project..
All good decisions start with gathering enough information.
There is no meaningful maximum - the technological limits are beyond the capacity of any card commercially available at the time of writing.What is the maximum SD card size for this model?