1.2.12 Missed Creating Device

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mpj
Posts: 19
Joined: Wed Jun 01, 2005 10:24 am
Contact:

1.2.12 Missed Creating Device

Post by mpj »

I apparently had some permission issues on my rra/ folder after updating to 1.2.12 from 1.2.9. When I created two devices, edited them, and created graphs for each of them, I received the following in the log:
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
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.

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
mpj
Posts: 19
Joined: Wed Jun 01, 2005 10:24 am
Contact:

Re: 1.2.12 Missed Creating Device

Post by mpj »

OK, I figured out why they were not showing up in the device list. Somewhere along the way the default "location" became NULL and filtered out about 50 devices. So I'll try again to create a new device now that I have reset the permissions on rra/.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests