Conversion failed

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
ownCloud 7.x will be end of life soon. See maintenance and release schedule for more details.

Time to upgrade!

Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting
fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Conversion failed

Postby fraksken » Thu Aug 07, 2014 12:11 pm

Hello,

I have made a fresh install of Centos 7 with owncloud 7, apache 2.4, php 5.4, mysql 5.5.37-MariaDB.
During the installation I have installed all the prerequisites owncloud prescribes.
I have made the following install trail after installing the basic security:
install for centos7 && owncloud

yum install httpd mariadb mariadb-server php php-devel php-pear php-ctype mod_ssl php-gd php-json php-iconv php-libxml php-mbstring php-zip php-zlib php-mysql php-mcrypt php-curl php-fileinfo php-intl php-openssl php-exif php-gmp php-xcache gcc ImageMagick ImageMagick-devel ImageMagic-perl libreoffice bzip2
yum groupinstall "Development tools"
yum install yum-protectbase

rpm -Uvh http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
yum install ffmpeg-devel php-devel re2c php-xml ffmpeg

pecl install imagick
vim /etc/php.d/imagick.ini
extension=imagick.so

mkdir /tmp/own
cd /tmp/own
wget https://download.owncloud.org/community ... .1.tar.bz2
tar -xjf own*
mkdir /var/www/html/data
cp -fr /tmp/own/owncloud/* /var/www/html/data
chown -R apache:apache /var/www/*
vim /etc/httpd/conf.d/owncloud.conf
<Directory /var/www/html/data>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

systemctl start httpd.service
systemctl start mariadb.service

mysql_secure_installation
mysql -uroot -p

CREATE USER 'cloudown'@'localhost' IDENTIFIED BY '-----------';
CREATE DATABASE owncloud;
GRANT ALL ON owncloud.* TO 'cloudown'@'localhost';

cd /etc/pki/tls/certs/
openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
challenge pass: --------------
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
cp ca.key /etc/pki/tls/private/ca.key
vim /etc/httpd/conf.d/ssl.conf
=> change cert names

After this I run the owncloud 'install' (adding the database and admin user). This works fine.
The whole system seems to be up and running.
However, the last step, when I attempt to run the file conversion, I get this:

Code: Select all

Conversion failed. Raw output:/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)

I have seen this with some other people, but no clear sollution.
Some people say I need to provide a read/writable .config dir in the home folder.
So I went to create a .config folder for apache: mkdir /usr/share/httpd/.config
I also set the permissions chown -R apache:apache /usr/share/httpd/.config
but this does not seem to have a positive result.

What can I do to make this work?

Thanks

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Conversion failed

Postby RandolphCarter » Thu Aug 07, 2014 1:35 pm

the last step, when I attempt to run the file conversion

Not sure I understand, what "file conversion" step are you talking about? What exactly are you doing to initiating that, and where do you see that shown output?
I have seen this with some other people, but no clear sollution.

Could you link to those other people's posts? I can't remember having seen this error before (though admittedly that doesn't have to mean much ;))

fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby fraksken » Thu Aug 07, 2014 1:51 pm

Hey,

Thanks for your reply.
After initially installing Owncloud 7.0.1 I go to the "admin" page and in the "documents" section try the apply and test:
Documents
MS Word support (requires openOffice/libreOffice)
Local
openOffice/libreOffice is installed on this server. Path to binary is provided via preview_libreoffice_path in config.php
External
openOffice/libreOffice is installed on external server running a format filter server

Apply and test


The other people's posts =>
https://github.com/owncloud/documents/issues/291
viewtopic.php?f=29&t=22529&p=65038&hilit=display+environment#p65038

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Conversion failed

Postby RandolphCarter » Thu Aug 07, 2014 2:04 pm

Hm your problem seems to be that the libreoffice somehow wants to start a GUI where it shouldn't.
The linked bug report doesn't show this error message and therefore seems to be caused by different things.
The linked forum thread shows the same message, but there apparently was no follow-up issue on the issue tracker as advised there by Rancor, so I'd recommend to go ahead and create a new issue here: https://github.com/owncloud/documentation/issues

fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby fraksken » Thu Aug 07, 2014 2:07 pm

in the configfile:
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'preview_office_cl_parameters' => '',


And libreoffice is here:

Code: Select all

whereis libreoffice
libreoffice: /usr/bin/libreoffice /usr/lib64/libreoffice

fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby fraksken » Thu Aug 07, 2014 2:09 pm

Really? Nobody has this issue?
Created: Conversion failed #469

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Conversion failed

Postby RandolphCarter » Thu Aug 07, 2014 2:26 pm

Really? Nobody has this issue?

You'd need to have some patience. 2 hours is very little time in an asynchronous medium as this forum...

Created: Conversion failed #469

I took the liberty of making that a link...

fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby fraksken » Thu Aug 07, 2014 2:31 pm

you are very kind :)

I was not saying to the world in general "nobody has this issue" but I was rather replying to you. As you, I have searched the forum and internet for a solution to this issue. It appears nobody seems to be having any problems with it. Am I the first to try to install this on a centos 7 install, or am I the only one that is too inexperienced to solve this issue (perhaps the latter).

I don't mind these kind of issues. It causes me to think and learn new things :)

By the way, installing xhost does not work, setting DISPLAY enviroment to localhost does not help. Setting the DISPLAY environment to another server that runs ULTEO (running open office) does not help either.

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Conversion failed

Postby RandolphCarter » Thu Aug 07, 2014 2:35 pm

Am I the first to try to install this on a centos 7 install

Might be. There's so many different possible setups that it's quite unlikely that somebody with your setup is going to try this within 2 hours of you ;)

or am I the only one that is too inexperienced to solve this issue (perhaps the latter).

not sure about inexperienced ;), but for example I didn't have this issue at all (although I'm also on Ubuntu, different environment I guess...

By the way, installing xhost does not work, setting DISPLAY enviroment to localhost does not help. Setting the DISPLAY environment to another server that runs ULTEO (running open office) does not help either.

No no and it should not be required. Somehow libreoffice tries to start a GUI although it should run headless (i.e. without GUI). So either there's some command line arguments missing / wrong which would trigger that (i.e. problem on ownCloud side), or your libreoffice is not built to properly to support that (i.e. problem on libreoffice/CentOS side).

fraksken
Beginner
Posts: 21
Joined: Fri Aug 30, 2013 9:03 pm
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4

Re: Conversion failed

Postby fraksken » Thu Aug 07, 2014 3:17 pm

I applied the --headless parameter in the preview_office_cl_parameters now. But it still gives the same error:
Conversion failed. Raw output:/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)


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 7.x”

Who is online

Users browsing this forum: No registered users and 1 guest