Comments (7)
@gregwdata I am getting the following error when running make docker-run-evidence
. Do you mind taking a look at this?
cd analyze && mkdir -p data_catalog
cp -r /workspaces/nba-monte-carlo/data/data_catalog/* /workspaces/nba-monte-carlo/analyze/data_catalog
cp: cannot stat '/workspaces/nba-monte-carlo/data/data_catalog/*': No such file or directory
make[1]: Leaving directory '/workspaces/nba-monte-carlo'
make[1]: *** [Makefile:43: evidence-build] Error 1
make: *** [Makefile:50: evidence-visuals] Error 2
make: *** [Makefile:54: docker-run-evidence] Error 2
from nba-monte-carlo.
Interestingly it looks like the files created in make docker-run-pipeline
are not available in subsequent docker run
. Which means I think I can fix it.
from nba-monte-carlo.
from nba-monte-carlo.
good tip on the -v flag, I might split up with that.
I can get the entire thing to run with this make script:
docker-evidence-test:
docker run \
--publish 3000:3000 \
--env MELTANO_CLI_LOG_LEVEL=WARNING \
--env MDS_SCENARIOS=10000 \
--env MDS_INCLUDE_ACTUALS=true \
--env MDS_LATEST_RATINGS=true \
--env MDS_ENABLE_EXPORT=true \
--env ENVIRONMENT=docker \
mdsbox make pipeline evidence-visuals
However - now I get a new error, which has to do with running npm run dev -- --host
inside a devcontainer inside docker.
Error: getaddrinfo ENOTFOUND true
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
make[1]: Leaving directory '/workspaces/nba-monte-carlo'
I think we have progressed to an error that is basically "networking is hard" which is fine, but also annoying.
from nba-monte-carlo.
If you're still stuck at that error, I was able to get past it after a bit of trial and error. Looks like the --host
flag expects the host IP after it. So running npm run dev -- --host 0.0.0.0
in the container had it serving up an Evidence page. The page (and terminal otuput) threw a bunch of Missing Database Credentials errors, as the next piece of the puzzle to figure out.
BTW another Docker debugging tip that was helpful in rapid iteration, is to access the shell of a running container with
docker exec -it containername /bin/bash
, where containername is from the NAMES column of docker ps
output.
Or starting a fresh container with docker run -it -p 3000:3000 mdsbox /bin/bash
with whatever other --env flags you need to throw in.
from nba-monte-carlo.
Ok really good tip on opening the terminal - i was trying to do that and couldn’t figure it out (googling wrong terms, but seems super obvious in hindsight).
Anyway, now getting this error after I rebased with master.
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /workspaces/nba-monte-carlo/analyze/node_modules/duckdb/lib/binding/duckdb.node)
Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /workspaces/nba-monte-carlo/analyze/node_modules/duckdb/lib/binding/duckdb.node)
at Module._extensions..node (node:internal/modules/cjs/loader:1302:18)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/workspaces/nba-monte-carlo/analyze/node_modules/duckdb/lib/duckdb-binding.js:4:15)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
It looks like my docker image might be missing GLIBC_2.29
, so I’m going to see if I can install it and have another go!
from nba-monte-carlo.
Ended up using a different docker image which had what I needed:
from nba-monte-carlo.
Related Issues (20)
- Rework external materializations to allow persistence HOT 4
- What to do about Rill & Superset?
- load dbt exposures to evidence sources HOT 2
- IOError from DuckDB when run with Superset HOT 3
- add conference pages to ncaaf model
- add team pages to ncaaf model
- add actuals rfwd for both ncaaf & nfl models HOT 2
- add team pages to nfl model
- Upgrade to evidence universal SQL HOT 2
- bring NFL model up to parity with NCAAF
- Malloy? HOT 1
- automate ingestion HOT 5
- fix bug on nba main page HOT 2
- misc model updates HOT 5
- Clean up cosmestic issues
- missing matchups don't calculate (known issue - source is future games, instead of generic teams table) EX: BRK @ UTA HOT 1
- year filter - year isn't holding sort order HOT 1
- team filter doesn't update when you change the year (sql query updates, filter does not)
- DBT build errors HOT 5
- fix misc build issues HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nba-monte-carlo.