Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
File uploads and soffice conversions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 45 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
K  
View profile  
 More options Dec 19 2009, 6:05 am
From: K <es.kart...@gmail.com>
Date: Sat, 19 Dec 2009 03:05:06 -0800 (PST)
Local: Sat, Dec 19 2009 6:05 am
Subject: File uploads and soffice conversions
Hi,
Even after configuring "etherpad.soffice", the instance is throwing an
error while trying to convert

<strong>. Etherpad can only import <strong>txt</strong>, <strong>html</
strong>, <strong>rtf</strong>, <strong>doc</strong>, and <strong>docx</
strong> files.

and file uploads, are throwing "Import failed: Please select a file to
import." error

Any tips of getting past this ?

Thanks
K


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leho Kraav  
View profile  
 More options Dec 19 2009, 7:51 am
From: Leho Kraav <l...@kraav.com>
Date: Sat, 19 Dec 2009 04:51:28 -0800 (PST)
Local: Sat, Dec 19 2009 7:51 am
Subject: Re: File uploads and soffice conversions
yep, same here, havent gotten it to work yet. how is your soffice
configured? http://etherpad.com/ep/pne-manual/configuration-guide says
you need to run a X server.

On 19 dets, 13:05, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
K  
View profile  
 More options Dec 19 2009, 9:40 am
From: K <es.kart...@gmail.com>
Date: Sat, 19 Dec 2009 06:40:03 -0800 (PST)
Local: Sat, Dec 19 2009 9:40 am
Subject: Re: File uploads and soffice conversions
Im on OS X. Running Openoffice.org in normal mode.
If you are on a linux server without X, you might have to run Oo.org
using Xvfb or in headless mode.

My instance is able to export in html, plain text or bookmark file,
but conversion is failing for other formats.
And, its not able to import any files at all. I'm not able to find any
error in the log for this

On Dec 19, 5:51 pm, Leho Kraav <l...@kraav.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kanedo  
View profile  
 More options Dec 20 2009, 11:25 am
From: kanedo <gabriel.bretsch...@googlemail.com>
Date: Sun, 20 Dec 2009 08:25:08 -0800 (PST)
Local: Sun, Dec 20 2009 11:25 am
Subject: Re: File uploads and soffice conversions
Same problem here. I use a Ubuntu 9.10 installation with an xServer an
installed openoffice.org.
The soffice application is located in /usr/bin/soffice but the
errormessage is the same...

On 19 Dez., 15:40, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Stoddard  
View profile  
 More options Dec 22 2009, 10:51 am
From: Alex Stoddard <alexander.stodd...@gmail.com>
Date: Tue, 22 Dec 2009 07:51:23 -0800 (PST)
Local: Tues, Dec 22 2009 10:51 am
Subject: Re: File uploads and soffice conversions
Likewise all file uploads are failing for me with the message:
"Import failed: Please select a file to import."

I haven't tried the exports.
I am running on Ubuntu 9.10. Has anyone had success using import on
Ubuntu, or any other OS ?

Thanks,
Alex

On Dec 19, 5:05 am, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tiago Serafim  
View profile  
 More options Dec 22 2009, 10:53 am
From: Tiago Serafim <tsera...@gmail.com>
Date: Tue, 22 Dec 2009 13:53:38 -0200
Local: Tues, Dec 22 2009 10:53 am
Subject: Re: File uploads and soffice conversions

Uploads are disabled as the component they were using is proprietary. See
this: http://code.google.com/p/etherpad/wiki/KnownIssues

On Tue, Dec 22, 2009 at 1:51 PM, Alex Stoddard <alexander.stodd...@gmail.com

--
Tiago Serafim

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
K  
View profile  
 More options Dec 22 2009, 2:10 pm
From: K <es.kart...@gmail.com>
Date: Tue, 22 Dec 2009 11:10:43 -0800 (PST)
Local: Tues, Dec 22 2009 2:10 pm
Subject: Re: File uploads and soffice conversions
Actually, just commented. Code for conversion is missing though.

On Dec 22, 8:53 pm, Tiago Serafim <tsera...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
K  
View profile  
 More options Dec 26 2009, 1:06 pm
