Windows WSL l2gen initialization failure

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Windows WSL l2gen initialization failure

by gnwiii » Wed Oct 30, 2019 8:34 pm America/New_York

This topic is for the Windows 10 users who have installed the OCSSW software under a WSL linux and want to use the Java client-server mechanism.  When you choose l2gen from the OCSSW menu, the Windows GUI (client), asks the server to generate a list of the available products by running a version of the following command:
$OCSSWROOT/scripts/ocssw_runner --ocsswroot $OCSSWROOT l2gen prodxmlfile=/mnt/c/Users/<windows username>/seadasClientServerShared/productInfo.xml

Here OCSSWROOT is shell environment variable that gives the location where the OCSSW software and data are installed. The default is /home/<linux username>/ocssw. You can check that this command works by starting a WSL terminal and running the commands as shown in the following session:
$ export OCSSWROOT=$HOME/ocssw
$ $OCSSWROOT/scripts/ocssw_runner --ocsswroot $OCSSWROOT l2gen
prodxmlfile=//mnt/c/Users/<windows username>/seadasClientServerShared/productInfo.xml
Writing product information to XML file /mnt/c/Users/<windows username>/seadasClientServerShared/productInfo.xml$ ls -l /mnt/c/Users/<windows username>/seadasClientServerShared/productInfo.xml-rwxrwxrwx 1 root root 157077 Oct 30 21:03 /mnt/c/Users/<windows username>/seadasClientServerShared/productInfo.xml

If the command fails and you need help resolving the issue, you can copy the output as text in the WSL terminal and paste the text into a forum post.  Even if you are able to resolve the problem without help you should consider whether other users could benefit from your solution.  If so, please post the details.  Posts regarding WSL issues should mention whether you are using the original WSL or WLS2, the linux version, and the version of the Java runtime in linux.   WSL is still under active development so windows updates sometimes break the client-server system.   Currently, WSL linux is much slower than native linux so if you plan non-trivial processing you should consider running native linux or using a virtual machine.

Tags:

Post Reply