Sencha Cmd build - Failed creating background process

vadchen picture vadchen · Jul 24, 2014 · Viewed 12k times · Source

I'm trying to build extjs5 application with Cmd v5.0.0.160.

I have ruby2.0 installed and sencha cmd on my PATH var.

Here is the error that I get when running sencha app build:

...
[INF] Capturing theme image
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
[ERR]   at com.sencha.command.plugin.PluginManager.executeRe
[ERR] verseFirst(PluginManager.java:134)
[ERR] 
[ERR] Total time: 9 seconds
[ERR] The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/build-impl.xml:326: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:239: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:240: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:111: com.sencha.exceptions.ExProcess: Failed creating background process

The application is working OK in development mode (sencha app watch).

Since it looks like it's about themes, I'm not using custom theme but ext-theme-neptune.

Does anybody have a clue what is it about? I will appreciate any idea!

Solution:

The debug mode showed that the problem was in missing directory Cmd/5.0.0.160/bin/linux-x64. However there was Cmd/5.0.0.160/bin/linux dir, therefor soft-linking linux to linux-x64 fixed the issue.

Answer

ChristianNRW picture ChristianNRW · Feb 13, 2015

Same issues with EXT5.0 + EXT CMD Vers. 5.1.2.52

(causing EXT CMD cannot start RUBY)

It hangs with Error:

[ERR] com.sencha.exceptions.ExProcess: Failed creating background process

My Solution on Windows (Here Win7, 64Bit):

1) install Ruby (in my Case 1.9.3)

2) Set %PATH% in System Settings to Ruby´s EXE. (in my case c:\ruby193\bin)

3) Restart CMD window

4) Try again

That solves my problem.