signalserver icon indicating copy to clipboard operation
signalserver copied to clipboard

some files cannot be deleted - 404 error

Open metacynicv2 opened this issue 7 years ago • 3 comments

For about four files that are uploaded to the AWS server, there some that cannot be deleted but instead lead to a 404 page error:

BAVC1004644_Reports_access copy (1).mov.qctools SFPoetry-BAVC1001373-COLORERROR-Umatic.mov.qctools BAVC1004644_Reports_access copy (1).mov.qctools SFPoetry-BAVC1001373-COLORERROR-Umatic.mov.qctools

metacynicv2 avatar Apr 02 '17 22:04 metacynicv2

hi, I think I have the same issue - it triggers the following error 404 page:

Page not found (404)
Request Method:	GET
Request URL:	http://signalserver.bavc.org:8000/fileuploads/delete-video/CHARBON-SMPTE-24_muxed_2017_02_21T23_25_53.mkv.qctools
Using the URLconf defined in signalserver.urls, Django tried these URL patterns, in this order:
^$ [name='dashboard']
^register/ [name='register']
^redirect [name='redirect']
^logout [name='logout']
^password_reset/$ [name='password_reset']
^password_reset/done/$ [name='password_reset_done']
^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$ [name='password_reset_confirm']
^reset/done/$ [name='password_reset_complete']
^fileuploads/ ^$ [name='index']
^fileuploads/ ^(?P<filename_id>[0-9]+)/$ [name='detail']
^fileuploads/ ^(?P<filename_id>[0-9]+)/results/$ [name='results']
^fileuploads/ ^list/$ [name='list']
^fileuploads/ ^find_files/$ [name='find_files']
^fileuploads/ ^create_group/$ [name='create_group']
^fileuploads/ ^about/$ [name='about']
^fileuploads/ ^upload/$ [name='upload']
^fileuploads/ ^api/check_progress/$ [name='check_progress']
^fileuploads/ ^process/$ [name='process']
^fileuploads/ ^status/$ [name='status']
^fileuploads/ ^search/$ [name='search']
^fileuploads/ ^show/(?P<video_videofile_name>[\w.]{0,256})$ [name='show_video']
^fileuploads/ ^list/show/(?P<video_videofile_name>[\w.]{0,256})$ [name='show_video']
^fileuploads/ ^list/show/result/(?P<video_videofile_name>[\w.]{0,256})$ [name='show_result']
^fileuploads/ ^delete-video/(?P<video_videofile_name>[\w.]{0,256})$ [name='delete_video']
^fileuploads/ ^upload/(?P<filename>[^/]+)$
^fileuploads/ ^check_exist/(?P<filename>[^/]+)$
^fileuploads/ ^delete_file/$
^ ^login/$ [name='login']
^ ^logout/$ [name='logout']
^ ^password_change/$ [name='password_change']
^ ^password_change/done/$ [name='password_change_done']
^ ^password_reset/$ [name='password_reset']
^ ^password_reset/done/$ [name='password_reset_done']
^ ^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$ [name='password_reset_confirm']
^ ^reset/done/$ [name='password_reset_complete']
^ ^login/$ [name='login']
^ ^logout/$ [name='logout']
^ ^password_change/$ [name='password_change']
^ ^password_change/done/$ [name='password_change_done']
^ ^password_reset/$ [name='password_reset']
^ ^password_reset/done/$ [name='password_reset_done']
^ ^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$ [name='password_reset_confirm']
^ ^reset/done/$ [name='password_reset_complete']
^admin/
^accounts/
^policy/
^groups/
^signals/
^reports/
^frontend\/(?P<path>.*)$
The current URL, fileuploads/delete-video/CHARBON-SMPTE-24_muxed_2017_02_21T23_25_53.mkv.qctools, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

kieranjol avatar Apr 12 '17 21:04 kieranjol

I've found that the files that i can't delete seem to have been potential failed uploads from qctools. They all have a file size of zero.

CHARBON-SMPTE-24_muxed_2017_02_21T23_25_53.mkv.qctools Create Group Delete

Uploaded time: April 12, 2017, 4:51 p.m.
Size:
Frame Count (If file is not processed, it is set to 0): 0
File Process Status:
Completed: 0 frames, processed : April 12, 2017, 5:04 p.m.

I uploaded an xml.gz file manually in signalserver which I was then able to delete. It had the following stats (not the 42KB size)

test2.mkv.qctools group_2017_04_12_19:04:24 Create Group Delete

Uploaded time: April 12, 2017, 7:10 p.m.
Size: 42 KB
Frame Count (If file is not processed, it is set to 0): 0
File Process Status:
Completed: 0 frames, processed : April 12, 2017, 7:11 p.m.
Show Graph  Request File Process  Request Group Process
File Process Status:
Completed: 0 frames, processed : April 12, 2017, 7:11 p.m.
Show Graph  Request File Process 

kieranjol avatar Apr 12 '17 23:04 kieranjol

Also, if the file is not there any reasons, it will cause an error. I will look into it.

yayoiukai avatar Jul 02 '17 00:07 yayoiukai