Skip to content

pull_mirror does not provide start() #3269

Closed

Description

@Hokwang

Description of the problem, including code/CLI snippet

>>> import gitlab
>>> p = gl.projects.get(100)
>>> mirror = p.pull_mirror.get()
>>> mirror.update_status
'failed'
>>> mirror.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a14638/.venv3.9/lib/python3.9/site-packages/gitlab/base.py", line 133, in __getattr__
    raise AttributeError(message)
AttributeError: 'ProjectPullMirror' object has no attribute 'start'
>>> print(gitlab.__version__)
6.3.0
>>> mirror.sync()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a14638/.venv3.9/lib/python3.9/site-packages/gitlab/base.py", line 133, in __getattr__
    raise AttributeError(message)
AttributeError: 'ProjectPullMirror' object has no attribute 'sync'

refer : https://docs.gitlab.com/api/project_pull_mirroring/#start-the-pull-mirroring-process-for-a-project

Expected Behavior

mirroring sync

Actual Behavior

can not find method

Specifications

  • python-gitlab version: 6.3.0
  • Gitlab server version (or gitlab.com): 18.2

Activity

  1. JohnVillalovos commented on Oct 17, 2025

    @JohnVillalovos
    Member

    Have you tried.

    p.pull_mirror.start()
    
  2. added 5 commits that reference this issue on Oct 17, 2025
    a4ccc69
    7fef897
    8d1efa1
    aa1ac3d
    9a4b655
  3. added a commit that references this issue on Oct 17, 2025
    2acac19
  4. Hokwang commented on Oct 20, 2025

    @Hokwang
    Author

    @JohnVillalovos Thanks, that command works!

  5. added a commit that references this issue on Jan 18, 2026
    5dba4d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions