Git error while running a python reciepe

Maheswara Rao
Maheswara Rao Registered Posts: 4 ✭✭

Oops: an unexpected error occurred

Error in Python process: At line 28: <class 'dataikuapi.utils.DataikuException'>: com.dataiku.dip.transactions.git.TransactionGitException: Failed to commit to Git a previously scheduled commit, caused by: CodedIOException: Unable to commit transaction, caused by: JGitInternalException: Exception caught during execution of add command, caused by: EOFException: Short read of block.

Please see our options for getting help

Dataiku version used: 14.5.2

Answers

  • Grace_Y
    Grace_Y Dataiker, Registered Posts: 18 Dataiker
    edited June 19

    Hello,

    This error is commonly seen when the Git repository is corrupted. Could you please try the following steps and see if this resolves your issue?

    1) SSH into the DSS server host

    2) Switch to the DSS system user, 

    ex. sudo su - [your-dss-user]

    3) Stop DSS with the command 

    [path-to-your-dss-data-dir]/bin/dss stop

    4) Navigate to the affected project directory,

     ex. cd [your-data-dir]/config/projects/YOURPROJECT

    5) From inside your project directory, run the following commands:

    mv .git ~/.git.backup

    git init

    git add *

    git config user.email admin

    git config user.name admin

    git commit -m "Initial import"

    6) Start DSS:

    [path-to-your-dss-data-dir]/bin/dss start

  • Maheswara Rao
    Maheswara Rao Registered Posts: 4 ✭✭

    As of now I removed the index file in the .git directory & that fixes the issue. Will check your steps if it arises again. Appreciate your quick reply on this thread.

Setup Info
    Tags
      Help me…