MicrosoftEdge / magic-mirror-demo

A :zap:Magic Mirror:zap: powered by a UWP Hosted Web App :rocket:
Other
1.23k stars 225 forks source link

running locally #49

Open Charpy49 opened 7 years ago

Charpy49 commented 7 years ago

Hello,

could you provide us the version of nodejs and mongodb you are using. I download the latest nodejs (6.9.2) and mondodb (3.4), i run the server.js, but i have some error when i trying to reach the localhost:3000/create when I compiled, I should chenge some folder due to the version

hereby the log nodejs E:\Projets\magic-mirror-demo-master>node server.js Express server listening on port 3000 we're connected!

//when I reached the page http://localhost:3000/create E:\Projets\magic-mirror-demo-master\node_modules\connect-mongodb\lib\connect-mongodb.js:146 _collection.update({_id: sid}, update, {upsert: true}, function (err, data) { ^

TypeError: Cannot read property 'update' of null at MongoStore.MONGOSTORE.set (E:\Projets\magic-mirror-demo-master\node_modules\connect-mongodb\lib\connect-mongodb.js:146:14) at Session.save (E:\Projets\magic-mirror-demo-master\node_modules\express-session\session\session.js:72:25) at Session.save (E:\Projets\magic-mirror-demo-master\node_modules\express-session\index.js:372:15) at ServerResponse.end (E:\Projets\magic-mirror-demo-master\node_modules\express-session\index.js:330:21) at ServerResponse.send (E:\Projets\magic-mirror-demo-master\node_modules\express\lib\response.js:205:10) at done (E:\Projets\magic-mirror-demo-master\node_modules\express\lib\response.js:956:10) at Immediate. (E:\Projets\magic-mirror-demo-master\node_modules\express-handlebars\lib\utils.js:26:13) at runCallback (timers.js:637:20) at tryOnImmediate (timers.js:610:5) at processImmediate [as _immediateCallback] (timers.js:582:5)

mongodb 2016-12-14T19:00:04.429+0100 I CONTROL [initandlisten] MongoDB starting : pid=6964 port=27017 dbpath=E:\data\db\ 64-bit host=PCC�dric 2016-12-14T19:00:04.429+0100 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2 2016-12-14T19:00:04.430+0100 I CONTROL [initandlisten] db version v3.4.0 2016-12-14T19:00:04.431+0100 I CONTROL [initandlisten] git version: f4240c60f005be757399042dc12f6addbc3170c1 2016-12-14T19:00:04.432+0100 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t-fips 3 May 2016 2016-12-14T19:00:04.432+0100 I CONTROL [initandlisten] allocator: tcmalloc 2016-12-14T19:00:04.433+0100 I CONTROL [initandlisten] modules: none 2016-12-14T19:00:04.433+0100 I CONTROL [initandlisten] build environment: 2016-12-14T19:00:04.434+0100 I CONTROL [initandlisten] distmod: 2008plus-ssl 2016-12-14T19:00:04.434+0100 I CONTROL [initandlisten] distarch: x86_64 2016-12-14T19:00:04.435+0100 I CONTROL [initandlisten] target_arch: x86_64 2016-12-14T19:00:04.435+0100 I CONTROL [initandlisten] options: {} 2016-12-14T19:00:04.437+0100 I - [initandlisten] Detected data files in E:\data\db\ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2016-12-14T19:00:04.437+0100 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1478M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2016-12-14T19:00:05.207+0100 I CONTROL [initandlisten] 2016-12-14T19:00:05.207+0100 I CONTROL [initandlisten] WARNING: Access control is not enabled for the database. 2016-12-14T19:00:05.208+0100 I CONTROL [initandlisten] Read and write access to data and configuration is unrestricted. 2016-12-14T19:00:05.209+0100 I CONTROL [initandlisten] 2016-12-14T19:00:05.666+0100 W FTDC [initandlisten] Failed to initialize Performance Counters for FTDC: WindowsPdhError: PdhExpandCounterPathW failed with 'L’objet spécifié n’a pas été trouvé sur l’ordinateur.' for counter '\Memory\Available Bytes' 2016-12-14T19:00:05.666+0100 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'E:/data/db/diagnostic.data' 2016-12-14T19:00:05.682+0100 I NETWORK [thread1] waiting for connections on port 27017 ///// when I run node server.js

2016-12-14T19:00:48.561+0100 I NETWORK [thread1] connection accepted from 127.0.0.1:51754 #1 (1 connection now open) 2016-12-14T19:00:48.574+0100 I NETWORK [conn1] received client metadata from 127.0.0.1:51754 conn1: { driver: { name: "nodejs", version: "2.2.11" }, os: { type: "Windows_NT", name: "win32", architecture: "x64", version: "10.0.14393" }, platform: "Node.js v6.9.2, LE, mongodb-core: 2.0.13" } 2016-12-14T19:01:03.052+0100 I - [conn1] end connection 127.0.0.1:51754 (1 connection now open)

if someone can help me Thx Cedric