Inconsistency with volumes

We have an issue where when we startup a container/pod we run a script that should exists inside of a volume (container volume). Where we get inconsitencies is that sometimes it seems the volume has not been connected yet so the build error fails, why might this be? Also I'd really appreciate if the messages in my purple circle be attended to as theres a bunch of context in there