Auto-communication from Octopus Server to Tentacle

rajeshwar.ette's Avatar

rajeshwar.ette

12 Oct, 2017 03:29 PM

I downloaded "Octopus.3.17.5-x64" & "Octopus.Tentacle.3.16.0-x64" from Octopus and installed.
I selected "Pooling" mode in Tentacle while installing, but communication is not happening when I push a package in Octopus Server.

Tentacle is not getting a package information, please suggest me.

Below are the logs:
Octopus Server:
---------------------
2017-10-12 19:41:37.4288 9276 25 INFO Synchronizing external security groups for 1 user. Loading users took 0.00s.
2017-10-12 19:41:37.6383 9276 25 INFO External security groups were already correct for all users. No changes were made. Processing users took 0.20s.
2017-10-12 19:42:07.5654 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::StartScript[1] / cbf4c480-8280-4be4-a451-4034b3951679 was queued
2017-10-12 19:42:07.5654 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::StartScript[1] / cbf4c480-8280-4be4-a451-4034b3951679 was collected by the polling endpoint
2017-10-12 19:42:08.0797 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::GetStatus[2] / c0bb5469-c793-4153-b1ed-63d2cea63c57 was queued
2017-10-12 19:42:08.0817 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::GetStatus[2] / c0bb5469-c793-4153-b1ed-63d2cea63c57 was collected by the polling endpoint
2017-10-12 19:42:08.5822 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::GetStatus[3] / 72d64713-6abf-415b-8dfa-50bc411760f1 was queued
2017-10-12 19:42:08.5822 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::GetStatus[3] / 72d64713-6abf-415b-8dfa-50bc411760f1 was collected by the polling endpoint
2017-10-12 19:42:08.5822 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::CompleteScript[4] / e2ca1411-48f3-47eb-b823-1b2a1948b478 was queued
2017-10-12 19:42:08.5971 9276 37 INFO poll://yhy5j86cljxxmllntdfd/ 37 Request IScriptService::CompleteScript[4] / e2ca1411-48f3-47eb-b823-1b2a1948b478 was collected by the polling endpoint
2017-10-12 20:41:41.5374 9276 51 INFO Synchronizing external security groups for 1 user. Loading users took 0.00s.
2017-10-12 20:41:41.7584 9276 51 INFO External security groups were already correct for all users. No changes were made. Processing users took 0.20s.
2017-10-12 20:42:16.7568 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::StartScript[1] / c203626b-5f6a-4fa6-8918-f8006c54549f was queued
2017-10-12 20:42:16.7568 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::StartScript[1] / c203626b-5f6a-4fa6-8918-f8006c54549f was collected by the polling endpoint
2017-10-12 20:42:17.2669 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[2] / fde0510b-df87-4237-8cc1-3888bd8460d3 was queued
2017-10-12 20:42:17.2669 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[2] / fde0510b-df87-4237-8cc1-3888bd8460d3 was collected by the polling endpoint
2017-10-12 20:42:17.7709 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[3] / 45d27129-3925-4d5f-9ccb-8e85939a5fda was queued
2017-10-12 20:42:17.7820 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[3] / 45d27129-3925-4d5f-9ccb-8e85939a5fda was collected by the polling endpoint
2017-10-12 20:42:18.2941 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[4] / 97117afd-308a-4762-bba8-f8d71db87357 was queued
2017-10-12 20:42:18.3061 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[4] / 97117afd-308a-4762-bba8-f8d71db87357 was collected by the polling endpoint
2017-10-12 20:42:18.8182 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[5] / d1899ce4-28ce-4ba4-81e5-c9c2dbbdb62e was queued
2017-10-12 20:42:18.8202 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[5] / d1899ce4-28ce-4ba4-81e5-c9c2dbbdb62e was collected by the polling endpoint
2017-10-12 20:42:19.3241 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[6] / 21870d8d-0538-4c4d-a965-f93e4eeb3770 was queued
2017-10-12 20:42:19.3371 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[6] / 21870d8d-0538-4c4d-a965-f93e4eeb3770 was collected by the polling endpoint
2017-10-12 20:42:19.8471 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[7] / c2c7ad7e-7ab1-4b1c-9168-c40d834a976a was queued
2017-10-12 20:42:19.8601 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[7] / c2c7ad7e-7ab1-4b1c-9168-c40d834a976a was collected by the polling endpoint
2017-10-12 20:42:20.3708 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[8] / 1363478d-2161-476e-b6fe-60c0874151fb was queued
2017-10-12 20:42:20.3708 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[8] / 1363478d-2161-476e-b6fe-60c0874151fb was collected by the polling endpoint
2017-10-12 20:42:20.8870 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[9] / 73777bce-a5ef-4ac3-bda7-90916b8d8e7b was queued
2017-10-12 20:42:20.8870 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::GetStatus[9] / 73777bce-a5ef-4ac3-bda7-90916b8d8e7b was collected by the polling endpoint
2017-10-12 20:42:20.8990 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::CompleteScript[10] / 7c66f84d-3a1b-4a69-9342-cf9f94c80984 was queued
2017-10-12 20:42:20.8990 9276 47 INFO poll://yhy5j86cljxxmllntdfd/ 47 Request IScriptService::CompleteScript[10] / 7c66f84d-3a1b-4a69-9342-cf9f94c80984 was collected by the polling endpoint
 

