OCSSW failed with exit code 1

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
bgrunert
Posts: 3
Joined: Wed Sep 19, 2018 10:43 am America/New_York
Answers: 0

OCSSW failed with exit code 1

by bgrunert » Wed Sep 19, 2018 10:57 am America/New_York

Hi,

I was trying to install the data processors on SeaDAS 7.5.1 and encountered the following error message:

execution exception: java.io.IOException: install_ocssw.py failed with exit code 1.
Check log for more details.
Installing bundles.sha256sum (1 of 8)
--2018-09-19 10:50:39--  https://oceandata.sci.gsfc.nasa.gov/ocssw/bundles.sha256sum
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... xx.xxx.xx.xx, 2001:4d0:2418:128::84
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.
ERROR: cannot verify oceandata.sci.gsfc.nasa.gov's certificate, issued by ‘CN=COMODO ECC Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB’:
  Unable to locally verify the issuer's authority.
To connect to oceandata.sci.gsfc.nasa.gov insecurely, use `--no-check-certificate'.
Error - Executing command "cd /Applications/seadas-7.5.1/ocssw; wget --tries=5 --wait=5 https://oceandata.sci.gsfc.nasa.gov/ocssw/bundles.sha256sum"
Bundle checksum file (bundles.sha256sum) not downloaded

This is the same computer related to another forum post found here:

https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=6507

It seems that the Mac we're working on does not trust the server certificate but I haven't been able to determine how to allow access. Any suggestions? Thanks so much for the help!

Filters:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 271
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

OCSSW failed with exit code 1

by OB SeaDAS - dshea » Wed Sep 19, 2018 2:11 pm America/New_York

You will have to run install_ocssw.py from the command line. 
- grab https://oceandata.sci.gsfc.nasa.gov/ocssw/install_ocssw.py and put it in you SEADAS directory
- edit line line 43 of install_ocssw.py
    from
downloadCommand = 'wget --tries=5 --wait=5 '
    to
downloadCommand = 'wget --no-check-certificate --tries=5 --wait=5 '

- save the file and try running it

bgrunert
Posts: 3
Joined: Wed Sep 19, 2018 10:43 am America/New_York
Answers: 0

OCSSW failed with exit code 1

by bgrunert » Thu Sep 20, 2018 11:40 am America/New_York

Thanks Don!

I have 'install_ocssw.py' in the ocssw folder of the SeaDAS directory. I've tried navigating into that folder and running in Terminal with the appropriate changes made to line 43, using the command

./install_ocssw.py

I get back

./install_ocssw.py: Permission denied

I'm not the most savvy when it comes to using Terminal - am I doing something wrong?

Thanks!
Brice

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 271
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

OCSSW failed with exit code 1

by OB SeaDAS - dshea » Thu Sep 20, 2018 12:55 pm America/New_York

You need to make the script executable.  In the terminal, go the seadas directory and run this:

chmod +x install_ocssw.py
./install_ocssw.py -i ocssw -b v7.5 --aqua


don

bgrunert
Posts: 3
Joined: Wed Sep 19, 2018 10:43 am America/New_York
Answers: 0

OCSSW failed with exit code 1

by bgrunert » Thu Sep 20, 2018 3:14 pm America/New_York

Thanks Don, works like a charm!

Brice

renoshpr
Posts: 2
Joined: Tue Oct 16, 2018 10:32 am America/New_York
Answers: 0

OCSSW failed with exit code 1

by renoshpr » Wed Oct 17, 2018 3:54 am America/New_York

Hello,
I have installed seadas-7.5.1 in mac book. After, I try to install ocssw.
Unfortunately, I get a message saying that "Unable to establish an SSL connection"

How can I fix this problem? Please reply me.
Regards
Renosh

OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

OCSSW failed with exit code 1

by OB.DAACx - SeanBailey » Wed Oct 17, 2018 9:34 am America/New_York

The issue is with the SSL library used by the Apple-installed version of python.
You will need to install an alternate python version (but still v2.7 - v3.x is not yet fully supported by SeaDAS).
You might try Anaconda

Sean

renoshpr
Posts: 2
Joined: Tue Oct 16, 2018 10:32 am America/New_York
Answers: 0

OCSSW failed with exit code 1

by renoshpr » Thu Oct 18, 2018 3:35 am America/New_York

Hi Sean,

I tried Anaconda. Still, it is not working.

See the python version.
renosh-mb:~ highroc$ python -V
Python 2.7.15 :: Anaconda, Inc.

I think an old inbuilt version of python there in my MacBook. I don't know how to remove it.

Regards
Renosh

OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

OCSSW failed with exit code 1

by OB.DAACx - SeanBailey » Thu Oct 18, 2018 10:40 am America/New_York


OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

OCSSW failed with exit code 1

by OB.DAACx - SeanBailey » Fri Oct 19, 2018 10:01 am America/New_York

A follow-up...I managed to get my hands on a "clean" Mac (fresh install of 10.13) and using this machine (once I installed XCode to get the git binary) I was successful installing SeaDAS and the OCSSW package using the GUI with no issues...

Can you let me know what macOS your machine is running?

Sean

Post Reply