Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#601 closed bug (worksforme)

Stamps using Images don't work correctly in a clustered environment

Reported by: jkenyon Owned by:
Priority: minor Milestone:
Component: Core Version: 7.3
Keywords: Cc:

Description

Hi Team,

We have noticed that the stamps don't work correctly in a clustered setup with multiple LogicalDOC nodes. This is due to nodes storing stamps in different locations. This only seems to apply to stamps with images.

For example, if you create a new Stamp with an Image on NODE1, everything works fine on NODE1. However if you try to use this Stamp on NODE2 you get error like the following:

Caused by: java.lang.IllegalArgumentException?: Encrypted file not found in /dmsdata/plugins/logicaldoc-stamp/stamps/17858560

at com.logicaldoc.util.crypt.CryptUtil?.decrypt(CryptUtil?.java:90)

Likewise, if you create a new Stamp with an Image on NODE2, everything works fine on NODE2. However if you try to use this Stamp on NODE1 you get error like the following:

Caused by: java.lang.IllegalArgumentException?: Encrypted file not found in /opt/LogicalDOC/repository/plugins/logicaldoc-stamp/stamps/18710528

at com.logicaldoc.util.crypt.CryptUtil?.decrypt(CryptUtil?.java:90)

Not sure why each node is looking for stamps in different places?

Also as a result, the stamp image previews don't work - see attached.

Change History (2)

comment:1 Changed 8 years ago by car031

  • Resolution set to worksforme
  • Status changed from new to closed

Probably your setup is not correct, all the nodes must share the repository/ file system, please check the deployment scheme of a cluster here: http://docs.logicaldoc.com/en/clustering

comment:2 Changed 8 years ago by jkenyon

You are correct. I checked our settings and for some reason the directory specified for the plugindir on node2 had changed from the shared directory to a local directory. Thanks.

Note: See TracTickets for help on using tickets.