Score:0

Ubuntu cannot launch intellij anymore

kn flag

After using intellij for multiple years on the same pc without any problem, suddenly this happened. When I want to startup my intellij on Ubuntu I get an error: "IDE Already Running", Cannot connect to already running IDE instance. CannotActivateException: Process 2 is still running. When I press "V ok" intellij starts up, opens, and then closes immediatly. I've tried restarting my pc and reinstalling intellij. When I check my running processes, nothing that has anything to do with intelijj is running.

After trying to do some root-cause analysis I am pretty sure it is an ubuntu problem, not an intellij problem. But I cannot seem to figure out what this process 2 is, nor where it is running.

Yannick Mussche avatar
kn flag
I launch it from the GUI, It has been installed from the software center from ubuntu
David avatar
cn flag
And the version of Ubuntu is??
Yannick Mussche avatar
kn flag
The version is 20.04.5 LTS
Score:2
in flag

IntelliJ was running when my laptop was shut down improperly. I had then the same issue.

I solved it by removing the .lock file:

rm ~/.config/JetBrains/IntelliJIdea2023.2/.lock
Score:0
kn flag

I don't know why the error happened. But I removed the GUI-installed intellij again and then I installed using the terminal. Afterwards I ran with the terminal and I launched. So it has to do something with the ubuntu software center.

for people like me that don't just know all the commands:

install:

sudo snap install intellij-idea-community --classic

launch:

intellij-idea-community
Score:0
jo flag

My installation of IDEA was done through software center. That installs it as a snap. And this got me back in:

sudo snap revert intellij-idea-community
# Tried opening here still failed with older version
sudo snap refresh intellij-idea-community
# Works now!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.