(Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

Please enter here to ask a question about any NASA Science related topics!
gnwiii
Posts: 606
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by gnwiii » Tue Jul 27, 2021 1:12 pm America/New_York

negri wrote: Mon Jul 26, 2021 5:29 pm America/New_York Thank you for the information!
Ok, WSL2 works as a virtual machine.
Sorry but I didn't understand what I have to do right now.
When you say "I have the OCSSW software (tag 2021.2 ) running in an Ubuntu 20.04 VM (hosted on linux)", how I find "tag 2021.2" ?
I have to Install Oracle VirtualBox from https://www.virtualbox.org/ ? even having installed WSL2 ?
From your questions, I assume you don't have both Windows and Linux experience, so you should stick with the
"well trodden path" and convert your WSL2 installation to WSL1. Also "https://docs.microsoft.com/en-us/window ... e-versions" suggests WSL1 is preferred when "Your project files must be stored in the Windows file system. WSL 1 offers faster access to files mounted from Windows."

The "tag" is needed to specify the OCSSW version, see: "https://seadas.gsfc.nasa.gov/downloads/". This page shows how to install the OCSSW Software using a GUI or the command-line. I assume the GUI install requires a SeaDAS GUI running on linux or macOS, so you will need the "Manual installation". This works in either WSL1 or WSL2 terminal.
negri wrote: Mon Jul 26, 2021 5:29 pm America/New_York I already did:
2. Configure the Virtual or Real Machine
3. Deploy the OCSSW Web Services Package
4. SeaDAS Client Configuration
But I have not installed the OCSSW in the ubuntu yet.
Step 5) convert WSL2 to WSL1 (this will take a long time)

Step 6) Put your EarthData Login credentials in a "~/.netrc" file in WSL. The EarthData documents explain this: "https://wiki.earthdata.nasa.gov/display ... L+And+Wget".

Step 7) install OCSSW system in WSL

The "downloads" page mentions some requirements: bash, python, git, and curl. You may need to install git and curl using the Ubuntu command line (see: "https://opensource.com/article/18/8/how ... mmand-line").

Don't overlook the "Command-line Configuration Step" (after editing "~/.bashrc", run "source ~/.bashrc" to configure the current terminal session).

Step 6) Verify that the OCSSW package is working using the "benchmark" package:

Code: Select all

$ ./install_ocssw --install_dir=$HOME/ocssw --tag V2021.2 –-benchmark
$ cd $OCSSWROOT/benchmark
$ ./seadas_benchmark.bash

Tags:

negri
Posts: 8
Joined: Sat Jul 10, 2021 3:42 pm America/New_York

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by negri » Wed Sep 01, 2021 8:35 pm America/New_York

After spending a period of time doing other activities that could not be postponed, I return now to proceed with Seadas installation.
Please, consider that the following steps was done.
Step 5) convert WSL2 to WSL1.
Ok
Step 6) Put your EarthData Login credentials in a "~/.netrc" file in WSL.
Ok
Step 7) install OCSSW system in WSL.
Ok
Step 6) Verify that the OCSSW package is working using the "benchmark" package.
OK

Now, when I try to start OCSSW Server ($ java -Xmx4G -jar seadas-ocsswserver.jar ocsswserver.config), the following message shows up:
java.sql.SQLException: opening db: 'ocssw.db': Permission denied

Please, any ideas on what's going on ?

OB SeaDAS - aynur
Subject Matter Expert
Subject Matter Expert
Posts: 33
Joined: Tue Dec 20, 2011 12:28 pm America/New_York

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by OB SeaDAS - aynur » Thu Sep 02, 2021 11:04 am America/New_York

Please delete the ocssw.db file and start the server again. It seems the file is corrupted.

Aynur

negri
Posts: 8
Joined: Sat Jul 10, 2021 3:42 pm America/New_York

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by negri » Wed Sep 08, 2021 1:01 pm America/New_York

It seems that the file "ocssw.db" does not exist, because
when I use the command:
find . -name "ocssw.db"
I have no return.
Please, could you tell me which folder the file "ocssw.db" is supposed to be in?

OB SeaDAS - aynur
Subject Matter Expert
Subject Matter Expert
Posts: 33
Joined: Tue Dec 20, 2011 12:28 pm America/New_York

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by OB SeaDAS - aynur » Fri Sep 10, 2021 11:56 am America/New_York

ocssw.db should be in the same folder with the seadas-ocsswserver.jar file. It doesn't come with the installation. It's first created after you execute the jar file.

gnwiii
Posts: 606
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

Re: (Log file directory is not accessible to write) Install Seadas 8.1.0, WSL, Windows 10, OCSSW

by gnwiii » Tue Sep 14, 2021 10:02 am America/New_York

negri wrote: Wed Sep 08, 2021 1:01 pm America/New_York It seems that the file "ocssw.db" does not exist, because
when I use the command:
find . -name "ocssw.db"
I have no return.
Please, could you tell me which folder the file "ocssw.db" is supposed to be in?
Check the permissions for the directory tree you are using. Note that some Java apps work with the full pathnames of files, so lack of read access to parent directories or "unusual" (spaces, unicode "look-alike") characters in directory names sometimes cause problems.

Post Reply