Adventures in Bodega

Jeremy Whiting jpwhiting at kde.org
Sat Nov 22 14:56:39 GMT 2014


Hello list,

I realize this list will reach many more people than could probably answer,
but the -active list seems to be dead from what I hear, so I thought I'd
try here. In looking into bodega as a successor to opendesktop and ocs I've
tried to setup a local bodega instance on my machine. The documentation is
pretty thorough and I've followed the steps to get postgresql set up and
have the node.js dependencies, however when trying to run the server I'm
getting an error inside the node redis module as seen below. Is redis
something that is no longer maintained or something? npm install works
without any error but says a warning about Swipe which I expect since I
haven't set up those parts of the config.json file. npm update gives many
more warnings about dependencies, but no errors that I see. Has anyone else
gotten the bodega server to run? Any help is appreciated.

thanks,
Jeremy

I slightly modified the node_modules/connect-redis/lib/connect-redis.js to
see what session and session.Store are, but here's the output:

 [jeremy at chrom server]$ ./main.sh

/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:121

 RedisStore.prototype.__proto__ = Store.prototype;
                                       ^
TypeError: Cannot read property 'prototype' of undefined
   at module.exports
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:121:41)

   at Object.<anonymous>
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/app.js:19:42)

   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Function.Module.runMain (module.js:497:10)
   at startup (node.js:119:16)
   at node.js:906:3
[jeremy at chrom server]$ vi node_modules/connect-redis/lib/connect-redis.js
[jeremy at chrom server]$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
[jeremy at chrom server]$ ./main.sh

/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:37

 console.log("Store is " + store);
                           ^
ReferenceError: store is not defined
   at module.exports
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:37:29)

   at Object.<anonymous>
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/app.js:19:42)

   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Function.Module.runMain (module.js:497:10)
   at startup (node.js:119:16)
   at node.js:906:3

[jeremy at chrom server]$ vi node_modules/connect-redis/lib/connect-redis.js

[jeremy at chrom server]$ ./main.sh
Store is undefined


/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:122

 RedisStore.prototype.__proto__ = Store.prototype;

                                       ^

TypeError: Cannot read property 'prototype' of undefined
   at module.exports
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:122:41)

   at Object.<anonymous>
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/app.js:19:42)

   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Function.Module.runMain (module.js:497:10)
   at startup (node.js:119:16)
   at node.js:906:3
[jeremy at chrom server]$ vi node_modules/connect-redis/lib/connect-redis.js
[jeremy at chrom server]$ ./main.sh
session is function createApplication() {
 var app = function(req, res, next) {
   app.handle(req, res, next);
 };

 mixin(app, proto);
 mixin(app, EventEmitter.prototype);

 app.request = { __proto__: req, app: app };
 app.response = { __proto__: res, app: app };
 app.init();
 return app;
}
Store is undefined

/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:123

 RedisStore.prototype.__proto__ = Store.prototype;
                                       ^
TypeError: Cannot read property 'prototype' of undefined
   at module.exports
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/connect-redis/lib/connect-redis.js:123:41)

   at Object.<anonymous>
(/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/app.js:19:42)

   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Function.Module.runMain (module.js:497:10)
   at startup (node.js:119:16)
   at node.js:906:3
[jeremy at chrom server]$ vi ../.gitignore
[jeremy at chrom server]$ npm install
npm WARN package.json querystring at 0.2.0 querystring is also the name of a
node core module.
stripe at 3.0.0 node_modules/stripe
├── when at 3.1.0
└── lodash at 2.4.1
[jeremy at chrom server]$ npm update
bindings at 1.0.0 node_modules/bcrypt/node_modules/bindings
assert-plus at 0.1.2
node_modules/request/node_modules/http-signature/node_modules/assert-plus
caseless at 0.7.0 node_modules/request/node_modules/caseless
character-parser at 1.2.0 node_modules/jade/node_modules/character-parser
commander at 2.1.0 node_modules/jade/node_modules/commander
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/jade
requires commander@'0.6.1' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/commander,

npm WARN unmet dependency which is version 2.3.0
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/jade
requires mkdirp@'0.3.0' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/mkdirp,

