# Fax not working

**URL:** https://forums.vitalpbx.org/t/fax-not-working/2336
**Category:** VitalPBX 4
**Created:** [February 10, 2023, 3:37pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336 "2023-02-10T15:37:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 3:37pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/1 "2023-02-10T15:37:20Z")

</div>

I have a new install 4.0.1-1 all phones and trunks work good, only the fax does not receive or send, I have Virtual Fax license installed and 5 other license’s. everything is configured the same as I had on the V3 server. when calling in I hear fax tone but it fails, when sending out a pdf I get error.

An exception has occurred  
Exception: mkdir(): Permission denied at file /usr/share/vitalpbx/www/includes/virtual\_faxes.php on line 0

Error Trace

# File Function

1 /usr/share/vitalpbx/www/index.php:0 app\Core-\>run(…args);  
2 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core-\>\_loadModule(…args);  
3 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core-\>loadModuleAction(…args);  
4 /usr/share/vitalpbx/www/includes/app/Core.php:0 modules\fax\_sending\fax\_sending-\>put(…args);  
5 /usr/share/vitalpbx/www/modules/fax\_sending/fax\_sending.php:0 vitalpbx\virtual\_faxes-\>uploadOutboundFax(…args);  
6 /usr/share/vitalpbx/www/includes/virtual\_faxes.php:0 vitalpbx\virtual\_faxes-\>buildFaxPath(…args);  
7 /usr/share/vitalpbx/www/includes/virtual\_faxes.php:0 mkdir(…args);  
8 — {closure}(…args);

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 5:43pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/2 "2023-02-10T17:43:49Z")

</div>

Could this be the issue, chown

-rw-r–r-- 1 www-data www-data 62572 Jan 28 12:00 utils.php  
-rw-r–r-- 1 www-data www-data 3010 Dec 21 10:48 uuid.php  
-rw-r–r-- 1 www-data www-data 40546 Dec 21 10:48 Validate.php  
-rw-r–r-- 1 root root 8526 Dec 21 10:48 virtual\_faxes.php  
-rw-r–r-- 1 www-data www-data 3035 Nov 10 2021 vmgroup\_member.php  
-rw-r–r-- 1 www-data www-data 6289 Nov 10 2021 vmgroup.php  
root@ptpbx4:/usr/share/vitalpbx/www/includes#

---

<div class="post-metadata">

### Author: ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)
#### Post date: [February 10, 2023, 5:49pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/3 "2023-02-10T17:49:03Z")

</div>

> [@I have permission errors, how can I correct them?](https://forums.vitalpbx.org/t/i-have-permission-errors-how-can-i-correct-them/64):
>
> In some occasions the permissions of the folders are altered by some or another circumstance, this causes that VitalPBX does not work properly if a permission is not configured correctly, to solve this problem we recommend using the following command only: vitalpbx --check-integrity

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 10, 2023, 6:01pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/4 "2023-02-10T18:01:49Z")

</div>

Did you restore from a backup from VitalPBX3 on your VitalPBX 4? or this is a clean installation with no restored data?

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 6:13pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/5 "2023-02-10T18:13:21Z")

</div>

clean install, hand configured no backup restore.

I changed ownership of folder, then I also ran vitalpbx --check-integrity which gave this result, rebooted system but fax does not still work.

Issues Found:  
Folder “/var/lib/vitalpbx/static/backup” didn’t exist (fixed up)  
The folder or file “/var/lib/vitalpbx/static/backup” had the permissions 1325 instead of 2775 (fixed up)  
The folder or file “/var/lib/vitalpbx/static/backup” had the owner “root” instead of “www-data” (fixed up)  
The folder or file “/var/lib/vitalpbx/static/backup” had the group “root” instead of “www-data” (fixed up)  
Folder “/var/lib/vitalpbx/static/fax” didn’t exist (fixed up)  
The folder or file “/var/lib/vitalpbx/static/fax” had the permissions 1325 instead of 2775 (fixed up)  
The folder or file “/var/lib/vitalpbx/static/fax” had the owner “root” instead of “www-data” (fixed up)  
The folder or file “/var/lib/vitalpbx/static/fax” had the group “root” instead of “www-data” (fixed up)  
The folder or file “/var/lib/vitalpbx/static/pictures” had the permissions 0775 instead of 2775 (fixed up)  
Folder “/var/lib/vitalpbx/static/recordings” didn’t exist (fixed up)  
The folder or file “/var/lib/vitalpbx/static/recordings” had the permissions 1325 instead of 2775 (fixed up)  
The folder or file “/var/lib/vitalpbx/static/recordings” had the owner “root” instead of “www-data” (fixed up)  
The folder or file “/var/lib/vitalpbx/static/recordings” had the group “root” instead of “www-data” (fixed up)

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 10, 2023, 6:14pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/6 "2023-02-10T18:14:45Z")

