PDA

View Full Version : sencha app build suddenly stopped working ([ERR] null)



Spenna
1 Nov 2013, 7:40 AM
I've been using the sencha tool for a few days now, but it suddenly stopped working.
This is what it outputs when executed in my app dir:


$ sencha app build
Sencha Cmd v4.0.0.203
[ERR] null


When i run it with -debug flag this it gives this error


sencha -debug app build
Sencha Cmd v4.0.0.203
...
[DBG] Scanning for plugins in folder: /usr/local/bin/Sencha/Cmd/4.0.0.203/extensions/cmd-cordova-packager
[DBG] Loading plugin: /usr/local/bin/Sencha/Cmd/4.0.0.203/extensions/cmd-cordova-packager/cmd-cordova-packager.plugin.xml
[DBG] Scanning for plugins in folder: /usr/local/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io
[ERR] com.sencha.exceptions.BasicException
at com.sencha.command.environment.BuildEnvironment$Failure.check(BuildEnvironment.java:754)
at com.sencha.command.environment.BuildEnvironment.checkState(BuildEnvironment.java:329)
at com.sencha.command.environment.BuildEnvironment.mustGetAppEnvironment(BuildEnvironment.java:558)
at com.sencha.command.BaseSenchaCommand.mustGetAppEnvironment(BaseSenchaCommand.java:32)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: null
at com.sencha.exceptions.BasicException.wrap(BasicException.java:51)
at com.sencha.command.environment.BuildEnvironment$Failure.<init>(BuildEnvironment.java:749)
at com.sencha.command.environment.BuildEnvironment$3.call(BuildEnvironment.java:733)
at com.sencha.util.Configuration.get(Configuration.java:61)
at com.sencha.util.Configuration.each(Configuration.java:180)
at com.sencha.util.Configuration.each(Configuration.java:223)
at com.sencha.ant.AntScript.apply(AntScript.java:80)
at com.sencha.command.plugin.PluginManager.loadPlugin(PluginManager.java:188)
at com.sencha.command.plugin.PluginManager.load(PluginManager.java:138)
at com.sencha.command.plugin.PluginManager.scan(PluginManager.java:167)
at com.sencha.command.ant.AntCommandScanner.getCommandTargets(AntCommandScanner.java:37)
at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:31)
at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:20)
at com.sencha.command.ant.AntExtensionScanner.getExtensionCommands(AntExtensionScanner.java:35)
at com.sencha.command.Sencha.extendCommands(Sencha.java:443)
at com.sencha.cli.Commands.extendCommands(Commands.java:103)
at com.sencha.cli.Commands.commands(Commands.java:44)
at com.sencha.cli.Commands.findCommand(Commands.java:83)
at com.sencha.cli.Commands.dispatch(Commands.java:65)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: null
at com.sencha.tools.pkg.HttpRepository.fixUrl(HttpRepository.java:151)
at com.sencha.tools.pkg.HttpRepository.<init>(HttpRepository.java:36)
at com.sencha.tools.pkg.RemoteRepository$Type$1.create(RemoteRepository.java:33)
at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:74)
at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:102)
at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:106)
at com.sencha.tools.pkg.RepositoryRemoteManagerImpl$1.accept(RepositoryRemoteManagerImpl.java:28)
at java.io.File.listFiles(File.java:1217)
at com.sencha.tools.pkg.RepositoryRemoteManagerImpl.<init>(RepositoryRemoteManagerImpl.java:26)
at com.sencha.tools.pkg.LocalRepository.loadConfig(LocalRepository.java:916)
at com.sencha.tools.pkg.LocalRepository.<init>(LocalRepository.java:97)
at com.sencha.command.environment.WorkspaceRepository.getLocalRepository(WorkspaceRepository.java:262)
at com.sencha.command.environment.WorkspaceRepository.getCatalog(WorkspaceRepository.java:241)
at com.sencha.command.environment.WorkspaceRepository.resolvePackageModels(WorkspaceRepository.java:117)
at com.sencha.command.environment.WorkspaceRepository.resolvePackageEnvironments(WorkspaceRepository.java:97)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackageEnvironments(AppOrPackageEnvironment.java:187)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackagesNoThemes(AppOrPackageEnvironment.java:248)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackageNamesNoThemes(AppOrPackageEnvironment.java:239)
at com.sencha.command.environment.AppEnvironment$3.call(AppEnvironment.java:80)
at com.sencha.command.environment.AppEnvironment$3.call(AppEnvironment.java:78)
at com.sencha.command.environment.BuildEnvironment$3.call(BuildEnvironment.java:731)
at com.sencha.util.Configuration.get(Configuration.java:61)
at com.sencha.util.Configuration.each(Configuration.java:180)
at com.sencha.util.Configuration.each(Configuration.java:223)
at com.sencha.ant.AntScript.apply(AntScript.java:80)
at com.sencha.command.plugin.PluginManager.loadPlugin(PluginManager.java:188)
at com.sencha.command.plugin.PluginManager.load(PluginManager.java:138)
at com.sencha.command.plugin.PluginManager.scan(PluginManager.java:167)
at com.sencha.command.ant.AntCommandScanner.getCommandTargets(AntCommandScanner.java:37)
at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:31)
at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:20)
at com.sencha.command.ant.AntExtensionScanner.getExtensionCommands(AntExtensionScanner.java:35)
at com.sencha.command.Sencha.extendCommands(Sencha.java:443)
at com.sencha.cli.Commands.extendCommands(Commands.java:103)
at com.sencha.cli.Commands.commands(Commands.java:44)
at com.sencha.cli.Commands.findCommand(Commands.java:83)
at com.sencha.cli.Commands.dispatch(Commands.java:65)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)

I'm guessing it has something to do with some environment variable/setting that has implicitly changed, because the exact same command runs find with the exact same code on another server.

Any input is much appreciated.

existdissolve
2 Nov 2013, 5:04 AM
I would suggest asking this in the Sencha Cmd forums (http://www.sencha.com/forum/forumdisplay.php?8-Sencha-Cmd). You're likely to get more visibility to your question there.

Spenna
4 Nov 2013, 3:12 AM
Uninstalling/Re-installing sencha command solved the issue.
It is important to manually remove original install-directory prior to re-installing.

The issue seemed to be lack of permissions under the 'repo' folder in the sencha command install dir.
Our setup required the sencha command to be accessible by multiple users on the server. From my understanding some certificates/private keys were written to the repo-folder, but not accessible afterwards.

Please consider moving this to the appropriate forum for whoever else might experience the issue.