Deploy to Specific Installation Folder

Hi Shany,

I’ve replied your email with the information you need to extend your Community edition.

Thanks
Dalmiro

Good day,

Everytime I deploy a NuGET package to my tentacles, it keeps the NuGET package and the extracted files… this is starting to fill up the space of our hard drive.

Is there any way to make sure that these get deleted from the tentacles ?

Thank you,

Shany Grimard

image001.jpg

Hi Shany,

You can feel free to create new tickets for every different subject/issue. It’ll make it easier for other users that might be looking for help with the same issue :slight_smile:

You can use Retention Policies to setup how many packages stay on your tentacle after deployment.

If you are not already on Octopus 2.6 and you are planning on upgrading, i’d recommend you to wait until later this week where we’ll (most likely) release a stable version of 2.6. This version had a big overhaul on Retention Policies (very tied to the new concept of Lifecycles) and it’ll be easier for you if you just start using Retention Policies right from 2.6.

Thanks!

Dalmiro

Hi Dalmiro,

I have another question. I’ve had a lock file issue when trying to deploy my NuGET package(application) over the weekend, therefore my deployment failed. Is there a way to prevent this ?

Regards,

Shany Grimard

Hi Shany,

By default Nuget/Octopus will not delete or overwrite a file that is in use. Best way to prevent this is to always turn off whatever service is using those files (a windows service, IIS, etc).

Thanks!

Dalmiro

Hi Dalmiro,

But by turning off the service, you completely shutdown the website and we want to keep our app_offline page up. Any suggestions?

Regards,

Shany Grimard

Hi Shany,

There isn’t an easy way to do this. The file system wont let you overwrite a file that is being used by IIS unless you stop the process that is using it. If you are looking for a 0-downtime strategy, my suggestion would be to have your app load balanced between at least 2 servers and deploy 1 at a time.

Sorry i cant give you a better answer.

Dalmiro

Step 4: Send Error Email
Fatal 13:51:46
Failure sending mail. System.Net.Mail.SmtpException: Failure sending mail. —> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller) at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) — End of inner exception stack trace — at System.Net.Mail.SmtpClient.Send(MailMessage message) at Octopus.Server.Orchestration.Deploy.Email.EmailActionOrchestrator.d__0.MoveNext() in y:\work\refs\heads\release\source\Octopus.Server\Orchestration\Deploy\Email\EmailActionOrchestrator.cs:line 53 Octopus.Server version 2.6.0.778
Fatal 13:51:46
The step failed

Good day,

I get the error above when trying to send an email… but it works perfectly when I setup’ed the SMTP and the test email went through perfectly.

Could you please advise?

Regards,

Shany Grimard

Hi Shany,

Unfortunately, that seems to be a connection problem between your server and the SMTP. How long has it been since you configured SMTP in octopus and sent the test email? Please try again from the SMTP configuration screen AND from your deployment process to check if the error is consistent or not.

Thanks,

Dalmiro

Good day Dalmiro,

Is there a way or a variable I can use to send the TASK LOG by Email…

Example:

Rename-Item : Cannot rename because item at
Error 08:35:29
’C:\inetpub\wwwroot\ChartPad_Development\app_offline2.htm’ does not exist.
Error 08:35:29
At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\fcfbffe
Error 08:35:29
c-2e14-44a4-bb6f-5de0eb834799.ps1:1 char:1
Error 08:35:29

  • Rename-Item $CustomInstallationDirectory\app_offline2.htm app_offline.htm
    Error 08:35:29

