We're updating the issue view to help you get more done. 

Can't execute " ./insightedge demo " on mac due to Permission denied

Description

Reproduction:
1. use mac.
2. download InsightEdge Enterprise 14.2 from here: https://gigaspaces-releases-eu.s3.amazonaws.com/insightedge/14.2.0/gigaspaces-insightedge-enterprise-14.2.0-ga-b20400.zip
3. double click on gigaspaces-insightedge-enterprise-14.2.0-ga-b20400.zip
4. go to gigaspaces-insightedge-enterprise-14.2.0-ga-b20400/bin
5. execute ./insightedge demo

Result:
2019-04-08 12:35:47,395 GSA WARNING [com.gigaspaces.grid.gsa] - [spark-master][3/]: Failed to start, exiting; Caused by: java.io.IOException: Cannot run program "/Users/yuval/XAP-Builds/gigaspaces-insightedge-enterprise-14.2.0-ga-b20400/insightedge/spark/bin/spark-class" (in directory "/Users/yuval/XAP-Builds/gigaspaces-insightedge-enterprise-14.2.0-ga-b20400/insightedge/spark/bin"): error=13, Permission denied
Shutdown completed successfully - 1 sub-processes were terminated (duration: 0ms)

The problem:
After the unzip this are the persmissions under the bin dir. There is no execute permission.
rw------ 1 yuval staff 7316 Apr 2 17:30 advanced_scripts.zip
rw------ 1 yuval staff 744 Apr 2 17:30 gs-agent.bat
rw------ 1 yuval staff 586 Apr 2 17:30 gs-agent.sh
rw------ 1 yuval staff 116 Apr 2 17:30 gs-ui.bat
rw------ 1 yuval staff 57 Apr 2 17:30 gs-ui.sh
rw------ 1 yuval staff 119 Apr 2 17:30 gs-webui.bat
rw------ 1 yuval staff 130 Apr 2 17:30 gs-webui.sh
rw------ 1 yuval staff 205 Apr 2 17:30 gs.bat
rw------ 1 yuval staff 151 Apr 2 17:30 gs.sh
rw------ 1 yuval staff 170 Apr 2 17:30 insightedge
rw------ 1 yuval staff 185 Apr 2 17:30 insightedge.bat
rw------ 1 yuval staff 996 Apr 2 17:30 setenv-overrides.bat
rw------ 1 yuval staff 972 Apr 2 17:30 setenv-overrides.sh
rw------ 1 yuval staff 2502 Apr 2 17:30 setenv.bat
rw------ 1 yuval staff 2289 Apr 2 17:30 setenv.sh
rw------ 1 yuval staff 555 Apr 2 17:30 xap
rw------ 1 yuval staff 648 Apr 2 17:30 xap.bat

Workaround:
Extract gigaspaces-insightedge-enterprise-14.2.0-ga-b20400.zip by running:
unzip gigaspaces-insightedge-enterprise-14.2.0-ga-b20400.zip from CLI
OR
run:
chmod 755 -R gigaspaces-insightedge-enterprise-14.2.0-ga-b20400
if you extract it by double click on gigaspaces-insightedge-enterprise-14.2.0-ga-b20400.zip

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

None

Fix versions

None

Commitment Version/s

None

Due date

None

Product

InsightEdge

Edition

Open Source

Platform

All