4343import org .labkey .api .security .permissions .InsertPermission ;
4444import org .labkey .api .sequenceanalysis .SequenceAnalysisService ;
4545import org .labkey .api .sequenceanalysis .pipeline .ReferenceGenome ;
46+ import org .labkey .api .sequenceanalysis .run .AbstractCommandWrapper ;
4647import org .labkey .api .sequenceanalysis .run .SimpleScriptWrapper ;
4748import org .labkey .api .util .FileType ;
4849import org .labkey .api .util .FileUtil ;
@@ -247,12 +248,26 @@ public void testJBrowseCli() throws Exception
247248 {
248249 _log .error ("Non-zero exit from testJBrowseCli: " + wrapper .getLastReturnCode ());
249250 wrapper .getCommandsExecuted ().forEach (_log ::error );
251+ _log .error ("NODE_PATH: " + System .getenv ("NODE_PATH" ));
252+
253+ File node = AbstractCommandWrapper .resolveFileInPath ("node" , null , false );
254+ if (node == null )
255+ {
256+ _log .info ("Unable to find node in PATH, trying node.exe" );
257+ node = AbstractCommandWrapper .resolveFileInPath ("node.exe" , null , false );
258+ if (node == null )
259+ {
260+ _log .info ("Unable to find node.exe in PATH" );
261+ }
262+ }
263+
250264 _log .error ("output: " );
251265 _log .error (output );
252266
253267 // Repeat without output going direct to the server log:
254268 try
255269 {
270+ _log .info ("Retrying without all output direct to the system log:" );
256271 wrapper .execute (Arrays .asList (exe .getPath (), "help" ));
257272 }
258273 catch (Exception e )
@@ -277,11 +292,6 @@ public File getBaseDir(Container c, boolean doCreate)
277292 return null ;
278293 }
279294
280- if (fileRoot == null || !fileRoot .exists ())
281- {
282- return null ;
283- }
284-
285295 File jbrowseDir = new File (fileRoot , ".jbrowse" );
286296 if (!jbrowseDir .exists ())
287297 {
0 commit comments