Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Enhanced Smart Tags Training Workflow - Broken Pipe

paulj52978667
Level 1
Level 1

Hi Devs,

I am getting a Broken pipe exception while invoking the Enhanced Smart Tags training workflow from my local 6.5 author instance. The smart tags workflow is working fine, however it is always throwing a broken pipe exception on my error logs whenever I invoke a training workflow..

The similarity search JMX configuration is all passed while invoking validateConfigs. Any thoughts why the socket/pipe is getting closed prematurely. Is it the organisation network that causes this issue.

1860692_pastedImage_0.png

Caused by: java.io.IOException: Broken pipe

  at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)

  at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)

  at sun.nio.ch.IOUtil.write(IOUtil.java:148)

  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)

  at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:264) [org.apache.felix.http.jetty:4.0.8]

Best Regards

Paul

4 Replies
berliant
Employee
Employee

Most likely the certificate is incorrect or corrupted. From CRXDe delete /home/users/system/dam/dam-update-service/keystore

When it's completed re-do the entire Smart Tags configuration.

paulj52978667
Level 1
Level 1

No luck again. I tried deleting the key store and performed the steps again.

If I am not wrong, we use a single certificate for smart tags endpoint & training endpoint. If it's a certificate issue, why the smart tagging works without any problem

berliant
Employee
Employee

How many images are you sending for a Smart Tags training? Is it very large in size batch of images? Can you try to reduce image size?

paulj52978667
Level 1
Level 1

I tried with multiple scenarios. By invoking on a folder with one image which is around 100KB. Also on a folder with 20-25 images similar sized images all images less than 250Kb

However the log says the below information as well.

03.12.2019 10:10:08.307 *INFO* [JobHandler: /var/workflow/instances/server0/2019-12-03_1/smart-tags-training_232:/content/dam/smart-tags/time] com.day.cq.dam.similaritysearch.internal.impl.TransferTrainingDataServiceImpl Successfully Completed Training Data Transfer for [/content/dam/smart-tags/time]

On subsequent run,

03.12.2019 12:39:32.665 *INFO* [JobHandler: /var/workflow/instances/server0/2019-12-03_1/smart-tags-training_233:/content/dam/smart-tags/time] com.day.cq.dam.similaritysearch.internal.impl.TransferTrainingDataServiceImpl Completed Training Data Transfer for [/content/dam/smart-tags/time]. No tags were transferred

But my smart tag training report is empty and the broken type issue is still there.