inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.33k stars 281 forks source link

Create / Save swith settings failed after a fresh installation #8144

Closed stgmsa closed 1 month ago

stgmsa commented 5 months ago

Describe the bug After a fresh install of PF v13.2, saving switch settings failed with a 500 response code from backend API

To Reproduce Steps to reproduce the behavior:

  1. prepare a Rocky linux environment
  2. install packetfence using the suggested steps
  3. after the installation is done, go throught the configurator
  4. in mysql configuration during configurator, keep default settings (auth root and pf password)
  5. at last step of configurator, click "start packetfence"
  6. login in to the admin UI and select "configuration" -> "Policy and access control" -> "switches"
  7. create a new switch or click on any existing switch, and save.
  8. hit the 500 error.

Screenshots Here's the errors: It's probably due to a bad mysql password / connection.

image

waiting for quite a long time (to make sure all the required services are ready) after going through configurator won't help.

This error can be avoided if we manaully restart pfperl-api after configurator.

Expected behavior after a fresh installation, all api calls that read / writes database works properly.

Desktop (please complete the following information):

satkunas commented 3 months ago

@stegar123 check if this is needed in 14, or if we can do post-release?

JeGoi commented 1 month ago

Fixed in 14.0