mirror of
https://github.com/guyzyl/whatsapp-contact-sync.git
synced 2026-04-25 22:15:49 +03:00
[GH-ISSUE #202] Entrypoint not found #62
Labels
No labels
big-feature
bug
dependencies
duplicate
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whatsapp-contact-sync#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HermanRas on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/202
I have no idea whats going on, from bash its refusing to execute entrypoint.sh
docker run --rm -it -p 80:80 --entrypoint /bin/sh whasync
/bin/sh: ./entrypoint.sh: not found
/app/server # ls -la
total 32
drwxr-xr-x 1 root root 4096 Feb 22 05:48 .
drwxr-xr-x 1 root root 4096 Feb 22 05:30 ..
drwxr-xr-x 4 root root 4096 Feb 22 05:48 build
-rwxr-xr-x 1 root root 264 Feb 22 05:26 entrypoint.sh
drwxr-xr-x 224 root root 12288 Feb 22 05:48 node_modules
/app/server # cat entrypoint.sh
#!/bin/sh
node build/server/main.js &
#Wait for the server to start
while ! nc -z 0.0.0.0 8080; do
sleep 0.1
done
echo "Starting Nginx server"
nginx &
echo "Nginx server started, listening on port 80"
#Crash container if node failes
wait %1
/app/server # ./entrypoint.sh
/bin/sh: ./entrypoint.sh: not found
/app/server # /app/server/entrypoint.sh
/bin/sh: /app/server/entrypoint.sh: not found
/app/server #
@guyzyl commented on GitHub (Feb 22, 2025):
I know my answer doesn't help, but I just tested and it's working on my machine.
Since the file is there, it's probably an issue that's unrelated to this specific project.
I found this thread on StackOverflow, can you maybe try their suggestions?
@HermanRas commented on GitHub (Feb 22, 2025):
You are a legend !
I updated the docker file to fix end of line characters and it worked.
now runs 100%

I have no idea why my stock standard Ubuntu did not read the line terminator, but the change to the fix line terminators while setting execute works.
@guyzyl commented on GitHub (Feb 22, 2025):
Glad I could help!