deployment,octopus-deploy,nuspec,octopack , Octopack packaging windows service as if it were a web site

Octopack packaging windows service as if it were a web site


Tag: deployment,octopus-deploy,nuspec,octopack

I have a windows service which contains the necessary components to allow it to render razor templates. This service listens on a message queue and sends emails, using the razor templates to generate rich html.

Everything is working fine, however, when it comes to deploying it with Octopus Deploy, it seems that OctoPack is seeing this service as a web site and packaging it incorrectly.

Before adding the razor template feature, this service used to get packaged correctly and was able to deploy with no worries.

The packaged output now looks like:

enter image description here

When in reality, it needs to just contain the contents of the bin folder. It seems to me as if OctoPack is treating the service as a website now.

I have tried adding a nuspec file, but that doesn't work, I end up with:

enter image description here

Nuspec file looks like:

<!-- cut for brevity -->
  <file src="bin\**\*.*" target=""/>

So that doesn't work either.

What can I do to fix this??


I managed to hack something together to solve the problem I was having. After looking at the Octopus Deploy docs, I found that I could pass a OctoPackNuGetProperties property to msbuild and replace the config name in the nuspec file.

So the nuspec file now looks like this:

  <file src="bin\$config$\**\*.*" target="" />

and I now pass /p:OctoPackNuGetProperties=config=Deploy to msbuild, which means that OctoPack now packages the service bin correctly.

I'm still interested to hear from someone at Octopus as to whether this is an issue with OctoPack or whether it's to do with how I've set things up though.


How to deploy to autoscaling group with only one active node without downtime

There are two questions about AWS autoscaling + deployment which I cannot clearly answer: I'm currently trying to figure out, whats the best strategy to deploy to an EC2 instance behind an ELB which is the only member of an autoscaling group without downtime. By now the EC2 setup will...

Maintaining a large website [closed]

When I update a website I just replace the content with a new file. How do larger websites update their content? When thousands of visitors are viewing the site. How do example, how do Facebook or Twitter do it? Thousands of developers working and millions of visitors on the website....

Deployment of Python API

I'm trying to understand the simplest way to deploy a Django application in production. Many recommend nginx or Apache along with uwsgi or gunicorn. I think that is more than my situation requires, and I would like know if my thinking is correct. This application is nothing more than an...

What underlying difference makes Node Instances appear different?

I have two similar (if not identical) node instances that are appearing differently in a deployment diagram (and anywhere else that I use them). I may have done some odd things in the past while beating EA into submission. But, now ... by pulling every lever I can imagine, I...

Mule - Exported project - Error

I have exported my mule project which contains a WSDL file in src.main.resources/wsdl-request. The type of export is AnyPoint Studio Project to AnyPoint Deployable Archive. The problem is that when I execute the deployable archive in the server it return this error: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Users/usrAdmin/AnypointStudio/workspace/mule-project-test/src/main/resources/wsdl-test/Request.wsdl'....

Deploying to Android results in file not found after adding QtQuick Controls

After importing QtQuick.Controls 1.2 and using StackedWidget component, I now get an error when deploying to Android as seen below. The missing file AnimationDrawable.qml is not missing from the Android build directory so I do not understand why it is not packaged with the APK. It deploys fine when I...

guidelines for production website

background: I have been a developer for many years, but never really got involved in administration/deployment of products Now I am developing (in my free time) a social website in Java using Spring MVC and MySQL, at some point I want it to go live, what are the guide lines/...

Slow wpf startup due to publish policy… maybe

I have deployed my .NET assemblies with x-copy for years, without any issue. From last week, we have a small team that wich has the task of build a setup that includes .NET assemblies and exe and c++ legacy exe and dll (more tha 200 files). After the first installation,...

Can I use my OctopusDeploy built-in Package Repository in Manage NuGet Packages?

I have a working Octopus Deploy server which has a library of packages I built. I have an assembly which depends on one of the assemblies which I have deployed in Octopus Deploy and which is currently in that repository. I tried adding it as a package source in NuGet...

Python/Flask deployment without pip

I've usually deployed my Flask applications with a fairly simple fabric script that put the source on the target machine, used pip to install any dependencies, then fired up uwsgi with all the necessary settings and off it went. However, I have a new issue that some new security settings...

How do I create a deploy git branch for my Yeoman project?

I created a new project using Yeoman. Using Grunt I've created the dist directory. My whole project is on Github,, and I've created a prod branch. My question is how do I get my prod branch to have only the contents of dist instead of having the dist directory...

Deployment Project - custom action update

Situation: I have a Deployment Project in visual studio 2010 setup to install a console application. This console application has some custom actions written into it for the Deployment project. EDIT: To clarify, these custom actions are using the System.Configuration.Install.Installer class in .NET. I use the Committed, BeforeUninstall, AfterUninstall events...

Spring boot war file deploy on Tomcat

I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and...

Capistrano Rails deploy with new migration files

I want to deploy from a new branch I have created. On this branch, the db/migrate content has changed, I removed some migration files and regenerated a new one. The problem is, when I cap staging deploy from this branch, it fails when running migrations PG::DuplicateTable: ERROR: relation "partners" already...

