Create launcher script fails with 127 on ubuntu 18.04 LTS

Answered

Hi

I'm getting error bellow when creating launcher script:

I'm using Intellij ultimate version 2019.2.3 on Ubuntu 18.04.3 LTS.

 

2019-10-18 07:47:01,049 [2414902] WARN - ons.CreateLauncherScriptAction - Launcher script creation failed with 127 
java.lang.RuntimeException: Launcher script creation failed with 127
at com.intellij.ide.actions.CreateLauncherScriptAction.createLauncherScript(CreateLauncherScriptAction.java:143)
at com.intellij.ide.actions.CreateLauncherScriptAction$1.run(CreateLauncherScriptAction.java:109)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:894)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:408)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
0
4 comments

Most probably the root cause is that IntelliJ IDEA cannot make sudo for user it runs under. The following command returns 127 exit code: 

ProcessOutput result = ExecUtil.sudoAndGetOutput(new GeneralCommandLine(installationScript.getPath()), prompt);

Please check user's permissions. 

If user's privileges could be escalated, but the issue is still here, please submit a bug at https://youtrack.jetbrains.com/issues/IDEA 

0
Avatar
Permanently deleted user

Is this necessary for those of us on Linux who did not ask for the launcher to install for all users?

0

Yes. Sudo is necessary even if the application is used by a single user. It is needed to execute system binaries, etc, which requires superuser permissions. 

0
Avatar
Permanently deleted user

I have Error 1.

Workaround solution:

1) Create launcher at your home directory

2) Move it to /usr/local/bin/.

WebStorm 2021.1.2
Build #WS-211.7442.26, built on May 24, 2021
Runtime version: 11.0.11+9-b1341.57 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 4.15.0-135-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2010M
Cores: 4
Registry: js.debugger.v8.use.any.breakpoint=false

Current Desktop: X-Cinnamon
0

Please sign in to leave a comment.