npm WARN unmet dependency which is version 0.5.0
commander at 2.3.0 node_modules/mocha/node_modules/commander
date-now at 0.1.4
node_modules/jshint/node_modules/console-browserify/node_modules/date-now
colors at 0.6.2 node_modules/prompt/node_modules/winston/node_modules/colors
path-to-regexp at 0.1.3 node_modules/express/node_modules/path-to-regexp
debug at 0.7.0 node_modules/gm/node_modules/debug
smtp-connection at 0.1.7
node_modules/nodemailer/node_modules/nodemailer-direct-transport/node_modules/smtp-connection

minimist at 0.0.8 node_modules/mocha/node_modules/mkdirp/node_modules/minimist
minimist at 0.0.8 node_modules/jade/node_modules/mkdirp/node_modules/minimist
minimist at 0.0.8
node_modules/istanbul/node_modules/mkdirp/node_modules/minimist
ipaddr.js at 0.1.3
node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js
minimist at 0.0.8
node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist

minimist at 0.0.10 node_modules/optimist/node_modules/minimist
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jshint/node_modules/cli/node_modules/glob
requires minimatch@'0.3' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jshint/node_modules/minimatch,

npm WARN unmet dependency which is version 1.0.0
underscore at 1.6.0 node_modules/jshint/node_modules/underscore
async at 0.2.10 node_modules/prompt/node_modules/winston/node_modules/async
asn1 at 0.1.11
node_modules/request/node_modules/http-signature/node_modules/asn1
ncp at 0.4.2 node_modules/prompt/node_modules/utile/node_modules/ncp
async at 0.2.10 node_modules/prompt/node_modules/utile/node_modules/async
entities at 1.0.0
node_modules/jshint/node_modules/htmlparser2/node_modules/entities
revalidator at 0.1.8 node_modules/prompt/node_modules/revalidator
crc at 3.0.0
node_modules/connect-redis/node_modules/express-session/node_modules/crc
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/jade
requires commander@'0.6.1' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/commander,

npm WARN unmet dependency which is version 2.3.0
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/jade
requires mkdirp@'0.3.0' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/mocha/node_modules/mkdirp,

npm WARN unmet dependency which is version 0.5.0
debug at 2.0.0 node_modules/mocha/node_modules/debug
└── ms at 0.6.2
qs at 2.3.2 node_modules/express/node_modules/qs
debug at 1.0.4 node_modules/knox/node_modules/debug
└── ms at 0.6.2
debug at 1.0.4 node_modules/connect-redis/node_modules/debug
└── ms at 0.6.2
mime-types at 1.0.2 node_modules/request/node_modules/mime-types
nan at 1.3.0 node_modules/bcrypt/node_modules/nan
underscore at 1.4.4
node_modules/istanbul/node_modules/js-yaml/node_modules/argparse/node_modules/underscore

minimatch at 0.4.0
node_modules/istanbul/node_modules/fileset/node_modules/minimatch
├── sigmund at 1.0.0
└── lru-cache at 2.5.0
readable-stream at 1.1.13
node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream
├── isarray at 0.0.1
├── inherits at 2.0.1
├── string_decoder at 0.10.31
└── core-util-is at 1.0.1
consolidate at 0.10.0 node_modules/email-template/node_modules/consolidate

> async at 0.1.18 preinstall
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/email-template/node_modules/async

> make clean

hyperquest at 0.3.0
node_modules/nodemailer/node_modules/buildmail/node_modules/hyperquest
├── duplexer at 0.1.1
└── through at 2.2.7
hyperquest at 0.3.0 node_modules/nodemailer/node_modules/hyperquest
├── duplexer at 0.1.1
└── through at 2.2.7
resolve at 0.7.4 node_modules/istanbul/node_modules/resolve
etag at 1.5.1 node_modules/express/node_modules/send/node_modules/etag
└── crc at 3.2.1
etag at 1.5.1 node_modules/express/node_modules/etag
└── crc at 3.2.1
rm -rf dist
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/istanbul/node_modules/escodegen
requires esprima@'~1.1.1' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/istanbul/node_modules/esprima,

