docker icon indicating copy to clipboard operation
docker copied to clipboard

SyntaxError: Unexpected token 'for'

Open Th0masDB opened this issue 3 years ago • 2 comments

When I was installing calcom for the first time, I got this error (I used this DOCKER_BUILDKIT=0 docker compose build calcom to build it):

/calcom/scripts/start.sh:4
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
             ^^^

SyntaxError: Unexpected token 'for'
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47

Th0masDB avatar May 24 '22 08:05 Th0masDB

I'm unable to replicate the issue. Can you please updating line 4 of start.sh to ./scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up" (add the beginning ./)

krumware avatar May 25 '22 14:05 krumware

I have the same issue. I tried to rename script to remove for but now I get

 /calcom/scripts/start.sh:4
calcom-docker-calcom-1  | scripts/wait_it.sh ${DATABASE_HOST} -- echo "database is up"
calcom-docker-calcom-1  |                    ^
calcom-docker-calcom-1  | 
calcom-docker-calcom-1  | SyntaxError: Unexpected identifier

Mistic92 avatar Aug 12 '22 13:08 Mistic92