-
Notifications
You must be signed in to change notification settings - Fork 55
[7.0 beta 1] What about .doc and .docx files? Don´t work. #291
Comments
Here is the assertion failure mentioned: #245 |
Just tested https://github.com/owncloud/format-filter-server.git and it didn´t work for me. |
@enoch85 What is the current state of |
@VicDeo I have tried both the external and the local (on server) option. And both is failing with current master. What should I do? |
The issue is also reported by another user here: http://www.sweclockers.com/forum/122-server/1212245-officiell-trad-owncloud/index3.html#post14709892 |
Just made a fresh install on Ubuntu 12.04 with the latest Daily Build and also installed latest LibreOffice (4.2) on my server. I run Chrome Version 35.0.1916.153 m and I have also tried IE11. I can see the previews but it fails when I try to open the files, .docx and .doc. When I hoover the files the address is: And when I press the .docx file I get this for ~0.5 sec: Now, I need some help @VicDeo :) Edit:If I open the "link" in a new tab, the file gets downloaded. |
Just found this line in the code: https://github.com/owncloud/documents/blob/master/lib/converter.php#L39 Maybe @PVince81 has an anwser to my questions? |
@VicDeo can you help ? |
Sees LibreOffice is also detected by this call: |
@RealRancor Ok, thanks for the confirmation. I have set 'preview_libreoffice_path' => '/usr/bin/libreoffice/' as described in the documentation but that don´t help. :/ |
@enoch85 'preview_libreoffice_path' => '/usr/bin/libreoffice/' is a path to directory |
@VicDeo That don´t work either :/ |
Have the same. First ajax call is returns nothing Second & third one:
|
@VicDeo Can you help here? |
@enoch85 @brantje please upload https://gist.github.com/VicDeo/871a95fe2003dcbacfb2 as |
So java isn't installed?
Distributor ID: Ubuntu |
@brantje google says your www-data user can't create
|
Done, and ran the file again.
More info, the ajax responses when i open a doc contain now binary code, however the screen stays blank. |
@brantje try edit any *.doc(x) in Documents now. |
It works =D thanks. |
But, exactly as @brantje mentioend I get as white screen when I click on the name in the documents folder. So it works, but not perfect. Thanks anyway. Is there a fix for this problem? |
Indeed thats what i met. I think its something for the wiki |
@enoch85 @brantje can you test #303? if you are unfamiliar with git you need to replace documents/ajax/download.php with |
@VicDeo Yes, now it works in the files app as well. Thank you! But still, how about the setup? Should every user that wants to view .doc. and .docx files have to follow the steps manually as described in this ticket, or will you make a fix for that also? |
This script should be setup in /owncloud/documents/.config and pre-installed when using the documents app for the first time (or something like that) Maybe also check if the /.config folder exists? Just an idea. WEBHOME=$(grep www-data /etc/passwd | cut -d ":" -f6) |
@josh4trunks cool, thanks for your investigation. |
@josh4trunks Do you make a PR then? :) |
if VicDeo doesn't I'll make one tonight when I get home from work |
cc @VicDeo |
@VicDeo Just noticed a strange thing. Did a completely fresh install of oC7RC2 in a fresh Ubuntu Server system just to test the experience for new users. With @josh4trunks fix the conversion works with both .doc and .docx files /but/ there is an error message when you press "apply and test" that says "Conversion fail, check log for details" and the log says: "Warning documents Conversion failed. Raw output:" What is this? Is it due to a missing /.config folder? The conversion works anyway and I´m able to open .docx. and .doc files in WebUI. |
@enoch85 |
Yes, with #311 everything works as expected! 👍 |
Hi, (ref: http://diegolamonica.info/how-to-make-libreoffice-headless-to-work-on-centos-6-3/) |
@josh4trunks @VicDeo Is this something that could be included in the installation of documents? |
@enoch85 |
I think he meant to include it in the installation guides/documentation. |
ahh I see, my bad =P |
Sorry, bad english. :) |
I've just found a problem with the current implementation, specifically this commit which sets the user profile in /tmp: Assuming all users on a server are using /tmp, IF the user dir is created, the libreoffice conversion will only work for the first user. All other users will not have access to the folder and file conversion will fail. I've tried to play with |
@oparoz if this is a real bug please post more detail in a new issue. thanks |
OK, I'll file in a new report. I'm talking about UNIX users. |
@oparoz |
/tmp/user is the Libreoffice configuration folder |
how is a single owncloud instance running as multiple Unix users? |
It's not a single instance, it's multiple instances on one server. That's what's causing the problem. |
Ok, makes sense. a different issue thread is definitely in order, feel free to CC me. |
For people landing here from G**gle, this PR has been created to solve the problem for people running multiple instances on one server: |
@VicDeo Conversion result:string(353) "[Java framework] Error in function createSettingsDocument (elements.cxx). javaldx failed! Warning: failed to read path from javaldx /usr/lib64/libreoffice/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details) " Output file is not created please help me what can i do? |
Had a similar problem. Obviously fixed by removing them. |
@denysvitali I had reported this some weeks ago at owncloud/core#14092 |
Only I'm having the same problem, too. .odt works, but not .docx. |
Just spent like 3 hours trying to get .docx and .doc files to work. I have installed LibreOffice 4.2 on my Ubuntu Server 12.04 and made the correct changes according to the documentation, setting 'preview_libreoffice_path' => '/usr/bin/libreoffice/', in config.php, and I also tried without that line.
Owncloud.log:
Warning documents Starting a session failed. Reason: Empty conversion output 2014-06-28T16:35:44+00:00
Warning documents Empty conversion output 2014-06-28T16:35:44+00:00
Error PHP file_get_contents(/tmp/7896d1c467daf2046f0f1a920c8d45fb//5b376c6997adc7e36becf2ed5f949db2.odt): failed to open stream: No such file or directory at /var/www/owncloud/apps/documents/lib/converter.php#56 2014-06-28T16:35:44+00:00
Warning documents Starting a session failed. Reason: Empty conversion output
I have tried to search for an external solution regarding the file-format-server to see if it had something to do with my install of LibreOffice but I didn´t find any. As you already know it says http://localhost:16080 in the admin settings as an external address, and just to confirm: that address has no function at all, right? And I also wonder if you guys know any server I can use for that purpose? Don´t think I should need it though as I have a fresh install och both LibreOffice 4.2 and oC 7 beta 1, right? Anyway, I can see previews from both .doc and .docx so my LibreOffice install should work.
Another thing I saw when I Googled for soulutions was this: https://github.com/owncloud/format-filter-server What is this? Are you planning on writing your own filter-server? In that case it means that .doc and .docx isn´t supported fully yet, or am I wrong?
When I try to open a docx or doc document in Web UI I usually get two errors, one or the other, plus the log of course.
And I have also seen a bunch of these:
Many questions, I hope I (and other users) can get some answers soon.
Expected behavior
No problems, issues, or glitches with the documents app regarding .doc and .docx
Actual behavior
Can´t open Office documents at all. I can see the previews though.
Server configuration
Ubuntu Server 12.04 (latest updates)
oC 7 Beta 1
MySQL & PHP (latest updates)
Browser
Chrome (latest)
I also tried with IE, same thing there.
The text was updated successfully, but these errors were encountered: