Forum


Replies: 7   Views: 3960
Input file doesn't exist while pdf conversion
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by voripanter  · 29-09-2018 - 16:56

Hi, I am using the debug script and getting this output:


sh: /var/www/html/billing/classes/../lib/OdfConverter/64/OdfConverter: Permission denied
Sep 29, 2018 6:53:06 PM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
Sep 29, 2018 6:53:06 PM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing
INFO: disconnected
Exception in thread "main" java.lang.IllegalArgumentException: inputFile doesn't exist: /tmp/tempOdt_5bafadf22bbcd.odt
        at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:90)
        at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
        at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
        at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154)
        at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:133)

 

Centos7 64BIT

 

Posted by admin  · 29-09-2018 - 18:33

Hello,

The problem is that you are getting permission denied when running OdfConverter:

sh: /var/www/html/billing/classes/../lib/OdfConverter/64/OdfConverter: Permission denied

You need to set the correct rwx access to the file. Anyway, we recommend you to use the conversion plugin based on LibreOffice to get the best output and it doesn't use OdfConverter to do the conversions, (https://www.phpdocx.com/documentation/conversion-plugin/conversion-plugin-installation-and-set-up).

Regards.

Posted by voripanter  · 29-09-2018 - 19:02

Thank you very much.

This problem is solved now. By using php cli  everything is working.

But now I have another problem, I can't create a docx file. Permission Problem.

Opened Via browser, using httpd/Apache.

I also set the owner of /var/www/ to apache (including subdirs)

Warning: ZipArchive::close(): Failure to create temporary file: Permission denied in /var/www/html/billing/classes/DOCXStructure.php on line 210

 

I don't have this problem on my localhost.

Set 0777 rights to my /tmp folder

<?php

require_once '../classes/CreateDocx.php';



$docx = new CreateDocxFromTemplate('../files/EUR_PHP.docx');


$DATE = 'test';
$INVOICE = 'test';
$AMOUNT = 'test';
$LINE1 = 'test';
$LINE2 ='test';
$docx->enableCompatibilityMode();
$variables = array('DATE' => $DATE, 'INVOICE' => $INVOICE, 'AMOUNT' => $AMOUNT, 'LINE1' => $LINE1, 'LINE2' => $LINE2);
$options = array('parseLineBreaks' => true);

$docx->replaceVariableByText($variables, $options);

$docx->createDocx($INVOICE.'.docx');



//$docx->transformDocument($INVOICE.'.docx', $INVOICE.'.pdf');
//header('Content-type:application/pdf');

//header('Content-Disposition:attachment;filename=$INVOICE".pdf"');

//readfile($INVOICE.'.pdf');
//unlink($INVOICE.'.docx');
//header('Location: /billing/index.php');


?>

 

Posted by admin  · 30-09-2018 - 09:41

Hello,

That's a generic error from ZipArchive PHP when the file can't be created. The most common source of this problem is missing write access to the temp folder or an open_basedir restriction:

https://laracasts.com/discuss/channels/servers/ziparchiveclose-failure-to-create-temporary-file-no-such-file-or-directory

We recommend you to check your server config. Maybe it's not using /tmp as default temp folder or you have some open_basedir restriction. Or you are trying to save the DOCX in a not existing folder:

http://php.net/manual/en/ziparchive.close.php

Regards.

Posted by voripanter  · 02-10-2018 - 20:05

After all it was quit simple, that link helped me:

https://stackoverflow.com/questions/28856148/centos-7-apache-php-mkdir-permission-denied

 

Now I am able create the docx. but while transforming I get this error log:

Any ideas?

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2657), pid=8663, tid=0x00007f6aaae7a700
#
# JRE version:  (8.0_181-b13) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#

---------------  T H R E A D  ---------------

Current thread (0x00007f6aa404b000):  JavaThread "Unknown thread" [_thread_in_vm, id=8665, stack(0x00007f6aaad7b000,0x00007f6aaae7b000)]

Stack: [0x00007f6aaad7b000,0x00007f6aaae7b000],  sp=0x00007f6aaae797f0,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xacf34d]
V  [libjvm.so+0x4fdeca]
V  [libjvm.so+0x8c1838]
V  [libjvm.so+0x8bbd4e]
V  [libjvm.so+0xacc0f4]
V  [libjvm.so+0x60c270]
V  [libjvm.so+0x4894d0]
V  [libjvm.so+0x62f86b]
V  [libjvm.so+0xa7b83e]
V  [libjvm.so+0x6a9065]  JNI_CreateJavaVM+0x65
C  [libjli.so+0x2ff7]
C  [libpthread.so.0+0x7e25]  start_thread+0xc5


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )

