cancel
Showing results for 
Search instead for 
Did you mean: 

Preview document in Share

iwkse
Star Contributor
Star Contributor
Hi all,

I'm new to Alfresco and I'm trying to let the flash preview in share works but I am having some issues.
While loading the flash app it spins for a while and give me an error like:
"impossible to load the preview from the server"

I've checked in the log, enabling the debug log, and all i can get seems related
to CIFS.

I get this two errors:
[org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
[org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)

Please can you explain me where should I look or what I can read to make it works properly the flash preview in share?
I've installed alfresco commons 3.4.c on a debian server.
Best regards
9 REPLIES 9

lgoldblatt
Champ in-the-making
Champ in-the-making
We had this problem and it was due to a port conflict for Open Office.
If you installed with the default port (8100), make sure that nothing else is using this port.

If you installed using a different port, you may have to edit some config files besides just alfresco-global.properties to point to the right one.
I dont think the installer does all of the conversion to alternate ports. 
We ended up pointing back to the default port of 8100 to get it to work, so i was never able to compile a list of config files that need to be updated.

iwkse
Star Contributor
Star Contributor
I'm using the standard port for open office, 8100 and just soffice.bin is listening to it. I guess the CIFS error is not even related to it, because if i disable CIFS I just do not get the errors in log but still the preview does not work. For the issue
itself I cannot find anything related to it in logs.
Right now I noticed something different.
The preview works when using images like jpegs, but does give the error with documents, like pdf, odt, doc, abw..ecc
I'm a bit stucked on it  :roll:

mikeh
Star Contributor
Star Contributor
Make sure you've got ImageMagick and pdf2swf available. There will be warnings in the startup log if they're not there.

Thanks,
Mike

iwkse
Star Contributor
Star Contributor
I have both but still no luck  :idea:

Please could you explain me where should i check for logs? I see alfresco.log but it doesn't show anything.
There are other logs to watch?

regards
S.

mikeh
Star Contributor
Star Contributor
That's the only log file.

You could try opening the docs directly with OpenOffice… you might find you need a newer version.

Thanks,
Mike

iwkse
Star Contributor
Star Contributor
Thanks. It does the same with PDF, txt files as well.
It's a way frustrating I cannot debug it properly 😕

mikeh
Star Contributor
Star Contributor
Create a file called "dev-log4j.properties" containing the following
log4j.logger.org.alfresco.repo.content.transform=debug
and copy it into Tomcat/shared/classes/alfresco/extension

Thanks,
Mike

iwkse
Star Contributor
Star Contributor
Thank you very much. This helped a lot!
It seems to be a bug in Alfresco similar to this one:
http://issues.alfresco.com/jira/browse/ALF-6268

In common/lib I had two files libstdc++.so.5 and libstdc++.so.5.0.3 the first of just few bytes. Symlink to the
system lib fixed it.

The debug helped a lot, since I am new to Alfresco, could you please advice me a good place or book to learn how
to debug Alfresco properly? I'm sure I will have other issues in future  Smiley Happy

Best regards,
S.

mikeh
Star Contributor
Star Contributor
The debug helped a lot, since I am new to Alfresco, could you please advice me a good place or book to learn how
to debug Alfresco properly? I'm sure I will have other issues in future  Smiley Happy
There are a few Alfresco books around now, but I'm not familiar with them enough to know what level of debugging they go into. Maybe create another forum topic with that specific question?

Thanks,
Mike