Error occurred in background process. spawn /bin/sh ENOENT - spring-boot

When I using visual studio code to create a spring boot java project and try to add a new dependency, Error occurred in background process. spawn /bin/sh ENOENT this error occurs.
I found that it is a permission problem in the internet, but /bin/sh cannot change permission.
This is the information at output:
Spawn {"command":"\"/usr/local/Cellar/maven/3.8.4/libexec/bin\"","args":["-s","\"/usr/local/Cellar/maven/3.8.4/libexec/conf\"","-B","-N","-DgraphFormat=text","-DshowDuplicates","-DshowConflicts","-DshowVersions","-DshowGroupIds","-DoutputDirectory=\"/Users/user/Library/Application Support/Code/User/workspaceStorage/6abd59f00810680789df47da1ebf3cd0/vscjava.vscode-maven\"","-DoutputFileName=\"58e04c2e353c1802f3f63b9a0c3dce14.deps.txt\"","com.github.ferstl:depgraph-maven-plugin:4.0.2:graph","-f","\"/Users/user/Desktop/Spring/demo/pom.xml\""]}
I have tried click the refresh button near Dependencies or tried to show the dependency list I have, this error occurs again.

Related

Browsershot not wroking on Laravel queue

I have an issue where as I am taking screenshots of responses using Browsershot which works fine when using dispatchSync. But as soon as I switch over to dispatch and use the queue (redis) the jobs fail with the following output;
Working directory: /var/www/html
Output:
================
Error Output:
================
Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT
I might also mention this is running through a Docker container.

Docker commit or build fails with - hcsshim::ImportLayer - failed. (Windows)

Been stuck with this failure a few days.
This happens when I build an image or try to commit after installing a particular application. I'm using mcr.microsoft.com/windows/servercore:ltsc2019 as base image.
"Error response from daemon: re-exec error: exit status 1: output: hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)"
If I do not install my application to the image, I do not get this error. The application installs fine without any failures. I'm able to run the container fine with this application installed, but it fails when I commit it to an image.
I came across a few existing posts with this error, but I couldn't get this to work. Some existing posts mentions about possible size limit of the image but here I don't see size to be an issue. This error is too vague for me to do anything about it. Where can I look for some detailed logging from docker daemon to try to understand what in my application is causing the docker commit to fail?
Tried to look into log under, I don't find any thing useful to understand this failure.
AppData\Local\Docker
Appreciate any help or pointers to find what in my application can cause this commit failure.

How to fix VS Code error with Remote-SSH: "the terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.)."?

I've installed and used the Remote-SSH extension in VS Code to access a Linux staging environment and work remotely.
The setup and connection works for one user, however is not allowing me to connect as a different user (on the same server).
Immediately after connecting, an error pops up saying the terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.). and the terminal would fail to open. If I attempt to manually open the terminal, it will fail with the same error.
Here is an example of how my Remote-SSH config file looks:
Host configfile1
HostName host.website.com
User username1
IdentifyFile "[key file path]"
Host configfile2
HostName host.website.com
User username2
IdentifyFile "[key file path]"
I could connect just fine and open remote terminal with configfile1, however would run into the aforementioned error when attempting to connect with configfile2.
I have tried various solutions mentioned in this GitHub issues thread, but to no avail: https://github.com/microsoft/vscode-remote-release/issues/4233
Does anybody have a solution for this?
I don't know the underlying causes for this, but this error pops up when using jailed shell settings.
Try changing the user's SSH shell settings to normal shell, and you may be able to connect without an issue.
This may not be ideal for all scenarios or security considerations, however, but it will allow Remote-SSH to connect and spawn the terminal.

"Insufficient system resources" when trying to run "git init"

I am trying to create a Jenkins job and noticed that whenever I try to build my maven project, it exits showing the following error in the log (Which happens after about 2 minutes and after the memory usage reaches almost 99%):
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init C:\Users\rami_\.jenkins\workspace\Soc
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:994)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:749)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1222)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1300)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1211)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)
at hudson.model.Run.execute(Run.java:1906)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git init C:\Users\rami_\.jenkins\workspace\Soc" returned status code 1:
stdout:
stderr: error launching git: Insufficient system resources exist to complete the requested service.
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2608)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2538)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2534)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1920)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:992)
... 12 more
ERROR: Error cloning remote repo 'origin'
So I tried to run git init using CMD to check if the problem is Jenkins related or not, and I got exactly the same behavior, which is the two minutes wait, and when memory usage reaches 95-100% it exits and shows the following message:
error launching git: Insufficient system resources exist to complete the requested service.
I have 12 GB installed on my PC and the project I am working with is rather small. Memory usage before running the command is usually around 50%.
I saw some people suggesting to perform "scan disk for errors" which I tried and did not work.
Worth noting that Github desktop is working flawlessly.
The issue was resolved by uninstalling Git, removing all its files under AppData, restarting, and then installing it again.

Error while opening new terminal tab: ptsname_r failed: No such file or directory

I am trying to open a new terminal tab, but every time I try it I get this error:
There was an error creating the child process for this terminal
ptsname_r failed: No such file or directory
Do you have an idea as for why this is happening? It started all of a sudden.
I am running MATE desktop on Fedora 23.
TIA!

Resources