orbitdb-archive/orbit

can't start after updates?

Closed this issue · 2 comments

cant start after updates. i made sure to:

# reinstall all modules because npm does not always recover nicely from installed deps...
> rm -rf node_modules/
> npm install

here's what i tried?

# just trying to boot it up
~/git/ipfs/orbit > node index.js
2016-04-16T00:27:54.395Z [DEBUG] Orbit.Main: Running in 'release' mode
2016-04-16T00:27:54.398Z [INFO]  Orbit.Main: Starting IPFS...
2016-04-16T00:27:54.399Z [DEBUG] ipfs-daemon: Starting IPFS daemon
2016-04-16T00:27:54.400Z [DEBUG] ipfs-daemon: Using IPFS data directory: '/Users/jbenet/.ipfs', exists: true
# failed. hmm repo version problem? im on 0.4.1-dev with fs-repo@3
~/git/ipfs/orbit > cat ~/.ipfs/version
3

# maybe it doesnt like my repo? let's try a new one.
~/git/ipfs/orbit > ls -al ~/ | grep ipfs
lrwxr-xr-x     1 jbenet  staff      6 Apr 13 21:03 .ipfs@ -> .ipfs5
drwxr-xr-x     8 jbenet  staff    272 Apr 13 21:03 .ipfs3/
drwxr-xr-x     9 jbenet  staff    306 Apr  9 22:55 .ipfs4/
drwxr-xr-x     7 jbenet  staff    238 Apr  9 22:56 .ipfs42/
drwxr-xr-x    10 jbenet  staff    340 Apr 14 03:14 .ipfs5/
~/git/ipfs/orbit > rm ~/.ipfs
# i use symlinks to select repos.

# lets see if node index.js creates a repo.
~/git/ipfs/orbit > node index.js
2016-04-16T00:28:39.670Z [DEBUG] Orbit.Main: Running in 'release' mode
2016-04-16T00:28:39.673Z [INFO]  Orbit.Main: Starting IPFS...
2016-04-16T00:28:39.674Z [DEBUG] ipfs-daemon: Starting IPFS daemon
2016-04-16T00:28:39.675Z [DEBUG] ipfs-daemon: Using IPFS data directory: '/Users/jbenet/.ipfs', exists: false
2016-04-16T00:28:39.786Z [ERROR] ipfs-daemon: Error starting ipfs daemon:
2016-04-16T00:28:39.788Z [ERROR] Orbit.Main: ENOENT: no such file or directory, open '/Users/jbenet/.ipfs/config'
2016-04-16T00:28:39.789Z [ERROR] Orbit.Main: Stack trace:

2016-04-16T00:28:39.793Z [INFO]  Orbit.Index: Systems started
2016-04-16T00:28:39.794Z [ERROR] ipfs-daemon: Error initializing ipfs daemon:
# nope


# maybe it just doesnt like symlinks, try moving one of my fs-repo@2 repos.
~/git/ipfs/orbit > mv ~/.ipfs5 ~/.ipfs
~/git/ipfs/orbit > node index.js
2016-04-16T00:29:08.790Z [DEBUG] Orbit.Main: Running in 'release' mode
2016-04-16T00:29:08.793Z [INFO]  Orbit.Main: Starting IPFS...
2016-04-16T00:29:08.794Z [DEBUG] ipfs-daemon: Starting IPFS daemon
2016-04-16T00:29:08.794Z [DEBUG] ipfs-daemon: Using IPFS data directory: '/Users/jbenet/.ipfs', exists: true
# nope fails too.

# restore the symlink.
~/git/ipfs/orbit > mv ~/.ipfs ~/.ipfs5
~/git/ipfs/orbit > cd ~; ln -s .ipfs5 .ipfs; popd

# maybe it doesnt like the cache?
~/git/ipfs/orbit > rm orbit-db-cache.json
~/git/ipfs/orbit > node index.js
2016-04-16T00:30:40.559Z [DEBUG] Orbit.Main: Running in 'release' mode
2016-04-16T00:30:40.562Z [INFO]  Orbit.Main: Starting IPFS...
2016-04-16T00:30:40.563Z [DEBUG] ipfs-daemon: Starting IPFS daemon
2016-04-16T00:30:40.564Z [DEBUG] ipfs-daemon: Using IPFS data directory: '/Users/jbenet/.ipfs', exists: true
# nope. not sure what else to remove.

Try running 'npm install' with npm v3.x (see updated README) and let me know if that doesn't work.

@haadcode thanks! npm3 worked 👍