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

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » Mon Jul 12, 2021 9:47 pm America/New_York

Please, I installed Seadas 8.1.0 and now I'm trying to install OCSSW using the ocsswserver.config for WSL (https://seadas.gsfc.nasa.gov/client_server/).

But when I start Seadas programmer the following mensage show up: Log file directory is not accessible to write.

Windows 10 (version 20H2, operacional system: 19042.1083)
Nome do dispositivo DESKTOP-L3VF77C
Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz
RAM 16.0 GB

I installed:
1) WINDOWS Subsystem for Linux (WSL) and Ubuntu 20.04 LTS
2) ORACLE-JAVA 15 (ubuntu home)
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java15-installer
sudo apt install oracle-java15-set-default
3) PYTHON3.6
sudo apt install python3.6
4) GIT
sudo apt install git
5) Deploy the OCSSW Web Services Package: server JAR file and server CONFIG file
I put them in the HOME directory (Ubuntu environment)

UBUNTU enviroment:
negri@DESKTOP-L3VF77C:/home$ ls
negri ocssw.db ocsswserver.config seadas-ocsswserver.jar

WINDOWS enviroment I deployed seadasClientServerShared
directory:
C:\Users\negri\seadasClientServerShared

ocsswserver.config for WSL:
ocsswrest.version=1.0
baseUriPortNumber=6400
ocsswroot=negri/ocssw (I DON'T NOW IF IT IS CORRECTED ???)
serverWorkingDirectory=/mnt/c/Users/negri/seadasClientServerShared
clientServerSharedDir=true
keepIntermediateFilesOnServer=false
processInputStreamPortNumber=6402
processErrorStreamPortNumber=6403

I DIDN'T FIND seadas.config, INSTEAD I FOUND seadas.conf
C:\Program Files (x86)\SeaDAS\etc\seadas.conf

anyway, I insert in the seadas.conf:
# Settings used for the remote OCSSW server
seadas.ocssw.location=virtualMachine
seadas.ocssw.port=6400
seadas.ocssw.sharedDir=C:\\Users\\negri\\seadasClientServerShared
seadas.client.id=negri
seadas.ocssw.keepFilesOnServer=false
seadas.ocssw.processInputStreamPort=6402
seadas.ocssw.processErrorStreamPort=6403

Please, what I missed ?

Tags:

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

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

by OB SeaDAS - aynur » Tue Jul 13, 2021 9:10 am America/New_York

Please add the content that you added to the "seadas.config" file to the "seadas.properties" file in $USER_HOME_DIR/.seadas8/etc/.

In addition, please add "seadas.log.dir" property and set the value to a directory that you have write permission.

Note: the "seadas.log.dir" is only needed when there is an exception. Your OCSSW setup maybe successful after this change and you may not see the error message again. Please let us know how it goes.

Thanks,
Aynur

negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » Tue Jul 13, 2021 6:27 pm America/New_York

Hi Arnyr, thank you for you considerations.

Now, when I open the SeaDas8.1.0, the message "Log file directory is not accessible to write"
don't show up anymore.
But, when I go to the "SeaDAS-OCSSW/Instal-Update OC Processor" a new message show up:
"Remote server is down. OCSSW is not accessible. Please start OCSSW remote server"

inside the log file
(gov.nasa.gsfc.seadas.processing.ocssw.OCSSWInfo_java.lang.NullPointerException.log),
we found:
path is 'null'.


Before start SeaDAS I did this (ubuntu enviroment):
negri@DESKTOP-L3VF77C:/home$ java -Xmx4G -jar seadas-ocsswserver.jar ocsswserver.config

resulted in this:
first, I would like to highlight this WARNING message
" WARNING: A provider java.io.InputStream registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime.
Due to constraint configuration problems the provider java.io.InputStream will be ignored."

"argument: ocsswserver.config
-- listing properties --
java.specification.version=16
sun.jnu.encoding=UTF-8
java.class.path=seadas-ocsswserver.jar
ocsswroot=negri/ocssw
java.vm.vendor=Oracle Corporation
sun.arch.data.model=64
processInputStreamPortNumber=6402
processErrorStreamPortNumber=6403
java.vendor.url=https://java.oracle.com/
java.vm.specification.version=16
os.name=Linux
sun.java.launcher=SUN_STANDARD
sun.boot.library.path=/usr/lib/jvm/java-16-oracle/lib
sun.java.command=seadas-ocsswserver.jar ocsswserver.co...
jdk.debug=release
sun.cpu.endian=little
user.home=/home/negri
user.language=en
java.specification.vendor=Oracle Corporation
serverWorkingDirectory=/mnt/c/Users/negri/seadasClientServer...
java.version.date=2021-04-20
java.home=/usr/lib/jvm/java-16-oracle
file.separator=/
java.vm.compressedOopsMode=Zero based
line.separator=

java.vm.specification.vendor=Oracle Corporation
java.specification.name=Java Platform API Specification
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
java.runtime.version=16.0.1+9-24
user.name=negri
path.separator=:
os.version=4.4.0-19041-Microsoft
java.runtime.name=Java(TM) SE Runtime Environment
file.encoding=UTF-8
baseUriPortNumber=6400
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vendor.url.bug=https://bugreport.java.com/bugreport/
java.io.tmpdir=/tmp
java.version=16.0.1
user.dir=/home
os.arch=amd64
java.vm.specification.name=Java Virtual Machine Specification
ocsswrest.version=1.0
java.library.path=/usr/java/packages/lib:/usr/lib64:/li...
java.vm.info=mixed mode, sharing
java.vendor=Oracle Corporation
clientServerSharedDir=true
java.vm.version=16.0.1+9-24
sun.io.unicode.encoding=UnicodeLittle
java.class.version=60.0
keepIntermediateFilesOnServer=false
server ocssw root path: /home/negri/ocssw/bin
ORS is starting at
Jul 13, 2021 7:05:21 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
WARNING: A provider java.io.InputStream registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider java.io.InputStream will be ignored.
Jul 13, 2021 7:05:21 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [0.0.0.0:6400]
Jul 13, 2021 7:05:21 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
Jersey new app started with WADL available at http://0.0.0.0:6400/ocsswws/application.wadl
Press 'Ctrl' + 'C' to stop it..."

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

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

by gnwiii » Tue Jul 13, 2021 9:34 pm America/New_York

Your file has

Code: Select all

ocsswroot=negri/ocssw (I DON'T NOW IF IT IS CORRECTED ???)
This should be the full path of the directory that contains the OCSSW software (maybe "/home/negri/ocssw"?). Are you able to run the "benchmark" script? There is no point chasing problems in configuration files when he OCSSW software isn't working.

negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » Wed Jul 14, 2021 9:40 am America/New_York

Hi, thank you for your support.
In the SeaDas reference (https://seadas.gsfc.nasa.gov/client_server/)
there is no information about install OCSSW.
I thought that I could get OCSSW installed using the SeaDas GUI (SeaDas OCSSW --> Install/Update OC Processor).
Do I have to install OCSSW in the ubuntu directory (home/ocssw) beafore run SeaDas OCSSW/Install/Update ?
When you ask me "Are you able to run the "benchmark" script?", please, how I run the benchmark script (I supose that first I have to install OCSSW) ?

negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » Mon Jul 19, 2021 10:53 pm America/New_York

Please, I run the python script install_ocssw.py in order to install OCSSW software
as pointed out in https://oceandata.sci.gsfc.nasa.gov/ocssw/

The OCSSW files were installed in the folder: /home/negri/ocssw

In the end of the process, the followed message show up:
"/usr/bin/env: 'python': No such file or directory
Error - Python version is not new enough to install luts"

When I try to go to SeaDAS 8.1.0 --> SeaDAS-OCSSW --> install/update OC process
the followed message show up:
"Remote server is down. OCSSW is not accessible. Please start OCSSW remote server"

I don't know more what to do!

Anyway, the configuration files are established as follows:

######## C:\Users\negri\.seadas8\etc #######
######## seadas.properties ###############
#SNAP configuration 'seadas'
#Wed Jul 07 17:50:37 BRT 2021
seadas.ocssw.location=virtualMachine
# Settings used for the remote OCSSW server
seadas.ocssw.location=virtualMachine
seadas.ocssw.port=6400
seadas.ocssw.sharedDir=C:\\Users\\negri\\seadasClientServerShared
seadas.client.id=negri
seadas.ocssw.keepFilesOnServer=false
seadas.ocssw.processInputStreamPort=6402
seadas.ocssw.processErrorStreamPort=6403
seadas.log.dir=C:\\Users\\negri\\seadasClientServerShared

######## negri@DESKTOP-L3VF77C:/home$ #######
######## ocsswserver.config ############
ocsswrest.version=1.0
baseUriPortNumber=6400
ocsswroot=/home/negri/ocssw
serverWorkingDirectory=/mnt/c/Users/negri/seadasClientServerShared
clientServerSharedDir=true
keepIntermediateFilesOnServer=false
processInputStreamPortNumber=6402
processErrorStreamPortNumber=6403

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

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

by OB SeaDAS - xuanyang02 » Wed Jul 21, 2021 3:27 pm America/New_York

The link you used to install OCSSW is for SeaDAS 7. https://oceandata.sci.gsfc.nasa.gov/ocssw/

Please follow the instruction under "Manual Installation" on this page to install OCSSW for SeaDAS 8.1.0: https://seadas.gsfc.nasa.gov/downloads/

negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » Fri Jul 23, 2021 6:05 pm America/New_York

Thank you for you suport!
I installed again Windows Subsystem for Linux (WSL2), Ubuntu 20.04 LTS and others apps indicated by the link: https://seadas.gsfc.nasa.gov/client_server/

Now, I'm trying to do the Manual Installation of OCSSW in Ubuntu 20.04 (https://seadas.gsfc.nasa.gov/downloads/).

In the item "Processing Programs and Source Code" there is the following message:
"Currently, the processing components can only be installed on Linux or MacOSX (Intel) systems. The Linux binaries were compiled on a system with CentOS 6.10 and gcc-6.3.1. If your system is not the same, you might need to build the binaries from source."

Please, even installed Ubuntu, must I need to build the binaries from source (binaries were compiled on a system with CentOS 6.10 and gcc-6.3.1) ?

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

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

by gnwiii » Sat Jul 24, 2021 2:27 pm America/New_York

negri wrote: Fri Jul 23, 2021 6:05 pm America/New_York I installed again Windows Subsystem for Linux (WSL2), Ubuntu 20.04 LTS and others apps indicated by the link: https://seadas.gsfc.nasa.gov/client_server/
The instructions for configuring WSL are for version 1. WSL2 is a virtual machine, so you might be able to use the virtual machine configuration. You can convert a WSL2 linux to a WSL linux, but it is a slow process and WSL2 has many advantages over WSL.

I have the OCSSW software (tag 2021.2 ) running in an Ubuntu 20.04 VM (hosted on linux).

negri
Posts: 23
Joined: Sat Jul 10, 2021 3:42 pm America/New_York
Answers: 0

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

by negri » 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 ?

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.

Post Reply