Other Threads:

=>0x00007f6aa404b000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=8665, stack(0x00007f6aaad7b000,0x00007f6aaae7b000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (0 events):
No events


Dynamic libraries:
00400000-00401000 r-xp 00000000 09:01 27009059                           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java
00600000-00601000 r--p 00000000 09:01 27009059                           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java
00601000-00602000 rw-p 00001000 09:01 27009059                           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java
00afe000-00b1f000 rw-p 00000000 00:00 0                                  [heap]
7f6a94be4000-7f6aa3be4000 ---p 00000000 00:00 0 
7f6aa3be4000-7f6aa3bec000 r-xp 00000000 09:01 27009100                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libzip.so
7f6aa3bec000-7f6aa3deb000 ---p 00008000 09:01 27009100                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libzip.so
7f6aa3deb000-7f6aa3dec000 r--p 00007000 09:01 27009100                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libzip.so
7f6aa3dec000-7f6aa3ded000 rw-p 00008000 09:01 27009100                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libzip.so
7f6aa3ded000-7f6aa3df9000 r-xp 00000000 09:01 27006218                   /usr/lib64/libnss_files-2.17.so
7f6aa3df9000-7f6aa3ff8000 ---p 0000c000 09:01 27006218                   /usr/lib64/libnss_files-2.17.so
7f6aa3ff8000-7f6aa3ff9000 r--p 0000b000 09:01 27006218                   /usr/lib64/libnss_files-2.17.so
7f6aa3ff9000-7f6aa3ffa000 rw-p 0000c000 09:01 27006218                   /usr/lib64/libnss_files-2.17.so
7f6aa3ffa000-7f6aa4000000 rw-p 00000000 00:00 0 
7f6aa4000000-7f6aa406e000 rw-p 00000000 00:00 0 
7f6aa406e000-7f6aa8000000 ---p 00000000 00:00 0 
7f6aa8205000-7f6aa8233000 r-xp 00000000 09:01 27009082                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libjava.so
7f6aa8233000-7f6aa8432000 ---p 0002e000 09:01 27009082                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libjava.so
7f6aa8432000-7f6aa8433000 r--p 0002d000 09:01 27009082                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libjava.so
7f6aa8433000-7f6aa8435000 rw-p 0002e000 09:01 27009082                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libjava.so
7f6aa8435000-7f6aa8442000 r-xp 00000000 09:01 27009099                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libverify.so
7f6aa8442000-7f6aa8641000 ---p 0000d000 09:01 27009099                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libverify.so
7f6aa8641000-7f6aa8643000 r--p 0000c000 09:01 27009099                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libverify.so
7f6aa8643000-7f6aa8644000 rw-p 0000e000 09:01 27009099                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/libverify.so
7f6aa8644000-7f6aa864b000 r-xp 00000000 09:01 27006258                   /usr/lib64/librt-2.17.so
7f6aa864b000-7f6aa884a000 ---p 00007000 09:01 27006258                   /usr/lib64/librt-2.17.so
7f6aa884a000-7f6aa884b000 r--p 00006000 09:01 27006258                   /usr/lib64/librt-2.17.so
7f6aa884b000-7f6aa884c000 rw-p 00007000 09:01 27006258                   /usr/lib64/librt-2.17.so
7f6aa884c000-7f6aa8861000 r-xp 00000000 09:01 27006569                   /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f6aa8861000-7f6aa8a60000 ---p 00015000 09:01 27006569                   /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f6aa8a60000-7f6aa8a61000 r--p 00014000 09:01 27006569                   /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f6aa8a61000-7f6aa8a62000 rw-p 00015000 09:01 27006569                   /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f6aa8a62000-7f6aa8b63000 r-xp 00000000 09:01 27006122                   /usr/lib64/libm-2.17.so
7f6aa8b63000-7f6aa8d62000 ---p 00101000 09:01 27006122                   /usr/lib64/libm-2.17.so
7f6aa8d62000-7f6aa8d63000 r--p 00100000 09:01 27006122                   /usr/lib64/libm-2.17.so
7f6aa8d63000-7f6aa8d64000 rw-p 00101000 09:01 27006122                   /usr/lib64/libm-2.17.so
7f6aa8d64000-7f6aa8e4d000 r-xp 00000000 09:01 27006274                   /usr/lib64/libstdc++.so.6.0.19
7f6aa8e4d000-7f6aa904c000 ---p 000e9000 09:01 27006274                   /usr/lib64/libstdc++.so.6.0.19
7f6aa904c000-7f6aa9054000 r--p 000e8000 09:01 27006274                   /usr/lib64/libstdc++.so.6.0.19
7f6aa9054000-7f6aa9056000 rw-p 000f0000 09:01 27006274                   /usr/lib64/libstdc++.so.6.0.19
7f6aa9056000-7f6aa906b000 rw-p 00000000 00:00 0 
7f6aa906b000-7f6aa9d50000 r-xp 00000000 09:01 27009103                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/server/libjvm.so
7f6aa9d50000-7f6aa9f4f000 ---p 00ce5000 09:01 27009103                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/server/libjvm.so
7f6aa9f4f000-7f6aa9ffd000 r--p 00ce4000 09:01 27009103                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/server/libjvm.so
7f6aa9ffd000-7f6aaa027000 rw-p 00d92000 09:01 27009103                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/server/libjvm.so
7f6aaa027000-7f6aaa059000 rw-p 00000000 00:00 0 
7f6aaa059000-7f6aaa21c000 r-xp 00000000 09:01 27006091                   /usr/lib64/libc-2.17.so
7f6aaa21c000-7f6aaa41b000 ---p 001c3000 09:01 27006091                   /usr/lib64/libc-2.17.so
7f6aaa41b000-7f6aaa41f000 r--p 001c2000 09:01 27006091                   /usr/lib64/libc-2.17.so
7f6aaa41f000-7f6aaa421000 rw-p 001c6000 09:01 27006091                   /usr/lib64/libc-2.17.so
7f6aaa421000-7f6aaa426000 rw-p 00000000 00:00 0 
7f6aaa426000-7f6aaa428000 r-xp 00000000 09:01 27006113                   /usr/lib64/libdl-2.17.so
7f6aaa428000-7f6aaa628000 ---p 00002000 09:01 27006113                   /usr/lib64/libdl-2.17.so
7f6aaa628000-7f6aaa629000 r--p 00002000 09:01 27006113                   /usr/lib64/libdl-2.17.so
7f6aaa629000-7f6aaa62a000 rw-p 00003000 09:01 27006113                   /usr/lib64/libdl-2.17.so
7f6aaa62a000-7f6aaa638000 r-xp 00000000 09:01 27009069                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/jli/libjli.so
7f6aaa638000-7f6aaa837000 ---p 0000e000 09:01 27009069                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/jli/libjli.so
7f6aaa837000-7f6aaa838000 r--p 0000d000 09:01 27009069                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/jli/libjli.so
7f6aaa838000-7f6aaa839000 rw-p 0000e000 09:01 27009069                   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/amd64/jli/libjli.so
7f6aaa839000-7f6aaa84e000 r-xp 00000000 09:01 27006297                   /usr/lib64/libz.so.1.2.7
7f6aaa84e000-7f6aaaa4d000 ---p 00015000 09:01 27006297                   /usr/lib64/libz.so.1.2.7
7f6aaaa4d000-7f6aaaa4e000 r--p 00014000 09:01 27006297                   /usr/lib64/libz.so.1.2.7
7f6aaaa4e000-7f6aaaa4f000 rw-p 00015000 09:01 27006297                   /usr/lib64/libz.so.1.2.7
7f6aaaa4f000-7f6aaaa66000 r-xp 00000000 09:01 27006222                   /usr/lib64/libpthread-2.17.so
7f6aaaa66000-7f6aaac65000 ---p 00017000 09:01 27006222                   /usr/lib64/libpthread-2.17.so
7f6aaac65000-7f6aaac66000 r--p 00016000 09:01 27006222                   /usr/lib64/libpthread-2.17.so
7f6aaac66000-7f6aaac67000 rw-p 00017000 09:01 27006222                   /usr/lib64/libpthread-2.17.so
7f6aaac67000-7f6aaac6b000 rw-p 00000000 00:00 0 
7f6aaac6b000-7f6aaac8d000 r-xp 00000000 09:01 27006904                   /usr/lib64/ld-2.17.so
7f6aaad78000-7f6aaad7a000 rw-p 00000000 00:00 0 
7f6aaad7a000-7f6aaad7e000 ---p 00000000 00:00 0 
7f6aaad7e000-7f6aaae81000 rw-p 00000000 00:00 0 
7f6aaae81000-7f6aaae89000 rw-s 00000000 09:01 24903688                   /tmp/hsperfdata_apache/8663
7f6aaae89000-7f6aaae8a000 rw-p 00000000 00:00 0 
7f6aaae8a000-7f6aaae8b000 r--p 00000000 00:00 0 
7f6aaae8b000-7f6aaae8c000 rw-p 00000000 00:00 0 
7f6aaae8c000-7f6aaae8d000 r--p 00021000 09:01 27006904                   /usr/lib64/ld-2.17.so
7f6aaae8d000-7f6aaae8e000 rw-p 00022000 09:01 27006904                   /usr/lib64/ld-2.17.so
7f6aaae8e000-7f6aaae8f000 rw-p 00000000 00:00 0 
7fff6cae0000-7fff6cb01000 rw-p 00000000 00:00 0                          [stack]
7fff6cb3d000-7fff6cb3f000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
java_command: JREProperties noaccessibility
java_class_path (initial): /opt/libreoffice6.1/program
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

Signal Handlers:
SIGSEGV: [libjvm.so+0xacfe70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xacfe70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x8bd000], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x8bd000], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x8bd000], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x8bd000], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x8bceb0], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none


