Search This Blog

2018/03/21

Vagrant: VBoxManage error has terminated unexpectedly during startup with exit code 1 (0x1)

When use 'vagrant up' to start env, it show the error below.

==> controller: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "db9a7f93-2e24-46a1-a484-aa7705fa285d", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'php_controller_1521423965199_38765'
has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in
'\VirtualBox VMs\php_controller_1521423965199_38765\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap,
interface IMachine

Solution:
re-install VirtualBox will fix

2018/03/10

Android: Keystore was tampered with, or password was incorrect

$keytool -list -v -keystore /Users/randinblogger/.android/debug.keystore
*Replace randinblogger with user name

Error Log:
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at sun.security.tools.keytool.Main.doCommands(Main.java:889)
        at sun.security.tools.keytool.Main.run(Main.java:340)
        at sun.security.tools.keytool.Main.main(Main.java:333)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)
        ... 5 more

Solution:
For the debug.keystore, the password is android. For Eclipse, the debug keystore is typically located at ~/.android/debug.keystore