https://rancher.com/ logo
Title
b

billowy-traffic-45695

07/27/2022, 1:43 PM
Hi all. I have an issue with my Mac using Rancher Desktop. I have killed off the built in httpd Apache service and now when I see what is listening on port 80 I get the following: paulrandall@Pauls-Mac-mini % sudo lsof -i ‘:80’ COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ssh 1522 paulrandall 36u IPv4 0xea441d2a14d8ed23 0t0 TCP *:http (LISTEN) I am trying to get NGINX proxy Manager to work on port 80 and it won;t work even though the docker-container.yml file I use has - 80:80 in the settings. It launches ok. I can get to it on port 81 as there is also - 81:81 in the YAML file but port 80 won’t respond which is a problem for me as I want to be able to get to port 80 with the proxy manager to then redirect to port 8080 where the Wordpress container resides. I’m so close. Any ideas please?
w

wide-mechanic-33041

07/27/2022, 1:46 PM
doh meant to drop that in the thread to avoid bloating the stream
b

billowy-traffic-45695

07/27/2022, 1:47 PM
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND paulrandall 1522 0.0 0.1 4307412 10656 ?? Ss 1:17pm 0:16.26 ssh: /Users/paulrandall/Library/Application Support/rancher-desktop/lima/0/ssh.sock [mux]
👍 1
Hi Justin
w

wide-mechanic-33041

07/27/2022, 1:50 PM
yeah was guessing it was a port mapping thing. i mena working in the restricted ports is always more difficult than something like 8080 on the Host side
b

billowy-traffic-45695

07/27/2022, 1:53 PM
Hmmm. And I am so close. I even have Nginx Proxy Manager persistently saving then reloading file and database data after a reboot
Same for Wordpress. In 2 containers with no port clashes.
w

wide-mechanic-33041

07/27/2022, 1:54 PM
yup it will work in Lima, but trying to see in lima where it runs a cleanup
b

billowy-traffic-45695

07/27/2022, 1:55 PM
I’ve googled and googled. I had a httpd instance running via homebrew and also one running via the Mac’s standard Apache install and both asre off now. And don;t reload after a reboot.
w

wide-mechanic-33041

07/27/2022, 1:55 PM
and nothing left in docker ps that might be holding it open?
i mean it is forwarding it into the VM
thats what that ssh tunnel is
b

billowy-traffic-45695

07/27/2022, 1:56 PM
This is the entire contents of docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ab6e529f2c7d jc21/nginx-proxy-manager:latest “/init” 24 minutes ago Up 24 minutes 0.0.0.0:80-81->80-81/tcp, :::80-81->80-81/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp nginxproxymanager-app-1 008218f13ff2 jc21/mariadb-aria:latest “/scripts/run.sh” 24 minutes ago Up 24 minutes 3306/tcp nginxproxymanager-db-1 8fb9a66e12d2 dbd43b6716a0 “entry” 2 hours ago Up 2 hours k8s_lb-tcp-443_svclb-traefik-aedb3f7c-rn9bg_kube-system_edc84ae6-6cdd-4aae-a03b-7827108c411f_5 23a246f8e2ac dbd43b6716a0 “entry” 2 hours ago Up 2 hours k8s_lb-tcp-80_svclb-traefik-aedb3f7c-rn9bg_kube-system_edc84ae6-6cdd-4aae-a03b-7827108c411f_5 e4f5d580383e fb9b574e03c3 “local-path-provisio…” 2 hours ago Up 2 hours k8s_local-path-provisioner_local-path-provisioner-7b7dc8d6f5-nd52t_kube-system_89cacf18-4239-43b7-a772-a02f2b78daaa_5 0913b2916f8b f73640fb5061 “/metrics-server --c…” 2 hours ago Up 2 hours k8s_metrics-server_metrics-server-668d979685-hpcc2_kube-system_d75b8dfc-a9e2-4544-a663-c021442918f8_5 ef0e5c040e07 72463d8000a3 “/entrypoint.sh --gl…” 2 hours ago Up 2 hours k8s_traefik_traefik-7cd4fcff68-lns28_kube-system_100b515c-01c0-4b83-b237-9359068f37b2_5 ad5bb746ea6e 99376d8f35e0 “/coredns -conf /etc…” 2 hours ago Up 2 hours k8s_coredns_coredns-b96499967-fl5wj_kube-system_84112cd7-a9b7-4c3c-a7de-798a1a0d324c_5 917b863bb210 k8s.gcr.io/pause:3.6 “/pause” 2 hours ago Up 2 hours k8s_POD_coredns-b96499967-fl5wj_kube-system_84112cd7-a9b7-4c3c-a7de-798a1a0d324c_5 4f77b6b4e8ae k8s.gcr.io/pause:3.6 “/pause” 2 hours ago Up 2 hours k8s_POD_local-path-provisioner-7b7dc8d6f5-nd52t_kube-system_89cacf18-4239-43b7-a772-a02f2b78daaa_5 e81b0f154e49 k8s.gcr.io/pause:3.6 “/pause” 2 hours ago Up 2 hours k8s_POD_metrics-server-668d979685-hpcc2_kube-system_d75b8dfc-a9e2-4544-a663-c021442918f8_5 d72d0f85c8ce k8s.gcr.io/pause:3.6 “/pause” 2 hours ago Up 2 hours k8s_POD_traefik-7cd4fcff68-lns28_kube-system_100b515c-01c0-4b83-b237-9359068f37b2_5 bdfae58c8fc8 k8s.gcr.io/pause:3.6 “/pause” 2 hours ago Up 2 hours k8s_POD_svclb-traefik-aedb3f7c-rn9bg_kube-system_edc84ae6-6cdd-4aae-a03b-7827108c411f_5 6933589374ef wordpress:latest “docker-entrypoint.s…” 6 hours ago Up About an hour 0.0.0.0:8080->80/tcp, :::8080->80/tcp wp1-wp-1 3bde41d6b5f1 mysql:latest “docker-entrypoint.s…” 6 hours ago Up 2 hours 127.0.0.1:3306->3306/tcp, 33060/tcp wp1-db-1 paulrandall@Pauls-Mac-mini nginxproxymanager %
w

