Git error while running a python reciepe
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
-
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 stop4) Navigate to the affected project directory,
ex.
cd [your-data-dir]/config/projects/YOURPROJECT5) From inside your project directory, run the following commands:
mv .git ~/.git.backupgit initgit add *git config user.email admingit config user.name admingit commit -m "Initial import"6) Start DSS:
[path-to-your-dss-data-dir]/bin/dss start -
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.