[Solved] Getting git lfs error in Web App

Violet Zeng 30 Reputation points
2023-08-11T23:13:43.92+00:00

Update: Solved by adding git lfs install in workflow file:

- name: Set up Git LFS
        run: |
          git lfs install
          git lfs fetch --all
          git lfs checkout

I want to deploye a flask python app on Azure. I successfully deployed my app, but when running it, the log stream shows an error, and caused my app failed to start. My code reads a file which size larger than 100mb.


2023-08-11T22:36:05.157232990Z   File "/tmp/xxx/antenv/lib/python3.8/site-packages/transformers/modeling_utils.py", line 465, in load_state_dict

2023-08-11T22:36:05.157241390Z     raise OSError(

2023-08-11T22:36:05.157245790Z OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run `git lfs install` followed by `git lfs pull` in the folder you cloned.

I was able to run the app locally, but having this issue on web app.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.