rtl-sdr-scanner-cpp icon indicating copy to clipboard operation
rtl-sdr-scanner-cpp copied to clipboard

Transmission deletion fails over 1000 Files

Open Klammraute opened this issue 2 years ago • 6 comments

Hi, I tried to delete all ca. 15000 Transmissions files in my Database but if i select all 15000 Files at once and try to delete i get a "400 bad request"

So i delete 14000 in 100 Steps and the last 1000 i could delete all at once.

Thank you for your work!

Klammraute avatar Feb 15 '23 22:02 Klammraute

Please attach logs. Details here.

shajen avatar Feb 16 '23 05:02 shajen

I get the same error with about 4000 items. This is error from the log: sdr-sdr-monitor-server-1 | [2023-02-16 13:25:16.758][exception ][django.security.TooManyFieldsSent][ERROR ] The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.

(I was able to delete 806 but not possible if there was over 1100. I deleted them 100 at a time)

jointerCZ avatar Feb 16 '23 12:02 jointerCZ

It looks like you have really much data to delete which exceed the http limit.

Maybe try do delete device in https://localhost:8000/admin/sdr/device/ ? It will cause cascade delete off all recordings and spectrograms belonging to this device.

shajen avatar Feb 17 '23 21:02 shajen

Is this some internal limit of the Django or can be configured? Lot of short transmissions are recorded, as I still work on defining ignored frequencies, I am at 2000 records after 1 day or so. Maybe "mark oldest 900" button can be added to work around this? Instead of mark all. Will try the device delete next time.

jointerCZ avatar Feb 17 '23 22:02 jointerCZ

Device delete is a workaround. The same device will then get registered under new ID.

jointerCZ avatar Feb 21 '23 09:02 jointerCZ

Same here, tried to delete 100k+ transmissions and got "Bad Request (400)" as an error. image

tubalainen avatar Mar 02 '23 07:03 tubalainen