Bulk Load doesn't import / save the schema file

Conveniently my AWS spot instance terminated and I lost all my work and had to start again…

Sorry I left off an important step, I override the docker start command using the entrypoint option. I have a run.sh in an attached volume that looks like this (which doesn’t start the alpha):

#!/bin/bash

# fail if any error occurs
set -e

Warning: This standalone version is meant for quickstart purposes only.
         It is NOT RECOMMENDED for production environments.\033[0;0m"

# For Dgraph versions v20.11 and older
export DGRAPH_ALPHA_WHITELIST=0.0.0.0/0
# For Dgraph versions v21.03 and newer
export DGRAPH_ALPHA_SECURITY='whitelist=0.0.0.0/0'

# TODO properly handle SIGTERM for all three processes.
dgraph zero

I then docker exec this script:

#!/bin/bash
dgraph bulk -f /scripts -s /scripts/g01.schema --zero=localhost:5080

Once that is complete I remove my entrypoint option.

Ok, I wasn’t doing and to be honest I have no fkn’ clue how I got it work on my previous tries!

This time around, in the directory I use as the /dgraph volume in docker, I moved the out/0/p into the root of /dgraph (overriding what as there). Restarting the docker image it now works as expected.

@MichelDiz you’d make a phycologist; you didn’t give me the answer, but slowly led me to my own resolution. I can step outside and face the world again. :grin: