NOT-SOLVED [was Re: Avantfax on Archlinux - Sent Faxes Don't Show in Archive?]

"David C. Rankin" <[email protected]> Fri, 16 Sep 2016 01:47:24 -0500
Newsgroups gmane.comp.telephony.fax.hylafax.user
Organization Rankin Law Firm, PLLC
Message-ID <[email protected]>
On 09/16/2016 12:00 AM, David C. Rankin wrote:
>   Grr.... It was php.ini open_basedir! Adding /var/spool/hylafax to the
> open_basedir path solved the problem. I found the issue attempting a manual
> import of the data, e.g.:
> 

Now I'm stumped, I thought I had it fixed when I was able to manually import the
data into avantfax (which worked although it didn't generate the confirmation
image, but I though that was just do to the manual import)

However, sending another test fax -- nothing is moved to Archive. I'm stuck
having to do the manual import to get the faxes from the doneq to the archive.

I show nothing written to the httpd/error_log, but looking over the manual
import results there is one nagging error I don't recognize:

pnmdepth: fwrite() failed to write an image row to the file. errno=32 (Broken pipe)

for example, importing doneq/q67, here is the full output:

[01:31 valkyrie:/var/spool/hylafax] # bin/notify.php doneq/q67 done :30
notify> Executing: doneq/q67 done :30  (4)
totpages: 2
external: 715xxxx
mailaddr: [email protected]
jobid: 67
receiver:
company:
location:
voice:
regarding:
owner: david
groupid: 67
status:
Found file: docq/doc77.pdf
convert2pdf> starting
convert2pdf> processing tiffs
convert2pdf> copying docq/doc77.pdf to
/srv/http/avantfax/faxes/sent/2016/09/16/715xxxx/013141/67/fax.pdf
convert2pdf> cleaning up...done
convert2pdf> created
/srv/http/avantfax/faxes/sent/2016/09/16/715xxxx/013141/67/fax.pdf in 0ms
/usr/bin/gs -q -dNOPAUSE -sPAPERSIZE=letter -sDEVICE=pnm
-sOutputFile=/srv/http/avantfax/tmp/avantfax-bae21061.tif
/srv/http/avantfax/faxes/sent/2016/09/16/715xxxx/013141/67/fax.pdf -c quit
>/dev/null 2>/dev/null
/usr/bin/pnmscale -width 80 /srv/http/avantfax/tmp/avantfax-bae21061.tif
2>/dev/null | /usr/bin/pnmdepth 31 | /usr/bin/ppmtogif 2>/dev/null >
/srv/http/avantfax/faxes/sent/2016/09/16/715xxxx/013141/67/thumb.gif
pnmdepth: fwrite() failed to write an image row to the file.  errno=32 (Broken pipe)
/usr/bin/pnmscale -width 750 /srv/http/avantfax/tmp/avantfax-bae21061.tif
2>/dev/null | /usr/bin/pnmdepth 31 | /usr/bin/ppmtogif 2>/dev/null >
/srv/http/avantfax/faxes/sent/2016/09/16/715xxxx/013141/67/prev0.gif
pnmdepth: fwrite() failed to write an image row to the file.  errno=32 (Broken pipe)
notify> Notification email sent to [email protected]
Done

  All of the files are created, so I'm not sure what is triggering the broken
pipe error for pnmdepth. (I presume the broken pipe is the cause of nothing the
archive)

[01:31 valkyrie:/var/spool/hylafax] # l
/srv/http/avantfax/faxes/sent/2016/09/16/7159339/013141/67
total 236
drwxrwxrwx 2 root root   4096 Sep 16 01:31 .
drwxrwxrwx 3 root root   4096 Sep 16 01:31 ..
-rw-rw-rw- 1 root root 181449 Sep 16 01:31 fax.pdf
-rw-r--r-- 1 root root  42024 Sep 16 01:31 prev0.gif
-rw-r--r-- 1 root root    942 Sep 16 01:31 thumb.gif

  The fax files are created in /srv/http/avantfax/tmp, e.g.

[01:31 valkyrie:/var/spool/hylafax] # l /srv/http/avantfax/tmp
drwxrwx--- 164 http uucp     4096 Sep 16 01:31 .
drwxr-xr-x  11 http http     4096 Sep 14 01:10 ..
<snip>
-rw-rw-rw-   1 http http   181449 Sep 16 00:44 d70cc6768testfax_20160914.pdf
-rw-rw-rw-   1 http http   181449 Sep 16 01:28 46a17f947testfax_20160914.pdf

  Sorry for the early report of success -- but we did solve one issue. Any ideas
on the current state of things?


-- 
David C. Rankin, J.D.,P.E.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe [email protected] < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail [email protected].*