most-leather-78733
03/02/2023, 6:34 AMvictorious-lawyer-58417
03/02/2023, 6:57 AM@cardvictorious-lawyer-58417
03/02/2023, 6:58 AMmost-leather-78733
03/02/2023, 2:49 PMmost-leather-78733
03/02/2023, 2:49 PMmost-leather-78733
03/02/2023, 2:52 PMvictorious-lawyer-58417
03/02/2023, 4:49 PMvictorious-lawyer-58417
03/02/2023, 4:52 PMmost-leather-78733
04/21/2023, 10:25 PMvictorious-lawyer-58417
04/21/2023, 10:41 PMmost-leather-78733
04/21/2023, 10:42 PMvictorious-lawyer-58417
04/21/2023, 10:44 PMmost-leather-78733
04/21/2023, 10:46 PM200 GET requestsvictorious-lawyer-58417
04/21/2023, 10:52 PMvictorious-lawyer-58417
04/21/2023, 10:55 PMvictorious-lawyer-58417
04/21/2023, 10:55 PMmost-leather-78733
04/21/2023, 10:58 PMvictorious-lawyer-58417
04/21/2023, 11:00 PMmost-leather-78733
04/21/2023, 11:01 PMmost-leather-78733
04/21/2023, 11:04 PM404 errors upon loading css/js assets, but networking wise the requests succeed with 200victorious-lawyer-58417
04/21/2023, 11:05 PMmost-leather-78733
04/21/2023, 11:09 PMvictorious-lawyer-58417
04/21/2023, 11:11 PMvictorious-lawyer-58417
04/21/2023, 11:12 PMnginx behind that port with a remote backend pointing at your internal Metaflow service. This way the client will only have to talk to the sagemaker instancevictorious-lawyer-58417
04/21/2023, 11:13 PMmost-leather-78733
04/22/2023, 6:32 AMconfused with paths somehow going through the proxy
• The main index.html loads fine in both direct and sagemaker proxy
• However, for static assets like favicon.ico, manifest.json, and css/js files
◦ https://metaflow.test-domain.autodesk.com/ works fine
◦ https://d-xxx.studio.us-east-1.sagemaker.aws/jupyter/default/metaflow/ does not
▪︎ the browser will try to load https://d-xxx.studio.us-east-1.sagemaker.aws/manifest.json
▪︎ but it should be loading from https://d-xxx.studio.us-east-1.sagemaker.aws/*jupyter/default/metaflow/*manifest.jsonmost-leather-78733
04/22/2023, 6:37 AMvictorious-lawyer-58417
04/22/2023, 7:04 AMvictorious-lawyer-58417
04/22/2023, 7:04 AMmost-leather-78733
04/22/2023, 4:46 PMmost-leather-78733
04/24/2023, 4:27 AMserver {
listen 3000;
location /jupyter/default/metaflow/ {
resolver 8.8.8.8;
proxy_pass <https://metaflow.test-domain.autodesk.com/>;
proxy_redirect / /jupyter/default/metaflow/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header Accept-Encoding "";
rewrite ^/jupyter/default/metaflow/(.+) /$1 break;
sub_filter_once off;
sub_filter_types *;
sub_filter "='/" "='/jupyter/default/metaflow/";
sub_filter '="/' '="/jupyter/default/metaflow/';
sub_filter '/static/' '/jupyter/default/metaflow/static/';
sub_filter '.aws/' '.aws/jupyter/default/metaflow/';
}
}straight-shampoo-11124
04/24/2023, 7:14 AMmost-leather-78733
04/24/2023, 10:35 PM?timerange_start=1679702400000, so user has to click the top left home button firstbrave-lion-15961
04/25/2023, 4:01 PMmost-leather-78733
04/25/2023, 4:08 PMmost-leather-78733
04/25/2023, 4:09 PM{scheme}://{host}:{port}/{OPTIONAL_BASE_PATH_FOR_PROXY}/{PATH}?{QUERY}most-leather-78733
04/25/2023, 4:10 PMbrave-lion-15961
04/25/2023, 4:10 PMmetaflow-ui?most-leather-78733
04/25/2023, 4:10 PMbrave-lion-15961
04/25/2023, 10:18 PMmost-leather-78733
04/26/2023, 1:59 AMThis change does not affect API URL's nor websocket URL's. They should be able to be controlled through REACT_APP_METAFLOW_SERVICE
in my case do you suggest:
• for metaflow ui
◦ export REACT_APP_BASE_PATH="/jupyter/default/metaflow"
◦ export REACT_APP_METAFLOW_SERVICE="/jupyter/default/metaflow/api"brave-lion-15961
04/26/2023, 12:59 PMREACT_APP_METAFLOW_SERVICE should be the full URL, including the domain nameancient-application-36103
05/05/2023, 8:05 PMmost-leather-78733
05/06/2023, 1:06 AMancient-application-36103
05/06/2023, 1:07 AMmost-leather-78733
05/17/2023, 1:21 PMmost-leather-78733
05/19/2023, 4:27 PMmost-leather-78733
05/25/2023, 8:08 PMREACT_APP_BASE_PATH=/jupyter/default/metaflow
but the path doesn't have /jupyter/default/metaflow, it should break?brave-lion-15961
05/25/2023, 8:35 PM/jupyter/default/metaflow e.g. /My0?direction=asc&group=true&order=startTime&statusbrave-lion-15961
05/25/2023, 8:36 PM/jupyter/default/metaflow/MyFlow/20?direction=asc&group=true&order=startTime&statusbrave-lion-15961
05/25/2023, 8:37 PMexport REACT_APP_BASE_PATH=/giraffebrave-lion-15961
05/25/2023, 8:40 PMmost-leather-78733
05/30/2023, 4:38 PMfast-dog-88545
05/31/2023, 9:52 PMREACT_APP_BASE_PATH=/jupyter/default/metaflow , the path without /jupyter/default/metaflow will not be automatically redirected to one start with /jupyter/default/metaflow .
If I manually add /jupyter/default/metaflow , it will think we are accessing the data of a Flow named /jupyter/default/metaflow .brave-lion-15961
05/31/2023, 9:57 PMbrave-lion-15961
05/31/2023, 9:58 PMfast-dog-88545
05/31/2023, 9:58 PMfast-dog-88545
05/31/2023, 9:58 PMbrave-lion-15961
05/31/2023, 10:04 PMexport REACT_APP_BASE_PATH=/jupyter/default/metaflow. When I navigate to <http://localhost:3000/> it automatically changes to <http://localhost:3000/jupyter/default/metaflow/?_group_limit=30&_limit=30&_order=-t[…]us=failed%2Crunning%2Ccompleted&timerange_start=1682935200000>
Is this different to what you are doing?brave-lion-15961
05/31/2023, 10:04 PMfast-dog-88545
05/31/2023, 10:06 PMREACT_APP_BASE_PATH=/jupyter/default/metaflow, should we expect it automatically changes to https://metaflow.test-domain.autodesk.com/jupyter/metaflow/default? (but it doesn't)fast-dog-88545
05/31/2023, 10:08 PMbrave-lion-15961
05/31/2023, 10:10 PMconsole.log('process.env.REACT_APP_BASE_PATH: ', process.env.REACT_APP_BASE_PATH); into App.tsx you can check to see if the variable is getting through properly.fast-dog-88545
05/31/2023, 10:11 PMbrave-lion-15961
06/01/2023, 8:51 PMmost-leather-78733
06/02/2023, 10:44 PMENV lines, right?brave-lion-15961
06/02/2023, 10:46 PMexport the env var, myself - so I don't edit the Dockerfilefast-dog-88545
06/02/2023, 10:50 PMdocker build and then run the built image? If it's in this way, will docker run -e REACT_APP_BASE_PATH=/jupyter/default/metaflow works instead of using export (This is how AWS ECS works)?
I am trying to verify this but have problems in running metaflow UI locally, maybe because my computer is using M2 chip.brave-lion-15961
06/02/2023, 10:53 PMmetaflow_service using docker than then just run the UI portion with yarn start. There are some extra credentials that I add to my dockerfile to allow the UI to connect properly. My laptop has an M1 chip.fast-dog-88545
06/02/2023, 11:01 PMyarn start and keeps encountering problems. And also get error io_setup() failed when I try to directly run docker image, this seems related to M1 chip by searching in google
Anyway this modification works well. Thanks for your help!brave-lion-15961
06/02/2023, 11:03 PMbrave-lion-15961
06/02/2023, 11:03 PMfast-dog-88545
06/02/2023, 11:07 PMbrave-lion-15961
06/05/2023, 5:16 PMmost-leather-78733
06/07/2023, 3:21 PM