From: K <es.kart...@gmail.com>
Date: Sat, 26 Dec 2009 10:06:27 -0800 (PST)
Local: Sat, Dec 26 2009 1:06 pm
Subject: Re: File uploads and soffice conversions
Hey all,
I wrote a small guide for deploying Etherpad. I've upped my code along
with the patches I wrote.
The guide includes on how to enable File Imports and patch for getting
File Exports to work.
It's available at http://karteek.selfdabba.com/post/301488675/etherpad-opensourced

- K

On Dec 23, 12:10 am, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Dec 28 2009, 1:10 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 28 Dec 2009 10:10:07 -0800 (PST)
Local: Mon, Dec 28 2009 1:10 pm
Subject: Re: File uploads and soffice conversions
K I tried to follow your guide to no avail, I can't find where cos is
commented out for imports.

On Dec 26, 6:06 pm, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ewout ter Haar  
View profile  
 More options Dec 28 2009, 2:03 pm
From: Ewout ter Haar <ewoutterh...@gmail.com>
Date: Mon, 28 Dec 2009 11:03:16 -0800 (PST)
Local: Mon, Dec 28 2009 2:03 pm
Subject: Re: File uploads and soffice conversions
K marked the places where he undid the commenting out in his own
repository. There are only a few changes: look at them here,
https://cepadev.if.usp.br/trac/stoa/attachment/wiki/etherpad/fileuplo...
and you can easily apply them manally. Then, re-compile and should be
fine.

Ewout

On Dec 28, 4:10 pm, John McLear <johnym...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Dec 28 2009, 2:15 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 28 Dec 2009 19:15:55 +0000
Local: Mon, Dec 28 2009 2:15 pm
Subject: Re: File uploads and soffice conversions

Cheers, just edited to match the diff and rebuilt, still getting:

*Import failed:* Please select a file to import.

Any ideas?

On Mon, Dec 28, 2009 at 7:03 PM, Ewout ter Haar <ewoutterh...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ewout ter Haar  
View profile  
 More options Dec 28 2009, 2:23 pm
From: Ewout ter Haar <ewoutterh...@gmail.com>
Date: Mon, 28 Dec 2009 17:23:51 -0200
Local: Mon, Dec 28 2009 2:23 pm
Subject: Re: File uploads and soffice conversions
I remember vaguely that I re-compiled with the "clearcache" option, to
make sure everything got rebuilt.

(bin/rebuildjar clearcache , if I remember correctly)

Ewout

--
http://stoa.usp.br/ewout

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mijo  
View profile  
 More options Dec 28 2009, 3:00 pm
From: mijo <michael.ne...@gmail.com>
Date: Mon, 28 Dec 2009 12:00:01 -0800 (PST)
Local: Mon, Dec 28 2009 3:00 pm
Subject: Re: File uploads and soffice conversions
What kind of file are you trying to upload? Can you upload txt-files?
This should work.

If you want to upload other types (and export them later :-) you have
to update importexport.scala too (and have to add some jars to
infrastructure/lib). In importexport.scala is only a "stub" for the
openoffice connection. Thanks to K I was able to add th code (Thanks
K!).

Take a look at K's version:
http://github.com/karteek/etherpad/blob/595313d1e51635aef51f5f308f645...
in line 40 and line 56.

On 28 Dez., 20:15, John McLear <johnym...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Dec 28 2009, 4:22 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 28 Dec 2009 21:22:54 +0000
Local: Mon, Dec 28 2009 4:22 pm
Subject: Re: File uploads and soffice conversions

I'm trying txt files and they are not working.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Dec 28 2009, 4:23 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 28 Dec 2009 13:23:49 -0800 (PST)
Local: Mon, Dec 28 2009 4:23 pm
Subject: Re: File uploads and soffice conversions
tried clearcache, rebuilt fine but still can't import txt files

On Dec 28, 7:23 pm, Ewout ter Haar <ewoutterh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
K  
View profile  
 More options Dec 28 2009, 4:31 pm
From: K <es.kart...@gmail.com>
Date: Mon, 28 Dec 2009 13:31:32 -0800 (PST)
Local: Mon, Dec 28 2009 4:31 pm
Subject: Re: File uploads and soffice conversions
You better check logs. Run the app with devMode true.

