Closed shokinn closed 9 years ago
I do, Very strange though. the application can not find the log directory. (Winston logging has just recently been added)
Could you try making a dir in the root of the application called "log" (without the quotes)?
Edit: I believe with this doesn't work! I'll push a fix ASAP, but it should also work if you create the log dir in the root of MCJS
There is a "log" dir.
root@srv1-media /opt/mediacenterjs # ll
total 84
drwxr-xr-x 10 root root 4096 Dec 2 11:45 .
drwxr-xr-x 3 root root 4096 Dec 2 11:33 ..
drwxr-xr-x 10 root root 4096 Dec 2 11:33 apps
drwxr-xr-x 2 root root 4096 Dec 2 11:45 configuration
drwxr-xr-x 8 root root 4096 Dec 2 11:33 .git
-rwxr-xr-x 1 root root 483 Dec 2 11:33 .gitattributes
-rwxr-xr-x 1 root root 470 Dec 2 11:33 .gitignore
-rwxr-xr-x 1 root root 12509 Dec 2 11:33 index.js
drwxr-xr-x 6 root root 4096 Dec 2 11:33 lib
drwxr-xr-x 2 root root 4096 Dec 2 11:45 log
drwxr-xr-x 41 root root 4096 Dec 2 11:34 node_modules
-rwxr-xr-x 1 root root 2047 Dec 2 11:33 package.json
drwxr-xr-x 14 root root 4096 Dec 2 11:33 public
-rwxr-xr-x 1 root root 5512 Dec 2 11:33 README.md
-rwxr-xr-x 1 root root 4759 Dec 2 11:33 server.js
drwxr-xr-x 2 root root 4096 Dec 2 11:33 views
root@srv1-media /opt/mediacenterjs/log # ll
total 12
drwxr-xr-x 2 root root 4096 Dec 2 11:45 .
drwxr-xr-x 10 root root 4096 Dec 2 11:45 ..
-rwxr-xr-x 1 root root 1306 Dec 2 14:44 server.log
root@srv1-media /opt/mediacenterjs/log # cat server.log
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T10:45:02.767Z"}
{"level":"info","message":"Restarting because of changed file","timestamp":"2014-12-02T10:45:03.158Z"}
{"level":"info","message":"Stopping server for restart","timestamp":"2014-12-02T10:45:05.161Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T10:46:25.763Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T10:48:52.769Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T12:20:19.410Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T12:36:47.063Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T12:38:15.867Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T13:29:02.482Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T13:41:41.381Z"}
{"level":"info","message":"\u001b[1m\u001b[32mStarting server\u001b[39m\u001b[22m","timestamp":"2014-12-02T13:44:53.214Z"}
Just pushed a potential fix! Could you update your copy and try again please?
It works :+1: Thanks!
root@srv1-media /opt/mediacenterjs # node server
info: Starting server
info: socket.io started
socket setup
info:
movies:
info: GET /movies/ -> index
info: GET /movies/:id/:optionalParam?/:action? -> get
info: POST /movies/:id/:optionalParam?/:action? -> post
info:
music:
info: GET /music/ -> index
info: GET /music/:id/:optionalParam?/:action? -> get
info: POST /music/:id/:optionalParam?/:action? -> post
info:
plugins:
info: GET /plugins/ -> index
info: GET /plugins/:id/:optionalParam?/:action? -> get
info:
remote:
info: GET /remote/ -> index
info:
settings:
info: GET /settings/ -> index
info: GET /settings/:id/:optionalParam?/:action? -> get
info:
tv:
info: GET /tv/ -> index
info: GET /tv/:id/:optionalParam?/:action? -> get
info: POST /tv/:id/:optionalParam?/:action? -> post
info:
weather:
info: GET /weather/ -> index
info:
youtube:
info: GET /youtube/ -> index
info: POST /youtube/:id/:optionalParam?/:action? -> post
info: GET /youtube/:id/:optionalParam?/:action? -> get
info: Scheduled task set for: 15:30
warn: First run, Setup running on localhost: port=3000
Executing (default): SELECT COUNT(*) FROM SequelizeMeta
Executing (default): CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `from` VARCHAR(255), `to` VARCHAR(255))
Executing (default): CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `from` VARCHAR(255), `to` VARCHAR(255));
Executing (default): SELECT * FROM `SequelizeMeta` ORDER BY id DESC LIMIT 1;
Executing (default): INSERT INTO SequelizeMeta ('from', 'to') VALUES ('20141022122234', '20141022122234');
Cool! Glad I could help! Feel free to let me know if anything else breaks or could be improved.
Hey There, I've an error after installation. I've used the installation manual on a Debian Wheezy.
The Full Error is:
Does anyone know why this error occurs?
sincerely yours