I have been reading for a long time on support tickets and also by email that customers try to store files or images into the ephemeral filesystem and the have problems once their applications hibernate, scale-up/down or are redeployed. As an example, this could be a general feedback.
“My folders and files disappear after some time on CloudBees”
This is an article in which I try to explain why it happens and what is the recommendation to store images or files for your applications running on CloudBees platform.
Filesystem on the cloud
Filesystem isn’t persistent on the cloud. Application being redeployed/scale-out will start on a distinct node, so we don’t recommend you to store files there. Even when your free application hibernates after about two hours, it will wake up with a new request on a distinct node, so you will lose all the information that you have saved on the local (“ephemeral”) filesystem as a temporary cache.