</div>

> [@GaryC](#):
>
> Exception: mkdir(): Permission denied at file /usr/share/vitalpbx/www/includes/virtual\_faxes.php on line 0

Execute the command below to fix the issue:

```bash
chown www-data:www-data /var/lib/vitalpbx/fax

```

---

<div class="post-metadata">

### Author: ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)
#### Post date: [February 10, 2023, 6:30pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/7 "2023-02-10T18:30:36Z")

</div>

Will this be fixed in the next version? Thanks

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 6:45pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/8 "2023-02-10T18:45:54Z")

</div>

I changed chown as above but still not working, also now when trying to send out fax the caller ID name is missing so sip trunk provider blocks call, caller ID name was Ok before changes.

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 10, 2023, 7:01pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/9 "2023-02-10T19:01:06Z")

</div>

Are you still getting the permission error or this is a different error?

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 7:09pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/10 "2023-02-10T19:09:45Z")

</div>

No error when sending, i think it fails because no caller id name, inbound fails as well.

Inside /var/lib/vitalpbx/fax I have this ?

root@ptpbx4:/var/lib/vitalpbx/fax# ls -l  
total 12  
drwxrwsr-x+ 2 asterisk www-data 4096 Jan 28 12:00 recvd  
drwxrwsr-x+ 2 asterisk www-data 4096 Feb 10 13:42 sent  
drwxrwxr-x+ 2 www-data www-data 4096 Feb 10 13:42 tmp  
root@ptpbx4:/var/lib/vitalpbx/fax#

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 10, 2023, 7:16pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/11 "2023-02-10T19:16:48Z")

</div>

You should share a call log using pastebin!

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 8:03pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/12 "2023-02-10T20:03:21Z")

</div>

I sent you a PM as logs have numbers for customers

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 10, 2023, 9:57pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/13 "2023-02-10T21:57:47Z")

</div>

I got the email. We will check it!

Question, are you using tenant trunks?

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 10:12pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/14 "2023-02-10T22:12:26Z")

</div>

No tenants on system

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 10, 2023, 10:53pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/15 "2023-02-10T22:53:49Z")

</div>

It’s like it can’t create the TIFF file in recvd, are these permissions correct. I don’t know what the “s” is

root@ptpbx4:/var/lib/vitalpbx/fax# ls -l  
total 12  
drwxrwsr-x+ 2 asterisk www-data 4096 Jan 28 12:00 recvd  
drwxrwsr-x+ 2 asterisk www-data 4096 Feb 10 13:42 sent  
drwxrwxr-x+ 2 www-data www-data 4096 Feb 10 13:42 tmp  
root@ptpbx4:/var/lib/vitalpbx/fax#

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 11, 2023, 2:06pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/16 "2023-02-11T14:06:38Z")

</div>

If this is an issue unique to my build I can create a new server and move licenses to it.

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [February 11, 2023, 5:10pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/17 "2023-02-11T17:10:27Z")

</div>

I have moved the fax license and routing back to Vitalpbx V3 until there is a fix for this issue, this issue could be a mistake on my part I’m just unsure but need this working for my customers.

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [February 11, 2023, 9:51pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/18 "2023-02-11T21:51:25Z")

</div>

We did some testing and realized that this is an issue of the Virtual Faxes add-on. We will fix it in the next update!

---

<div class="post-metadata">

### Author: ![mo10](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mo10](https://forums.vitalpbx.org/u/mo10)
#### Post date: [March 15, 2023, 11:26am UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/19 "2023-03-15T11:26:12Z")

</div>

This seems to be fixed. Thanks.

---

<div class="post-metadata">

### Author: ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)
#### Post date: [October 10, 2023, 6:13pm UTC](https://forums.vitalpbx.org/t/fax-not-working/2336/20 "2023-10-10T18:13:39Z")

</div>

This morning the fax stopped working, no incomming or outgoing. Is there a way to check if the service is running, I tried systemctl status fax.service but thats not correct.

| Distro | Debian GNU/Linux 11 (bullseye) |
| --- | --- |
| Kernel | 5.10.0-26-amd64 |
| PBX Engine | 18.19.0 |
| @xxxxxxxxx.com | 4.0.5-1 |
| PHP Version | 8.1.11 |

[Next page](https://forums.vitalpbx.org/t/fax-not-working/2336.md?page=2)
