Red Gate forums :: View topic - ...RedGate\DeploymentAgent\Applications\ folder
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

...RedGate\DeploymentAgent\Applications\ folder

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
mwoffenden



Joined: 08 Jun 2013
Posts: 72
Location: Boston

PostPosted: Sun Sep 01, 2013 2:46 am    Post subject: ...RedGate\DeploymentAgent\Applications\ folder Reply with quote

This folder accumulates a huge amount of files.

I want to create a job to clean it up daily. Will this affect the agent negatively?

UPDATE: So as a test (on a test machine) I deleted everything in the the folder after seeing that they appeared to be just data. Afterward the agent went offline and I had to re-install the agent to get things going again. Why?
_________________
Michael Woffenden
Founder and President
Information Results Corporation
Back to top
View user's profile Send private message
david.conlin



Joined: 04 May 2012
Posts: 49

PostPosted: Mon Sep 02, 2013 12:32 pm    Post subject: Reply with quote

Hi Michael -

I am very surprised that you had to reinstall the agent to make it work after deleting this folder.

A breakdown of what is in the folder:

the .Agent folder contains a folder with all the deployment logs in it. I'd recommend not deleting this folder: the contents are all text (ie small) and could prove useful.

The .Agent folder also contains a cache of NuGet packages downloaded from the server. The agent might behave a little strangely and need a restart if you delete these while it's running, but otherwise you can safely delete them.

The other directories in this folder should correspond to package deployments for projects in Deployment Manager or agent upgrades. You should be careful when deleting these, since your currently deployed projects are probably in these folders: for example if you have a running IIS website, it will be located in here by default. As long as you are sure these deployments are past their sell-by-date, they can be deleted however.

In summary, I wouldn't be surprised if you had to restart the agent after deleting the contents of this directory, it could get confused about which files exist. It definitely shouldn't need to be reinstalled, though - it'd be really good to work out what's going on here so that we can fix it.

What exact behaviour were you seeing? Were there any errors in the Windows Event Viewer relating to the agent? Did you try restarting the agent services from the Windows Services control panel?

We are also looking at improving the use of this directory in the near future, and cleaning up unused files from here so that it takes up less space. If you have any strong opinions about how this should work, let us know. If you think this is currently the most important thing for us to be working on, vote for it on uservoice
_________________
David Conlin
Software Developer
Deployment Manager
Back to top
View user's profile Send private message
mwoffenden



Joined: 08 Jun 2013
Posts: 72
Location: Boston

PostPosted: Mon Sep 02, 2013 1:29 pm    Post subject: Reply with quote

When I deleted the files in the folder, I could not run deployments. The following error was thrown:

Client is unable to finish the security negotiation within the configured timeout (00:00:00). The current negotiation leg is 1 (00:00:00).

When I placed all the deleted files back in their original folders, the issue persisted. Only re-installing (uninstalling and reinstalling that is) the agent worked to resolve the issue.

So if these folders under "applications" are truly just temporary data I think users would benefit from a global DM setting to clean this files in this folder after a successful deployment. In the meantime I will try setting up a batch job that deletes just older files and leaves the most recent.
_________________
Michael Woffenden
Founder and President
Information Results Corporation
Back to top
View user's profile Send private message
mwoffenden



Joined: 08 Jun 2013
Posts: 72
Location: Boston

PostPosted: Wed Sep 04, 2013 9:45 pm    Post subject: Reply with quote

So, just to follow up...can someone from RG please list the files that are delete-able and the ones that are not?
_________________
Michael Woffenden
Founder and President
Information Results Corporation
Back to top
View user's profile Send private message
david.conlin



Joined: 04 May 2012
Posts: 49

PostPosted: Thu Sep 05, 2013 11:12 am    Post subject: Reply with quote

Michael -

I would expect it to be ok to delete all the files from this folder, apart from the ones that are "current" deployments, as long as the agent is not in the middle of a deployment when you do so.

This works fine in a simple test on my machine. However, it looks like something is making the agent service crash on your machine. The error message

Quote:
Client is unable to finish the security negotiation within the configured timeout (00:00:00). The current negotiation leg is 1 (00:00:00).

probably means that the agent service is not currently running.

In order to work out what's causing the different behaviour on your machine, could you let me know

  • Does restarting the agent service (Red Gate Deployment Agent in the Windows Services control panel) after deleting the files fix the connection problems you're having?
  • Are there any error messages relating to the agent service in the windows event log on the agent machine?

_________________
David Conlin
Software Developer
Deployment Manager
Back to top
View user's profile Send private message
mwoffenden



Joined: 08 Jun 2013
Posts: 72
Location: Boston

PostPosted: Fri Sep 06, 2013 5:59 pm    Post subject: Reply with quote

Ran thru another test on the same machine.

Same as before, deleted the files and folders in Applications:

.Agent
.Upgrade
Test

Then did a deployment. Result: No issues this time around.
_________________
Michael Woffenden
Founder and President
Information Results Corporation
Back to top
View user's profile Send private message
david.conlin



Joined: 04 May 2012
Posts: 49

PostPosted: Mon Sep 09, 2013 11:09 am    Post subject: Reply with quote

Ok, feel free to get back to us if it's a problem later.
_________________
David Conlin
Software Developer
Deployment Manager
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group