On Dec 29, 2:23 am, John McLear <johnym...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 4 2010, 7:29 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 4 Jan 2010 16:29:45 -0800 (PST)
Local: Mon, Jan 4 2010 7:29 pm
Subject: Re: File uploads and soffice conversions
Hrm, went to check logs and when I tried again it worked fine..  Maybe
I was testing import from a dodgy file.  Next up is OpenOffice imports

Thanks for the help

On Dec 28 2009, 9:31 pm, K <es.kart...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 10 2010, 5:01 pm
From: John McLear <johnym...@gmail.com>
Date: Sun, 10 Jan 2010 14:01:55 -0800 (PST)
Local: Sun, Jan 10 2010 5:01 pm
Subject: Re: File uploads and soffice conversions
Can anyone confirm if you can do import/export in --headless oo mode
without kde/x/xvfb?

On Jan 5, 12:29 am, John McLear <johnym...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mijo  
View profile  
 More options Jan 11 2010, 3:34 am
From: mijo <michael.ne...@gmail.com>
Date: Mon, 11 Jan 2010 00:34:07 -0800 (PST)
Local: Mon, Jan 11 2010 3:34 am
Subject: Re: File uploads and soffice conversions
I can confirm this. I have no kind of X-Server running on my server.

John McLear schrieb:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 11 2010, 11:48 am
From: John McLear <johnym...@gmail.com>
Date: Mon, 11 Jan 2010 08:48:24 -0800 (PST)
Local: Mon, Jan 11 2010 11:48 am
Subject: Re: File uploads and soffice conversions
Cheers mijo.  Can you let me know what command you are starting OO.org
with? and what you have in your etherpad config for
etherpad.soffice ?  atm I have /usr/bin/soffice but it isn't
functioning as expected :(

On Jan 11, 8:34 am, mijo <michael.ne...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mijo  
View profile  
 More options Jan 11 2010, 2:40 pm
From: mijo <michael.ne...@gmail.com>
Date: Mon, 11 Jan 2010 11:40:55 -0800 (PST)
Local: Mon, Jan 11 2010 2:40 pm
Subject: Re: File uploads and soffice conversions
Hi John,

I'm starting etherpad and openoffice with the following script:

#!/bin/bash

export LC_ALL=de_DE@euro
export LANG=de_DE.UTF-8
export LANGUAGE=de_DE:en_US:en

# fist openoffice as service
/usr/bin/soffice -headless -nofirststartwizard -
accept="socket,host=localhost,port=8100;urp;StarOffice.Service"  &

# next etherpad
cd /www/etherpad/src/etherpad
bin/run-local.sh  >> logs/run.log 2>&1 &

Im running OpenOffice.org 3.1  310m19(Build:9420) under linux..

In the etherpad.localdev-default.properties I configured:

etherpad.soffice = /usr/bin/soffice

None of my changes to the code should affect the export (I really have
to build a patch about it :-(.

What problem do you have? Can you reproduce your problem at my
installation http://etherpad.netluchs.de? Perhaps I just haven't found
the problem by now. Feel free to contact me off list.

Mijo

John McLear schrieb:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 11 2010, 5:32 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 11 Jan 2010 14:32:52 -0800 (PST)
Local: Mon, Jan 11 2010 5:32 pm
Subject: Re: File uploads and soffice conversions
I missed import com.oreilly.servlet.MultipartFilter;  out of
execution.scala..

Doh....  Rebuilt with clearcache, still the same problem, if you do ps
aux | grep office can you paste what you get?  I get
root      4123  0.0  1.5 103688 23340 pts/0    Sl   22:19   0:00 /usr/
lib/openoffice/program/soffice.bin -headless -nofirststartwizard -
accept=socket,host=localhost,port=8100;urp;StarOffice.Service -splash-
pipe=5

No need to go off list, good to fix problems in a public forum!

On Jan 11, 7:40 pm, mijo <michael.ne...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 11 2010, 6:07 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 11 Jan 2010 15:07:47 -0800 (PST)
Local: Mon, Jan 11 2010 6:07 pm
Subject: Re: File uploads and soffice conversions
PS during rebuild I get:

warning: there were deprecation warnings; re-run with -deprecation for
details

I ran with -deprecation and got:

/usr/local/etherpad/trunk/infrastructure/net.appjet.bodylock/
bodylock.scala:70: warning: method concat in trait Seq is deprecated
    }).concat(List(super.frames: _*));
       ^
one warning found
compiling appserver source...
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/
execution.scala:212: warning: type byte in object Predef is deprecated
  def getOutputBytes() = outputBytes.flatMap(x => x).toArray
                                     ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/
execution.scala:212: warning: type byte in object Predef is deprecated
  def getOutputBytes() = outputBytes.flatMap(x => x).toArray
                                                     ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/stats.scala:
26: warning: type int in object Predef is deprecated
  override def apply(s: int) = synchronized { getOrElseUpdate(s, new
BucketedLastHits(t)) };
                        ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/stats.scala:
29: warning: type int in object Predef is deprecated
    def get(s: int) = p.get(s).map(_.count);
               ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/stats.scala:
34: warning: type int in object Predef is deprecated
abstract class BucketKeeper[A, B](val size: Long, val numbuckets: int,
val noUpdate: Boolean) {
                                                                  ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/stats.scala:
156: warning: type int in object Predef is deprecated
  override protected def bucketClear(index: int): Unit = {
                                            ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/logging.scala:
181: warning: method isValid in trait ReferenceWrapper is deprecated
      if (! w.isValid) {
              ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/logging.scala:
424: warning: type int in object Predef is deprecated
            val latArray = oldLatencies.toArray().map(_.asInstanceOf
[int]);
                                                  ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/logging.scala:
424: warning: type int in object Predef is deprecated
            val latArray = oldLatencies.toArray().map(_.asInstanceOf
[int]);
                                                                     ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.oui/logging.scala:
426: warning: type int in object Predef is deprecated
            def pct(p: Int) =
                ^
warning: there were unchecked warnings; re-run with -unchecked for
details
11 warnings found
compiling ajstdlib...
/usr/local/etherpad/trunk/infrastructure/net.appjet.ajstdlib/
timer.scala:36: warning: type long in object Predef is deprecated
    val startTime: long = System.nanoTime();
                   ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.ajstdlib/
timer.scala:40: warning: type double in object Predef is deprecated
        val elapsedTimeMs: double = (System.nanoTime() - startTime) /
1.0e6;
                           ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.ajstdlib/
timer.scala:73: warning: type double in object Predef is deprecated
      var total = times.foldRight(0.0)(_ + _);
                                       ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.ajstdlib/
streaming.scala:257: warning: type boolean in object Predef is
deprecated
  def sendMessage(isControl: boolean, body: String) {
                             ^
/usr/local/etherpad/trunk/infrastructure/net.appjet.ajstdlib/
streaming.scala:528: warning: method slice in trait Seq is deprecated
        "\""+req.getHeader("Host").split("\\.").slice(2).mkString
(".").split(":")(0)+"\"";
                                                ^
5 warnings found

Any ideas?

On Jan 11, 10:32 pm, John McLear <johnym...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.D. Zamfirescu  
View profile  
 More options Jan 11 2010, 6:14 pm
From: "J.D. Zamfirescu" <za...@google.com>
Date: Mon, 11 Jan 2010 15:14:01 -0800
Local: Mon, Jan 11 2010 6:14 pm
Subject: Re: File uploads and soffice conversions
If you already have txt and html import and export working, you're on
the right track. :) (If those don't work, openoffice certainly won't.)

To get openoffice support, it's not enough to just point etherpad at
your ooffice install, you need to modify code in
infrastructure/com.etherpad.openofficeservice/importexport.scala --

There are two stub objects that replaced proprietary code there,
OpenOfficeServerUtility and OpenOfficeFileConverter. Those two objects
need their methods implemented. The most difficult one is
"convertFile". I suggest looking around the web to try to find java
code that does file format conversion using openoffice, and using that
code to implement convertFile.

Hope this helps clear up some confusion.

J.D.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McLear  
View profile  
 More options Jan 11 2010, 6:52 pm
From: John McLear <johnym...@gmail.com>
Date: Mon, 11 Jan 2010 15:52:53 -0800 (PST)
Local: Mon, Jan 11 2010 6:52 pm
Subject: Re: File uploads and soffice conversions
Yea txt is working fine, this guide
http://karteek.selfdabba.com/post/301488675/etherpad-opensourced&usg=...
doesn't mention anything about implementing new code.  Mijo did you
have to do what J.D mentioned?

Cheers

On Jan 11, 11:14 pm, "J.D. Zamfirescu" <za...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 45   Newer >
« Back to Discussions « Newer topic     Older topic »