OHDSI Home | Forums | Wiki | Github

WebAPI installation issue

webapi

(Ambuj) #21

Yes, i can get maven 3.5. I will try that and update you.
By any chance can you upload your pom.xml file here, i can refer the url’s mentioned to download.


(Chris Knoll) #22

I use the pom.xml directly out of the git repository, so I never modify it.


(Ambuj) #23

ok. I will try to degrade Maven from 3.6 to 3.5.3 and try it out. Were you also using CentOS?
Also, I am using Java 8, so shall I use Java 7 on it.


(Ambuj) #24

I tried changing the names in url in POM.xml from http://repo.odysseusinc.com/artifactory/community-libs-snapshot-local to http://repo.odysseusinc.com/artifactory/libs-release
and http://repo.odysseusinc.com/artifactory/community-libs-release-local to http://repo.odysseusinc.com/artifactory/libs-release
After that all the files gets downloaded without any issues.
When it started building .war file it started throwing WARNING messages and ended up with BUILD FAILURE.
I am uploading the errors for that.
Can you please confirm why change in the url made the downloading a success and later a failure in build due to connection time out error. Is this is an issue with the url ? because I do not have any firewall restrictions so far.
Sorry for eating your head on this but this is really concerning, I cannot decide whether its url issue or maven issue.

TIA


(Chris Knoll) #25

With the final error of ‘connection timed out’ it indicates failure to connect to the server. Network issues are annoying, but when I’m faced with this, I try to execute again and see if the network issue was temporary.

Also, I’m not sure the impact of changing the values in the pom.xml file. @pavgra or @gregk : can you please chime in on this, we seem to be having frequent issues with the Odysseus artifactory, and I have no visibility as to what might be wrong there.


(Ambuj) #26

@Chris_Knoll as suggested, I rolled back Maven 3.6.0 and installed 3.5.3 with fresh WebAPI retrieval from git.
however, the error is still there without any changes made to the urls.
Screenshot attached for your reference. looks like I am completely lost here now :frowning:

As soon as it started throwing error, I barred it to save time. Please help.


(Ambuj) #27

So here is what I did so far:
O.S Cent OS 7
Maven 3.5.3
Java 8
Scenario1 - No changes made to urls in POM.XML
When I tried to create the .war file, I got the errors for checksum validation for jackson-bom and log-bom files.
I tried to open those respective urls in browser
http://repo.odysseusinc.com/artifactory/community-libs-release-local/com/fasterxml/jackson/jackson-bom/2.8.7/jackson-bom-2.8.7.pom
http://repo.odysseusinc.com/artifactory/community-libs-release-local/org/apache/logging/log4j/log4j-bom/2.7/log4j-bom-2.7.pom
With both of them I get
{
“errors” : [ {
“status” : 404,
“message” : “File not found.”
} ]
}
Now, I manually tried to go through the path and I cannot find fasterxml mentioned within the url


So, is this an issue for which I am receiving errors?

Scenario2: Changes made in POM.XML
Following url’s has been changed
http://repo.odysseusinc.com/artifactory/community-libs-snapshot-local
to
https://repo.odysseusinc.com/artifactory/libs-snapshot-local

and
http://repo.odysseusinc.com/artifactory/community-libs-release-local
to
http://repo.odysseusinc.com/artifactory/libs-release

With this all the required files gets downloaded without any issues, but when the war file build comes in picture it shows the connection times out for sqlrender.

I am not getting which way to go through as I am getting errors with everything I am doing to make it work. @pavgra @gregk @anthonysena @Chris_Knoll


(Ambuj) #28

@Chris_Knoll
I am able to successfully build the .war file now. The issue was with the network only.

Thank you for your time and patience and apologies for eating up your time.


t