Tentacle Log:
2017-10-12 19:42:07.5751 16160 10 INFO [ServerTasks-10] [RunningScript] [Read Lock] [no locks] Trying to acquire lock.
2017-10-12 19:42:07.5751 16160 10 INFO [ServerTasks-10] [RunningScript] [Read Lock] ["ServerTasks-10" (has a read lock)] Lock taken.
2017-10-12 19:42:07.5751 16160 10 INFO Starting C:\WINDOWS\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\OctopusTentacle\Work\20171012141207-10-2
2017-10-12 19:42:08.3679 16160 10 INFO Process C:\WINDOWS\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\OctopusTentacle\Work\20171012141207-10-2 exited with code 0
2017-10-12 19:42:08.3679 16160 10 INFO [ServerTasks-10] [RunningScript] [Read Lock] ["ServerTasks-10" (has a read lock)] Releasing lock.
2017-10-12 20:42:16.7668 16160 3 INFO [ServerTasks-12] [RunningScript] [Read Lock] [no locks] Trying to acquire lock.
2017-10-12 20:42:16.7668 16160 3 INFO [ServerTasks-12] [RunningScript] [Read Lock] ["ServerTasks-12" (has a read lock)] Lock taken.
2017-10-12 20:42:16.7668 16160 3 INFO Starting C:\WINDOWS\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\OctopusTentacle\Work\20171012151216-12-3
2017-10-12 20:42:20.7825 16160 3 INFO Process C:\WINDOWS\system32\WindowsPowershell\v1.0\PowerShell.exe in C:\OctopusTentacle\Work\20171012151216-12-3 exited with code 0
2017-10-12 20:42:20.7825 16160 3 INFO [ServerTasks-12] [RunningScript] [Read Lock] ["ServerTasks-12" (has a read lock)] Releasing lock.

  1. Support Staff 1 Posted by Shane Gill on 13 Oct, 2017 12:11 AM

    Shane Gill's Avatar

    Hi,

    Thanks for getting in touch and sending your logs.

    There is nothing suspicious looking in the logs. Could you please send a raw deployment log where the package is not being transferred? (https://octopus.com/docs/how-to/get-the-raw-output-from-a-task)

    Thanks,
    Shane

  2. 2 Posted by muralidhargvn on 13 Oct, 2017 05:41 AM

    muralidhargvn's Avatar

    Shane,

    When we created a new package, I could see it in available Releases in Projects screen. We are not clicking on the "Deploy" button in this screen. Hence, no Task Log is available against respective release.

    Our assumption is that, as soon as a new Release is available in the Deploy, it should be able to Poll the new release availability to all the tentacles registered.

    However, we don't see this happening.

    Is our understanding wrong? Or, are we missing something in order to Poll the releases to all the tentacles?

    Thanks,
    Murali.

  3. Support Staff 3 Posted by Shane Gill on 13 Oct, 2017 06:50 AM

    Shane Gill's Avatar

    Hi Murali,

    Thanks for clarifying.

    Polling and listening mode are Tentacle communication methods, they are quite low level and just represent ways of transmitting data from the Octopus Server to the Tentacle. In polling mode communication is established from the Tentacle to the Server, in listening mode from the Server to the Tentacle.

    Listening mode is faster and more efficient, we only recommend using polling mode when your Tentacles can not accept incoming communications.

    Octopus treats both polling and listening Tentacles the same when it comes to performing operations like deploying releases or running health checks. When you create a release it must be deployed to all Tentacles, regardless of polling or listening. It sounds like you want to automatically deploy releases to all Tentacles when the release is created? You can achieve that using lifecycles.

    There is full documentation on lifecyles here: https://octopus.com/docs/key-concepts/lifecycles. To automatically deploy releases to an environment you will need to go to Library > Lifecycles. Create a new lifecycle or edit the default lifecycle. Click "Add phase" then "Add environment". When you are selecting the environment there is an option to "Deploy automatically to this environment as soon as the release enters this phase". If you select it: every time you create a release for any projects that use this lifecycle, the release will automatically be deployed to the chosen environment.

    I hope this helps, please let me know if there anything I can clarify or help with.

    Cheers,
    Shane

  4. 4 Posted by muralidhargvn on 13 Oct, 2017 10:29 AM

    muralidhargvn's Avatar

    Hi Shane,

    Thanks for providing me a solution for my problem.
    I may have to try with creating a lifecycle.

    I have gone thru the recommendation of Listening in your website; however, per my architecture, I have to go by polling.

    Let me try this and get back to you at the earliest possible.

    Thanks,
    Murali.

  5. 5 Posted by rajeshwar.ette on 13 Oct, 2017 12:48 PM

    rajeshwar.ette's Avatar

    Hi Shane,

    Thanks for your support.
    I want one more clarification on Automatic Deployment, please clarify me.

    Steps:
    1. I created one Life cycle with two phases
    2. Phase-1: while adding a environment, selected "Users will need to manually queue the deployment to this environment."
    3. Phase-2: while adding a environment, selected "Deploy automatically to this environment as soon as the release enters this phase."

    Question here is: I will deploy a Release in Phase-1 manually to Tentacle and doing my testing, after completing my testing I need to Deploy Phase-2. Please suggest me how could I do?

    Thanks,
    Rajeshwar

  6. Support Staff 6 Posted by Shane Gill on 16 Oct, 2017 01:48 AM

    Shane Gill's Avatar

    Hi Rajeshwar,

    The lifecycle configuration you mentioned will automatically deploy to Phase 2 after you have manually deployed to Phase 1.

    I think you want to select "Users will need to manually queue the deployment to this environment." for both of your phases. You would then manually deploy to Phase 1, perform your testing, and then manually deploy to Phase 2. After you deploy to your Phase 1 environment there will be a deploy button on the project dashboard letting you deploy the same release to the Phase 2 environment.

    Cheers,
    Shane

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac