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

Page validation errors may occur when opening real time graphs #3711

Closed
majed17 opened this issue Jul 21, 2020 · 7 comments
Closed

Page validation errors may occur when opening real time graphs #3711

majed17 opened this issue Jul 21, 2020 · 7 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@majed17
Copy link

majed17 commented Jul 21, 2020

in 1.2.12, today i opened the real time graphs and got..


 
--
2020/07/21 14:57:12 - CMDPHP Input Validation Not Performed for  'page4' Backtrace:  (/graphs_new.php[67]:graphs(),  /graphs_new.php[463]:load_current_session_value(),  /lib/html_utility.php[887]:get_request_var(),  /lib/html_utility.php[369]:html_log_input_error(),  /lib/html_validate.php[44]:cacti_debug_backtrace())
2020/07/21 14:57:06 - CMDPHP Input Validation Not Performed for  'page4' Backtrace:  (/graphs_new.php[67]:graphs(),  /graphs_new.php[463]:load_current_session_value(),  /lib/html_utility.php[887]:get_request_var(),  /lib/html_utility.php[369]:html_log_input_error(),  /lib/html_validate.php[44]:cacti_debug_backtrace())
2020/07/21 14:56:12 - CMDPHP Input Validation Not Performed for  'page4' Backtrace:  (/graphs_new.php[67]:graphs(),  /graphs_new.php[463]:load_current_session_value(),  /lib/html_utility.php[887]:get_request_var(),  /lib/html_utility.php[369]:html_log_input_error(),  /lib/html_validate.php[44]:cacti_debug_backtrace())
2020/07/21 14:56:07 - CMDPHP Input Validation Not Performed for  'page4' Backtrace:  (/graphs_new.php[67]:graphs(),  /graphs_new.php[463]:load_current_session_value(),  /lib/html_utility.php[887]:get_request_var(),  /lib/html_utility.php[369]:html_log_input_error(),  /lib/html_validate.php[44]:cacti_debug_backtrace())


@majed17 majed17 added bug Undesired behaviour unverified Some days we don't have a clue labels Jul 21, 2020
@majed17
Copy link
Author

majed17 commented Jul 21, 2020

in 1.2.13, after switching to systemd this appeared:

