You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Antonio Parolini <An...@hcuge.ch> on 2007/08/06 15:51:25 UTC

Newbie: Failed pre-download policies

Hello,

I'm trying to configure archiva following the getting started doc, but I
cannot get Archiva to cache the central repo. When I ask for this url:

http://znjupiter:8080/archiva/repository/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar

I see the following log in archiva. What this "Failed pre-download policies"
error message is about  ?

Thanks ,

toni

14184735 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
Attempting connector: ProxyConnector[
 
source:ArchivaRepository[internal,file:/home/Jboss/jbossadm/archiva/repositories/internal/]
  target:ArchivaRepository[central,http://repo1.maven.org/maven2]
  proxyId:
  policy[releases]:once
  policy[checksum]:fix
  policy[snapshots]:disabled
  policy[cache-failures]:cache
]
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Using
target repository: central - layout: default - targetPath:
org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
14184737 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[releases] policy with [once]
14184738 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:releases  - OK to update
releases, local file does not exist.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[snapshots] policy with [disabled]
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots  - OK to
update, snapshot policy does not apply for non-snapshot versions.
14184739 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
[cache-failures] policy with [cache]
14184740 [SocketListener0-0] ERROR
org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures  -
Unknown checksum policyCode [cache]
14184740 [SocketListener0-0] DEBUG
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Didn't
pass the [cache-failures] policy.
14184740 [SocketListener0-0] INFO 
org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Failed
pre-download policies -
/home/Jboss/jbossadm/archiva/repositories/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar


-- 
View this message in context: http://www.nabble.com/Newbie%3A-Failed-pre-download-policies-tf4224243.html#a12016579
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Newbie: Failed pre-download policies

Posted by Antonio Parolini <An...@hcuge.ch>.
Hi,

Thanks for the hint. The error message changed but it still didn't work.

I got it to work re-creating completley my proxy connectors. 

Same as http://www.nabble.com/Proxying-central-repo-tf4100176.html#a11661176

It might be a wrong default proxy config file shipped...

-antonio


Joakim Erdfelt-2 wrote:
> 
> There appears to be a problem with your cache-failures policy.
> 
> Set it to ignored (or disabled) and try again.
> 
> - Joakim
> 
> Antonio Parolini wrote:
>> Hello,
>>
>> I'm trying to configure archiva following the getting started doc, but I
>> cannot get Archiva to cache the central repo. When I ask for this url:
>>
>> http://znjupiter:8080/archiva/repository/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
>>
>> I see the following log in archiva. What this "Failed pre-download
>> policies"
>> error message is about  ?
>>
>> Thanks ,
>>
>> toni
>>
>> 14184735 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Attempting connector: ProxyConnector[
>>  
>> source:ArchivaRepository[internal,file:/home/Jboss/jbossadm/archiva/repositories/internal/]
>>   target:ArchivaRepository[central,http://repo1.maven.org/maven2]
>>   proxyId:
>>   policy[releases]:once
>>   policy[checksum]:fix
>>   policy[snapshots]:disabled
>>   policy[cache-failures]:cache
>> ]
>> 14184737 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Using
>> target repository: central - layout: default - targetPath:
>> org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
>> 14184737 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Applying
>> [releases] policy with [once]
>> 14184738 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.policies.PreDownloadPolicy:releases  - OK to
>> update
>> releases, local file does not exist.
>> 14184739 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Applying
>> [snapshots] policy with [disabled]
>> 14184739 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots  - OK to
>> update, snapshot policy does not apply for non-snapshot versions.
>> 14184739 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Applying
>> [cache-failures] policy with [cache]
>> 14184740 [SocketListener0-0] ERROR
>> org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures  -
>> Unknown checksum policyCode [cache]
>> 14184740 [SocketListener0-0] DEBUG
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Didn't
>> pass the [cache-failures] policy.
>> 14184740 [SocketListener0-0] INFO 
>> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
>> Failed
>> pre-download policies -
>> /home/Jboss/jbossadm/archiva/repositories/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
>>
>>
>>   
> 
> 
> -- 
> - Joakim Erdfelt
>   joakim@erdfelt.com
>   Open Source Software (OSS) Developer
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Newbie%3A-Failed-pre-download-policies-tf4224243.html#a12029765
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Newbie: Failed pre-download policies

Posted by Joakim Erdfelt <jo...@erdfelt.com>.
There appears to be a problem with your cache-failures policy.

Set it to ignored (or disabled) and try again.

- Joakim

Antonio Parolini wrote:
> Hello,
>
> I'm trying to configure archiva following the getting started doc, but I
> cannot get Archiva to cache the central repo. When I ask for this url:
>
> http://znjupiter:8080/archiva/repository/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
>
> I see the following log in archiva. What this "Failed pre-download policies"
> error message is about  ?
>
> Thanks ,
>
> toni
>
> 14184735 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  -
> Attempting connector: ProxyConnector[
>  
> source:ArchivaRepository[internal,file:/home/Jboss/jbossadm/archiva/repositories/internal/]
>   target:ArchivaRepository[central,http://repo1.maven.org/maven2]
>   proxyId:
>   policy[releases]:once
>   policy[checksum]:fix
>   policy[snapshots]:disabled
>   policy[cache-failures]:cache
> ]
> 14184737 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Using
> target repository: central - layout: default - targetPath:
> org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
> 14184737 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
> [releases] policy with [once]
> 14184738 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.policies.PreDownloadPolicy:releases  - OK to update
> releases, local file does not exist.
> 14184739 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
> [snapshots] policy with [disabled]
> 14184739 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots  - OK to
> update, snapshot policy does not apply for non-snapshot versions.
> 14184739 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Applying
> [cache-failures] policy with [cache]
> 14184740 [SocketListener0-0] ERROR
> org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures  -
> Unknown checksum policyCode [cache]
> 14184740 [SocketListener0-0] DEBUG
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Didn't
> pass the [cache-failures] policy.
> 14184740 [SocketListener0-0] INFO 
> org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default  - Failed
> pre-download policies -
> /home/Jboss/jbossadm/archiva/repositories/internal/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.jar
>
>
>   


-- 
- Joakim Erdfelt
  joakim@erdfelt.com
  Open Source Software (OSS) Developer