Comments (3)
wow, I never thought it would be possible for a deploy to take this long.
The reason is that SSH keys are normally cleaned up when deploy is finished, but if something happens (say the worker crashes) it gets left on the server which isn't great so there is a cronjob to clean up keys older than 12 hours.
For now the simplest fix is to change app/Console/Commands/ClearOldkeys.php
and increase the KEEP_FILES_FOR_HOURS
constant. Maybe I should make it a config option?
Trying to figure out if the deploy which uses the key is still actually running because much more complicated, although it may be doable.
from deployer.
Thanks for your response, Stephen.
I'll try to update the constant and see if it helps. Maybe a configurable option is a good idea even if it's rarely going to be changed.
The command used to take just a couple of hours until we moved our servers to AWS and they reduce RDS instance Write IOPS and CPU when it's heavily used unless you pay a lot. But we need to run it maybe once a month so it's not worth it.
from deployer.
Hi Stephen, I can confirm that changing KEEP_FILES_FOR_HOURS
constant in app/Console/Commands/ClearOldKeys.php
to a longer period works and we were able successfully complete the deployment.
Thank you!
from deployer.
Related Issues (20)
- Unable to make socket work HOT 7
- how could i run "git clone" and "composer install" command on local machine HOT 1
- Installation not possible due to "Redis not running" HOT 2
- Commands drag and drop reordering doesn't work? HOT 1
- Whoops, looks like something went wrong. HOT 1
- Able to set PHP binary path on server
- Handle Unicode characters
- Migrating step of shared folder issues on shared filesystem
- preg_match: compilation failed error HOT 1
- Cannot use Deployer with submodules HOT 9
- queue:work no response
- Delete Group HOT 1
- Optional steps not run when triggered via Webhook
- A connection could not be established to the socket
- fetching of project not working from git server HOT 3
- Trying to get in touch regarding a security issue HOT 2
- rsync error for new deployment at Install Composer Dependencies step.
- 404 on laravel-migrate-fresh HOT 12
- Is this project dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deployer.