MagLev/maglev — Issue #120: maglev start fails, circular dependency?
Author: whoisjake
Created: 2012-01-27 16:45:20+00:00
State: open

maglev start fails:

```
GemStone is unable to open the file !TCP@localhost6#dbf!/home/jakegood/src/maglev/data/maglev/extent/extent0.ruby.dbf
reason = File = /home/jakegood/src/maglev/data/maglev/extent/extent0.ruby.dbf
DBF Op: Open; DBF Record: -1;
Error: open() failure; System Codes: errno=2,ENOENT, The file or directory specified cannot be found

An error occurred opening the repository for exclusive access.

Stone startup has failed.
````

So I looked at my install.sh/update.sh log and I noticed:

`````
[Info] Building new extent0.ruby.dbf from gemstone/bin/extent0.dbf and creating default maglev stone
This could take a while...
maglev-ruby: [Error] The MagLev server "maglev" is not running.
To fix this run "rake maglev:start" before running maglev-ruby.
[Warning] Could not build new ruby extent
````

Which to me is circular... I can't start maglev, because it doesn't have the stone... but I can't run rake maglev:build because it requires maglev server to be running...

````
$ cd $MAGLEV_HOME
:~/src/maglev$ rake maglev:build
maglev-ruby: [Error] The MagLev server "maglev" is not running.
To fix this run "rake maglev:start" before running maglev-ruby.
````

````
$ maglev-ruby -v
maglev 1.0.0 (ruby 1.8.7) (2011-10-31 rev 1.0.0-27184)[Linux x86_64]
$ uname -a
Linux dcworker1 2.6.32-340-ec2 #40-Ubuntu SMP Wed Nov 16 14:36:38 UTC 2011 x86_64 GNU/Linux
````

installed from github, shell variables for PATH and MAGLEV_HOME are set.

````
$ echo $MAGLEV_HOME
/home/jakegood/src/maglev
$ which maglev
/home/jakegood/src/maglev/bin/maglev
````