Grok Bot shell dead since Oct 22 – every command stalls 840s; .bashrc unreadable + .profile autostart loop; Update/Reset don't help

Where does the bug appear (feature/product)?

Grok Bot

Describe the Bug

Since the evening of Oct 22 (between ~7:30 PM and 9:05 PM IST, i.e. 14:00–15:35 UTC), no command can start on my bots’ shared computer. Every Shell call, even echo ok, hangs for 840 seconds and then fails with:

Error: Command failed to spawn: The Shell tool call timed out after 840 seconds and was terminated.

All 5 of my bots are affected, and all their scheduled routines have failed since then. The last successful commands ran at about 7:40 AM IST on Oct 22 (02:10 UTC).

What still works:

  • The bots reply in chat.
  • Bots can read some files with their file tool (e.g. /home/box/.profile).

What doesn’t:

  • Every Shell command (stalls 840 s, never starts).
  • Saving files and listing folders (both go through the shell, so they hang too).
  • Reading /home/box/.bashrc, even with the file tool, which normally doesn’t use the shell. It hangs ~14 minutes.

WHAT I’VE ALREADY TRIED

  • Oct 23, ~9:40 AM IST: Update Bot’s Computer. The computer restarted at 9:43 AM IST and its startup health check passed all 10 checks, but commands still stall.
  • Oct 23, ~10:00–10:15 AM IST: Reset Bot’s Computer, twice. Same result each time.
  • Quit and reopened the app; installed the latest Linux desktop app (0.75.2).
    I’ve now stopped resetting, per Colin’s advice in the “Grok Bot Box unresponsive” thread.

WHAT I FOUND (following Colin’s steps from that thread)

  1. /home/box/.bashrc cannot be read at all. The file tool hangs ~14 minutes on it, while /home/box/.profile (31 lines) reads fine and /home/box/.bash_profile doesn’t exist. Since reading normally doesn’t go through the shell, .bashrc itself looks broken (possibly huge, or not a regular file). Every Shell call starts a login shell, and .profile line 15 (. "$HOME/.bashrc") loads it, so every command would hang right there, before it starts.

  2. /home/box/.profile line 30 auto-starts a background loop at every login:
    ( flock -n /home/box/ledger-api/.lock true 2>/dev/null && setsid nohup /home/box/ledger-api/run.sh >/dev/null 2>&1 < /dev/null & ) 2>/dev/null

  • run.sh loops forever, restarting a process 2 seconds after it stops.
  • The flock -n … true check only takes the lock for an instant and releases it, so it never prevents a second copy. Every new login shell can start another loop, and they can pile up.
  • It’s safe to disable.

Both files are part of my saved files, so they come back after every Update and Reset, which would explain why recovery hasn’t helped.

WHAT I’M ASKING FOR
Please, on your side:

  1. Inspect /home/box/.bashrc (size and type). Replace it with a stock Ubuntu .bashrc, and keep the broken one as /home/box/.bashrc.broken.
  2. Comment out line 30 of /home/box/.profile (leave the rest as is).
  3. Stop any running /home/box/ledger-api/run.sh processes and whatever they started.
  4. Keep everything else: /workspace, bots, routines, conversations and logins. Please do NOT restore an older snapshot.
  5. Let me know when it’s done.
    I can’t make these changes myself, because saving files needs the shell. I’m happy to share my sign-in email privately.

Steps to Reproduce

  1. Ask any bot on this computer to run echo ok.
  2. It hangs for 840 seconds and fails with “Command failed to spawn”.
  3. Ask a bot to read /home/box/.bashrc with its file tool (not Shell). It also hangs ~14 minutes.

Expected Behavior

Shell commands start and run normally, and /home/box/.bashrc can be read.

Operating System

Linux

Version Information

Grok Bot desktop app 0.75.2 (Linux .deb, Ubuntu 24.04). Plan: SuperGrok.

Additional Information

Region/timezone: India (IST, UTC+5:30).
Related threads with the same symptoms: “Grok Bot Box unresponsive”, “Grok Bot computer frozen for 26+ hours, all bots down (ticket T-I8096)”, “Frozen grok computer 24+ hours”.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @beartester,

You’re right about line 30 of .profile! We ran it in the same login shell your bots use: the shell finishes, but the background copy it starts keeps the command’s output open, so the command never registers as started and times out at 840 seconds. Every bot command goes through that startup, so they all stall.

That line isn’t part of the standard setup. By default .profile ends at line 27, and nothing on our side adds to it. Since it starts your ledger-api folder, most likely one of your bots added it while setting ledger-api up to autostart.

It began with the automatic update on Oct 22 around 8:11 AM IST, right after your last working command. Every restart since (your Update and both Resets) re-runs the saved .profile, so none could clear it. The file reader hanging on /home/box/.bashrc while other files open instantly suggests that file is huge or not a normal file, so replace it too.

Your bots can’t save files right now (saving goes through the stuck command step), but they can still copy files to and from your PC. If they can reach your Ubuntu PC:

  1. Have a bot copy /etc/skel/.bashrc to your PC as ~/bashrc-stock using CopyFromBox, not Shell. That’s the stock .bashrc. If the copy fails, run cp /etc/skel/.bashrc ~/bashrc-stock on your PC instead
    Ubuntu’s version is nearly identical.
  2. Have a bot copy /home/box/.profile to your PC as ~/profile-fixed the same way. Open it and put a # at the start of line 30 (the ledger-api line). If the copy fails, have a bot read the file with its file reading tool and save the full text as ~/profile-fixed yourself.
  3. Have a bot copy ~/bashrc-stock to /home/box/.bashrc and ~/profile-fixed to /home/box/.profile using CopyToBox, not Shell.
  4. Run Update Bot’s Computer once. Stuck commands only clear on restart.
  5. Have a bot run echo ok.

Step 3 overwrites the current .bashrc, so anything your bots added there is gone. Once commands work, a bot can re-add settings you need (environment variables, for example), but not lines that start programs. The ledger-api loops stop on their own at the restart in step 4. If you want ledger-api to autostart later, do it from a scheduled routine rather than .profile or .bashrc, since anything those files leave running blocks every command.

Thanks a lot, that was exactly it. Fixed now.

What I did, following your steps:

  1. Created a stock .bashrc on my PC from Ubuntu’s /etc/skel/.bashrc (as your fallback suggested).
  2. Had a bot copy /home/box/.profile to my PC with CopyFromBox, commented out line 30 (the ledger-api autostart line), and left everything else as is.
  3. Had a bot copy both files back to /home/box/.bashrc and /home/box/.profile with CopyToBox. I then copied .profile back once more and compared it byte-for-byte to confirm the box had the fixed version. Right after the swap, reading .bashrc returned instantly instead of hanging.
  4. Update Bot’s Computer only said the computer was already up to date and didn’t restart it, so I used Reset Bot’s Computer once instead, to force the restart.
  5. After the restart, echo ok returned in 20 ms. Commands run normally again, all my files in /workspace were intact, and my bots are working.

A note that might help others: if Update says you’re already on the latest version, it doesn’t restart the computer, so the stuck commands never clear. A single Reset after fixing the files is what did it for me.

Going forward I’ll keep the startup files clean and run anything that needs to stay up from a scheduled routine instead, as you suggested.

Thanks again, Colin. You can mark this resolved.