shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
I installed http://hydra.nixos.org/build/822918 ; running webdsl then fails
Submitted by Eelco Visser on 24 December 2010 at 11:50
$ which webdsl
/Users/eelcovisser/.nix-profile/bin/webdsl
$ webdsl build
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1087)
Issue Log
Looks like a more general issue, is your shell in a directory that was deleted? Can you run
pwd
?
$ pwd
/opt/tomcat/webapps/dslbook
Yes, this issue happens if you try to run a shell script from a non-existent directory. So what do you get for:
ls -dpwd
$ ls -dpwd
/opt/tomcat/webapps/dslbook/Aha, this is not a directory that contains a webdsl source project. If I try it in a HOME/tmp I get a better response. The webdsl script should never show such errors, but explain if there is a problem.
webdsl build
reports a missing application.ini file when run in an empty directory:Cannot find application.ini. This file is necessary to build the application for you. Want to create an application.ini now? [y/n]: [n]
Log in to post comments