Skip to content

[Docs]: requested timeline 2 is not a child of this server's history #7268

Closed as not planned

Description

@sibero

Is there an existing issue already for your request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new documentation enhancement to be evaluated.

What problem in the existing documentation this issue aims to solve?

Hi!
What to do in such a situation ? The replicas don't start, they write this error
{"level":"info","ts":"2025-03-31T14:03:01Z","logger":"postgres","msg":"record","logging_pod":"prod-psp-db-7","record":{"log_time":"2025-03-31 14:03:01.105 UTC","process_id":"31","session_id":"67eaa088.1f","session_line_num":"8","session_start_time":"2025-03-31 14:02:48 UTC","transaction_id":"0","error_severity":"FATAL","sql_state_code":"XX000","message":"requested timeline 2 is not a child of this server's history","detail":"Latest checkpoint is at 104/60806880 on timeline 1, but in the history of the requested timeline, the server forked off from that timeline at 100/890F6D08.","backend_type":"startup","query_id":"0"}}

Describe what additions need to be done to the documentation

No response

Describe what pages need to change in the documentation, if any

No response

Describe what pages need to be removed from the documentation, if any

No response

Additional context

No response

Backport?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. soulaw-mkii commented on Apr 12, 2025

    @soulaw-mkii

    I faced the same issue on the replica node 2 and node 3 after I hibernate/rehydrate the cluster, while node 1 as the master is running fine.

  2. sbidoul commented on Jun 7, 2025

    @sbidoul

    I'm facing this after an in place major upgrade from 16 to 17 using cnpg 1.26.

    The upgrade went fine, the primary is up, the first replica join job works fine, but this error happens when starting the replica pod.

  3. sbidoul commented on Jun 7, 2025

    @sbidoul

    I think my issue was due to the upgraded cluster being on timeline 1, while the backup had wals of the previous version cluster on timeline 5. I updated my backup configuration to use a different serverName which resolved the issue.

  4. derTobsch commented on Jun 17, 2025

    @derTobsch

    I'm facing this after an in place major upgrade from 16 to 17 using cnpg 1.26.

    The upgrade went fine, the primary is up, the first replica join job works fine, but this error happens when starting the replica pod.

    I am facing the same error. Thanks, @sbidoul, I did the same and it also resolved my problem. Should I have made something different while upgrading? I stopped all application pods, then changed the image. Where the cluster not in sync?

  5. github-actions commented on Aug 17, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  6. github-actions commented on Sep 3, 2025

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 14 days since being marked as stale.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions