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

RRDCleaner Tool doesn't allow to delete more than ~500 files #115

Closed
interduo opened this issue Dec 29, 2016 · 9 comments
Closed

RRDCleaner Tool doesn't allow to delete more than ~500 files #115

interduo opened this issue Dec 29, 2016 · 9 comments
Labels
bug Undesired behaviour

Comments

@interduo
Copy link
Contributor

'Delete All' button doesn't work on filter bar.

But You can delete it with selecting all with checkboxes and opening the list and choosing delete and it works.

@shavenne
Copy link

shavenne commented Dec 29, 2016

For me the way to select a file and choosing delete doesn't work either.
It seems to be deleted but it isn't. On rescan it appeares again.

Error messages in the logfile:

2016-12-29 22:14:13 - DBCALL ERROR: A DB Exec Failed!, Error:1366, SQL:"INSERT INTO data_source_purge_action VALUES('', ?, ?, ?) ON DUPLICATE KEY UPDATE local_data_id = VALUES(local_data_id)'
2016-12-29 22:14:13 - 5 ERROR: A DB Exec Failed!, Error: Incorrect integer value: '' for column 'id' at row 1
2016-12-29 22:14:13 - CMDPHP SQL Backtrace: (/rrdcleaner.php: 46 do_rrd)(/rrdcleaner.php: 446 db_execute_prepared)(/lib/database.php: 174 cacti_debug_backtrace)

@interduo
Copy link
Contributor Author

You cannot with my method delete more than 500 files.

@interduo
Copy link
Contributor Author

Khmm If You got more than 10k You cannot delete them with both metods.
You can delete them by selecting 500 and 500 and 500............

@dabeani
Copy link
Contributor

dabeani commented Dec 29, 2016

i have that same problem on my productive system at work...
and, there were using an older version (not 1.0.0) -> 0.8.8f.
with that Verison you can also only select maximum 500, 500,...

@interduo interduo changed the title rrdcleaner.php RRDCleaner Tool doesn't allow to delete more than ~500 files Dec 29, 2016
@cigamit
Copy link
Member

cigamit commented Dec 29, 2016

This is a php variable that you need to set. I think it's post_max_size=XXXM and max_input_vars (php 5.3.9), make them bigger than the default and then restart apache.

I think I'll put them in global.php.

cigamit added a commit that referenced this issue Dec 29, 2016
@cigamit
Copy link
Member

cigamit commented Dec 29, 2016

I just made a change to allow it to goto 5k. Let us know if it works.

@interduo
Copy link
Contributor Author

I did delete these rrd by hand using find and bash so I cannot confirm now.

@cigamit cigamit added the bug Undesired behaviour label Dec 29, 2016
@cigamit
Copy link
Member

cigamit commented Dec 29, 2016

That setting is static and only adjustable via hard modifications to the php.ini file. Besides, the GUI get's slow when it's set to high numbers.

@cigamit
Copy link
Member

cigamit commented Dec 29, 2016

Resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour
Projects
None yet
Development

No branches or pull requests

4 participants