Failed to download the sources for repository

I have find it’s alternative.
First I add my model which his 460mb size on Google drive. Then I use Google colab and connect colab with drive.
After that I use “ngrok” , from this I deployed model on steamlit.
Here I resolve the problem of GitHub. Because I palce model on Google drive and access through colab.

FYI this issue is not resolved.

I have a a 36kb .py file in the github repo, so no file size issues. Over the last few days my app broke without me having pushed any updates.

I DID delete and re-create the app which has worked thankfully! But the issue persists, as I had the same error as the OP.

I was facing a similar issue and this solved it. Thank you!

remove the .gitattributes file
you can also try several methods i tried but if you used lfs try removing the file

I experienced this issue today after pushing updates to GitHub.

  • I have two apps which are for prod and test.
  • I didn’t want to delete the apps since I embed the app and wanted to preserve the same URLs.
  • So I created a new app to see if it would deploy.
  • I configured the app with a new randomly-generated URL and clicked deploy.
  • After that, I noticed the new app deployed with the same URL of my previous app. The new random-generated URL was not used.
  • I repeated this with my second app and it did the same.
  • After doing these steps, I still only have these two apps–even though I created new apps.

Perhaps it recognized the new apps were for the same GitHub repo and branch as the existing apps? And so it reinitialized it with original URLs?

Has Streamlit determined the root cause of this issue?

  • In reading back through the posts, someone mentioned the issue was caused by GitHub bandwidth quotas. Of note, I executed several app updates on my test and prod branches. So it’s possible I exceeded this quota.
1 Like

Hi ,

this just happened to me as well. However, my repository hasn’t been updated recently, and my application was still working fine yesterday. Streamlit couldn’t reload my repo when I tried to reboot it. This issue resolved itself automatically for no apparent reason.

12:08:14] 🚀 Starting up repository: 'reel_benchmark', branch: 'main', main module: 'streamlit_app.py'

[12:08:14] 🐙 Cloning repository...

[12:08:15] 🐙 Failed

[12:08:25] 🐙 Failed

[12:08:35] 🐙 Failed to download the sources for repository: 'reel_benchmark', branch: 'main', main module: 'streamlit_app.py'

[12:08:35] 🐙 Make sure the repository and the branch exist and you have write access to it, and then reboot the app.

[12:10:15] ❗️ Streamlit server consistently failed status checks

[12:10:15] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

[12:41:14] 🚀 Starting up repository: 'reel_benchmark', branch: 'main', main module: 'streamlit_app.py'

[12:41:14] 🐙 Cloning repository...

[12:41:18] 🐙 Cloning into '/mount/src/reel_benchmark'...
Warning: Permanently added the ED25519 host key for IP address '140.82.116.4' to the list of known hosts.

[12:41:18] 🐙 Cloned repository!

[12:41:18] 🐙 Pulling code changes from Github...

[12:41:19] 📦 Processing dependencies...

[12:41:19] 📦 Apt dependencies were installed from /mount/src/reel_benchmark/packages.txt using apt-get.

Hit:1 http://deb.debian.org/debian bullseye InRelease

Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]

Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]

Get:4 https://packages.microsoft.com/debian/11/prod bullseye InRelease [3650 B]

Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [301 kB]

Fetched 376 kB in 1s (551 kB/s)

Reading package lists...[2024-10-08 12:41:21.538015] 

Reading package lists...[2024-10-08 12:41:22.136149] 

Building dependency tree...[2024-10-08 12:41:22.297217] 

Reading state information...[2024-10-08 12:41:22.297543] 

The following additional packages will be installed:

  libc-l10n

The following NEW packages will be installed:

  libc-l10n locales locales-all

0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.

Need to get 15.8 MB of archives.

After this operation, 248 MB of additional disk space will be used.

Get:1 http://deb.debian.org/debian bullseye/main amd64 libc-l10n all 2.31-13+deb11u11 [864 kB]

Get:2 http://deb.debian.org/debian bullseye/main amd64 locales all 2.31-13+deb11u11 [4087 kB]

Get:3 http://deb.debian.org/debian bullseye/main amd64 locales-all amd64 2.31-13+deb11u11 [10.8 MB]

debconf: delaying package configuration, since apt-utils is not installed

Fetched 15.8 MB in 0s (73.5 MB/s)

Selecting previously unselected package libc-l10n.

(Reading database ... 22036 files and directories currently installed.)

Preparing to unpack .../libc-l10n_2.31-13+deb11u11_all.deb ...

Unpacking libc-l10n (2.31-13+deb11u11) ...

