Description
On some NethVoice installations, uploading a CSV from Applications → Phonebook Sources fails because the directory /var/lib/nethvoice/phonebook/uploads inside the freepbx container ends up owned by root:root instead of asterisk:asterisk. Restarting the FreePBX container fixes the issue (permissions get realigned).
Steps to reproduce
-
Install a new NethVoice instance (NS8 module).
-
Open Applications → Phonebook Sources and try to upload a CSV as a source.
-
Upload fails with an error (CSV cannot be loaded).
-
Enter the FreePBX container and check ownership:
ls -la /var/lib/nethvoice/phonebook/
-
Observe that uploads/ is owned by root:root (instead of asterisk:asterisk).
-
Restart the FreePBX container (or chown -R asterisk:asterisk /var/lib/nethvoice/phonebook/uploads) and retry the upload: it succeeds.
Expected behavior
/var/lib/nethvoice/phonebook/uploads is owned by asterisk:asterisk after installation, and CSV upload from Phonebook Sources works without requiring a container restart.
Actual behavior
/var/lib/nethvoice/phonebook/uploads is sometimes owned by root:root after installation; CSV upload fails until the FreePBX container is restarted (or permissions are manually fixed).
Description
On some NethVoice installations, uploading a CSV from Applications → Phonebook Sources fails because the directory
/var/lib/nethvoice/phonebook/uploadsinside the freepbx container ends up owned byroot:rootinstead ofasterisk:asterisk. Restarting the FreePBX container fixes the issue (permissions get realigned).Steps to reproduce
Install a new NethVoice instance (NS8 module).
Open Applications → Phonebook Sources and try to upload a CSV as a source.
Upload fails with an error (CSV cannot be loaded).
Enter the FreePBX container and check ownership:
Observe that
uploads/is owned byroot:root(instead ofasterisk:asterisk).Restart the FreePBX container (or
chown -R asterisk:asterisk /var/lib/nethvoice/phonebook/uploads) and retry the upload: it succeeds.Expected behavior
/var/lib/nethvoice/phonebook/uploadsis owned byasterisk:asteriskafter installation, and CSV upload from Phonebook Sources works without requiring a container restart.Actual behavior
/var/lib/nethvoice/phonebook/uploadsis sometimes owned byroot:rootafter installation; CSV upload fails until the FreePBX container is restarted (or permissions are manually fixed).See also