2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[27]:include(),  /include/auth.php[28]:require_once(),  /include/global.php[503]:include_once(),  /include/global_arrays.php[1508]:is_realm_allowed(),  /lib/auth.php[712]:db_table_exists(),  /lib/database.php[771]:db_fetch_cell(),  /lib/database.php[386]:db_fetch_cell_prepared(),  /lib/database.php[402]:db_execute_prepared())
--
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Cell Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[27]:include(),  /include/auth.php[28]:require_once(),  /include/global.php[503]:include_once(),  /include/global_arrays.php[1508]:is_realm_allowed(),  /lib/auth.php[711]:is_user_perms_valid(),  /lib/auth.php[2669]:db_fetch_cell_prepared(),  /lib/database.php[402]:db_execute_prepared())
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Cell Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[27]:include(),  /include/auth.php[28]:require_once(),  /include/global.php[503]:include_once(),  /include/global_arrays.php[973]:db_table_exists(),  /lib/database.php[771]:db_fetch_cell(),  /lib/database.php[386]:db_fetch_cell_prepared(),  /lib/database.php[402]:db_execute_prepared())
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Cell Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[225]:set_user_setting(),  /lib/functions.php[165]:db_table_exists(),  /lib/database.php[771]:db_fetch_cell(),  /lib/database.php[386]:db_fetch_cell_prepared(),  /lib/database.php[402]:db_execute_prepared())
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Cell Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[180]:rrdtool_function_graph(),  /lib/rrd.php[1244]:is_graph_allowed(),  /lib/auth.php[448]:get_allowed_graphs(),  /lib/auth.php[1192]:db_fetch_cell(),  /lib/database.php[386]:db_fetch_cell_prepared(),  /lib/database.php[402]:db_execute_prepared())
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Cell Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP SQL Backtrace:   (/graph_realtime.php[180]:rrdtool_function_graph(),  /lib/rrd.php[1244]:is_graph_allowed(),  /lib/auth.php[448]:get_allowed_graphs(),  /lib/auth.php[1188]:db_fetch_assoc(),  /lib/database.php[476]:db_fetch_assoc_prepared(),  /lib/database.php[490]:db_execute_prepared())
2020/07/21 15:46:36 - CMDPHP ERROR: A DB Row Failed!, Error: MySQL server has gone away
2020/07/21 15:46:36 - CMDPHP PHP ERROR NOTICE Backtrace:   (/graph_realtime.php[180]:rrdtool_function_graph(),  /lib/rrd.php[1244]:is_graph_allowed(),  /lib/auth.php[448]:get_allowed_graphs(),  /lib/auth.php[1165]:CactiErrorHandler())
2020/07/21 15:46:36 - ERROR PHP NOTICE: Trying to access array  offset on value of type bool in file:  /var/www/localhost/htdocs/cacti/lib/auth.php  on line: 1165
2020/07/21 15:46:36 - CMDPHP PHP ERROR NOTICE Backtrace:   (/graph_realtime.php[180]:rrdtool_function_graph(),  /lib/rrd.php[1244]:is_graph_allowed(),  /lib/auth.php[448]:get_allowed_graphs(),  /lib/auth.php[1164]:CactiErrorHandler())
2020/07/21 15:46:36 - ERROR PHP NOTICE: Trying to access array  offset on value of type bool in file:  /var/www/localhost/htdocs/cacti/lib/auth.php  on line: 1164
2020/07/21 15:46:36 - CMDPHP PHP ERROR NOTICE Backtrace:   (/graph_realtime.php[180]:rrdtool_function_graph(),  /lib/rrd.php[1244]:is_graph_allowed(),  /lib/auth.php[448]:get_allowed_graphs(),  /lib/auth.php[1164]:CactiErrorHandler())
2020/07/21 15:46:36 - ERROR PHP NOTICE: Trying to access array  offset on value of type bool in file:  /var/www/localhost/htdocs/cacti/lib/auth.php  on line: 1164

@netniV
Copy link
Member

netniV commented Jul 21, 2020

At first glance, that would appear to be a mysql issue as you are losing connectivity.

@majed17
Copy link
Author

majed17 commented Jul 22, 2020

well that is for 1.2.13 ..

@bmfmancini
Copy link
Member

check to make sure you have enough connections as well
check the stderr for a messge that says too many connections or any mysql related issue

@majed17
Copy link
Author

majed17 commented Jul 23, 2020

enable mariadb err and i have this:

2020-07-23 16:50:26 10195 [Warning] Aborted connection 10195 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:52:32 10310 [Warning] Aborted connection 10310 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:52:51 10602 [Warning] Aborted connection 10602 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:54:13 10702 [Warning] Aborted connection 10702 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:56:27 10958 [Warning] Aborted connection 10958 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:57:14 11380 [Warning] Aborted connection 11380 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)
2020-07-23 16:58:04 11261 [Warning] Aborted connection 11261 to db: 'cacti' user: 'cactiuser' host: 'localhost' (Got timeout reading communication packets)

@TheWitness
Copy link
Member

The first error is legit though.

@TheWitness TheWitness changed the title real time graph gibirish Graphs New interface not validating page variables Sep 7, 2020
TheWitness added a commit that referenced this issue Sep 7, 2020
Graphs New interface not validating page variables
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Sep 7, 2020
@TheWitness TheWitness added this to the 1.2.15 milestone Sep 7, 2020
@TheWitness
Copy link
Member

Okay, those validation errors should be gone now.

@netniV netniV changed the title Graphs New interface not validating page variables Page validation errors may occur when opening real time graphs Nov 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

4 participants