· Aug 22, 2021

Web Gateway Error "Invalid Request : Cannot identify application path"

I want to try SAM in AWS. I followed these steps:

docker pull store/intersystems/sam:

git clone intersystems-community/sam: System Alerting and Monitoring (SAM) (

git clone


tar zpxvf sam-<version>.tar.gz

tar zpxvf sam-


$ cd sam-<version>

cd /home/ec2-user/git/sam/sam-

$ ./


In your browser, visit:
You'll be prompted to login. You can use standard InterSystems IRIS credentials like _SYSTEM/SYS. You'll be prompted to change the password.


I was able to visit and it prompted me to change my password.

Whenever I return to index.csp I only see a blank white screen. I see in console this:

I do not know if my AWS Windows instance has browser restrictions preventing SAM index.csp to display. I attempted to create my own SAM image with webserver so I can connect from outside AWS on port 443.

cd /efs/ICS/oliver/git

git clone

docker build --no-cache --ulimit nofile=8192:8192 -t sam .

Next I updated docker-compose.yml and I started sam again.

I tried to pull up or and I get 500 Internal Server Error and I see:

Web Gateway Version 2020.

Systems Management

Invalid Request : Cannot identify application path

Product version: IRIS 2020.2
$ZV: 2020.
Discussion (7)2
Log in or sign up to continue

docker exec -it sam_iris_1 bash
root@IRIS:/tmp# cd /usr/irissys/csp/bin/
root@IRIS:/usr/irissys/csp/bin# ls
CSP.ini  CSP.log  CSPRT.ini  temp
root@IRIS:/usr/irissys/csp/bin# ls -lt
total 3244
-rw-rw-r-- 1 www-data  www-data     6063 Aug 22 15:56 CSP.log
-rw-rw---- 1 irisuser  irisuser      253 Aug 21 23:57 CSPRT.ini
-rw-rw---- 1 irisuser  irisuser      606 Jun 26  2020 CSP.ini
-rwxrwxr-x 1 irisowner irisowner 1169384 Jun 26  2020
-rwxrwxr-x 1 irisowner irisowner  869720 Jun 26  2020
-rwxrwxr-x 1 irisowner irisowner 1135208 Jun 26  2020
-rwxr-xr-x 1 irisowner irisowner  117168 Jun 26  2020
dr-xr-x--- 1 irisuser  irisuser     4096 Jun 26  2020 temp

By default, only clients local to the Web Gateway’s hosting computer are allowed access to the Web Gateway Management pages. The browser through which the management forms are accessed must be running on the same machine as the web server and Web Gateway. For example:


You can add additional clients to the list of authorized administrators by adding the client IP addresses to the System_Manager parameter in the SYSTEM section in CSP.ini (in install-dir\CSP\bin). The System_Manager parameter represents a comma- or plus-separated list of clients (by IP address) who may access the Web Gateway Management pages. The directive shown below grants access to three remote clients in addition to the default local access.