wide-mechanic-33041

07/27/2022, 1:56 PM
i would disable kubernetes and traefik if you aren’t using them just to save on resources
b

billowy-traffic-45695

07/27/2022, 1:57 PM
How do I do that?
I see it. One sec.
w

wide-mechanic-33041

07/27/2022, 1:59 PM
and proxymanager looks like it is running on 80 so is it not showing that “i am up” page?
b

billowy-traffic-45695

07/27/2022, 1:59 PM
The fact the whole thing has to restart on each tickbox is annoying eh! They should have a ‘save changes’ button instead. That’s a UX annoyance right there. Not that I’m complaining but a 2012 Mac takes a minute on each click LOL
w

wide-mechanic-33041

07/27/2022, 2:00 PM
well its a major change to the config of the VM
b

billowy-traffic-45695

07/27/2022, 2:00 PM
OH. I see. Do you think I just need to configure a reverse proxy from port 80 to port 8080 in the proxy manager then to get the whole thing up and running?
w

wide-mechanic-33041

07/27/2022, 2:01 PM
well proxymanager is running on 80?
b

billowy-traffic-45695

07/27/2022, 2:01 PM
Yeah I suppose it would be. I guess if I used one of my M1 Macs it would be instant anyway.
w

wide-mechanic-33041

07/27/2022, 2:01 PM
you will need to create a rule in proxymanager itself (not docker) I would assume?
so for some subdomain it would redirect to the wordpress on 8080… a different one use 8081
b

billowy-traffic-45695

07/27/2022, 2:03 PM
Ooh dude. Insane. I turned off kube.. and tra… and now on port 80 I get “Congratulations! You’ve successfully started the Nginx Proxy Manager. If you’re seeing this site then you’re trying to access a host that isn’t set up yet. Log in to the Admin panel to get started.”
I think that’s it.
w

wide-mechanic-33041

07/27/2022, 2:03 PM
yeah traefik was running as an ingress so that was not helping the situation
b

billowy-traffic-45695

07/27/2022, 2:03 PM
Is this a private thread?
w

wide-mechanic-33041

07/27/2022, 2:04 PM
heh no just doesn’t cause the main channel to scroll which is painful for folks
b

billowy-traffic-45695

07/27/2022, 2:05 PM
New to slack (kind of, I set my account up years ago but didn’t really use it) How do I PM you a working link 🙂 You’ve been a real mensch Justin 😄