Giter Site home page Giter Site logo

Comments (7)

matsonj avatar matsonj commented on August 21, 2024

@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.

matsonj avatar matsonj commented on August 21, 2024

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.

gregwdata avatar gregwdata commented on August 21, 2024

from nba-monte-carlo.

matsonj avatar matsonj commented on August 21, 2024

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.

gregwdata avatar gregwdata commented on August 21, 2024

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.
image

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.

matsonj avatar matsonj commented on August 21, 2024

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.

matsonj avatar matsonj commented on August 21, 2024

Ended up using a different docker image which had what I needed:

45cfb03

from nba-monte-carlo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.