---------------  S Y S T E M  ---------------

OS:CentOS Linux release 7.5.1804 (Core) 

uname:Linux 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26 16:32:21 UTC 2018 x86_64
libc:glibc 2.17 NPTL 2.17 
rlimit: STACK 8192k, CORE 0k, NPROC 256272, NOFILE 4096, AS infinity
load average:0.00 0.01 0.05

/proc/meminfo:
MemTotal:       65628940 kB
MemFree:        10422884 kB
MemAvailable:   63775280 kB
Buffers:          167260 kB
Cached:         52581748 kB
SwapCached:         5692 kB
Active:         27421284 kB
Inactive:       25971116 kB
Active(anon):     341568 kB
Inactive(anon):   484296 kB
Active(file):   27079716 kB
Inactive(file): 25486820 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       7999480 kB
SwapFree:        7952632 kB
Dirty:              2288 kB
Writeback:             0 kB
AnonPages:        636608 kB
Mapped:           235064 kB
Shmem:            182152 kB
Slab:            1371380 kB
SReclaimable:    1321280 kB
SUnreclaim:        50100 kB
KernelStack:        4640 kB
PageTables:        28080 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    40813948 kB
Committed_AS:    1756132 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      375952 kB
VmallocChunk:   34358947836 kB
HardwareCorrupted:     0 kB
AnonHugePages:    520192 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      114896 kB
DirectMap2M:     8091648 kB
DirectMap1G:    58720256 kB


