Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Why does my deployment fail after extended period of time

If I run my build and deploy to my environments immediately the deployments work as normal. But if I deploy to one environment and then try to deploy a week later the deployment fails with.

/bin/sh: ts-node: not found

This leads me to believe that the environment is cleared after a certain period of time.

  1. Is this in the documents? Where?
  2. Can it be extended?
  3. If the top two questions are not the solution what is?

1 answer

0 votes

Hi @ross_rawlins,

Are you referring to the deployment environments which are specified in a Bitbucket repo's Repository settings > Deployments? I don't believe that we're deleting anything that you configure there, but I'm not sure if anything is removed on the servers where you are deploying.

It's also a bit difficult to say what is happening without some additional info, like
- how are you doing the deployments, what commands are executed in the yaml file
- what is the full output of these commands

Would you feel comfortable sharing this additional info here?

Kind regards,

Hey Theo

I discovered its got to do with the dependency cache that automatically gets cleared after 7 days but my release process is longer than that so it would be a month before we deploy that build. 

Do you know if you can extend that cache period?

Hi Ross,

I'm afraid that it is not possible to configure the time that cache is stored at the moment. Since caches are temporary, the builds should be configured to work whether or not the cache is present.

We have a feature request in our issue tracker to allow configuration of the expiry date for caches:

I would suggest adding your vote in that feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback with your use case, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request.

Please feel free to let me know if you have any questions.

Kind regards,

Thanks. I inherited the build so I wouldnt know how to make it run with out the dependencies, 

Hi Ross,

I didn't mean that the builds should run without the dependencies. If dependencies are needed, there should be a command in the script in your yml file that downloads them and possibly a file in the repo that specifies these dependencies. If a cache is present, the dependencies won't get downloaded again. However, if there is no cache, the dependencies will then be downloaded.

The way to do that depends on what language tools you use. If you did not create the repo and build yourself, I think it's best to reach out to the person who did and ask for info on what dependencies are needed and how they can be downloaded with the language tools you use.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,450 views 3 10
Read article

Atlassian Community Events