•  
      request #11786 Viewing old pull requests not possible anymore
    Infos
    #11786
    Eric Kirschner (kirei)
    2018-07-06 18:19
    2018-07-06 17:52
    12377
    Details
    Viewing old pull requests not possible anymore

    Viewing old pull requests is broken. After clicking on a pull request the following error message appears:

    Oh snap!
    An error occured while doing one of your last actions.

    Error details
    500 Internal Server Error

    Oh snap!
    An error occured while doing one of your last actions.

    Error details
    410 Gone: The pull request is not accessible anymore

    Steps:

    1. Forgot to turn on "gitolite writeable", after making the backup. See: https://tuleap.net/doc/en/administration-guide/backup.html
    2. Upgrade to Tuleap 10.2.
    3. Nightly job tried to convert all pull requests to new model.
    4. Realized, that gitolite is not able to write. Turned writeability back on.
    5. Problem still exists.

    /var/log/tuleap/pullrequest_syslog-20180629

    2018-06-29T00:34:19+02:00 [82832] [error] pr #1 marked as broken: Command execution failure: /opt/rh/rh-git29/root/usr/bin/git --work-tree='/var/lib/tuleap/gitolite/repositories/NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' --git-dir='/var/lib/tuleap/gitolite/repositories/NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' push --porcelain --force 'gitolite@gl-adm:NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' '3a8619f0284eceacb1b8952225baf9ccacacb0f1':'refs/tlpr/1/head' (return value: 128):

    FATAL: sorry, writes are currently disabled (no more info available)

    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

     

    [...]

     

    2018-06-29T00:35:54+02:00 [82832] [error] pr #230 marked as broken: Command execution failure: /opt/rh/rh-git29/root/usr/bin/git --work-tree='/var/lib/tuleap/gitolite/repositories/NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' --git-dir='/var/lib/tuleap/gitolite/repositories/NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' push --porcelain --force 'gitolite@gl-adm:NAMEOFMYREPOSITORY/NAMEOFMYGIT.git' 'ed7e6f04448cc896a31a53257488c0451adeef67':'refs/tlpr/8/head' (return value: 128):

    FATAL: sorry, writes are currently disabled (no more info available)

    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

    Pull Request
    10.2
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Declined
    2018-07-06
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2018-07-06 18:06
    Hello,

    You can execute the following SQL query to unmark your broken PRs:
    UPDATE plugin_pullrequest_git_reference SET status=1 WHERE status=2;

    I'm going to mark the artifact as declined since the issue is due to an administration error.

    • Status changed from New to Declined
    • Close date set to 2018-07-06