Unable to deploy through capistrano after ubuntu upgrade

I recently upgraded my development machine to Ubuntu 15.04 (was 14.04LTS) and ran into a problem when trying to deploy changes to my server. The interesting bit is, that I can ssh into my server without any issues (hence, the key file is setup correct), but when I try to...

Azure deployment from source without TFS?,azure,deployment
Does anyone knows if the deployment from source feature of Azure is intended to work with .NET projects ? I mean, if I put source code in the local git repository of Azure and then trigger a deploy, is my source code going to be compiled and then deployed or...

Octopack for .Net 2.0 and msbuild 2.0

I was setting up number of projects to build NuGet packages and push onto NuGet server, so it could be later used by Octopus Deploy. All was fine until I needed to apply the same process to legacy projects. The error was: error MSB4062: The "OctoPack.Tasks.CreateOctoPackPackage" task could not be...

Laravel 5 on shared hosting getting internal server error

I am trying to get my Laravel 5 project running on my shared hosting through FTP. I have uploaded all my project files from my local XAMP-folder to the server root directory and put the files in the 'public' folder in the public_html folder. When I go to I...

running node.js sails app on openshift

I'm trying to deploy my node.js sails app on openshift. I followed procedure outlined in but still doesn't work. also try this: Node.js app on openshift no matter what i'm getting "Service Temporarily Unavailable" The server is temporarily unable to service your request due to maintenance downtime or capacity...

Can I deploy multiple instances of my application on the same windows phone?

I would like to deploy two or more instances of my application, however VS informs me that there is already an installed instance of this application on my phone. How can I install/deploy multiple instances on the same phone for debugging?...

Programmatically find the 'main' javascript file for libraries on GitHub

I'm looking to find a way of finding the "key" javascript file from javascript libraries posted on GitHub in as automated as a way as possible. So for example, this bootstrap extension called Jasny has a ton of files on the GitHub page. To get the key js file you...

Trouble with publishing simple .html site through FileZilla

I'm trying to publish a really basic site, using some webspace my college provided free for me. I've got access to a www and a data folder. The www is for the website and the data is well, well for the regular data. I've made a simple .html file with...

Issue in deploying restlet based application on tomcat

I am having issue in deploying restlet application on tomcat webserver. I am able to run the application directly from eclipse but when I deploy on tomcat I get issues like the following. May 10, 2015 10:04:32 AM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped...

strongloop slc deploy env var complications

I've been deploying a loopback app via a custom init.d/app.conf script, using slc run --detach --cluster "cpu", but want to move to using strong-pm, as recommended. But I've come across some limitations and am looking for any guidance on how to replicate the setup with which I'm currently familiar. Currently...

How to Continuously Develop and Deploy an Access 2010 Database Application

I've been developing an Access 2010 Database Application, let's call it Skill.accdb. I'm at the stage where I want to start deploying it so users can start using it and continue developing at the same time. I've been reading MSAccess-Deployment-Best-Practices, Deploy-an-Access-2007-application, and Ways-to-share-an-Access-database which talk about splitting, compiling, installing, etc.,...

Efficient way of organizaing mail sending from Rails app

