New release directory not updating timestamp #212
Comments
I am consistently getting this issue all of the sudden. I didn't haven't up until today, and I upgraded and deployed each day last week. I'm running 1.2.1 |
I've also tried rebooting the remote server and clearing the composer cache to no avail. |
Does anyone know if the timestamp is retrieved from the local machine or the remote server? |
I had to remove the folders and re-deploy and it's back to normal.
EDIT: I believe I have a safer solution below. |
I've ran into this error again. Here's the steps I took to create it:
Cloning repository in "/www/projectname/staging/releases/20140423125123"
[USER@IP] (test) fatal: destination path '/www/projectname/staging/releases/20140423125123' already exists and is not an empty directory.
Unable to clone the repository
fatal: destination path '/www/projectname/staging/releases/20140423125123' already exists and is not an empty directory.
Migrating Database
[USER@IP] (test) Nothing to migrate.
...
Deployment was canceled by task "Deploy"
Execution time: 12.2105s Please note, todays date is 5/5/2014 and the last time I deployed to the Staging environment was 4/23/14. It is trying to redeploy the last deployment for some reason. |
A temporary fix that worked for me that does not involve the full teardown:
NOTE: I manually removed the directory for the stage that had problems ( @Developer: For the EDIT: It looks like this might orphan some releases in your stage if you do not delete them manually. This isn't a problem, but old releases not listed in the JSON file might not get pruned properly. |
Could this be due to me switching Git branches? I have a nightly build running through Bamboo which never has this problem, but sometimes I push from my local repo and I never had this problem until I started switching branches. Just a thought. |
It does work to run an update instead of a full deployment, but still getting this issue. |
I think this is a branch issue. I'm noticing that if I always deploy from the master branch, I don't seem to run into this. |
Although now I'm running into it on the master branch. |
@Anahkiasen do you have any inclinations as to why this would be happening? |
I'm actually able to fix the error by running the deploy:flush command that clears Rocketeer's credentials cache. |
It looks like there might be an issue where the app/storage/meta/deployments.json file is being updated in Server.php:
I'm assuming that suppression was added for a reason. If there's an error with updating this deployments file, we may not get notified. |
Running into this now, but deploy:flush doesn't do anything. |
When I run deploy with the
Surely, when there is a fatal error, the deployment should be cancelled. It isn't though, so all the messages point towards the deployment being successful. Makes things quite frustrating. Will look more into it. |
I'm getting inconsistent result when both doing a complete deploy and deploy:update. Running the --verbose option shows no error. It says that my app is "Already up-to-date.", but I don't see any changes on the site. Quite frustrating. |
While trying to figure out what the issue was, it suddenly started working again. A couple days later and it all goes wrong again. @Anahkiasen, a little sign of life would be nice. |
Don't worry I'm following this issue closely, I just haven't had much time to get into it lately but I'm not forgetting. |
Ok, thanks for letting me know. |
@Anahkiasen, unfortunately, I didn't find out what caused my issues here and couldn't wait any longer, so moved the functionality across to Laravel Envoy. Cheers for all your hard work on Rocketeer! |
This issue is still bugging all my deploys, the only workaround for me at the moment is doing a full deploy, which takes a lot of time, comparing to an update. Any idea when this issue might be resolved? |
This should be fixed on develop, current/next release isn't cached in a file anymore. |
Awesome! Thanks @Anahkiasen! |
I'm running Rocketeer version 1.2.0 and I'm getting an issue when trying to deploy where rocketeer doesn't seem to be updating the release timestamp. The timestamp below is from almost a week ago. I'm obviously able to do a deploy:update to pull changes, but cannot deploy new releases.
I've run artisan's cache clear command. I've also gone in to look at how rocketeer is getting this timestamp. It appears it is being done in Traits/BashModules/Core.php in the getTimestamp method. This just runs the date command on the server. Running this manually gives the correct timestamp.
Has anyone else run into this issue?
The text was updated successfully, but these errors were encountered: