All new sessions ending instantly

1,133 views
Skip to first unread message

Robert Wagner

unread,
Aug 16, 2023, 8:37:31 PM8/16/23
to iterm2-discuss
I just updated to a new Mac Studio from an Intel iMac (which also involved jumping from MacOS 10.14(?) to MacOS 13), and iTerm has stopped working.  Whenever I open a new session, it immediately ends, and displays the following alert:

A session ended very soon after starting. Check that the command in profile "Default" is correct.

I've downloaded a new version from the website.  I've verified that the Default profile's command is set to "login shell".  I've deleted both ~/Library/Preferences/com.googlecode.iterm2.plist and ~/Library/Application Support/iTerm2/.  I've rebooted the computer.  I've tried setting the command to "other shell" with /bin/sh, /bin/bash, /bin/csh, and /bin/zsh.  I've tried setting it to "command" with the above, and even to the command "/bin/echo testing".  I've tried setting iTerm to "Open using Rosetta".  In every single case, when I open a new window with that profile, absolutely nothing shows up other than the "Session Ended" line.

The built-in Terminal program works normally, and it acts as expected when set to run "/bin/echo testing" as its startup command, printing "testing" and then exiting.

David Stevenson

unread,
Aug 16, 2023, 8:41:53 PM8/16/23
to iterm2-...@googlegroups.com
iTerm 2 is a Universal binary (both Intel and Apple Silicon), so you won’t need Rosetta.

Are you installing things via Homebrew and referencing them in (say) .bash_profile?  Homebrew now installs stuff under /opt rather than /usr/local/ on ARM.

I’d start by renaming such shell dot files and narrow it down that way.



--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/0d0fd9ce-92cd-4e21-a598-a66b98e496a8n%40googlegroups.com.

Message has been deleted

Robert Wagner

unread,
Aug 16, 2023, 10:43:58 PM8/16/23
to iterm2-discuss
- I didn't expect Rosetta to be needed, but figured I'd try it after everything else failed just in case.  Rosetta is functioning, as I just successfully launched an old application that's marked in Activity Monitor as "Intel".

- I just tried renaming my .profile, .bash_profile, and .bashrc files, but that didn't help.  I wouldn't have expected it to, though, since the default terminal app runs just fine with all the same files in place.

On Wednesday, August 16, 2023 at 5:53:18 PM UTC-7 Steven Johnson wrote:
have you set up rosetta 2 ? 
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/0d0fd9ce-92cd-4e21-a598-a66b98e496a8n%40googlegroups.com.


--
photo
Steven Johnson
Full stack web developer

8573429242  |  www.stevenrhett.com

 

Robert Wagner

unread,
Aug 17, 2023, 9:33:04 PM8/17/23
to iterm2-discuss
Update: Running in a newly-made account didn't help.  That said, something's badly messed up with this system in general- it's a work computer with networked home directories, and apparently something about that system is keeping MacOS from saving any preferences (and possibly other more subtle effects), so that might be the root cause of this error.  I'll post again if that gets resolved and I'm still having issues with iTerm.
Message has been deleted

George Nachman

unread,
Aug 19, 2023, 12:48:55 PM8/19/23
to iterm2-...@googlegroups.com
Set "Prefs>Profiles>Session>After a session ends” to “No Action”. Then make a new tab, which will repro the bug. Close the yellow bar saying the session ended, and see if there’s an error message behind it.

--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages