Open ShuonanChen opened 3 years ago
One solution is to run the commands as the regular user instead of root? In the template.json, instead of
"COMMAND": "foo.sh"
run
"COMMAND": "sudo -u ubuntu foo.sh"
@cellistigs does that make sense? or will this ruin things later?
I have personally not tried that, but I think that should work.
@ShuonanChen could you also try inserting the command:
source "/home/ubuntu/.dlamirc"
and see if this fixes the issue? This file contains parameters that set up all of the deep learning ami related resources.
Thank you,
Adding sudo -u ubuntu
before the run_main.sh
in the COMMAND in the json file worked! So this problem has solved.
I included source "/home/ubuntu/.dlamirc"
, but it still gives the same error:
cp: cannot stat '/root/.keras/keras_tensorflow.json': No such file or directory
.
Somehow it is going to root directory. I have .keras/keras_tensorflow.json
under the home directory:
$ ls ~/.keras/keras_tensorflow.json -lt
-rw-rw-r-- 1 ubuntu ubuntu 32 Mar 1 14:40 /home/ubuntu/.keras/keras_tensorflow.json
but dont think i have access to the /root/
directory.
Also, this error doesn't happen when using pytorch_p36 instead of tensorflow_p36.
In one of the script under [Lambda][LambdaConfig][COMMAND], this part gives an error:
the error file says:
Any suggestions would be much appreciated, thank you!