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

Installation Wizard can become stuck when creating graphs for default device #4269

Closed
BSOD2600 opened this issue May 17, 2021 · 8 comments
Closed
Labels
bug Undesired behaviour installer Installation issue resolved A fixed issue
Milestone

Comments

@BSOD2600
Copy link
Contributor

Describe the bug

On the final screen of the Installation Wizard, it gets stuck in a loop 'creating graphs for default device'. No option to advance past this screen.
Fresh install from release/1.2.17

To Reproduce

Install on Windows without a snmp agent running locally.

Screenshots

In this screenshot, its already been 5 minutes with no progress change.
image

Desktop (please complete the following information)

  • OS: Windows
  • Browser: Edge
  • Version 90.x

Additional context

php error log

[17-May-2021 15:45:45 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function cacti_snmp_session() in C:\Apache24\htdocs\cacti\lib\functions.php:1771 Stack trace: #0 C:\Apache24\htdocs\cacti\lib\functions.php(1594): test_data_source() #1 C:\Apache24\htdocs\cacti\lib\api_automation.php(2351): test_data_sources() #2 C:\Apache24\htdocs\cacti\lib\installer.php(3170): automation_execute_graph_template() #3 C:\Apache24\htdocs\cacti\lib\installer.php(2889): Installer->installServer() #4 C:\Apache24\htdocs\cacti\lib\installer.php(3387): Installer->install() #5 C:\Apache24\htdocs\cacti\install\background.php(54): Installer::beginInstall() #6 {main} thrown in C:\Apache24\htdocs\cacti\lib\functions.php on line 1771

@BSOD2600 BSOD2600 added bug Undesired behaviour unverified Some days we don't have a clue installer Installation issue labels May 17, 2021
@netniV
Copy link
Member

netniV commented May 18, 2021

Pretty sure that cacti_snmp_session lives in lib/snmp.php, so that would suggest it isn't being included from a place where automation is taking place during the installer.

@netniV
Copy link
Member

netniV commented May 18, 2021

The problem here is there is a jump between the installer class, the automation class and the functions class. And the lib/snnmp isn't included by any of them. I am guessing, lib/api_automation should really be the one to include_once('lib/snmp=.php');

Can you test that out and see if it's as simple as that?

@TheWitness
Copy link
Member

That's weird, I mean shouldn't it be included already.

@TheWitness
Copy link
Member

Just checked, it's included where needed.

TheWitness added a commit that referenced this issue May 19, 2021
Installation Wizard - Uncaught Error: Call to undefined function cacti_snmp_session()
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels May 19, 2021
@TheWitness TheWitness added this to the 1.2.18 milestone May 19, 2021
@TheWitness
Copy link
Member

I committed something. Please test.

@netniV
Copy link
Member

netniV commented Jun 9, 2021

Any update @BSOD2600 ?

@ohlala9876
Copy link

ohlala9876 commented Jun 23, 2021

Fresh install from release/1.2.17
The same error. Stuck in 73%

image

@ohlala9876
Copy link

SAME PHP ERROR:

[22-Jun-2021 19:26:17 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function cacti_snmp_session() in C:\Apache24\htdocs\cacti\lib\functions.php:1771
Stack trace:
#0 C:\Apache24\htdocs\cacti\lib\functions.php(1594): test_data_source()
#1 C:\Apache24\htdocs\cacti\lib\api_automation.php(2351): test_data_sources()
#2 C:\Apache24\htdocs\cacti\lib\installer.php(3170): automation_execute_graph_template()
#3 C:\Apache24\htdocs\cacti\lib\installer.php(2889): Installer->installServer()
#4 C:\Apache24\htdocs\cacti\lib\installer.php(3387): Installer->install()
#5 C:\Apache24\htdocs\cacti\install\background.php(54): Installer::beginInstall()
#6 {main}
thrown in C:\Apache24\htdocs\cacti\lib\functions.php on line 1771

@netniV netniV closed this as completed Jun 30, 2021
@netniV netniV changed the title Installation Wizard - Uncaught Error: Call to undefined function cacti_snmp_session() Installation Wizard can become stuck when creating graphs for default device Jul 4, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour installer Installation issue resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

4 participants