Closed miha-plesko closed 8 years ago
Very interesting. I've noticed that lately, when running on OS X, my ~/.unik/tmp
folder gets deleted, either when starting the daemon or when the virtualbox instance listener is built for the first time. All subsequent unik build
commands fail, until manually creating a new tmp
folder inside ~/.unik
, after which all unik build
commands work as expected.
just reproduced this.. investigating
found the bug.. https://github.com/emc-advanced-dev/unik/blob/master/pkg/providers/virtualbox/deploy_instance_listener.go#L79
when we create the instance listener's data volume (which only happens on the very first boot of the instance listener) we remove the directory containing the tmp image file (rather than just the image file). whoopsies. thank you for this find!
pushing a fix now
I run unik like this:
But I've noticed that after the first run, my
/tmp
folder goes missing! Daemon log seems to be in order, last few lines are:I must then manually create
/tmp
directory and assign it1777
permission for my Ubuntu16.04 system to continue working properly.NOTE: Once I manually recreate
/tmp
dir, I can re-build and re-run unik as many times as I want to without affecting the '/tmp' directory again.Is this a unik bug, or is it my system?