When I went back to the device list, those devices cannot be found. The devices did get created in the database host table, and by the statististics before and after these two devices were created everything else in the database was completed.2020/05/05 15:50:22 - SYSTEM STATS: Time:20.4402 Method:spine Processes:1 Threads:16 Hosts:201 HostsPerProcess:201 DataSources:24036 RRDsProcessed:7652
2020/05/05 15:49:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[181]:CactiErrorHandler())
2020/05/05 15:49:59 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /wwwsites/cacti/lib/html_form_template.php on line: 181
2020/05/05 15:49:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[180]:CactiErrorHandler())
2020/05/05 15:49:59 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /wwwsites/cacti/lib/html_form_template.php on line: 180
2020/05/05 15:49:03 - CMDPHP ERROR: Unable to set directory permissions for '/wwwsites/cacti/rra/292'
2020/05/05 15:49:03 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[801]:chown(), CactiErrorHandler())
2020/05/05 15:49:03 - ERROR PHP WARNING: chown(): Operation not permitted in file: /wwwsites/cacti/lib/api_device.php on line: 801
2020/05/05 15:47:58 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[181]:CactiErrorHandler())
2020/05/05 15:47:58 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /wwwsites/cacti/lib/html_form_template.php on line: 181
2020/05/05 15:47:58 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[180]:CactiErrorHandler())
2020/05/05 15:47:58 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /wwwsites/cacti/lib/html_form_template.php on line: 180
2020/05/05 15:46:28 - CMDPHP ERROR: Unable to set directory permissions for '/wwwsites/cacti/rra/291'
2020/05/05 15:46:28 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[60]:form_save(), /host.php[253]:api_device_save(), /lib/api_device.php[801]:chown(), CactiErrorHandler())
2020/05/05 15:46:28 - ERROR PHP WARNING: chown(): Operation not permitted in file: /wwwsites/cacti/lib/api_device.php on line: 801
2020/05/05 15:45:21 - SYSTEM STATS: Time:20.1702 Method:spine Processes:1 Threads:16 Hosts:199 HostsPerProcess:199 DataSources:23855 RRDsProcessed:7624
Questions:
1. Is there a script to run to either clean out the database of these two devices or to create the missing file structure from the database?
2. Is there a definitive answer on how to set your permissions when running structured rra folders with a cactiuser on the cron and the Ubuntu system account (www-data) on the web server?
I am running Ubuntu 18.04 LTS and php 7.2.24.
TIA,
MPJ