ansemjo / speedtest-plotter

running scheduled speedtests inside docker and plotting the results with gnuplot
MIT License
60 stars 12 forks source link

seems like import doesn't work #47

Closed Snawe closed 3 years ago

Snawe commented 3 years ago

Hey,

I run the docker container like this docker run -d -p 8000:8000 -e MARKER_DOWNLOAD=40 -e MARKER_UPLOAD=10 --privileged --volume /home/pi/data:/data ansemjo/speedtest

And I wanted to import some data that I exported previously (haven't used the --volume before), but the database stays empty.

I did: docker exec 812827bd398f dump > results.csv and wanted to import it into the new one with docker exec 1f3fcca1a2fb import < results.csv but the database in ~/data stays empty as well as the graph.

Any ideas?

ansemjo commented 3 years ago

My first idea is – if that is the exact command that you used to import – that you're missing the -i flag to attach stdin to the exec process? I.e. try docker exec -i .... import < results.csv?

If that was indeed the issue I need to fix the README. I just noticed I left it out there as well.

Snawe commented 3 years ago

Yes, that solved the issue! Thanks.

ansemjo commented 3 years ago

Great! Closing this issue then. :)