npm WARN unmet dependency which is version 1.2.2
underscore at 1.3.3 node_modules/email-template/node_modules/underscore
ctype at 0.5.2
node_modules/request/node_modules/http-signature/node_modules/ctype
glob at 3.2.11 node_modules/istanbul/node_modules/fileset/node_modules/glob
├── inherits at 2.0.1
└── minimatch at 0.3.0 (sigmund at 1.0.0, lru-cache at 2.5.0)
glob at 3.2.11 node_modules/jshint/node_modules/cli/node_modules/glob
├── inherits at 2.0.1
└── minimatch at 0.3.0 (sigmund at 1.0.0, lru-cache at 2.5.0)
optimist at 0.3.7 node_modules/handlebars/node_modules/optimist
└── wordwrap at 0.0.2
jade at 0.26.3 node_modules/mocha/node_modules/jade
├── commander at 0.6.1
└── mkdirp at 0.3.0
iconv-lite at 0.4.5
node_modules/nodemailer/node_modules/libmime/node_modules/iconv-lite
glob at 3.2.3 node_modules/mocha/node_modules/glob
├── inherits at 2.0.1
├── graceful-fs at 2.0.3
└── minimatch at 0.2.14 (sigmund at 1.0.0, lru-cache at 2.5.0)
underscore.string at 2.3.3
node_modules/istanbul/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string

esprima at 1.0.4
node_modules/istanbul/node_modules/js-yaml/node_modules/esprima
hawk at 1.1.1 node_modules/request/node_modules/hawk
├── cryptiles at 0.2.2
├── sntp at 0.2.4
├── boom at 0.4.2
└── hoek at 0.9.1
readdirp at 0.2.5 node_modules/jade/node_modules/monocle/node_modules/readdirp
└── minimatch at 1.0.0 (sigmund at 1.0.0, lru-cache at 2.5.0)

> async at 0.1.18 install
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/email-template/node_modules/async

> make build

mkdir -p dist
node install.js
async at 0.1.18 node_modules/email-template/node_modules/async
└── uglify-js at 1.2.6
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jade/node_modules/constantinople/node_modules/uglify-js
requires async@'~0.2.6' but
will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/async,

npm WARN unmet dependency which is version 0.9.0
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jade/node_modules/constantinople/node_modules/uglify-js
requires optimist@'~0.3.5' b
ut will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/optimist,

npm WARN unmet dependency which is version 0.6.1
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jade/node_modules/with/node_modules/uglify-js
requires async@'~0.2.6' but will load
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/async,

npm WARN unmet dependency which is version 0.9.0
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/jade/node_modules/with/node_modules/uglify-js
requires optimist@'~0.3.5' but will lo
ad
npm WARN unmet dependency
/home/jeremy/devel/kde/src/extragear/network/bodega-server/server/node_modules/optimist,

npm WARN unmet dependency which is version 0.6.1
stripe at 3.0.0 node_modules/stripe
├── when at 3.1.0
└── lodash at 2.4.1
uglify-js at 2.3.6 node_modules/handlebars/node_modules/uglify-js
├── async at 0.2.10
└── source-map at 0.1.40 (amdefine at 0.1.0)
escodegen at 1.3.3 node_modules/istanbul/node_modules/escodegen
├── estraverse at 1.5.1
├── esutils at 1.0.0
├── esprima at 1.1.1
└── source-map at 0.1.40 (amdefine at 0.1.0)
constantinople at 2.0.1 node_modules/jade/node_modules/constantinople
└── uglify-js at 2.4.15 (uglify-to-browserify at 1.0.2, async at 0.2.10,
optimist at 0.3.7, source-map at 0.1.34)
with at 3.0.1 node_modules/jade/node_modules/with
└── uglify-js at 2.4.15 (uglify-to-browserify at 1.0.2, async at 0.2.10,
optimist at 0.3.7, source-map at 0.1.34)
transformers at 2.1.0 node_modules/jade/node_modules/transformers
├── promise at 2.0.0 (is-promise at 1.0.1)
├── css at 1.0.8 (css-stringify at 1.0.5, css-parse at 1.0.4)
└── uglify-js at 2.2.5 (optimist at 0.3.7, source-map at 0.1.40)
handlebars at 1.3.0 node_modules/istanbul/node_modules/handlebars
├── optimist at 0.3.7 (wordwrap at 0.0.2)
└── uglify-js at 2.3.6 (async at 0.2.10, source-map at 0.1.40)
pg at 4.0.0 node_modules/pg
├── packet-reader at 0.2.0
├── pg-connection-string at 0.1.3
├── buffer-writer at 1.0.0
├── generic-pool at 2.1.1
├── pg-types at 1.6.0
├── nan at 1.3.0
├── semver at 4.1.0
└── pgpass at 0.0.3 (split at 0.3.1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20141122/8bbf4b80/attachment.htm>


More information about the kde-core-devel mailing list