Error 08:35:29

  • CategoryInfo : InvalidOperation: (:slight_smile: [Rename-Item], PSInvalidOp
    Error 08:35:29
    erationException
    Error 08:35:29
  • FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.R
    Error 08:35:29
    enameItemCommand
    Info 08:35:29
    ============================================== PowerShell exit code: 1 ==============================================
    Fatal 08:35:29
    PowerShell script returned a non-zero exit code: 1 Tentacle version 2.6.0.778

I would like to have this sent through email but I cannot find the Variable…

Regards,

Shany Grimard

Good day Dalmiro,

[cid:image001.png@01D0268A.F6875130]

Please see image… Why is Octopus not showing the full path of the file? When I run the PowerShell script directly in PowerShell, I can see the full path.

Regards,

Shany Grimard

Hi Shany,

You cannot send the Task Log by email. What you can do is send the URL of the raw log, which will hace a lot more. The url should look like this https://MyOctopusServer.com/app#/tasks/ServerTasks-1732/raw . You can use the Octopus variable #{Octopus.Task.Id} to get the task ID. The rest of the URL should be static.

Thanks,

Dalmiro

Good day,

I would like to know if it’s possible to show only certain environments for certain projects. For example, I would like to remove what’s in yellow below. The websites project group will only get deployed to the DMZ Web Server, so it doesn’t need to show the rest.

For ChartPad, it will never get deployed to DMZ Web Server, so it doesn’t need to show this.

[cid:image001.png@01D04AB1.72453770]

Regards,

Shany Grimard
Confidentiality Notice: This e-mail communication and any attachments may

contain confidential and privileged information for the use of the designated

recipients named above. If you are not the intended recipient, you are hereby

notified that you have received this communication in error and that any

review, disclosure, dissemination, distribution or copying of it or its

contents is prohibited. If you have received this communication in error,

please notify me immediately by replying to this message and deleting it

from your computer. Thank you.

Hi,

Thanks for reaching out. Not out of the box, but you could do one of the following:

  1. The task logs are sitting in separate files on the Octopus server (C:\Octopus\OctopusServer\ActivityLogs on a default install). You could run a step on it and attach the log to your email

  2. Get it using the REST API, put the content on a file and then sending it via email.

Keep in mind that the task log is being written during the deployment. So if you send the task log from within your deployment process, you will never have the finished version of it.

Thanks

Dalmiro

Remove-Item : Cannot find path
Error 07:35:40
’C:\inetpub\wwwroot\ChartPad_PreStaging\app_offline.htm’ because it does not
Error 07:35:40
exist.
Error 07:35:40
At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\1349012
Error 07:35:40
4-01cc-4d5f-8ff1-dea4ecddf6e6.ps1:1 char:1
Error 07:35:40

  • Remove-Item $CustomInstallationDirectory\app_offline.htm
    Error 07:35:40

Error 07:35:40

  • CategoryInfo : ObjectNotFound: (C:\inetpub\wwwr…app_offline.h
    Error 07:35:40
    tm:String) [Remove-Item], ItemNotFoundException
    Error 07:35:40
  • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Remov
    Error 07:35:40
    eItemCommand
    Info 07:35:40
    ============================================== PowerShell exit code: 1 ==============================================
    Fatal 07:35:40
    PowerShell script returned a non-zero exit code: 1 Tentacle version 2.6.2.845

Good day,

Please see log… Somehow it did run the PowerShell script successfully (it deleted the file) but it always give us failing… This has started happening to my PS Script since I last updated Octopus.

Could you please advise ASAP?

Regards,
Shany Grimard
Confidentiality Notice: This e-mail communication and any attachments may

contain confidential and privileged information for the use of the designated

recipients named above. If you are not the intended recipient, you are hereby

notified that you have received this communication in error and that any

review, disclosure, dissemination, distribution or copying of it or its

contents is prohibited. If you have received this communication in error,

please notify me immediately by replying to this message and deleting it

from your computer. Thank you.

Hi Shany,

Could you please give me some context on where are you seeing this error? If it comes from a custom script, send the script as well.

If possible send us a deployment task log.

Thanks

Dalmiro.

Good day,

Uploading and applying delta ChartPad.2.3.4.0_to_2.3.4.0.octodeltahttp://localhost/OctopusDeploy/app

What does applying delta means? Is it going to compare both Package and see differences… and only upload differences?

Regards,

[512x384]
Shany Grimard BSc
Technomad
239.908.4323 (W)
sgrimard@technomad.netmailto:sgrimard@technomad.net

For Support and Immediate Assistance Dial Extension 8000 or 573.331.8000

Confidentiality Notice: This e-mail communication and any attachments may

contain confidential and privileged information for the use of the designated

recipients named above. If you are not the intended recipient, you are hereby

notified that you have received this communication in error and that any

review, disclosure, dissemination, distribution or copying of it or its

contents is prohibited. If you have received this communication in error,

please notify me immediately by replying to this message and deleting it

from your computer. Thank you.

image001.gif

Hi,

Exactly, its only gonna upload the differences. Please check our documentation to get more info about this feature http://docs.octopusdeploy.com/display/OD/Delta+compression+for+package+transfers

Thanks

Dalmiro

Running health check on LMH-STL-DMZWEB1
11:05:10
Info
Sending health check request to LMH-STL-DMZWEB1 at https://lmh-stl-dmzweb1.internal.landmarkhospitals.com:10933/
11:05:14
Error
Get-WmiObject : Out of memory
11:05:14
Error
At C:\Octopus\Work\20150902160450-1\Script.ps1:26 char:26
11:05:14
Error

  • $process = Get-WmiObject <<<< Win32_Process -Filter "ProcessID=’$($PID)’
    11:05:14
    Error
    "
    11:05:14
    Error
  • CategoryInfo : InvalidOperation: (:slight_smile: [Get-WmiObject], Managemen
    11:05:14
    Error
    tException
    11:05:14
    Error
  • FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
    11:05:14
    Error
    ommands.GetWmiObjectCommand
    11:05:14
    Error
    11:05:14
    Fatal
    The remote script failed with exit code 1

What is this cause by??? I never had this until I installed 3.0

[512x384]
Shany Grimard BSc
Technomad
239.908.4323 (W)
sgrimard@technomad.netmailto:sgrimard@technomad.net

For Support and Immediate Assistance Dial Extension 8000 or 573.331.8000

Confidentiality Notice: This e-mail communication and any attachments may

contain confidential and privileged information for the use of the designated

recipients named above. If you are not the intended recipient, you are hereby

notified that you have received this communication in error and that any

review, disclosure, dissemination, distribution or copying of it or its

contents is prohibited. If you have received this communication in error,

please notify me immediately by replying to this message and deleting it

from your computer. Thank you.

image001.gif

Good day,

We are experiencing issues with one of our tentacle that stopped listening to Octopus Server (See error).

Running health check on TNMSTL-LM-WEBP1
07:05:58
Info
Sending health check request to TNMSTL-LM-WEBP1 at https://10.10.101.1:10933/
07:15:59
Fatal
An error occurred when sending a request to ‘https://10.10.101.1:10933/’, before the request could begin: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

We have not made any changes to our Network/Firewall and we are able to ping the TNMSTL-LM-WEBP1 computer from our Octopus Server.

This really caught us off guard since it stopped answering to Octopus Server a few hours to our Production Release.

My questions are;

  1.  Is this a common issue?
    
  2.  Is there a way we can report on Health Check ? (Octopus sending an email to a positional mailbox in case one of the tentacles is not healthy)
    

Could you please advise ASAP as we would like to move on forward with deploying to our production environment?

Thanks for your help,

[512x384]
Shany Grimard BSc
Technomad
239.908.4323 (W)
sgrimard@technomad.netmailto:sgrimard@technomad.net

For Support and Immediate Assistance Dial Extension 8000 or 573.331.8000

Confidentiality Notice: This e-mail communication and any attachments may

contain confidential and privileged information for the use of the designated

recipients named above. If you are not the intended recipient, you are hereby

notified that you have received this communication in error and that any

review, disclosure, dissemination, distribution or copying of it or its

contents is prohibited. If you have received this communication in error,

please notify me immediately by replying to this message and deleting it

from your computer. Thank you.

image001.gif