Deploying an App: "could not read Username for 'https://github.com': No such device or address"

Attempting to deploy an app from a private, organization-based repo. Despite trying to delete and re-add the app, wipe out SSH keys, re-do the whole Github auth flow, etc I continue to get the following logs:

[04:23:16] πŸ–₯ Provisioning machine...
[04:23:21] πŸŽ› Preparing system...
[04:23:27] β›“ Spinning up manager process...
[04:23:33] 🎈 Inflating balloons...
[04:23:39] πŸ“– Unpacking Comic Sans RAR files...
[04:23:45] 🚧 Loading "Under construction" GIF...
[04:23:52] πŸ›  Compiling <blink> tags...
[04:23:36] πŸš€ Starting up repository: 'ptype-streamlit', branch: 'main', main module: 'src/ptype_streamlit/<my_app>.py'
[04:23:36] πŸ™ Cloning repository...
[04:23:37] πŸ™ Cloning into '/app/ptype-streamlit'...
[04:23:37] πŸ™ Cloned repository!
[04:23:37] πŸ™ Pulling code changes from Github...
[04:23:39] πŸ“¦ Processing dependencies...

──────────────────────────────────────── pip ───────────────────────────────────────────

Obtaining ptype_streamlit from git+https://github.com/<my org>/ptype-streamlit.git@<commit hash>#egg=ptype_streamlit (from -r /app/ptype-streamlit/requirements.txt (line 55))
  Cloning https://github.com/<my_org>/ptype-streamlit.git (to revision <commit hash>) to /home/appuser/venv/src/ptype-streamlit
  Running command git clone --filter=blob:none --quiet https://github.com/<my_org>/ptype-streamlit.git /home/appuser/venv/src/ptype-streamlit
  fatal: could not read Username for 'https://github.com': No such device or address

  error: subprocess-exited-with-error

To me, this looks like Streamlit is trying to access GH via https(?) and obviously fails to provide credentials. Given that Streamlit sets up SSH keys with GH, this seems wrong. What am I missing here - would greatly appreciate any help!

Hey @starfox,

Thanks for sharing this question! I’d recommend completely disconnecting your Community Cloud account from GitHub, and then re-connecting it – that usually does the trick when there’s an issue with the connection between Community Cloud and GitHub. You can do so by going to β€œSettings” β†’ Linked Accounts β†’ then click β€œDisconnect” under β€œSource Control” (see screenshot below).

Ah, had tried that, but no such luck. Any other ideas?

Hey @starfox, would you mind creating a GitHub Issue here for this error so our Community Cloud engineering team can take a look?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.