Cannot install OCSSW Processors with SeaDAS 8.4.1

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
treble
Posts: 48
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0
Has thanked: 1 time
Been thanked: 1 time

Cannot install OCSSW Processors with SeaDAS 8.4.1

by treble » Mon Dec 11, 2023 2:38 pm America/New_York

I am trying to install the OCSSW SeaDAS processors on an Intel Mac running Monterrey (12.7.1). SeaDAS version: 8.4.1.

When I select SeaDAS-Toolbox --> Install/Update SeaDAS processors no window pops up.

In the log I see the error 'Cannot run program "/bin/bash"', but it should run fine. Even if I start SeaDAS from the command line in the bash shell (zsh is default). Bash is also at /bin/bash.

Code: Select all

 ~ % which bash
/bin/bash
 ~ % which python3
/Applications/anaconda3/bin/python3
I have installed SeaDAS many times, this is the first time this happens. SeaDAS 8.4.1 OCSSW processors installed fine on another Mac for me (M2, not Intel).

Hope someone has an idea on how to solve this... I guess the alternative is to install it from the command line instead of using the GUI.

For what it is worth, python3 is version 3.11.4 (Anaconda3). Requests is installed as well.



Below log and SeaDAS/System Information.

Log details:

Code: Select all

java.io.IOException: Cannot run program "/bin/bash": error=0, posix_spawn failed
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
INFO [null]: Last record repeated again.
	at gov.nasa.gsfc.seadas.processing.ocssw.OCSSWLocal.updateOCSSWTags(OCSSWLocal.java:594)
	at gov.nasa.gsfc.seadas.processing.ocssw.OCSSW.downloadOCSSWInstaller(OCSSW.java:398)
	at gov.nasa.gsfc.seadas.processing.common.CallCloProgramAction.getProgramUI(CallCloProgramAction.java:100)
	at gov.nasa.gsfc.seadas.processing.common.CallCloProgramAction.actionPerformed(CallCloProgramAction.java:151)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
	at java.desktop/com.apple.laf.ScreenMenuItem.actionPerformed(Unknown Source)
	at java.desktop/java.awt.MenuItem.processActionEvent(Unknown Source)
	at java.desktop/java.awt.MenuItem.processEvent(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
INFO [null]: Last record repeated again.
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
INFO [null]: Last record repeated again.
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
INFO [null]: Last record repeated again.
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
INFO [null]: Last record repeated again.
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: error=0, posix_spawn failed
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
	at java.base/java.lang.ProcessImpl.start(Unknown Source)
	... 34 more
SEVERE [global]
java.lang.NullPointerException
	at gov.nasa.gsfc.seadas.processing.core.ProcessorModel$OCSSWInstaller_Processor.updateTags(ProcessorModel.java:1327)
	at gov.nasa.gsfc.seadas.processing.core.ProcessorModel$OCSSWInstaller_Processor.<init>(ProcessorModel.java:1314)
	at gov.nasa.gsfc.seadas.processing.core.ProcessorModel.valueOf(ProcessorModel.java:155)
	at gov.nasa.gsfc.seadas.processing.common.OCSSWInstallerForm.<init>(OCSSWInstallerForm.java:112)
	at gov.nasa.gsfc.seadas.processing.common.OCSSWInstallerFormLocal.<init>(OCSSWInstallerFormLocal.java:29)
	at gov.nasa.gsfc.seadas.processing.common.CallCloProgramAction.getProgramUI(CallCloProgramAction.java:105)
	at gov.nasa.gsfc.seadas.processing.common.CallCloProgramAction.actionPerformed(CallCloProgramAction.java:151)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
	at java.desktop/com.apple.laf.ScreenMenuItem.actionPerformed(Unknown Source)
	at java.desktop/java.awt.MenuItem.processActionEvent(Unknown Source)
	at java.desktop/java.awt.MenuItem.processEvent(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
java.io.IOException: Cannot run program "/bin/bash": error=2, No such file or directory
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
INFO [null]: Last record repeated again.
	at gov.nasa.gsfc.seadas.processing.ocssw.GetSysInfoGUI.sysInfoPanel(GetSysInfoGUI.java:446)
	at gov.nasa.gsfc.seadas.processing.ocssw.GetSysInfoGUI.init(GetSysInfoGUI.java:107)
	at gov.nasa.gsfc.seadas.processing.ui.GetSysInfoAction.actionPerformed(GetSysInfoAction.java:76)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
	at java.desktop/com.apple.laf.ScreenMenuItem.actionPerformed(Unknown Source)
	at java.desktop/java.awt.MenuItem.processActionEvent(Unknown Source)
	at java.desktop/java.awt.MenuItem.processEvent(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.MenuComponent.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
INFO [null]: Last record repeated again.
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
INFO [null]: Last record repeated again.
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
INFO [null]: Last record repeated again.
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
INFO [null]: Last record repeated again.
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
	at java.base/java.lang.ProcessImpl.start(Unknown Source)
	... 33 more
Seadas/System Information:

Code: Select all

-----------------------------------------------------------
  Main Application Platform: 
-----------------------------------------------------------
Application Version: SeaDAS 8.4.1
SNAP Engine Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Desktop Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Engine Build Date: 202311091604
SNAP Desktop Build Date: 202311091609
Installation Directory: /Applications/SeaDAS
Data Directory: /Users/xxxxx/.seadas8
Configuration: /Applications/SeaDAS/etc/snap.properties
VM Configuration: /Applications/SeaDAS/etc/seadas.conf
VM Configuration: /Applications/SeaDAS/etc/snap.conf
VM Configuration (gpt): /Applications/SeaDAS/bin/gpt.vmoptions
VM Configuration (pconvert): /Applications/SeaDAS/bin/pconvert.vmoptions
Runtime Configuration: /Users/xxxxx/.seadas8/etc/snap.properties
Runtime Configuration (SeaDAS Toolbox): /Users/xxxxx/.seadas8/etc/seadas.properties
JRE: OpenJDK Runtime Environment 11.0.19+7
JVM: OpenJDK 64-Bit Server VM by Eclipse Adoptium
Memory: 4096 MiB
OCSSWROOT (Java Env): null
  WARNING!! Could not retrieve system parameters because 'which python3' failed
java.io.IOException: Cannot run program "/bin/bash": error=2, No such file or directory


-----------------------------------------------------------
  SeaDAS Toolbox: 
-----------------------------------------------------------
SeaDAS Toolbox Version: 1.4.1
SeaDAS Toolbox Build Date: 202311091620
Configuration: /Users/xxxxx/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Applications/SeaDAS/ocssw
OCSSW Docker Log Directory: /Applications/SeaDAS/bin
OCSSW Location: local
Environment {$OCSSWROOT} (external): null


-----------------------------------------------------------
  NASA Science Processing (OCSSW): 
-----------------------------------------------------------
  WARNING! Cannot find 'seadas_info' in the OCSSW bin directory



-----------------------------------------------------------
  General System and Software (from GUI): 
-----------------------------------------------------------

Operating System: Mac OS X 12.7.1
Java Version: 11.0.19

Tags:

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

Re: Cannot install OCSSW Processors with SeaDAS 8.4.1

by OB SeaDAS - dshea » Mon Dec 11, 2023 3:08 pm America/New_York

Could you run

Code: Select all

/bin/bash -l
to see if you can run bash as a login shell. This is how seadas runs external commands.

don

treble
Posts: 48
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0
Has thanked: 1 time
Been thanked: 1 time

Re: Cannot install OCSSW Processors with SeaDAS 8.4.1

by treble » Mon Dec 11, 2023 3:49 pm America/New_York

It seems to run, the prompt changes to $, and typing exit brings me back to zsh.

Code: Select all

 ~ % /bin/bash -l

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
~ $ exit
logout

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
~ %

treble
Posts: 48
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0
Has thanked: 1 time
Been thanked: 1 time

Re: Cannot install OCSSW Processors with SeaDAS 8.4.1

by treble » Thu Dec 14, 2023 7:21 pm America/New_York

Just an FYI that this has been resolved (kind of). SeaDAS was installed as root. I tried to install the Processors as an Admin user that has read/write permissions in the /Applications/SeaDAS folder. Somehow that didn't work. When I reinstalled the software as an Admin user it just worked....

bharatsharma
Posts: 4
Joined: Sat Dec 16, 2023 8:23 pm America/New_York
Answers: 0

Re: Cannot install OCSSW Processors with SeaDAS 8.4.1

by bharatsharma » Sat Dec 16, 2023 8:47 pm America/New_York

To resolve the issue with installing OCSSW SeaDAS processors on your Intel Mac running Monterey, follow these practical steps:
1) Ensure /bin/bash is accessible and has execute permissions. Use ls -l /bin/bash in the terminal to check.
2) Change the default shell to bash using chsh -s /bin/bash. This could help if the issue is related to the switch from bash to zsh in macOS.
3) Make sure Java is properly installed and that the JAVA_HOME environment variable is correctly set.
Compare Configurations:
And
If you've successfully installed SeaDAS on another Mac, compare the settings and configurations between both machines for any differences...

Post Reply