Several 'Share libraries from maven to nexus server' errors when starting Studio

Five Stars

Several 'Share libraries from maven to nexus server' errors when starting Studio

We have recently configured TAC 6.3.1 and can connect remotely through Studio, but we get several of the following errors (screenshot). Nexus is running and is showing green checkmarks in the Configuration page. I can also navigate to the page using a web browser. TAC and nexus are running on RHEL 7.2. Studio is running from Windows 10. Where should I start to resolve these errors?

 

 Capture.PNG

 

There are also several errors such as this in the Studio log on the client PC for various .jar files:

 

java.lang.Exception: Share libraries :jsr311-api-1.1.1-6.0.0.jar failed !
at org.talend.librariesmanager.maven.ShareLibrareisHelper.shareLibs(ShareLibrareisHelper.java:207)
at org.talend.librariesmanager.ui.startup.ShareLibsJob.run(ShareLibsJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.Exception: https://servername:9443/nexus/content/repositories/talend-custom-libs/org/talend/libraries/jsr311-api-1.1.1/6.0.0/jsr311-api-1.1.1-6.0.0.jar
at org.talend.librariesmanager.maven.ArtifactsDeployer.installToRemote(ArtifactsDeployer.java:190)
at org.talend.librariesmanager.maven.ArtifactsDeployer.installToRemote(ArtifactsDeployer.java:162)
at org.talend.librariesmanager.maven.ShareLibrareisHelper.shareLibs(ShareLibrareisHelper.java:203)
... 2 moreCaused by: org.talend.commons.exception.BusinessException: Deploy failed: 400 Bad Request
at org.talend.librariesmanager.maven.ArtifactsDeployer.installToRemote(ArtifactsDeployer.java:186)
... 4 mor


Accepted Solutions
Five Stars

Re: Several 'Share libraries from maven to nexus server' errors when starting Studio

I have found the problem. When we first installed TAC with nexus, we didn't change the 'nexus' script located here:
$TALEND_HOME/tac/Artifact-Repository-Nexus-V2.11.3-01/nexus-2.11.3-01/bin


The offending clause was:  RUN_AS_USER=root


We have a policy to not run services as root if possible. So we changed the user to the Talend user.


However, when nexus was first started about a month ago, it was started as root.

This caused several folders to change ownership under 'root'. I had to change these to be owned by the talend user/group. The two folders that were having issues were 'talend-custom-libs-release' and 'talend-custom-libs-snapshot.' There were several hidden directories that were also owned by root that needed to be changed.

Once I changed those directory permissions, I stopped getting '500 server' errors in nexus.

I also changed the configuration in TAC to point to the correct folders.

 

Then I restarted Studio, and the required .jar files loaded successfully.


All Replies
Five Stars

Re: Several 'Share libraries from maven to nexus server' errors when starting Studio

I have found the problem. When we first installed TAC with nexus, we didn't change the 'nexus' script located here:
$TALEND_HOME/tac/Artifact-Repository-Nexus-V2.11.3-01/nexus-2.11.3-01/bin


The offending clause was:  RUN_AS_USER=root


We have a policy to not run services as root if possible. So we changed the user to the Talend user.


However, when nexus was first started about a month ago, it was started as root.

This caused several folders to change ownership under 'root'. I had to change these to be owned by the talend user/group. The two folders that were having issues were 'talend-custom-libs-release' and 'talend-custom-libs-snapshot.' There were several hidden directories that were also owned by root that needed to be changed.

Once I changed those directory permissions, I stopped getting '500 server' errors in nexus.

I also changed the configuration in TAC to point to the correct folders.

 

Then I restarted Studio, and the required .jar files loaded successfully.

Moderator

Re: Several 'Share libraries from maven to nexus server' errors when starting Studio

Hello,

Thanks for sharing your solution here. Could you please mark your topic as resolved?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: Several 'Share libraries from maven to nexus server' errors when starting Studio

We had a similar problem but with different result -- Studio 6.5.1 needs a patch to handle proxies properly, and even then is still having some trouble.

One workaround is to manually download/copy the .m2 jars from an m2.zip -- from a working Studio where they have already been installed (by going around the proxy, for instance).

Help > Install additional software > Install third party libraries.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog