Page 1 of 1

Purge Not WOrking

Posted: Tue Oct 22, 2019 8:55 am
by gobris
Hello
I have a running 1.29 zoneminder.
I made a clone of the server and tried upgrading on clone server to latest version via apt-get repository (iconnor i suppose)

Update went great.. No problem occured.
Everything seems to work.
But, purgewhenfull script seems does not work.
My storage disk is on another disk mounted as /kayit2

WHen purge function works, the log indicates it successfully delete

22-10-2019 11:37:38.408940 zmfilter_1[29018].INF [ZoneMinder::Event:373] [Deleting event 4752942 from Monitor 4 StartTime:2019-10-16 09:37:46 from /kayit2/events//4/2019-10-16/4752942]
22-10-2019 11:37:38.512931 zmfilter_1[29018].INF [ZoneMinder::Event:373] [Deleting event 4752943 from Monitor 23 StartTime:2019-10-16 09:37:49 from /kayit2/events//23/2019-10-16/4752943]
22-10-2019 11:37:38.574604 zmfilter_1[29018].INF [ZoneMinder::Event:373] [Deleting event 4752944 from Monitor 17 StartTime:2019-10-16 09:37:54 from /kayit2/events//17/2019-10-16/4752944]
22-10-2019 11:37:38.595783 zmfilter_1[29018].INF [ZoneMinder::Event:373] [Deleting event 4752945 from Monitor 25 StartTime:2019-10-16 09:37:54 from /kayit2/events//25/2019-10-16/4752945]
22-10-2019 11:37:38.618884 zmfilter_1[29018].INF [ZoneMinder::Event:373] [Deleting event 4752946 from Monitor 18 StartTime:2019-10-16 09:37:58 from /kayit2/events//18/2019-10-16/4752946]


But the files stays there
No delete
/kayit2/events/28/2019-10-16# ls
4752576 4752913 4752990 4753071 4753257 4753330 4753443 4753613 4753704 4753812 4753884 4754590 4754688 4754861 4754907 4754981 4756014 4756081 4756157 4756242 4756344 4756463 4757291 4758469 4759065
4752809 4752919 4752997 4753093 4753276 4753339 4753447 4753621 4753721 4753816 4753916 4754650 4754723 4754868 4754927 4755452 4756028 4756086 4756166 4756251 4756384 4756480 4757314 4758536 4759087
4752816 4752935 4753031 4753104 4753280 4753393 4753468 4753636 4753732 4753830 4753922 4754657 4754734 4754870 4754933 4755466 4756044 4756092 4756177 4756292 4756388 4756484 4758316 4758550 4759278
4752836 4752953 4753039 4753116 4753291 4753395 4753470 4753640 4753767 4753845 4753939 4754664 4754763 4754872 4754935 4755469 4756052 4756096 4756187 4756301 4756394 4756726 4758340 4758607 4759329
4752865 4752966 4753065 4753142 4753311 4753419 4753557 4753658 4753781 4753876 4754022 4754667 4754780 4754876 4754952 4755873 4756062 4756098 4756211 4756331 4756423 4756733 4758412 4758863 4760526
4752879 4752972 4753068 4753188 4753314 4753422 4753574 4753690 4753800 4753878 4754311 4754675 4754814 4754882 4754976 4755920 4756076 4756118 4756239 4756339 4756455 4757270 4758460 4758871 4760528

file permissions seems www-data:www-data so it doesnt seem like a permission issue either.
It even does not delete when script runs manually as root also.


What seems the problem might be the double slash "//" between /events and /4 as it seems below..

/kayit2/events//4/2019-10-16/

So how can I fix it?

Re: Purge Not WOrking

Posted: Tue Oct 22, 2019 10:17 am
by gobris
I can not check or change the paths for 1.33 version. because it does not appear on the gui as 1.29 version
2019-10-22_12-33-49.png
2019-10-22_12-33-49.png (9.6 KiB) Viewed 2827 times

Re: Purge Not WOrking

Posted: Wed Oct 23, 2019 2:33 pm
by gobris
Made a few tests also
not only purge function
but also delete function from webgui does not work
I select an event. .click on delete..
Yes event has been deleted on db but file stays on the folder

Re: Purge Not Working

Posted: Mon Oct 28, 2019 7:30 am
by clipo
Did you follow the guide in the documentation

https://zoneminder.readthedocs.io/en/1. ... drive.html

as setting within the API isn't sufficient.