The sonar remote repo receives 503 Service Unavailable when it tries to
connect to the
sonar server. Maybe there are some restrictions accessing sonar from the
machine
Artifactory runs on.
What do you see in sonar access logs (there should be some access logs if
the requests
reaches sonar)?
Can you try to download the file from the machine that runs Artifactory?
On Thu, Sep 2, 2010 at 16:11, <[email protected]> wrote:
> Hi Yossi,
>
> I hope I have extracted all relevant lines
>
> 2010-09-02 15:08:39,330 [pool-1-thread-26] [DEBUG] (o.a.w.s.RepoFilter :83)
> - Entering request GET (172.16.15.221)
> /sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom.
> 2010-09-02 15:08:39,331 [pool-1-thread-26] [DEBUG] (o.a.w.s.RepoFilter
> :116) - Serving a download or info request.
> 2010-09-02 15:08:39,331 [pool-1-thread-26] [DEBUG]
> (o.a.e.DownloadServiceImpl:103) - Request: source=xxx.xx.xx.xxxx,
> path=org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom,
> lastModified=31-12-69 23:59:59 UTC, headOnly=false, ifModifiedSince=-1
> 2010-09-02 15:08:39,331 [pool-1-thread-26] [DEBUG]
> (o.a.e.DownloadServiceImpl:122) - Download request processing
> (/artifactory/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom)
> for repo 'sonar'.
> 2010-09-02 15:08:39,332 [pool-1-thread-26] [DEBUG]
> (o.a.j.l.a.LockingAdvice:71) - Activating Locking Interceptor on public
> abstract org.artifactory.resource.RepoResource
> org.artifactory.engine.InternalDownloadService.getInfo(org.artifactory.repo.Repo,org.artifactory.repo.context.RequestContext)
> with tx true and previous lm null
> 2010-09-02 15:08:39,332 [pool-1-thread-26] [DEBUG]
> (o.a.j.JcrTransactionManager:365) - Creating new transaction with name
> [org.artifactory.engine.InternalDownloadService.getInfo]:
> PROPAGATION_REQUIRED,ISOLATION_DEFAULT
> 2010-09-02 15:08:39,334 [pool-1-thread-26] [DEBUG]
> (o.a.r.RemoteRepoBase:224) - sonar:
> sonar:org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
> cached as not found at
> 'org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom'.
> 2010-09-02 15:08:39,335 [pool-1-thread-26] [DEBUG]
> (o.a.j.JcrTransactionManager:118) - Saving session:
> org.artifactory.jcr.jcrsess...@17864c4.
> 2010-09-02 15:08:39,335 [pool-1-thread-26] [DEBUG] (o.a.j.JcrSession :163)
> - saving session
> 2010-09-02 15:08:39,335 [pool-1-thread-26] [DEBUG]
> (o.a.j.JcrTransactionManager:752) - Initiating transaction commit
> 2010-09-02 15:08:39,336 [pool-1-thread-26] [DEBUG]
> (o.a.e.DownloadServiceImpl:222) - Sending HTTP error code 404: Service
> Unavailable
> 2010-09-02 15:08:39,337 [pool-1-thread-26] [DEBUG]
> (o.a.e.DownloadServiceImpl:156) - Request for path
> 'org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom'
> failed with no exception.
> 2010-09-02 15:08:39,337 [pool-1-thread-26] [DEBUG] (o.a.w.s.RepoFilter
> :181) - Exiting request GET (xxx.xx.xx.xxxx)
> /sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
>
>
>
>
> -----Original Message-----
> From: Yossi Shaul <[email protected]>
> To: artifactory-users <[email protected]>
> Sent: Thu, Sep 2, 2010 1:35 pm
> Subject: Re: [Artifactory-users] Getting Sonar to work with Artifactory
>
> You can turn on debug by modifying the logback config file at:
> $artifactory_home/etc/logback.xml. Change the logger named org.artifactory
> from INFO to DEBUG.
> Artifactory will reload the configuration automatically, so try to download
> again
> from the remote repository (not the cache) and send me back the relevant
> log
> messages (you can watch the logs directly from artifactory ui).
>
> Yossi
>
> On Thu, Sep 2, 2010 at 14:12, <[email protected]> wrote:
>
>> thanks Yossi for the reply,
>>
>> If i connect the sonar server directly, I can download the pom
>>
>> If I try to connect directly the remote repository it fails.
>>
>> What I did
>>
>> Under "Configure Repositories" -> "Remote Repositories" I had added a new
>> repository called "sonar".
>>
>> So if I try
>> http://artifactoryServer:port/artifactory/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom<http://artifactoryServer:port/artifactory/SONAR-REPO-NAME/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom>it
>> fails with
>>
>> HTTP ERROR 404
>> Problem accessing
>> /artifactory/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom.
>> Reason:
>> Service Unavailable
>>
>> Under "Artifacts" the sonar repository shows up as "sonar-cache" - if I
>> try to download from
>> http://artifactoryServer:port/artifactory/sonar-cache/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
>> it fails
>> with<http://artifactoryServer:port/artifactory/SONAR-REPO-NAME/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom>
>>
>> HTTP ERROR 404
>> Problem accessing
>> /artifactory/sonar-cache/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom.
>> Reason:
>> File not found.
>>
>> Nevertheless, its a problem of the repository itself and not (or not
>> for now) of the virtual repository. We have configured the "sonar"
>> repository as follows:
>>
>> - URL: http://sonar-server:port/sonar/deploy/maven/ (accessing this in
>> the browser shows a index page which is needed for nexus - dont know if this
>> is an issue for Artifactory)
>> - Type: maven2
>> - Handle Releases / Handle Snapshots are both checked
>>
>> the rest are the default configurations
>>
>> in the request.log there is
>>
>> 20100902130553|6849|REQUEST|xxx.xx.xx.xxx|admin|GET|/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom|HTTP/1.1|404|
>>
>> I'm not sure where to enable debugging level for the logging.
>>
>> Thanks
>>
>>
>> -----Original Message-----
>> From: Yossi Shaul <[email protected]>
>> To: artifactory-users <[email protected]>
>> Sent: Thu, Sep 2, 2010 12:06 pm
>> Subject: Re: [Artifactory-users] Getting Sonar to work with Artifactory
>>
>> Also, before trying to download from the remote, zap its caches. To do
>> it
>> login as admin, go to the tree browser, right click on the sonar cache and
>>
>> click on the zap action.
>>
>> On Thu, Sep 2, 2010 at 13:00, Yossi Shaul <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> The sonar repository is treated as any other remote repository. To make
>>> sure the sonar server URL
>>> is correct, try downloading the file directly from it (with wget or from
>>> the browser):
>>>
>>> http://aonarServer:port/sonar/deploy/maven/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
>>>
>>> If direct download works, try to download the file directly from the
>>> remote repository in Artifactory:
>>>
>>> http://artifactoryServer:port/artifactory/SONAR-REPO-NAME/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
>>> If it works, try to download it from the virtual repo. If it doesn't find
>>> the file the problem is with the virtual repo configuration.
>>> If not, make sure the sonar repository is configured correctly (accepts
>>> release versions), enable debug logging and tell
>>> me what you see.
>>>
>>> Yossi
>>>
>>>
>>> On Thu, Sep 2, 2010 at 10:06, <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I asked this already on the Sonar mailinglist and the suggested to go
>>>> for the artifactory community.
>>>>
>>>> We try to configure Artifactory that it resolves the Sonar artifacts (
>>>> http://www.sonarsource.org/). The Sonar installation brings its own
>>>> maven repository which we tried to include in artifactory.
>>>>
>>>> This is what we did:
>>>>
>>>> Inside Artifactory we defined a new remote repository named "sonar" with
>>>> the location http://theServer:port/sonar/deploy/maven. We added this to
>>>> the virtual repository "remote-repos".
>>>> <http://theServer:port/sonar/deploy/maven>Additionally, we have another
>>>> virtual repository called "fw-test" which contains "remote-repos" and some
>>>> local repositories.
>>>>
>>>> The settings.xml looks like this
>>>>
>>>> <mirrors>
>>>> <mirror>
>>>> <mirrorOf>*</mirrorOf>
>>>> <name>fw-test</name>
>>>> <url>
>>>> http://build01-whm.ibfs.de:8090/artifactory/fw-test</url>
>>>> <id>fw-test</id>
>>>> </mirror>
>>>> </mirrors>
>>>> <profiles>
>>>> <profile>
>>>> <repositories>
>>>> <repository>
>>>> <snapshots>
>>>> <enabled>false</enabled>
>>>> </snapshots>
>>>> <id>central</id>
>>>> <name>fw-test</name>
>>>> <url>
>>>> http://theServer:port/artifactory/fw-test</url><http://theServer:port/artifactory/fw-test%3C/url%3E>
>>>> ;
>>>> </repository>
>>>> <repository>
>>>> <snapshots />
>>>> <id>snapshots</id>
>>>> <name>fw-test</name>
>>>> <url>
>>>> http://theServer:port/artifactory/fw-test</url><http://theServer:port/artifactory/fw-test%3C/url%3E>
>>>> ;
>>>> </repository>
>>>> </repositories>
>>>> <pluginRepositories>
>>>> <pluginRepository>
>>>> <snapshots>
>>>> <enabled>false</enabled>
>>>> </snapshots>
>>>> <id>central</id>
>>>> <name>plugins-releases</name>
>>>> <url>
>>>> http://theServer:port/artifactory/plugins-releases</url><http://theServer:port/artifactory/plugins-releases%3C/url%3E>
>>>> ;
>>>> </pluginRepository>
>>>> <pluginRepository>
>>>> <snapshots />
>>>> <id>snapshots</id>
>>>> <name>plugins-snapshots</name>
>>>> <url>
>>>> http://theServer:port/artifactory/plugins-snapshots</url><http://theServer:port/artifactory/plugins-snapshots%3C/url%3E>
>>>> ;
>>>> </pluginRepository>
>>>> </pluginRepositories>
>>>> <id>artifactory</id>
>>>> </profile>
>>>> <profile>
>>>>
>>>> This settings works when building the projects and/or deploying together
>>>> with artifactory.
>>>>
>>>> When running the sonar analysis, it fails to download the required
>>>> artifacts with the message
>>>>
>>>> Downloading:
>>>> http://theServer:port/artifactory/fw-test/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
>>>> [INFO] Unable to find resource
>>>> 'org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20100809115828' in
>>>> repository sonar (http://theServer:sonarport/sonar/deploy/maven)
>>>>
>>>> Due to the sonar mailinglist the configuration of sonar ist correct....
>>>>
>>>> can anyone tell us, why it fails to retrieve only these artifacts, but
>>>> all others ?
>>>>
>>>> If I enter the URL to the artifact directly
>>>> http://theServer:sonarport/sonar/deploy/maven/org/codehaus/..... it is
>>>> accessible.
>>>>
>>>> Thanks for any help
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Artifactory-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>>
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>> This SF.net Dev2Dev email is sponsored by:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Show off your parallel programming skills.
>>
>>
>>
>>
>>
>>
>> Enter the Intel(R) Threading Challenge 2010.
>>
>>
>>
>>
>>
>> http://p.sf.net/sfu/intel-thread-sfd
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>>
>>
>>
>>
>>
>> Artifactory-users mailing list
>>
>>
>>
>>
>>
>> [email protected]
>>
>>
>>
>>
>>
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
> ------------------------------------------------------------------------------
>
>
> This SF.net Dev2Dev email is sponsored by:
>
>
>
>
> Show off your parallel programming skills.
>
>
> Enter the Intel(R) Threading Challenge 2010.
>
> http://p.sf.net/sfu/intel-thread-sfd
>
> _______________________________________________
>
>
> Artifactory-users mailing list
>
> [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users