Vlad Dumitrascu
06/07/2021, 5:49 PMset DAGSTER_PROJ_DIR=%~dp0
ECHO OFF
ECHO Opening Port 3000 in Firewall of local machine, to allow workgroup access by link.
set PORT=3000
set RULE_NAME="Dagster Open Port %PORT%"
netsh advfirewall firewall show rule name=%RULE_NAME% >nul
if not ERRORLEVEL 1 (
rem Rule %RULE_NAME% already exists.
echo A rule already exists with name: %RULE_NAME%
) else (
echo Rule %RULE_NAME% does not exist. Creating...
netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=allow protocol=TCP localport=%PORT%
)
...but I still have the issue.
I tried searching on this channel and found a brief reply saying to "use 0.0.0.0" . How do I implement this with Dagit?alex
06/07/2021, 9:54 PMjust get a loading screen in their browser that never resolvesis this the dagster page with loading spinners or the browser trying to make the initial connection? What version of dagit are you running?
Vlad Dumitrascu
06/07/2021, 9:56 PMalex
06/07/2021, 9:57 PMVlad Dumitrascu
06/07/2021, 10:00 PMSimpleHTTPServer
or http.server
(PY 3+) module is created by a script, and running the script opens the port. Closing the script closes the port. That works great. Was hoping for something similar in Dagster.
Yes, it's not a Dagster issue, but I thought it would be something within the realm of issues most users face trying to use Dagit, which seems to be designed for serving out from a web link.alex
06/07/2021, 10:02 PMVlad Dumitrascu
06/07/2021, 10:07 PM<http://127.0.0.1:3000>
for...
<http://your-pc-network-alias:3000>
...that seems to work in the proxy server method. Does that look right to you?alex
06/07/2021, 10:15 PMAnton Friberg
06/08/2021, 7:54 AMdagit -h 0.0.0.0
Daniel Kim
06/08/2021, 4:19 PMping localhost
and it should provide the full domain name. I also run dagit via dagit -h 0.0.0.0
. Hope this works for you!Vlad Dumitrascu
06/08/2021, 5:34 PM-h 0.0.0.0
did the trick!Daniel Kim
06/08/2021, 6:58 PMVlad Dumitrascu
06/15/2021, 6:45 PM-h 0.0.0.0
for a few days, my Remote Desktop became unresponsive and could not connect to the computer anymore. You see, as with many companies in COV-19 times, we are working remote....so we access our PC's through VPN and Windows Remote Desktop. Since all this works over ports in the firewall, I think it's imperative that Dagster plays nicely and stays in its own lane. I suspect that putting Dagster/Dagit on port 0.0.0.0 (default port) is hogging that port, or somehow interfering with other services trying to communicate. The solution - not the hacky workaound, guys - is to have Dagster ACTUALLY work on port 3000 (or whatever single port is open for it).
So, I'm asking again, is there an "official" way( from the mouth of Dagster developers, preferably the person responsible for network code) for this to work? What is the solution to open port 3000 on a Windows Machine to allow Dagster to serve out the Dagit UI for people on the same network. This is a very simple question. Just dump the info, guys...don't bother asking me 30 questions about 'why I want to do this' or other parrying moves common on stackoverflow threads. How do I blast open a gateway on port 3000 and just let Dagit through?Anton Friberg
06/17/2021, 9:49 AMVlad Dumitrascu
06/17/2021, 5:21 PMdagit
without any arguments. This opens up a connection on default port 3000. I can see it if I go to *127.0.0.1*:3000
, as per the tutorials. This is me, using a browser on my machine to connect to Dagster on my machine. Handy, but I wanted to share this interface to others. So, I replaced the 127.0.0.1
in that address above with the network alias of my PC...something like my_computer.group.<http://our_company.com|our_company.com>
(not real). This approach worked when I used python's simple proxy server combined with some JavaScript webpages I serve on this machine. But not in dagit. I will try to explicitly say port 3000, although I can confirm it's on port 3000 because that's my browser link?!
I have a separate issue with Threaded Dagster crashing after 14 hours or so on some long processes, and taking out my Remote Desktop connection(which also requires our VPN, so another layer to worry about). It may be that the bug is somewhere in the threading code, and not the network code? So, I could be barking up the wrong tree. But, either way I need to fix it, so I'm trying all things.
Thanks again for everyone's help. So far, I like Dagster, and the community is great (honestly, these days I pick API's more on community support than feature list).Anton Friberg
06/17/2021, 5:25 PMVlad Dumitrascu
06/21/2021, 7:06 PM