etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Abiword.js - stdoutCallback is not a function

Open ukcb opened this issue 8 years ago • 12 comments

I have defined Abiword in my configuration:

"abiword" : "/usr/bin/abiword"

I see an error in the log file:


[2018-08-12 19:29:07.251] [ERROR] console - TypeError: stdoutCallback is not a function
    at ChildProcess.<anonymous> (/home/etherpad/etherpad-lite/src/node/utils/Abiword.js:94:7)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:442:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)

The export to ms-word, pdf and odf but works fine.

etherpad version: v1.6.6 abiword version : v3.0.2

ukcb avatar Aug 12 '18 17:08 ukcb

Sorry, I am currently not able to replicate it because my etherpad instance is not able to write into abiword stdin...

muxator avatar Aug 12 '18 21:08 muxator

Gosh, facing the same issue too. @ukcb did you figure out a fix?

cloudhary avatar Jan 29 '19 08:01 cloudhary

@cloudhary I have no solution but abiword works with ep-lite 1.7.5.

ukcb avatar Jan 29 '19 16:01 ukcb

For me the problem came up when i tried to run etherpad lite in a alpine based docker container. The problem is that the abiword package doesn't contain the abiword command plugin, it has to be installed directly (apk add abiword-plugin-command).

hnj2 avatar Apr 09 '19 13:04 hnj2

If people still experience this problem please let us know and we will re-open.

We recommend trying soffice instead of abiword if you are having problems.

JohnMcLear avatar Mar 30 '20 21:03 JohnMcLear

I'm getting the same error on debian stretch when I stop the process only

jgribonvald avatar Apr 22 '20 18:04 jgribonvald

I'm getting the same error on debian stretch when I stop the process only

Is this if you kill the abiword PID?

JohnMcLear avatar Apr 22 '20 19:04 JohnMcLear

I'm getting the same error on debian stretch when I stop the process only

Is this if you kill the abiword PID?

when i kill etherpad process and even if no pad are in use

jgribonvald avatar Apr 22 '20 20:04 jgribonvald

I mean if you kill Etherpad abiword should stop... I still don't understand this issue.

JohnMcLear avatar Apr 22 '20 21:04 JohnMcLear

Still happening with current builds on Ctrl+C:

[2021-03-18 14:10:43.462] [ERROR] server - TypeError: stdoutCallback is not a function
    at ChildProcess.<anonymous> (/usr/home/etherpad/etherpad-lite/src/node/utils/Abiword.js:86:7)
    at ChildProcess.emit (node:events:378:20)
    at ChildProcess.EventEmitter.emit (node:domain:470:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
[2021-03-18 14:10:43.463] [ERROR] server - Error occurred while waiting to exit. Forcing an immediate unclean exit...

dertuxmalwieder avatar Mar 18 '21 13:03 dertuxmalwieder

@dertuxmalwieder This should have been fixed with https://github.com/ether/etherpad-lite/commit/259ee4a987d3db44d3b226c8edebdae86f461245. Are you running current develop branch?

rhansen avatar Mar 19 '21 07:03 rhansen

I updated from 5c9514f9 to cb9f6d67 and I can confirm the fix. Etherpad is moving too fast ... :-) thank you.

dertuxmalwieder avatar Mar 19 '21 17:03 dertuxmalwieder