CPU:total 8 (initial active 8) 

/proc/cpuinfo:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3898.834
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3787.322
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 1
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3727.935
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 2
cpu cores       : 4
apicid          : 4
initial apicid  : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3722.381
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 3
cpu cores       : 4
apicid          : 6
initial apicid  : 6
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 4
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3798.645
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 5
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3779.205
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 1
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 6
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3798.217
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 2
cpu cores       : 4
apicid          : 5
initial apicid  : 5
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
stepping        : 9
microcode       : 0x84
cpu MHz         : 3792.449
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 3
cpu cores       : 4
apicid          : 7
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
bogomips        : 7008.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:



Memory: 4k page, physical 65628940k(10422884k free), swap 7999480k(7952632k free)

vm_info: OpenJDK 64-Bit Server VM (25.181-b13) for linux-amd64 JRE (1.8.0_181-b13), built on Jul 23 2018 15:56:20 by "mockbuild" with gcc 4.8.5 20150623 (Red Hat 4.8.5-28)

time: Tue Oct  2 20:52:52 2018
elapsed time: 0 seconds (0d 0h 0m 0s)

 

Posted by admin  · 03-10-2018 - 06:07

Hello,

You can see the source of the problem in the first line of the log output:

There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.

Anyway, we recommend using the conversion plugin based on LibreOffice to get the best output and doesn't need Java to work. Please read the installation, set-up and debug guide about the conversion plugin on https://www.phpdocx.com/documentation/conversion-plugin.

Regards.

 

Posted by voripanter  · 03-10-2018 - 06:34

I am using LibreOffice.

Even if I unquote LibreOffice in the config file, I still get this error.

Is phpdocx using another application with java?

Posted by admin  · 03-10-2018 - 06:57

Hello,

No other class of phpdocx uses Java but the conversion plugin based on OpenOffice.. The conversion plugin based on LibreOffice doesn't need Java (using the newest packages of LibreOffice, not an old one).

Please follow the installation page and the debug page to get the source of the problem:

https://www.phpdocx.com/documentation/conversion-plugin/conversion-plugin-installation-and-set-up

https://www.phpdocx.com/documentation/conversion-plugin/debugging-libreoffice

https://www.phpdocx.com/documentation/conversion-plugin/common-problems-and-possible-errors

Regards.