I have an Rails 4 application with ruby 2.1.2 that runs on a VPS with 512 mb of RAM and want to know what are the ways of efficiently managing email notification with background job with the least possible additional background processes ( like Redis and Sidekiq, each of them...

Add Binding To IIS With PowerShell Without Overwriting Existing

We use OctopusDeploy to create the website and we use the create website template that is on the community step sites. I have modified it slightly to ensure that if the website exists it adds the default binding however it is removing all the existing bindings. Is there a way...

Deployment PhpStorm gone

My Deployment in PhpStorm is gone. I tried to upload a project and noticed that I couldn't. Then I figured it must be mappings that aren't set the right way, but when I went to Tools and wanted to click Deployment, Deployment wasn't even there....

How to properly deploy angular application (based on ngBoilerplate and using nginx)?

I have found, that ngBoilerplate was extremly easy for making first steps in webdevelopment based on angular. Right know I am trying to prepare my deployment pipeline, so I use github, travis-ci and dockerized nginx image. I thought that to properly deploy my simple angular website I just have to:...

Finding deployment data to a SQL Database

In an effort to maintain versions of the databases we have in our CMDB, I have to obtain the versions of some databases deployed to our servers by a third party company. Is there a system table, view or procedure that allows me to view information regarding recent deployments (code...

Ruby on Rails - Testing changes to Capistrano's deploy.rb

I'm trying to test some changes out on production without having to commit and push the changes because I only want to commit what actually works. The project I'm working on was created with Rails (3.0.2), and deploys with Capistrano (3.1). I've tried making changes in the root folder of...

Set ffmpeg path in supervsiorctl config file

I am having a issue where my code works fine when not under supervisor. But when under supervisor for some reason it is not finding the path to the ffmpeg dependency. (env)[email protected]:/home/www/yout# which ffmpeg /usr/bin/ffmpeg Is there any way to set the path to ffmpeg to have it check this?...

Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?

As the title says, I would like to deploy my application on multiple phones, without developer unlocking them. The said application is private, thus it can't be distributed through the store. I've heard of Company app distribution, however it's not clear for me whether it requires a developer unlocked phone...

Cannot enable a .war in JBoss AS 7.1

I have a problem while enabling the .war project in JBoss AS, here is the log from standalone/log/server.txt 18:57:51,727 INFO [] (MSC service thread 1-2) JBAS015876: Starting deployment of "booking-war.war" 18:58:15,025 ERROR [] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."booking-war.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."booking-war.war".PARSE: Failed to process...

Engineyard Deployment: How to detect in deployhooks that its the first attempt to execute 'rake db:seed'

I am having trouble to detect that this is the first attempt of deployment after a server instance is booted. I need to run the command rake db:seed only the first time to set the default users and other details in database. I have no idea if this is possible....

uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop

i'm new in rails. Today i tried deploy my shop(SpreeShop) to new production server, but somthing was wrong. I have foolowing problem with some gem: activemerchant (1.34.1). Bellow is my stack trace. uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) [email protected][email protected]rd.rb:51:in `<class:CreditCard>' [email protected][email protected]rd.rb:49:in...

Ruby on Rails with Github Pages

I am attempting to host a project using Github pages. As I understand it, Ruby on Rails cannot be run on GH-Pages, with the exception of using Jekyll. My project is not a blog, and therefor Jekyll seems like overkill. Is there any other way to deploy to GH-Pages? Is...


I am trying to deploy my first rest application using jersey 2.17. I am using Maven, GlassFish for deployment. Application runs in eclipse (tomcat), but gives following error when deploying through glassfish admin console. Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException:...

How can I deploy a web application onto an existing domain Meteor javascript

I am about to deploy my first client facing application built on Meteor JS. My client has a website - and I want to add my application's routes to that site so it would be,, etc. instead of I plan on using Heroku to host the...

Deployment over GPRS to embedded devices

I've got quite a head scratcher here. We have multiple Raspberry Pis on the field hundreds of kilometers apart. We need to be able to safe(ish)ly upgrade them remotely, as the price for local access can cost up to few hundred euros. The raspis run rasbian, / is on SD-card...

Flyway migration on deployment: Illegal call to close() detected

We're building a Java EE 6 .ear application running on GlassFish ( and use Flyway (3.2.1) to manage our database schema. This happens on deployment of the .ear - There's an article on the web called "Easy Database Migrations using Flyway, Java EE 6 and GlassFish" which nicely outlines how...

How to correctly add ENV[“SECRET_KEY”BASE"] in rails

I am having a difficult time setting up Rails 4.2 in production on a VM running on passenger and nginx, and not using RVM or anything similar. I got Incomplete response received from application and looking in the nginx error log it said something about missing secret_key_base and secret_key although...

Change the “about this” window on mac app

On Macs, there's a default menu at the top for basic application handling functions: I've made an application using Java for my Grade 10 final project, (and I'm quite convinced that it's better than Microsoft Paint) and I decided to package it. Using Eclipse, I exported it as a Mac...

Staging Environment best practices

I'm setting up a staging environment for my laravel application because I want to see how my changes would behave live before going into production. Setting up the env. is fine, since I'm using bitbucket and dploy, which makes the workflow very smooth. My questions are about the domain setup....

strongloop slc env-set not possible before deploy?

Was looking at the docs to set up a few apps deployed to strong-pm but ran into a cart-before-the-horse type issue: It's not possible to set environment variables using slc ctl env-set <service> FOO=bar... before an app is deployed and given a service name. This means that you are forced...

How to fix Symfony2 deployment issues?

I'm having this issue for a while at differents environments, differents projects and some times I did fixed some others likes now I can't find what is failing so this is my latest try. I want to deploy a app so following rules as docs say the first I did...

How to automate deployment of source & compiled code (excluding git history) to third-party developers?

I'm going to setup some tools/techiques/environments so that when I need to provide the source code for third-party developers, I do it without git history with some sensitive code already compiled and stripped. So I want to automate this process, so that I always provide the latest version of it...

What do I set MONGO_OPLOG_URL to in Meteor Up?

I have created a database and a user with oplog access in The URI I get looks like this: mongodb://<user>:<password>,<bunchOfDigits> Knowing this, what do I set as MONGO_URL and MONGO_OPLOG_URL in mup.json? There is literally no documentation on this. :(...

How to actually deploy to a serious host?

It's so undescribably discouraging and frustrating that deploying is such a pain. There are no step-by-step guides and every information source is outdated. I have NO idea where to begin! I want to deploy Meteor apps to AWS (EC2 or Elastic Beanstalk) but now I've learned that it doesn't support...

Get back an already deployed meteor app

I have this app I deployed a few months back on meteor servers, let's say it's accessible via : Now I want to reverse the procedure and get back the code I deployed. (like doing a pull from to my local machine) Is such thing possible ?...