Selecting previously unselected package locales.

Preparing to unpack .../locales_2.31-13+deb11u11_all.deb ...

Unpacking locales (2.31-13+deb11u11) ...

Selecting previously unselected package locales-all.

Preparing to unpack .../locales-all_2.31-13+deb11u11_amd64.deb ...

Unpacking locales-all (2.31-13+deb11u11) ...

Setting up libc-l10n (2.31-13+deb11u11) ...

Setting up locales (2.31-13+deb11u11) ...

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)

debconf: falling back to frontend: Readline

locales-all installed, skipping locales generation

Setting up locales-all (2.31-13+deb11u11) ...


──────────────────────────────────────── uv ───────────────────────────────────────────


Using uv pip install.

Resolved 79 packages in 1.49s

Downloaded 78 packages in 2.57s

Installed 78 packages in 123ms

 + altair==5.2.0

 + attrs[2024-10-08 12:41:34.234112] ==23.2.0

 + beautifulsoup4==4.12.3

 + blinker==1.7.0

 + cachetools==5.3.3

 + certifi==2024.2.2

 + charset-normalizer==3.3.2

 + click==8.1.7

 + colorama==0.4.6

 + contourpy==1.2.0

 + cycler==0.12.1

 + datetime==5.5

 + entrypoints==0.4

 + faker==24.4.0

 + favicon==0.7.0

 + fonttools==4.50.0

 + gitdb==4.0.11

 + gitpython==3.1.42

 + htbuilder==0.6.2

 + idna==3.6

 + importlib-metadata==8.5.0

 + importlib-resources==6.4.5

 + jinja2==3.1.3

 + jsonschema==4.21.1

 + jsonschema-specifications==2023.12.1

 + kiwisolver==1.4.5

 + lxml==5.1.0

 + markdown==3.6

 + markdown-it-py==3.0.0

 + markdownlit[2024-10-08 12:41:34.234546] ==0.0.7

 + markupsafe==2.1.5

 + matplotlib==3.8.3

 + mdurl==0.1.2

 + millify==0.1.1

 + more-itertools==10.2.0

 + numpy==1.26.4

 + packaging==23.2

 +[2024-10-08 12:41:34.234699]  pandas==2.2.1

 + pillow==10.2.0

 + prometheus-client==0.20.0

 + protobuf==4.25.3

 + pyarrow==15.0.2

 + pydeck==0.8.1b0

 + pygments==2.17.2

 + pymdown-extensions==10.7.1

 + pyparsing==3.1.2

 + [2024-10-08 12:41:34.234862] python-dateutil==2.9.0.post0

 + pytz==2024.1

 + pyyaml==6.0.1

 + referencing==0.34.0

 + requests==2.31.0

 + rich==13.7.1

 + rpds-py==0.18.0

 + six==1.16.0

 + smmap==5.0.1

 +[2024-10-08 12:41:34.235345]  soupsieve==2.5

 + st-annotated-text==4.0.1

 + st-pages==0.4.5

 + streamlit==1.33.0

 + streamlit-camera-input-live==0.2.0

 + streamlit-card==1.0.0

 + streamlit-embedcode==0.1.2

 + streamlit-extras==0.4.0

 [2024-10-08 12:41:34.235694] + streamlit-faker==0.0.3

 + streamlit-image-coordinates==0.1.6

 + streamlit-keyup==0.2.3

 + streamlit-toggle-switch==1.0.2

 + streamlit-vertical-slider==2.5.5

 + tenacity==8.2.3

 + toml==0.10.2

 + toolz==0.12.1

 +[2024-10-08 12:41:34.235968]  tornado==6.4

 + typing-extensions==4.10.0

 + tzdata==2024.1

 + urllib3==2.2.1

 + watchdog==4.0.0[2024-10-08 12:41:34.236155] 

 + zipp==3.20.2

 + zope-interface==6.2

Checking if Streamlit is installed

Found Streamlit version 1.33.0 in the environment


────────────────────────────────────────────────────────────────────────────────────────


[12:41:35] 🐍 Python dependencies were installed from /mount/src/reel_benchmark/requirements.txt using uv.

Check if streamlit is installed

Streamlit is already installed

[12:41:37] 📦 Processed dependencies!




[12:41:40] 🖥 Provisioning machine...

[12:41:43] 🎛 Preparing system...

[12:41:43] ⛓ Spinning up manager process...

I have been trying to solve this issue for hours. deleting .gitattributes worked!
Thank you for your comment after 2 years :smiley: