Enhanced Smart Tags Training Workflow - Broken Pipe

Avatar

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
paulj52978667
Level 1

02-12-2019

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

Replies

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

02-12-2019

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.

Avatar

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
paulj52978667
Level 1

02-12-2019

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

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

02-12-2019

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?

Avatar

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
paulj52978667
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
paulj52978667
Level 1

03-12-2019

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.