-
Notifications
You must be signed in to change notification settings - Fork 222
Nginx isn't starting #240
Comments
current docker stack services, it's been like this since I tried 30 minutes ago
2tlevhxrh2gy walkoff_app_nmap replicated 0/0 127.0.0.1:5000/walkoff_app_nmap:1.0.0 olaf1aiuub54 walkoff_core_umpire replicated 0/1 127.0.0.1:5000/umpire:latest |
Walkoff appears to have been broken on Windows since beta 1 was released. Can this please be fixed so it can be stable tagged as working on Windows? I'm trying to build an app that uses Walkoff as the automation layer and even if I can manage to get it working temporarily, it's unshippable if there is no stable dependency that runs. |
Does this still tie in with the last issue? We had changed the windows setup to mirror the linux setup so try using the walkoff.ps1 installation. The installation instructions need to be updated and the old windows_setup.ps1 need to be deleted apologies for the oversight. You should be able to use the bootloader using the same commands at the Linux version if you use walkoff.ps1. So for example |
I'm not sure if this ties in to the last issue or not. walkoff.ps1 isn't working. This report is based on walkoff.ps1 |
Looking at the logs from #239, I wonder if it's a symptom of the same issue. |
The logs from #239 are due to running walkoff_setup.ps1 instead of walkoff.ps1 (there was an errant :5000 left over in the command retrieving the host's DockerNAT IP) - I'll push that deletion to master soon. For this one, could you post the results of
Additionally, are you using Docker for Windows (Hyper-V backend) or the older Docker Toolbox for Windows (Virtualbox backend)? @iadgovuser11 and I are using the former for testing on Windows. I can try and get the latter set up to try and replicate if that is the case. |
I'm on the hyper v backend. walkoff_resource_nginx docker service ps walkoff_core_umpire --no-trunc ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS docker service ps walkoff_core_api_gateway --no-trunc ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR |
Not sure what's breaking these |
Try |
Already tried that with no luck. |
Interestingly enough, walkoff.ps1 down seems to be rebuiliding everything and not working either. Seems like down isn't actually executing, and executes the same as up |
Could you provide the output for what you're seeing? I'm unable to replicate that behavior on Windows. |
Yeah, correction on the down one, that was my misreading it. Sorry, I'm out of it today. Build didn't fix the problem though. |
While the Additionally, the images that the |
I'm in the process of doing it. Also, I notice the following at the end of every time I start walkoff.ps1 with up. koff_app_mitre_attack (id: mrf5mtjiiaet39pud0e21ql57) 2019-09-06 06:44:12,578 - BOOTLOADER - INFO:Updating service walkoff_core_worker (id: bj9ojho6jqgt1qojpbfgfaur0) 2019-09-06 06:44:12,578 - BOOTLOADER - INFO:Walkoff stack deployed, it may take a little time to converge. could the docker connection closing cause part of this? |
the docker connection closed is standard bootloader output. It just means the bootloader connection closed. |
PS D:\dev\WALKOFF> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5c9440f958bd portainer/portainer:latest "/portainer" 30 seconds ago Up 24 seconds 9000/tcp walkoff_resource_portainer.1.a5c7lkbwiva1ns80y5x87mvz1 50fdd5734b62 minio/minio:latest "/usr/bin/docker-ent…" 8 hours ago Up 8 hours 9000/tcp walkoff_resource_minio.1.fcx6bn3sbkf9pzvw4gbcurhrs 709b0e95aecb postgres:latest "docker-entrypoint.s…" 8 hours ago Up 8 hours 5432/tcp walkoff_resource_postgres.1.7z2sb45n6qnqzsw324ih56nqf 1de883ae9e36 registry:2 "/entrypoint.sh /etc…" 8 hours ago Up 8 hours 5000/tcp walkoff_resource_registry.1.ui6p0ixrjvkpy1zmwgep5cw2o 54a534a9a865 redis:latest "docker-entrypoint.s…" 8 hours ago Up 8 hours 6379/tcp walkoff_resource_redis.1.y90ai8uv04higx53h59laq6pp f8170beee17c prismagraphql/prisma:1.34 "/bin/sh -c /app/sta…" 8 days ago Up 8 hours 0.0.0.0:4466->4466/tcp nestjs-prisma-starter_prisma_1 20b702f49f19 mongo:3.6 "docker-entrypoint.s…" 8 days ago Up 8 hours 0.0.0.0:27017->27017/tcp nestjs-prisma-starter_mongo_1
100 37 100 37 0 0 37 0 0:00:01 --:--:-- 0:00:01 787
PS D:\dev\WALKOFF> docker images REPOSITORY TAG IMAGE ID CREATED SIZE bitnami/nginx 43040df00df0 14 hours ago 78.3MB docker service ls ID NAME MODE REPLICAS IMAGE PORTS j44ibx94wlw0 walkoff_resource_nginx replicated 0/1 bitnami/nginx:latest *:8080->8080/tcp f5reo4n08gtn walkoff_resource_redis replicated 1/1 redis:latest i can open localhost:5000 in a browser, the page is blank. no error though. |
So it looks like it's failing somewhere in the build process - only walkoff_app_sdk is showing up. When you do |
This is the build output |
I attached the build output above |
Sorry, I'm kind of at a loss. Nothing in that build output suggests that it's having trouble building or pushing, but your Is there anything that might be cleaning up images on your system? If you manually build something and then push it to WALKOFF's registry while it's running, does it show up in
|
So doing that I now have the nginx and web interface |
So it's working now. I'm not sure if I should close the issue or not, but my gut tells me there's a deeper issue here. |
So I just did a clean install and I had to do the manual build and push again. Shouldn't this be automated? |
I just moved my development environment out of a Ubuntu VM and into Windows. Even on a clean install it still builds and pushes as expected in the walkoff.ps1 script, so I'm not really sure what the issue might be on your end. We're wrapping up some efforts for a release over the next few days, I'll get back to this once we release. |
Alright, I'm going to look in to this on my end. A hack might be needed, if I can fix it on my end, I'll send a pull request. |
Also, I have a theory that #245 might be related to this as well. If something is screwed up with the way it works on my machine (which is weird because docker usually works, but for some reason it stopped working right around the time the bootloader got implemented), it might be causing some kind of issue with how the push is handled. I don't know what would cause it though, as I'm running the latest docker for windows in a relatively vanilla windows 10. |
Wait a second, just tested development branch and it seems to work out of the box. #245 still seems to be a problem though. I'm wondering if it's related. |
I'm going to close this issue for now. #245 seems to be having similar issues but for everything but bootloader and the api gateway. I have no idea why. |
Wait, I think I was wrong. docker image ls the api gateway is still the manually added one. Not the fresh one. Seems to not be pushing still. |
Yeah, I was wrong, it's still broken. I need to tear in to this. |
Out of curiosity, what version of windows are you running, is it the latest patch set? Also are you running the latest docker for windows. I'm doing all that, also I'm running it from both my d drive and my desktop. I use this to set up my desktop when I create a new one. I do add a few things after that (mainly games), but this is the bulk of it. |
so on development I ran up and after the script did it's thing, this is the output of docker stack services walkoff |
So on latest master and dev I've been able to replicate this and umpire is doing the same thing as gateway. I've done this on two windows 10 boxes. A desktop and a laptop. The laptop I can at least work around it by manually pushing, but the desktop manually pushing gives me an internal server error. |
Are you still experiencing the same issue? To follow up from a few months ago, it was tested on three machines, one on 1809, one on the latest build of Win10 at the time, and another on the fast ring insider build of Win10 20H1 at the time. All had the latest version of Docker for Windows at the time. Not trying to deflect but it still feels like the issue is more likely to be in configuration of Docker or network settings. My debug steps would be:
Can only really get an idea of what's going on with all three of those from a particular failed deployment. |
So I was able to get it to work on Linux, however it appears the latest builds are not properly building using the ps1 script in git. It actually errors out when trying to run it on my end. First it refuses to create walkoff network, then it refuses to build other images and stand them up. It seems that the core images are the ones not loading up. I can test again and post logs, I'll open another issue for it. I have no idea what's causing it. It's even happening on a fresh windows 10 install for me with nothing but the stuff in the install script here: using windows terminal and powershell core from the script |
I know you're not trying to deflect, it seems like it works for everyone but me. If I can find out what's causing it, it would make my life a lot easier. For now though I'm exploring kubernetes and argo as an alternative for walkoff for my project. I can't keep putting off dev for this. |
Hi @AoiGhost, Thanks to all of your investigation, I fixed it following your steps :
I cannot explain it either. It was working fine the day before, the next day I couldn't anymore. Well, if anybody knows someday.. anyway, thanks to all of you! |
I faced a similiar issue on Debian 9.
Nginx was failing on
I ran
core_api was then failing and another bug, but not directly related - #272 Rebuilding the images helped 🎉 |
So I've moved to Shuffle which supports walkoff apps and is actively developed, in case anyone is looking for help with this |
On the latest master Nginx isn't starting on windows
The text was updated successfully, but these errors were encountered: