Converting .doc to .pdf with swriter/soffice fails

Issues with installing under all Linux Distributions

Converting .doc to .pdf with swriter/soffice fails

Postby jackal242 » Thu Mar 26, 2015 5:41 pm

I'm trying to convert .doc's to .pdf's from a remote system (headless). The system is CentOS 6.3 and I've installed openoffice 4.1.1. It's using open jdk for java.

When I run the soffice or swriter commands to convert the .doc to a .pdf the command just hangs. I have to control-C to exit it.

It looks like (via strace) that it's trying to send me a "Welcome" screen. Again this is a remote headless system. Why would it give me a headless system? I've already run the command to disable the welcome ("sudo ./program/unopkg add --shared /tmp/DisableFirstStartWzd_ooo33.oxt ").

How do I make this work WITHOUT a welcome screen/registration? I just want to use swriter to convert .doc's to .pdf's.....


Here's the strace data:

$ strace -f /opt/openoffice4/program/soffice -convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/test.doc > /tmp/keep 2>&1


Code: Select all   Expand viewCollapse view
execve("/opt/openoffice4/program/soffice", ["/opt/openoffice4/program/soffice", "-convert-to", "pdf:writer_pdf_Export", "--outdir", "/tmp", "/tmp/test.doc"], [/* 24 vars */]) = 0
brk(0)                                  = 0x1a26000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9460e78000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)

[ cut --- see attachment for full strace ]

