Closed seemebreakthis closed 1 year ago
Do you see this error immediately after starting the container, or when trying to access the server?
I just built the image on my MacBook (without any .env
files) and it works as expected.
This is the output you should be seeing:
Listening on port 8080
Starting Nginx server
Hi... It finally works now. (and for others who want to run their own docker container for this, please read on, I have some tips).
I was stupidly git cloning in Windows and then copying the files over to my NAS. This lazy way will apparently mess up the files for some reason, causing strange errors when building the docker container. After reading your comment, I went ahead and installed git then did a git clone directly in my NAS. Docker image / container can then be created and started successfully.
But to run it properly, do these things (so here are the tips):
http://<your.domain>
http://<your.domain>:<port>
http://<your.domain>
http://<your.domain>:<port>/assets/index.7598311a.js
http://<your.domain>:<port>
Some (or all) of these are required to make Google recognize your site as a legitimate site to use its API.
@guyzyl I will remind myself to click on the "buy me a coffee" icon. Expect that to happen real soon ! Thanks for this.
(any way to make the picture resolution higher... ?) :)
Edit: related to issue #90 . i.e. seems to be out of whasync's control
According to your comment https://github.com/guyzyl/whatsapp-contact-sync/issues/90#issuecomment-1817940545 it seems that you managed to find the solution :) And I'm glad you liked the app!
After I have built the image (the one that contains both the backend and web), when I try starting it by doing this:
docker run --rm --name whasync -it -p:8081:80 whasync
I see this error:
standard_init_linux.go:230: exec user process caused: no such file or directory
If it helps, I am building my container on a Synology NAS with Intel Celeron J4025.
I have no clue if the server/.env content has anything to do with the problem I am facing. I do the image building after creating the server/.env file and modifying the web/src/pages/GoogleAuth.vue files. And I am wondering if the .env file should have the following content, with no quotes, and nothing else...