Koozali.org: home of the SME Server

[solved] pbm hylafax : pdf attachment corrupted

Offline globalsi

  • ****
  • 167
  • +0/-0
[solved] pbm hylafax : pdf attachment corrupted
« on: February 14, 2013, 05:08:22 PM »
Hi,

I had a SME7.5.1 with hylafax. All was fine.
I upgrade to SME7.6. I'v got now hylafax-4.4.4-1.el4.sme

I continue to receive fax on the webmail but all attachments (pdf) are corrupted and identicals.
Code: [Select]
more fax00001957.pdf
Quote
%PDF-1.2
%�쏢
3 0 obj
<< /Type /Pages /Kids [
] /Count 0
>>
endobj
1 0 obj
<</Type /Catalog /Pages 3 0 R
>>
endobj
2 0 obj
<</Producer(GNU Ghostscript 7.07)>>endobj
xref
0 4
0000000000 65535 f
0000000068 00000 n
0000000116 00000 n
0000000015 00000 n
trailer
<< /Size 4 /Root 1 0 R /Info 2 0 R
>>
startxref
166
%%EOF

The /etc/hylafax/log/c000001957 seem ok
Code: [Select]
ls -lsa /var/spool/hylafax/recvq/fax000001777.tif
Quote
4 -rw-------  1 uucp uucp 1774 feb 14 11:53 /var/spool/hylafax/recvq/fax000001777.tif
The tif is ok (the visualisation is ok).

If try to convert to pdf I'v got
Code: [Select]
[root@smeserver files]# cd /var/spool/hylafax/
[root@smeserver hylafax]# /var/spool/hylafax/bin/tiff2pdf /home/e-smith/files/ibays/Primary/files/fax000001777.tif
Quote
Error: /undefinedfilename in (tmp/foo7874.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1067/1123(ro)(G)--   --dict:0/20(G)--   --dict:88/200(L)--
Current allocation mode is local
Last OS error: 2
GNU Ghostscript 7.07: Unrecoverable error, exit code 1

and
Code: [Select]
[root@smeserver hylafax]# more tmp/foo.pdf
Quote
%PDF-1.2
%�쏢
3 0 obj
<< /Type /Pages /Kids [
] /Count 0
>>
endobj
1 0 obj
<</Type /Catalog /Pages 3 0 R
>>
endobj
2 0 obj
<</Producer(GNU Ghostscript 7.07)>>endobj
xref
0 4
0000000000 65535 f
0000000068 00000 n
0000000116 00000 n
0000000015 00000 n
trailer
<< /Size 4 /Root 1 0 R /Info 2 0 R
>>
startxref
166
%%EOF

Any idea about what is wrong ?
« Last Edit: February 14, 2013, 06:49:39 PM by globalsi »

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: pbm hylafax : pdf attachment corrupted
« Reply #1 on: February 14, 2013, 05:27:28 PM »
I suggest you to search the foruums using "ghostscript" as search key

Offline globalsi

  • ****
  • 167
  • +0/-0
Re: pbm hylafax : pdf attachment corrupted
« Reply #2 on: February 14, 2013, 06:10:23 PM »
thanks...
I've found this .... http://wiki.contribs.org/KnownProblems#Ghostscript_ps2pdf_and_Hylafax

but :(
Code: [Select]
[root@smeserver ~]# wget ftp://updates.redhat.com/enterprise/4ES/en/os/SRPMS/ghostscript-7.07-33.11.el4.src.rpm
Code: [Select]
[root@smeserver ~]# rpm -Uvh --oldpackage ghostscript-7.07-33.11.el4.src.rpm
Quote
   1:ghostscript            attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
attention: utilisateur mockbuild inexistant - utilisation de root
attention: groupe mockbuild inexistant - utilisation de root
########################################### [100%]
Code: [Select]
[root@smeserver ~]# rpm -qa | grep ghostscript
Quote
ghostscript-fonts-5.50-13
ghostscript-7.07-33.13.el4

why ghostscript stay in 7.07-33.13 ?

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: pbm hylafax : pdf attachment corrupted
« Reply #3 on: February 14, 2013, 06:25:47 PM »
first of all you have to remove the newer package with

Code: [Select]
rpm -e --nodeps ghostscript

then install the one you downloaded on your server with

Code: [Select]
yum localinstall path_to_your_rpm

Offline globalsi

  • ****
  • 167
  • +0/-0
Re: pbm hylafax : pdf attachment corrupted
« Reply #4 on: February 14, 2013, 06:30:41 PM »
arf sorry...
Code: [Select]
[root@smeserver ~]# wget ftp://updates.redhat.com/enterprise/4ES/en/os/SRPMS/ghostscript-7.07-33.11.el4.src.rpm
rpm -Uvh --oldpackage ghostscript-7.07-33.11.el4.src.rpm
is for sources...

i've done

Code: [Select]
[root@smeserver ~]# wget http://zid-lux1.uibk.ac.at/pub/dist/centos/4.8/os/i386/CentOS/RPMS/ghostscript-7.07-33.11.el4.i386.rpm
rpm -Uvh --oldpackage ghostscript-7.07-33.11.el4.rpm

now it's ok !  :-o