fail to start child process

In attempting to run the command

On a amazon ec2 32 bit instance (Amazon Linux AMI release 2014.09), I run into the following error:

I also notice no log file is created in the process.

fail to start child process

10 Answers 10

I had the same thing and it turned out to be a permissions issue. If the owner of the child process cannot access the log path or the log path does not exist, it will fail.

What I did was put the log directory in my home directory:

If you really want to put it in your /var/log directory, just change the permissions.

Comments

Copy link Quote reply

dimhoff commented Jan 22, 2018 •

I downloaded the 0.8 release for Linux. Running ./Musicoin-wallet from the Musicoin-wallet-linux-x64/ directory gives me a splash screen saying it is syncing, but percentage says at 0%.

Читайте также:  1с поиск по части наименования

In the terminal I see the following log:

Especially the line ‘Failed to start child process Musicoin Wallet: Error: spawn ./gmc ENOENT’ worries me. The ‘gmc’ binary does exist in the Musicoin-wallet-linux-x64/bin/gmc/ directory however the program seems to be looking for gmc in the /tmp/.io.nwjs.Ec0TvT/bin/gmc/ directory, which doesn’t exist.

This comment has been minimized.

Copy link Quote reply

Varunram commented Jan 22, 2018

Oh, that’s weird.. Could you try moving the gmc binary to the above location to see if it works?

This comment has been minimized.

Copy link Quote reply

dimhoff commented Jan 22, 2018

Yes, that works. Although it is not as simple as just copying the binary, since the process.cwd directory is a temporary directory created at startup. The work around I currently use is run the following command while starting Musicoin-wallet:
while true; do for d in .io.nwjs*; do mkdir -p «$d»/bin/gmc; ln -s /home/musicoin/Musicoin-wallet-linux-x64/bin/gmc/gmc «$d»/bin/gmc/gmc; done; done

This comment has been minimized.

Copy link Quote reply

BeamZappa commented Jan 22, 2018 •

Hi again Varunram

I’m still getting the ECONNREFUSED 127.0.0.1:8545 with nothing running besides the wallet on two separate PC’s, though when I start the GMC app found in bingmc, I get a terminal with info that appears to look like some syncing going on, and files being placed in AppDataRoamingMusicoingmcethash.

EDIT: The wallet GUI is still saying sync 0% whilst this is going down, I’m gonna let the terminal run till it stops doing things, then see what happens.

This comment has been minimized.

Copy link Quote reply

Читайте также:  i7 2600k vs i5 7400

Varunram commented Jan 23, 2018

if the gmc app in bin/gmc runs fine, There is no issue (and you shouldn’t get the ECONNREFUSED error), the path for the child process is defined as path: «/bin/gmc/», which would point to your /bin/gmc instance

This comment has been minimized.

Copy link Quote reply

dimhoff commented Jan 23, 2018 •

@BeamZappa I don’t think we are talking about the same problem here.

@Varunram The ./Musicoin-wallet process forks multiple times and changes directory. By the time the main process is running it has changed directory to a temporary directory. So process.cwd does not longer point to the directory where the Musicoin-wallet executable is located. The temporary directory is removed after the program finishes.

Do you know how the 0.8.0 release was packaged? Still with nwjs-builder and the command line described in the Readme.md?

Are you able to reproduce this behavior or is this specific to my Linux system? I’m using Xubuntu 16.04.

Comments

Copy link Quote reply

Fomalhauthmj commented Jul 23, 2019

Type: LanguageService

Describe the bug

OS and Version: Windows 10 (10.0.18362.239)

VS Code Version:
version: 1.36.1 (system setup)
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

C/C++ Extension Version:
id: ms-vscode.cpptools
version: 0.24.1

A clear and concise description of what the bug is.
When my cpp file in Multi-level folders, clang-format.exe will fail to start child process.
About Details you can compare below two screenshots.

To Reproduce

  1. create a file in current folder and another fail in sub folder then try to use format function
Читайте также:  acpi ven hpq dev 0004 windows 10

Screenshots

fail to start child process
fail to start child process

This comment has been minimized.

Copy link Quote reply

sean-mcmanus commented Jul 23, 2019

This is strange. I’m not able to repro it. @Colengms @michelleangela @Jasdriel Is anyone else able to repro this?

This comment has been minimized.

Copy link Quote reply

Jasdriel commented Jul 23, 2019

I can’t repro either, I actually even tried with more subfolders but is working ok

This comment has been minimized.

Copy link Quote reply

michelleangela commented Jul 23, 2019 •

It might be the same as this issue #3007 (comment)

This comment has been minimized.

Copy link Quote reply

Fomalhauthmj commented Jul 24, 2019

Update: I solve this problem by the method in #3007 comment.

This probblem has been bothering me for a long time. I have found that the cpp file can not be formatted if the name of one of its parent folders ends with «Chinese character+digit», like «中文123». If not, the cpp file can be formatted. The name of the cpp file has no influence.
Not long ago I found a solution: I insert an underline «_» between the Chinese character and the digit of the name of the folders to separate them, writing «中文_123», and the cpp file can be formatted. Using «-» or space doesn’t work. Using English letters works, but there must be no spaces after Chinese characters.

Оцените статью
Все о Windows 10
Добавить комментарий