Jira (PUP-10020) Failed to transition the pxp-agent service to the SERVICE_RUNNING state

9 views
Skip to first unread message

cody fawcett (JIRA)

unread,
Sep 14, 2019, 1:23:02 PM9/14/19
to puppe...@googlegroups.com
cody fawcett created an issue
 
Puppet / Bug PUP-10020
Failed to transition the pxp-agent service to the SERVICE_RUNNING state
Issue Type: Bug Bug
Affects Versions: PUP 5.5.16, PUP 5.5.8
Assignee: Unassigned
Attachments: pup.log
Components: Modules, Windows
Created: 2019/09/14 10:22 AM
Environment:

pup.log

Priority: Major Major
Reporter: cody fawcett

Puppet Version: 5.5.16
Puppet Server Version: 2018.1.9
OS Name/Version: Windows Server 2008r2, 2012, 2012r2, 2016

Puppet run causes failure because pxp-agent cannot be started.

Error: Failed to transition the pxp-agent service to the SERVICE_RUNNING state. Detail: Unexpected transition to the SER
VICE_PAUSED state while waiting for the pending transition from SERVICE_CONTINUE_PENDING to SERVICE_RUNNING to finish.
Error: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]/ensure: change from 'paused' to 'running' f
ailed: Failed to transition the pxp-agent service to the SERVICE_RUNNING state. Detail: Unexpected transition to the SER
VICE_PAUSED state while waiting for the pending transition from SERVICE_CONTINUE_PENDING to SERVICE_RUNNING to finish. (
corrective)

Desired Behavior: 

stop the service
kill the hung proccess (without this step the restarted process does noting)
restart puppet run

Actual Behavior:
only stops the service and attempts to restart, however the hung process restarts and the service transition still fails.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Sep 16, 2019, 1:35:02 PM9/16/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Sep 16, 2019, 1:43:05 PM9/16/19
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10020
 
Re: Failed to transition the pxp-agent service to the SERVICE_RUNNING state

cody fawcett I don't see the output "Unexpected transition to" in the pup.log attachment, just:

 [0;36mDebug: Service[pxp-agent](provider=windows): Service pxp-agent is SERVICE_PAUSED [0m
 [0;36mDebug: Service[pxp-agent](provider=windows): Service pxp-agent start type is SERVICE_AUTO_START [0m
 [0;36mDebug: Service[pxp-agent](provider=windows): Service pxp-agent is SERVICE_PAUSED [0m
 [0;36mDebug: Resuming the pxp-agent service [0m
 [0;36mDebug: Transitioning the pxp-agent service from SERVICE_PAUSED to SERVICE_RUNNING [0m
 [0;36mDebug: Waiting for the pending transition to the SERVICE_PAUSED state to finish. [0m
 [0;36mDebug: Waiting for the transition to finish [0m
 [0;36mDebug: The service transitioned to the SERVICE_CONTINUE_PENDING state. [0m
 [0;36mDebug: Waiting for the pending transition to the SERVICE_RUNNING state to finish. [0m
 [0;36mDebug: Class[Puppet_enterprise::Pxp_agent::Service]: Resource is being skipped, unscheduling all events [0m

Also you can run with --no-color to eliminate the ANSI escape sequences.

cody fawcett (JIRA)

unread,
Sep 16, 2019, 2:05:03 PM9/16/19
to puppe...@googlegroups.com
cody fawcett commented on Bug PUP-10020

Josh Cooper

The output was provided on the client console when running "puppet agent -t" manually.

What you are looking at, at least from what i see, is the failure of the service to to start, and therefore skipping.

When this is encountered the pxp-agent service needs to be stopped, then the pxp-agent process needs to be stopped. Then the next call to the pxp-agent service will trigger a start that should be successful.

Error: Failed to transition the pxp-agent service to the SERVICE_RUNNING state. Detail: Unexpected transition to the SER
VICE_PAUSED state while waiting for the pending transition from SERVICE_CONTINUE_PENDING to SERVICE_RUNNING to finish.
Error: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]/ensure: change from 'paused' to 'running' f
ailed: Failed to transition the pxp-agent service to the SERVICE_RUNNING state. Detail: Unexpected transition to the SER
VICE_PAUSED state while waiting for the pending transition from SERVICE_CONTINUE_PENDING to SERVICE_RUNNING to finish. (
corrective)

 

Josh Cooper (JIRA)

unread,
Sep 16, 2019, 5:28:03 PM9/16/19
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10020

cody fawcett I believe you are running into PCP-863. There are situations where the pxp-agent.exe process is not killed when the service is restarted via nssm, which then interferes with future service operations.

As as aside, the PCP project in JIRA is for the pxp-agent component of the puppet-agent package. I'm going to mark this is as a duplicate and close it.

cody fawcett (JIRA)

unread,
Sep 16, 2019, 6:51:03 PM9/16/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages