Skip to content

pq: current transaction is aborted, commands ignored until end of transaction block #2224

Closed

Description

@l-wang

Hi there!

Bug Report

This error intermittently happens during build execution but without anything pointing to the cause. When it occurs, the build errors. We have seen this in task and resources steps. I doesn't happen very often, and we have nothing to correlate when it happens.

pq: current transaction is aborted, commands ignored until end of transaction block

This error message is printed in the build output log, if logs from other components are necessary, we just need to know which one to attach. This could be difficult because we can't reproduce the problem on demand.

  • Concourse version: 3.9.2
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: Google Cloud Platform
  • Browser (if applicable): N/A
  • Did this used to work?: Sometimes

Activity

  1. p-manesh commented on May 30, 2018

    @p-manesh

    Got the same error message: pq: current transaction is aborted, commands ignored until end of transaction block

    Concourse version: 3.9.2
    Deployment type (BOSH/Docker/binary): BOSH
    Infrastructure/IaaS: AWS

  2. benjefferies commented on Jun 11, 2018

    @benjefferies

    Same error with environments

    Concourse version: 3.13.0
    Deployment type (BOSH/Docker/binary): BOSH
    Infrastructure/IaaS: AWS

  3. databus23 commented on Jun 20, 2018

    @databus23
    Contributor

    Got this with 3.14.0 for three slack resource put steps simultaneously just now.

  4. talset commented on Jun 29, 2018

    @talset

    duplicate issue : #2108

  5. vito commented on Jul 26, 2018

    @vito
    Contributor

    Logs from the ATC and screenshots of the web UI would be really helpful for debugging this. The error is sort of a "secondary" error - we'll need to see why the transaction was aborted.

  6. benjefferies commented on Jul 27, 2018

    @benjefferies

    Logs from task in UI

    [INFO] cf version 6.35.2+88a03e995.2018-03-15
    Setting api endpoint to https://api...
    OK
    
    api endpoint:   https://api
    api version:    2.85.0
    Not logged in. Use 'cf login' to log in.
    API endpoint: https://api
    Authenticating...
    OK
    Use 'cf target' to view or set your target org and space.
    [INFO] Executing create-service: rm-pg-db
    api endpoint:   https://api
    api version:    2.85.0
    user:           concourse
    org:            rmras
    space:          ci
    Creating service instance rm-pg-db in org rmras / space ci as concourse...
    OK
    Service rm-pg-db already exists
    [INFO] Waiting for service: rm-pg-db
    [INFO] Service is ready: rm-pg-db
    
    pq: current transaction is aborted, commands ignored until end of transaction block
    
  7. JohannesRudolph commented on Aug 9, 2018

    @JohannesRudolph
    Contributor

    This is buggering the hell out of our Concourse instance on 3.14.1 this week. Is there any fix in sight?

    I can offer this insight from our ATC logs https://gist.github.com/JohannesRudolph/9f4d3752f1e64e82139221796a332c9a

  8. ghostsquad commented on Sep 25, 2018

    @ghostsquad

    I'm also seeing this problem

  9. timrchavez commented on Oct 5, 2018

    @timrchavez
    Contributor

    Just happened to me on 3.14.1

  10. NickGrantX commented on Oct 29, 2018

    @NickGrantX

    Regularly happening with 3.13.0

    Deployment type (BOSH/Docker/binary): BOSH
    Infrastructure/IaaS: AWS

  11. IizunaK commented on Oct 31, 2018

    @IizunaK

    Happened today in Concourse v4.2.1, in an aggregate of several puts. One of them returns that after a success.

    Deployment in progress...
    Deployment in progress...
    FINISHED: SUCCESS!
    	
    pq: current transaction is aborted, commands ignored until end of transaction block
    

    The problem seems to happen at the update of the metadata values at the end of our resource (assets/out). Don't know if it helps.

  12. eedwards-sk commented on Nov 12, 2018

    @eedwards-sk

    seeing it today in 4.1.0 on an s3 resource step:

    screen shot 2018-11-12 at 2 24 49 pm

    atc logs

  13. bracki commented on Dec 5, 2018

    @bracki

    screen shot 2018-12-05 at 08 22 48

    Happens quite frequently for us on 4.2.1.

  14. 6 remaining items

  15. no-response commented on Aug 27, 2019

    @no-response

    This issue has been automatically closed because there has been no response to our request for more information from the original author.
    It will be re-opened when the original author replies. Otherwise, a new issue should be created to continue the conversation. Thank you!

  16. talset commented on Oct 8, 2019

    @talset

    Could we re-open this issue ?

    I just had this random pq: current transaction is aborted, commands ignored until end of transaction block again on my 4.2.3 concourse.

    Here is the web/atc logs during the issue

    {"timestamp":"1570547304.351601362","source":"tsa","message":"tsa.connection.keepalive","log_level":1,"data":{"remote":"10.244.0.0:46228","session":"2059312","type":"keepalive"}}
    {"timestamp":"1570547305.126325846","source":"tsa","message":"tsa.connection.keepalive","log_level":1,"data":{"remote":"10.244.0.0:40688","session":"2714131","type":"keepalive"}}
    {"timestamp":"1570547305.548127651","source":"atc","message":"atc.syncer.customer-staging:scheduler.tick.scheduling.try-start-next-pending-build.failed-to-save-output","log_level":2,"data":{"build-id":18853,"build-name":"73","error":"pq: current transaction is aborted, commands ignored until end of transaction block","session":"20.62.238097.3.12"}}
    {"timestamp":"1570547305.548168898","source":"atc","message":"atc.syncer.customer-staging:scheduler.tick.scheduling.try-start-next-pending-build.errored","log_level":1,"data":{"build-id":18853,"build-name":"73","error":"pq: current transaction is aborted, commands ignored until end of transaction block","session":"20.62.238097.3.12"}}
    {"timestamp":"1570547305.551226139","source":"atc","message":"atc.syncer.customer-staging:scheduler.tick.scheduling.try-start-next-pending-build.finished","log_level":1,"data":{"build-id":18852,"build-name":"71","exit-status":0,"session":"20.62.238097.3.11","version-info":{"Version":{"timestamp":"1570547303"},"Metadata":null}}}
    {"timestamp":"1570547305.578049898","source":"atc","message":"atc.syncer.customer-staging:scheduler.tick.scheduling.try-start-next-pending-build.finish.errored","log_level":1,"data":{"build-id":18853,"build-name":"73","error":"pq: current transaction is aborted, commands ignored until end of transaction block","session":"20.62.238097.3.12.43"}}
    {"timestamp":"1570547306.340940237","source":"tsa","message":"tsa.connection.keepalive","log_level":1,"data":{"remote":"10.3.5.70:23462","session":"2715357","type":"keepalive"}}
    {"timestamp":"1570547306.550357342","source":"tsa","message":"tsa.connection.keepalive","log_level":1,"data":{"remote":"10.3.5.70:55992","session":"2709803","type":"keepalive"}}
    
  17. reopened this on Oct 9, 2019
  18. vito commented on Oct 9, 2019

    @vito
    Contributor

    @talset That version's pretty old; does it still happen in v5.6?

  19. no-response commented on Oct 9, 2019

    @no-response

    This issue has been automatically closed because there has been no response to our request for more information from the original author.
    It will be re-opened when the original author replies. Otherwise, a new issue should be created to continue the conversation. Thank you!

  20. talset commented on Oct 9, 2019

    @talset

    @talset That version's pretty old; does it still happen in v5.6?

    We plan to upgrade in 5.x soon. I will let you know

  21. vito commented on Oct 9, 2019

    @vito
    Contributor

    Dang no-response bot, calm down. (I need to remove the label.)

  22. reopened this on Oct 9, 2019
  23. stale commented on Dec 8, 2019

    @stale

    Beep boop! This issue has been idle for long enough that it's time to check in and see if it's still important.

    If it is, what is blocking it? Would anyone be interested in submitting a PR or continuing the discussion to help move things forward?

    If no activity is observed within the next week, this issue will be exterminated closed, in accordance with our stale issue process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions