Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete of /var/lib/motioneye #12

Closed
latimeria68 opened this issue Sep 8, 2015 · 5 comments
Closed

delete of /var/lib/motioneye #12

latimeria68 opened this issue Sep 8, 2015 · 5 comments

Comments

@latimeria68
Copy link

Hi,
strange behaviour for me is that if you delete pictures or movies from webUI motioneye also deletes the folder /var/lib/motioneye; then if a picture or a movie is taken it creates the folder back again
can you replicate it?
Thanks

@ccrisan
Copy link
Collaborator

ccrisan commented Sep 9, 2015

What's your root directory?

@latimeria68
Copy link
Author

I was testing snapshots every ten minutes with one camera and I left /var/lib/motioneye; it creates /var/lib/motioneye/date-of-today/jpg1....jpg2.......When you choose "delete all pictures taken" also /var/lib/motioneye is deleted. Not yet tried with a complete different path, but maybe this is what it has to do.
Thanks

@ccrisan
Copy link
Collaborator

ccrisan commented Sep 9, 2015

Yeap, that's the expected (not necessarily desired) behaviour. I will consider preventing removing the root directory though.

@electronicamystica
Copy link

I stumbled on the same issue resulting in motioneye refusing to start since the directory was missing.
The log files gave me some clarity here:
"CRITICAL: media directory "/home/pi/motioneye #/var/lib/motioneye" does not exist or is not writable"

@ccrisan
Copy link
Collaborator

ccrisan commented Sep 19, 2015

Fixed with the latest commit. motionEye will create a .keep sentinel file in the root directory to make sure it never gets removed.

@ccrisan ccrisan closed this as completed Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants