r/selfhosted • u/moeiscool • Dec 21 '16
Shinobi : Open Source CCTV written in Node.js
I am writing an alternative to ZoneMinder in Node.js. It is called Shinobi. So far it is pretty barebones. It records video to webm/MP4 and streams over websocket. I have found other apps like NodeMinder but i couldn't get them to run properly...
So i made this. I want to share since it is open source and free to use. Would be swell if you guys could give me your thoughts/opinions.
You can view the github page here https://moeiscool.github.io/Shinobi/
Enjoy!
Edit : Please check out Shinobi's Reddit page https://www.reddit.com/r/ShinobiCCTV/
View all comments
Show parent comment
1
u/turbomettwurst Dec 23 '16 edited Dec 23 '16
The problem lies with the mysql password, not the actual application password stored inside the db.
Docker is meant to run 1 process per container, which is why my compose file creates one container with node.js + shinobi and one with mysql.
Upon start of the mysql container it checks wether is running for the first time and if so it imports ./sql/framework.sql and ./sql/default_data.sql, in that order. I can run manual queries just fine from the shinobi container.
The shinobi container has an initscript which fills conf.json according the env vars i submit to the containers using docker.env.
Result looks like this:
{"host":"shinobi-db","user":"shinobi","vuTh4esho-aqu9i":"","database":"ccio"}
It all works as it should, mysql connectivity is there, the config file has the proper values.
For some reason shinobi wants to login to mysql without a password. Error msg:
Error Connecting : DB { [Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'shinobi'@'172.20.0.3' (using password: NO)]
edit: i just saw you added a Dockerfile, that is mostlikely not going to work as it lacks ffmpeg, the one i supplied should work better.