[pid  6691] read(13, "\0\0\f\34\0\0\1\21\0\0\0\30\0\0\0\30Welcome\0\0\0\f\35\0\0\1\21"..., 3050) = 3050
[pid  6691] open("/opt/openoffice4/program/../program/liblng.so", O_RDONLY) = 16
[pid  6691] read(16, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3406\4\0\0\0\0\0"..., 832) = 832
[pid  6691] fstat(16, {st_mode=S_IFREG|0444, st_size=749352, ...}) = 0
[pid  6691] close(16)                   = 0
[pid  6691] lseek(13, 4534, SEEK_SET)   = 4534
[pid  6691] lseek(13, 0, SEEK_CUR)      = 4534
[pid  6691] lseek(13, 4534, SEEK_SET)   = 4534
[pid  6691] lseek(13, 0, SEEK_CUR)      = 4534
[pid  6691] read(13, "\0\0\v\273\0\0\1t\0\0\1R\0\0\0H\0\0@8\0\0\0\0\200\0\0@DESK"..., 1024) = 1024
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] mmap(NULL, 720896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f812d8de000
[pid  6691] munmap(0x7f812ebbc000, 1441792) = 0
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] gettimeofday({1427383803, 481633}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 481692}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 481754}, NULL) = 0
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] gettimeofday({1427383803, 481925}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 481987}, NULL) = 0
[pid  6691] write(4, "\0", 1)           = 1
[pid  6691] gettimeofday({1427383803, 482107}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482168}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482228}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482289}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482441}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482503}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 482561}, NULL) = 0
[pid  6691] poll([{fd=3, events=POLLIN}], 1, 29) = 1 ([{fd=3, revents=POLLIN}])
[pid  6691] read(3, "\0\0\0\0", 4)      = 4
[pid  6691] read(3, "\0\0\0\0", 4)      = 4
[pid  6691] read(3, "\0\0\0\0", 4)      = 4
[pid  6691] read(3, "\0\0\0\0", 4)      = 4
[pid  6691] read(3, "\0\0\0\0", 4)      = 4
[pid  6691] read(3, "\0\0", 4)          = 2
[pid  6691] read(3, 0x7fffa33cbaa8, 4)  = -1 EAGAIN (Resource temporarily unavailable)
[pid  6691] gettimeofday({1427383803, 483118}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 483176}, NULL) = 0
[pid  6691] poll([{fd=3, events=POLLIN}], 1, 28) = 0 (Timeout)
[pid  6691] gettimeofday({1427383803, 515060}, NULL) = 0
[pid  6691] gettimeofday({1427383803, 515153}, NULL) = 0
[pid  6691] open("/opt/openoffice4/share/fonts/truetype/DejaVuSans-Bold.ttf", O_RDONLY) = 16
[pid  6691] fstat(16, {st_mode=S_IFREG|0444, st_size=672300, ...}) = 0
[pid  6691] mmap(NULL, 672300, PROT_READ, MAP_SHARED, 16, 0) = 0x7f812ec77000
[pid  6691] close(16)                   = 0
[pid  6691] mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f812ec67000
[pid  6691] gettimeofday({1427383803, 524140}, NULL) = 0
[pid  6691] poll([{fd=3, events=POLLIN}], 1, -1 <unfinished ...>
[pid  6693] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid  6693] futex(0x1fb4640, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6693] mkdir("/home/userABC/.openoffice/4/user", 0777) = -1 EEXIST (File exists)
[pid  6693] gettimeofday({1427383804, 305273}, NULL) = 0
[pid  6693] umask(077)                  = 02
[pid  6693] open("/home/userABC/.openoffice/4/user/X0ezyx", O_RDWR|O_CREAT|O_EXCL, 0666) = 16
[pid  6693] fstat(16, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
[pid  6693] fcntl(16, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
[pid  6693] umask(02)                   = 077
[pid  6693] pread(16, "", 4096, 0)      = 0
[pid  6693] pwrite(16, "<?xml version=\"1.0\" encoding=\"UT"..., 893, 0) = 893
[pid  6693] close(16)                   = 0
[pid  6693] rename("/home/userABC/.openoffice/4/user/X0ezyx", "/home/userABC/.openoffice/4/user/registrymodifications.xcu") = 0
[pid  6693] madvise(0x7f8134a0a000, 8368128, MADV_DONTNEED) = 0
[pid  6693] _exit(0)                    = ?
Process 6693 detached
[pid  6692] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383813, 115144}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 3, {1427383823, 115144000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383823, 125150}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 5, {1427383833, 125150000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383833, 135142}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 7, {1427383843, 135142000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383843, 145144}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 9, {1427383853, 145144000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383853, 155147}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 11, {1427383863, 155147000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383863, 165141}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 13, {1427383873, 165141000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383873, 175154}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 15, {1427383883, 175154000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383883, 185155}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 17, {1427383893, 185155000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383893, 195164}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 19, {1427383903, 195164000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383903, 205117}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 21, {1427383913, 205117000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383913, 215151}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 23, {1427383923, 215151000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383923, 225143}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 25, {1427383933, 225143000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383933, 235157}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 27, {1427383943, 235157000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383943, 245161}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 29, {1427383953, 245161000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383953, 255160}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 31, {1427383963, 255160000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383963, 265164}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 33, {1427383973, 265164000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383973, 275152}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 35, {1427383983, 275152000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid  6692] gettimeofday({1427383983, 285133}, NULL) = 0
[pid  6692] futex(0x7f814a770020, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  6692] futex(0x7f814a77028c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 37, {1427383993, 285133000}, ffffffff <unfinished ...>
Process 6691 detached
Process 6692 detached
Process 6694 detached
Attachments
strace.txt.gz
strace output
(29.6 KiB) Downloaded 139 times
OpenOffice 4.1.1 on Centos 6.3
jackal242
 
Posts: 1
Joined: Thu Mar 26, 2015 5:31 pm

Re: converting .doc to .pdf with swriter/soffice fails

Postby John_Ha » Thu Mar 26, 2015 5:58 pm

Welcome to the (wrong) forum.

You will be better searching and posting in the Customising and Extension forums available at https://forum.openoffice.org/en/forum/index.php.

Also check the documentation at https://wiki.openoffice.org/wiki/Main_Page
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 7900
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Linux

Who is online

Users browsing this forum: No registered users and 4 guests