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

NethVoice: First Wizard Configuration Fails Due to Race Condition #7191

Closed
Amygos opened this issue Nov 28, 2024 · 3 comments
Closed

NethVoice: First Wizard Configuration Fails Due to Race Condition #7191

Amygos opened this issue Nov 28, 2024 · 3 comments
Labels
nethvoice Bug or features releted to the NethVoice project
Milestone

Comments

@Amygos
Copy link
Member

Amygos commented Nov 28, 2024

After configuring the NethVoice module, the first configuration attempt via the
wizard interface may fail due to a race condition, resulting in the
non-application of settings despite no visible errors in the interface. The
issue persists until the FreePBX container is restarted. This issue affects the
initial configuration of the NethVoice module and may cause delays or
difficulties in setting up the system. The fact that restarting the FreePBX
container resolves the issue suggests a potential problem with the module's
initialization or startup process.

Steps to reproduce

  • Install the NethVoice module
  • Configure the module via NS8 admin interface
  • Configure the PBX via the wizard interface
    • Create a new extension
    • Configure enable to the user the webphone

Expected behavior

The user should be able to log in to the CTI interface and use the webphone

Actual behavior

The user is unable to log in to the CTI interface and use the webphone

See also

Log of the FreePBX container with the following error:

Nov 27 10:10:23 node.example.com freepbx[400123]: [2024-11-27 11:10:23] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
Nov 27 10:10:23 node.example.com freepbx[400123]: [2024-11-27 11:10:23] [freepbx.INFO]: Deprecated way to add Console commands for module pm2, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
Nov 27 10:10:23 node.example.com freepbx[400123]: [2024-11-27 11:10:23] [freepbx.INFO]: [NOTIFICATION]-[core]-[SWAP] - No Swap (Your system has no swap space. This should be fixed as soon as possible. Once fixed issue a reload to remove this message) [] []
Nov 27 10:10:23 node.example.com freepbx[400123]: 
Nov 27 10:10:23 node.example.com freepbx[400123]: In GPG.class.php line 871:
Nov 27 10:10:23 node.example.com freepbx[400123]:                                                                                
Nov 27 10:10:23 node.example.com freepbx[400123]:   Permissions error on /var/lib/asterisk/.gnupg - please run 'fwconsole chown  
Nov 27 10:10:23 node.example.com freepbx[400123]:   ' as root to repair                                                          
Nov 27 10:10:23 node.example.com freepbx[400123]:                                                                                
Nov 27 10:10:23 node.example.com freepbx[400123]: 
Nov 27 10:10:23 node.example.com freepbx[400123]: reload [--json] [--dry-run] [--skip-registry-checks] [--dont-reload-asterisk]
Nov 27 10:10:23 node.example.com freepbx[400123]: 
Nov 27 10:10:23 node.example.com freepbx[400123]: [2024-11-27 11:10:23] [freepbx.INFO]: [NOTIFICATION]-[freepbx]-[RCONFFAIL] - 'fwconsole reload' failed, config not applied (Permissions error on /var/lib/asterisk/.gnupg - please run 'fwconsole chown' as root to repair) [] []

@Amygos Amygos added the nethvoice Bug or features releted to the NethVoice project label Nov 28, 2024
@Amygos Amygos added this to the NethVoice 1.1 milestone Nov 28, 2024
@Amygos Amygos added this to NethVoice Nov 28, 2024
@Amygos Amygos moved this from Todo to In Progress in NethVoice Nov 28, 2024
Stell0 added a commit to nethesis/ns8-nethvoice that referenced this issue Dec 16, 2024
* fix(freepbx_init.sh): fix permissions at startup

- Launch fwconsole chown to let FreePBX change all permissions

* fix(freepbx_init.sh): fix permissions at startup 2

- create freepbx chown configuration file to exclude wizard

NethServer/dev#7191
@Stell0 Stell0 added the testing Packages are available from testing repositories label Dec 16, 2024
@Stell0 Stell0 moved this from In Progress to Testing in NethVoice Dec 16, 2024
@Amygos
Copy link
Member Author

Amygos commented Dec 17, 2024

Testing release nethesis/ns8-nethvoice 1.1.3-testing.2

@Amygos
Copy link
Member Author

Amygos commented Dec 17, 2024

Test Case 1: Initial Configuration of NethVoice Module

  • Objective: To verify that the NethVoice module can be successfully configured via the wizard interface without any issues.
  • Preconditions:
    • Nethserver 8 is installed and running.
    • The testing version of the NethVoice module is installed.
  • Steps:
    1. Access the NS8 admin interface and navigate to the NethVoice module configuration page.
    2. Configure the module via the wizard interface, ensuring all required settings are applied.
    3. Create a new extension and enable the webphone for the user.
    4. Attempt to log in to the CTI interface and use the webphone.
  • Expected Results:
    • The user should be able to log in to the CTI interface and use the webphone without any issues.
    • The configuration settings should be successfully applied, and no errors should be visible in the interface.

@andrea-marchionni andrea-marchionni added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Dec 18, 2024
@nethbot nethbot moved this from Testing to In Progress in NethVoice Dec 18, 2024
@nethbot nethbot moved this from In Progress to Verified in NethVoice Dec 18, 2024
@Amygos
Copy link
Member Author

Amygos commented Jan 16, 2025

Release nethesis/ns8-nethvoice 1.1.3

@Amygos Amygos closed this as completed Jan 16, 2025
@github-project-automation github-project-automation bot moved this from Verified to Done in NethVoice Jan 16, 2025
@Amygos Amygos removed the verified All test cases were verified successfully label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nethvoice Bug or features releted to the NethVoice project
Projects
Archived in project
Development

No branches or pull requests

3 participants