Red Gate forums :: View topic - RgPublish Error
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

RgPublish Error

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



Joined: 11 Jan 2012
Posts: 66

PostPosted: Thu Oct 10, 2013 3:38 pm    Post subject: RgPublish Error Reply with quote

I'm in the process of testing the deployment capabilities to our development database/website. Initially, this process will be manual until we can settle on an automated method (suggestions welcomed).

Was able to deploy the database using the SSMS deployment plug-in tool without a problem. Now on to the website.

We are still using Visual Studio 2008 (TFS repository) for our website. Hence, there is no project file (csproj) for the Visual Studio deployment plug-in to reference.

I used the RGPublish tool and the folder option to attempt to load the package to the nuget feed on our deployment manager. The command line looks like this:

RgPublish /source="C:\projects\tfs page merge\webpage" /version=1.0 /packageid=RGPublishTest /target=feed:http://eerepagedevweb1:8080/nuget/

The processing goes fine past the "Writing package..." stage, but chokes during the "Publishing package to feed at http://eerepagedevweb1:8080/nuget/..." stage with the following error:

"Unable to write data to the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full."

I was able to package sub-directories of the project using the above command, so the feed is working.

Here is the statistic on the webpage files:

Files: 4535
Directories: 289
Size: 217,287,296 bytes
Size on disk: 229,191,680 bytes

I looked at the nuget/web.config file and saw where you allow up to 4GB for file sizes. I monitored the RGPublish processing and estimate it is writing out a package of 168,034,304 bytes.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1120
Location: My desk.

PostPosted: Thu Oct 10, 2013 3:56 pm    Post subject: Reply with quote

Hi Steve,

The 4Gb limit should be fine; but we do see errors sometimes with large-ish packages. One user reported issues when their packages were ~400MB in size, but the problem stopped happening when it was down to around 100MB. I think they got a different error to the one you're seeing though.

Googling it, it seems that one possible cause is port exhaustion, which can be helped by amending a registry key - see here
Back to top
View user's profile Send private message
SteveGTR



Joined: 11 Jan 2012
Posts: 66

PostPosted: Thu Oct 10, 2013 4:28 pm    Post subject: Reply with quote

Thanks for the quick reply James. I tried that and it still doesn't help. The same error occurs.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1120
Location: My desk.

PostPosted: Thu Oct 10, 2013 4:40 pm    Post subject: Reply with quote

It may well just be the built in feed not handling the larger packages for some reason. Have you tried configuring a standalone feed to see if it's more effective? See http://documentation.red-gate.com/display/DM2/Working+with+package+feeds#Workingwithpackagefeeds-Settingupyourownpackagefeed
Back to top
View user's profile Send private message
SteveGTR



Joined: 11 Jan 2012
Posts: 66

PostPosted: Thu Oct 10, 2013 6:35 pm    Post subject: Reply with quote

You know I didn't configure this setting on both machines. I only did it on the server. I'll try it again after I've reconfigured the other computer and report back. Thanks again Smile
Back to top
View user's profile Send private message
SteveGTR



Joined: 11 Jan 2012
Posts: 66

PostPosted: Thu Oct 10, 2013 6:54 pm    Post subject: Reply with quote

Well my idea didn't work. The same error is generated. I'll look at what you posted.
Back to top
View user's profile Send private message
SteveGTR



Joined: 11 Jan 2012
Posts: 66

PostPosted: Thu Oct 10, 2013 7:33 pm    Post subject: Reply with quote

While looking at the link on creating the nuget feed it struck me that I could just have RgPublish put the nuget package directly on the deployment manager server.

I changed the command to:

RgPublish /source="C:\projects\tfs page merge\webpage" /version=2.3.0.32 /packageid=WebPage /target="\\eerepagedevweb1\c$\ProgramData\Red Gate\DeploymentManager\Data\feed"

Viola!!! The process worked and the package is available for publishing. For the record here are the details of the package that was choking the nuget feed:

138,135,459 WebPage.2.3.0.32.nupkg

Thanks for your help James, I appreciated it Smile
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1120
Location: My desk.

PostPosted: Fri Oct 11, 2013 3:37 pm    Post subject: Reply with quote

Ah, cool - glad to hear you've worked around the problem!
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