-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose deploying Perlite can not access the site problem #50
Comments
When you say you modified the port on the container. did you point 8888 to 80 in the container? or did you remove port 80 and replace it with 8888? I ask because the default nginx config used in the web container is using port 80 |
I point 8888 to 80 in the container. My docker-compose.yml:
|
I'm not sure, but I would suggest that your warnings about the localhost binding are the problem. Check if you have left some temp file from editing your nginx config: https://stackoverflow.com/questions/11426087/nginx-error-conflicting-server-name-ignored. running the [+] Running 20/21
⠿ web Warning 1.6s
⠿ perlite Pulled
[...snip...]
[+] Building 7.6s (9/9) FINISHED
[...snip...]
[+] Running 3/3
⠿ Network perlite_default Created
⠿ Container perlite Created
⠿ Container perlite_web Created
Attaching to perlite, perlite_web
perlite | [11-Jan-2023 07:50:27] NOTICE: fpm is running, pid 1
perlite | [11-Jan-2023 07:50:27] NOTICE: ready to handle connections
perlite_web | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
perlite_web | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
perlite_web | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
perlite_web | /docker-entrypoint.sh: Configuration complete; ready for start up
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: using the "epoll" event method
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: nginx/1.22.1
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: OS: Linux 5.15.0-57-generic
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: start worker processes
perlite_web | 2023/01/11 07:50:28 [notice] 1#1: start worker process 20 |
Thanks for you answer.This is my logs: [+] Running 2/1
⠿ Container perlite Recreated 0.1s
⠿ Container perlite_web-dev Recreated 0.0s
Attaching to perlite, perlite_web
perlite | [11-Jan-2023 08:10:35] NOTICE: fpm is running, pid 1
perlite | [11-Jan-2023 08:10:35] NOTICE: ready to handle connections
perlite_web | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
perlite_web | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
perlite_web | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
perlite_web | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
perlite_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
perlite_web | /docker-entrypoint.sh: Configuration complete; ready for start up
perlite_web | 2023/01/11 08:10:35 [warn] 1#1: conflicting server name "localhost" on 0.0.0.0:80, ignored
perlite_web | nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: using the "epoll" event method
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: nginx/1.22.1
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: OS: Linux 5.16.0-0.bpo.4-amd64
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: start worker processes
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: start worker process 28
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: start worker process 29
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: start worker process 30
perlite_web | 2023/01/11 08:10:35 [notice] 1#1: start worker process 31 Can modifying the |
maybe, but I first would check if there is a temp file or something that is conflicting the nginx from the stackoverflow link
you can also check this by running this command docker exec perlite_web ls -la '/etc/nginx/conf.d' there should be only one file -rw-r--r-- 1 root root 977 Jan 11 07:36 perlite.conf |
Because I am using OMV6 NAS system, there is a website that occupies port 80, which may be the cause of the conflict. |
My logs:
Did you mean to delete the Default.conf? |
this shouldn't be the problem because you are redirecting the port from the container to your host port 8888.
yes, please try to remove this config, not sure why this file is still there, seems the RM command in the Docker file from the nginx container was not executed or something. try this for testing docker exec perlite_web rm '/etc/nginx/conf.d/default.conf'
docker exec perlite_web nginx -s reload if this does work I would try to delete the perlite_web image and maybe also the nginx image and then run the compose command again and check if the default.conf is finally removed. |
I renamed perlite.conf to default.conf and deleted the previous image and re-run docker-compose up. But I still can't access the Nginx http service. This is Docker-Compose log:
I think I should extract the Nginx logs for analysis, how can I do this?
|
I think ther is still a problem with your config
please try the following:
docker image rm sec77/perlite_web:stable
docker image rm sec77/perlite:latest
docker exec perlite_web ls -la '/etc/nginx/conf.d' |
I've tried, but it doesn't work.I only modify docker-compose.yml.
This is my logs:
I think I'll have to look at the Nginx logs.
I've tried, but it doesn't work.I only modify docker-compose.yml.
This is my logs:
I think I'll have to look at the Nginx logs. |
hmm Iam not sure if this cause the problem can you check if the your port is open on your host?
tcp LISTEN 0 511 [::]:8888 [::]:* next I would check if you can access the site from your host check if |
you can check the nginx logs, but they already should redirect to your output if you run docker-compose without -d use |
After testing I think it's a Chrome problem.This is my testing result:
Chrome show
But Internet can show any UI.So what browser do you use? |
Wait,It's may my set port problem. |
It's Work.Thank you @secure-77 . |
I tried to run docker-compose.yml with Docker-Compose, but the Perlite-web site is still inaccessible.So how to fix this problem?
My steps
Version
Logs
perlite_web:stable
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/01/10 06:57:30 [warn] 1#1: conflicting server name "localhost" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
2023/01/10 06:57:30 [notice] 1#1: using the "epoll" event method
2023/01/10 06:57:30 [notice] 1#1: nginx/1.22.1
2023/01/10 06:57:30 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2023/01/10 06:57:30 [notice] 1#1: OS: Linux 5.16.0-0.bpo.4-amd64
2023/01/10 06:57:30 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/01/10 06:57:30 [notice] 1#1: start worker processes
2023/01/10 06:57:30 [notice] 1#1: start worker process 28
2023/01/10 06:57:30 [notice] 1#1: start worker process 29
2023/01/10 06:57:30 [notice] 1#1: start worker process 30
2023/01/10 06:57:30 [notice] 1#1: start worker process 31
perlite
[10-Jan-2023 06:57:29] NOTICE: fpm is running, pid 1
[10-Jan-2023 06:57:29] NOTICE: ready to handle connections
The text was updated successfully, but these errors were encountered: