|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Bug in 'evict unused proxied items' task?Hi all,
It seems there's a bug in the 'evict unused proxied items' task. I've been checking the trash for a while now, and it seems that Nexus deletes my items when they are older than my configured 7 days. That is, it deletes them regardless of being used only a couple of hours ago! I just tested this with a project, for which the dependency was originally downloaded last monday at 09:00 UTC. My tasks normally run on sunday 24:00 UTC, so today the item was still there. Then, I deleted my local repository so the file would be freshly downloaded from the Nexus server. After that I ran the evict-task again and Nexus deleted said item! Has anybody else noticed this behavior, or did I perhaps configure something wrong?? Thanks. -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: Roland.Asmann@... Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Bug in 'evict unused proxied items' task?Isn't there anybody that can confirm/contradict this?
On Monday 14 September 2009 15:34, you wrote: > Hi all, > > It seems there's a bug in the 'evict unused proxied items' task. I've been > checking the trash for a while now, and it seems that Nexus deletes my > items when they are older than my configured 7 days. That is, it deletes > them regardless of being used only a couple of hours ago! > > I just tested this with a project, for which the dependency was originally > downloaded last monday at 09:00 UTC. My tasks normally run on sunday 24:00 > UTC, so today the item was still there. Then, I deleted my local repository > so the file would be freshly downloaded from the Nexus server. After that I > ran the evict-task again and Nexus deleted said item! > > Has anybody else noticed this behavior, or did I perhaps configure > something wrong?? > > Thanks. -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: Roland.Asmann@... Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Re: Bug in 'evict unused proxied items' task?Hi there,
sorry for long response. Could you attach your nexus.xml (watch for passwords if any in there!)? ~t~
On Tue, Sep 15, 2009 at 6:03 PM, Roland Asmann <Roland.Asmann@...> wrote: Isn't there anybody that can confirm/contradict this? |
|
|
Re: Re: Bug in 'evict unused proxied items' task?Sure, here it is...
---------- nexus.xml ---------- <?xml version="1.0" encoding="UTF-8"?> <nexusConfiguration> <version>1.0.8</version> <security> <enabled>true</enabled> <anonymousAccessEnabled>true</anonymousAccessEnabled> <anonymousPassword>{fsMuDJ26e48HhLrGbIKCOUD4nN8UjhfIFTLAZG6+3v8=}</anonymousPassword> <realms> <realm>XmlAuthenticatingRealm</realm> <realm>XmlAuthorizingRealm</realm> </realms> </security> <globalConnectionSettings /> <restApi> <baseUrl>http://cfc073:8081/nexus</baseUrl> </restApi> <httpProxy> <enabled>true</enabled> </httpProxy> <routing> <groups /> </routing> <repositories> <repository> <id>repo1.maven.org_maven2</id> <name>repo1.maven.org/maven2</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://repo1.maven.org/maven2</url> </remoteStorage> </repository> <repository> <id>download.java.net_maven_2</id> <name>download.java.net/maven/2</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://download.java.net/maven/2</url> </remoteStorage> </repository> <repository> <id>download.java.net_maven_1</id> <name>download.java.net/maven/1</name> <type>maven1</type> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://download.java.net/maven/1</url> </remoteStorage> </repository> <repository> <id>ejb3unit.sourceforge.net_maven2</id> <name>ejb3unit.sourceforge.net/maven2</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://ejb3unit.sourceforge.net/maven2</url> </remoteStorage> </repository> <repository> <id>www.openarchitectureware.org_m2</id> <name>www.openarchitectureware.org/m2</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://www.openarchitectureware.org/m2</url> </remoteStorage> </repository> <repository> <id>cfc.inhouse</id> <name>cfc.inhouse</name> <allowWrite>true</allowWrite> <indexable>false</indexable> <checksumPolicy>ignore</checksumPolicy> <localStorage> <url>/mnt/maven/repositories/inhouse</url> </localStorage> </repository> <repository> <id>fix</id> <name>fix</name> <allowWrite>true</allowWrite> <indexable>false</indexable> <checksumPolicy>ignore</checksumPolicy> <localStorage> <url>/mnt/maven/repositories/fix</url> </localStorage> </repository> <repository> <id>3rd-party_free</id> <name>3rd-party/free</name> <allowWrite>true</allowWrite> <indexable>false</indexable> <checksumPolicy>ignore</checksumPolicy> <localStorage> <url>/mnt/maven/repositories/3rd-party/free</url> </localStorage> </repository> <repository> <id>3rd-party_non_free</id> <name>3rd-party/non_free</name> <allowWrite>true</allowWrite> <indexable>false</indexable> <checksumPolicy>ignore</checksumPolicy> <localStorage> <url>/mnt/maven/repositories/3rd-party/non_free</url> </localStorage> </repository> <repository> <id>cfc.inhouse.snapshot</id> <name>cfc.inhouse.snapshot</name> <allowWrite>true</allowWrite> <indexable>false</indexable> <repositoryPolicy>snapshot</repositoryPolicy> <checksumPolicy>ignore</checksumPolicy> </repository> <repository> <id>xxx_statistik</id> <name>XXX Statistik</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://cfc073/maven/statistik</url> </remoteStorage> </repository> <repository> <id>xxx_el4j</id> <name>XXX Statistik EL4J</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://el4.elca-services.ch/el4j/maven2repository</url> </remoteStorage> </repository> <repository> <id>xxx_jboss</id> <name>XXX Statistik JBoss</name> <indexable>false</indexable> <artifactMaxAge>-1</artifactMaxAge> <remoteStorage> <url>http://repository.jboss.com/maven2</url> </remoteStorage> </repository> </repositories> <repositoryShadows> <repositoryShadow> <id>download.java.net_virtual</id> <name>download.java.net/virtual</name> <shadowOf>download.java.net_maven_1</shadowOf> <type>m1-m2-shadow</type> </repositoryShadow> </repositoryShadows> <repositoryGrouping> <pathMappings> <pathMapping> <id>11579d5dd96675a0</id> <groupId>public</groupId> <routePattern>.*/at/.*</routePattern> <routeType>inclusive</routeType> <repositories> <repository>cfc.inhouse</repository> </repositories> </pathMapping> <pathMapping> <id>11579d6e0ca23778</id> <groupId>public</groupId> <routePattern>.*/.*-CFC-.*/.*</routePattern> <routeType>inclusive</routeType> <repositories> <repository>fix</repository> </repositories> </pathMapping> <pathMapping> <id>1157a3844b5bb1a8</id> <groupId>public</groupId> <routePattern>.*/ejb3unit/.*</routePattern> <routeType>inclusive</routeType> <repositories> <repository>ejb3unit.sourceforge.net_maven2</repository> <repository>fix</repository> </repositories> </pathMapping> <pathMapping> <id>1157a38a4094b5c0</id> <groupId>public</groupId> <routePattern>.*/openarchitectureware/.*</routePattern> <routeType>inclusive</routeType> <repositories> <repository>www.openarchitectureware.org_m2</repository> <repository>fix</repository> </repositories> </pathMapping> <pathMapping> <id>115bfc3d68690be0</id> <groupId>public</groupId> <routePattern>.*/.*-CFC/.*</routePattern> <routeType>inclusive</routeType> <repositories> <repository>3rd-party_free</repository> </repositories> </pathMapping> </pathMappings> <repositoryGroups> <repositoryGroup> <groupId>public</groupId> <name>Public Repositories</name> <type>maven2</type> <repositories> <repository>repo1.maven.org_maven2</repository> <repository>download.java.net_maven_2</repository> <repository>download.java.net_virtual</repository> <repository>ejb3unit.sourceforge.net_maven2</repository> <repository>www.openarchitectureware.org_m2</repository> <repository>3rd-party_free</repository> <repository>3rd-party_non_free</repository> <repository>cfc.inhouse</repository> <repository>fix</repository> </repositories> </repositoryGroup> <repositoryGroup> <groupId>public-snapshots</groupId> <name>Public Snapshot Repositories</name> <type>maven2</type> <repositories> <repository>cfc.inhouse.snapshot</repository> </repositories> </repositoryGroup> <repositoryGroup> <groupId>xxx_statistik_group</groupId> <name>XXX Statistik Group</name> <type>maven2</type> <repositories> <repository>repo1.maven.org_maven2</repository> <repository>xxx_el4j</repository> <repository>xxx_jboss</repository> <repository>xxx_statistik</repository> </repositories> </repositoryGroup> </repositoryGroups> </repositoryGrouping> <repositoryTargets> <repositoryTarget> <id>1</id> <name>All (Maven2)</name> <contentClass>maven2</contentClass> <patterns> <pattern>.*</pattern> </patterns> </repositoryTarget> <repositoryTarget> <id>2</id> <name>All (Maven1)</name> <contentClass>maven1</contentClass> <patterns> <pattern>.*</pattern> </patterns> </repositoryTarget> <repositoryTarget> <id>3</id> <name>All but sources (Maven2)</name> <contentClass>maven2</contentClass> <patterns> <pattern>(?!.*-sources.*).*</pattern> </patterns> </repositoryTarget> <repositoryTarget> <id>4</id> <name>All Metadata (Maven2)</name> <contentClass>maven2</contentClass> <patterns> <pattern>.*maven-metadata\.xml.*</pattern> </patterns> </repositoryTarget> </repositoryTargets> <tasks> <task> <id>18</id> <name>1 - Evict unused items</name> <enabled>true</enabled> <type>EvictUnusedProxiedItemsTask</type> <status>RUNNING</status> <lastRun>1252188000026</lastRun> <nextRun>1253397600000</nextRun> <schedule> <type>weekly</type> <startDate>1252188000000</startDate> <daysOfWeek> <daysOfWeek>1</daysOfWeek> </daysOfWeek> </schedule> <properties> <property> <key>repositoryOrGroupId</key> <value>all_repo</value> </property> <property> <key>evictOlderCacheItemsThen</key> <value>7</value> </property> </properties> </task> <task> <id>17</id> <name>3 - Empty trash</name> <type>EmptyTrashTask</type> <status>WAITING</status> <nextRun>1253408400000</nextRun> <schedule> <type>weekly</type> <startDate>1252198800000</startDate> <daysOfWeek> <daysOfWeek>1</daysOfWeek> </daysOfWeek> </schedule> <properties> <property> <key>EmptyTrashItemsOlderThan</key> <value>0</value> </property> </properties> </task> <task> <id>19</id> <name>2 - Remove snapshots</name> <enabled>true</enabled> <type>SnapshotRemoverTask</type> <status>SUBMITTED</status> <lastRun>1252809458370</lastRun> <nextRun>1253403000000</nextRun> <schedule> <type>weekly</type> <startDate>1252193400000</startDate> <daysOfWeek> <daysOfWeek>1</daysOfWeek> </daysOfWeek> </schedule> <properties> <property> <key>repositoryOrGroupId</key> <value>all_repo</value> </property> <property> <key>removeIfReleaseExists</key> <value>true</value> </property> <property> <key>removeOlderThanDays</key> <value>1</value> </property> <property> <key>minSnapshotsToKeep</key> <value>1</value> </property> </properties> </task> </tasks> <smtpConfiguration> <host>cfc001</host> <port>25</port> <username>asr</username> <password>{fsMuDJ26e48H+hL9Q4Q7eJzcPm2neQKpObMDLUgfloo=}</password> <systemEmailAddress>nexus@...</systemEmailAddress> </smtpConfiguration> </nexusConfiguration> ---------- end nexus.xml ---------- On Tuesday 15 September 2009 18:07, Tamás Cservenák wrote: > Hi there, > sorry for long response. Could you attach your nexus.xml (watch for > passwords if any in there!)? > > ~t~ > > On Tue, Sep 15, 2009 at 6:03 PM, Roland Asmann <Roland.Asmann@...> wrote: > > Isn't there anybody that can confirm/contradict this? > > > > On Monday 14 September 2009 15:34, you wrote: > > > Hi all, > > > > > > It seems there's a bug in the 'evict unused proxied items' task. I've > > > > been > > > > > checking the trash for a while now, and it seems that Nexus deletes my > > > items when they are older than my configured 7 days. That is, it > > > deletes them regardless of being used only a couple of hours ago! > > > > > > I just tested this with a project, for which the dependency was > > > > originally > > > > > downloaded last monday at 09:00 UTC. My tasks normally run on sunday > > > > 24:00 > > > > > UTC, so today the item was still there. Then, I deleted my local > > > > repository > > > > > so the file would be freshly downloaded from the Nexus server. After > > > that > > > > I > > > > > ran the evict-task again and Nexus deleted said item! > > > > > > Has anybody else noticed this behavior, or did I perhaps configure > > > something wrong?? > > > > > > Thanks. > > > > -- > > Roland Asmann > > > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > > Bäckerstrasse 1/2/7 > > A-1010 Wien > > FN 266155f, Handelsgericht Wien > > > > Tel.: +43/1/513 88 77 - 27 > > Fax.: +43/1/513 88 62 > > Email: Roland.Asmann@... > > Web: www.cfc.at > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: nexus-user-unsubscribe@... > > For additional commands, e-mail: nexus-user-help@... -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: Roland.Asmann@... Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
|
|
Re: Re: Bug in 'evict unused proxied items' task?Hi Roland,
the config looks okay. So I really don't know what may happened. Please be aware that nexus tracks "last requested" time, but is unaware if you did a build with those artifacts if they were already downloaded to your local repository.
If you think this issue still stands, please fill in a JIRA with as much details as possible. Thanks, ~t~
|
|
|
Re: Re: Bug in 'evict unused proxied items' task?Hi Tamás,
Thanks for the info, I am aware that having a project in my local repo doesn't trigger a fresh download from Nexus. However, I am currently upgrading all of our projects to Maven 2.0.10 and am deleting my local repo for testing purposes in a daily (almost hourly actually!) basis. So I think that should definitely trigger a new download from Nexus and therefor update the 'last requested time', right? I'll give it until monday, so the job can run this weekend and I'll look into what it did after that. If it still happens, I'll create a JIRA, although I'm not sure what more details I could put in there besides what I already wrote here... Thanks again, Roland On Thursday 17 September 2009 09:43, Tamás Cservenák wrote: > Hi Roland, > the config looks okay. So I really don't know what may happened. > > Please be aware that nexus tracks "last requested" time, but is unaware if > you did a build with those artifacts if they were already downloaded to > your local repository. > > If you think this issue still stands, please fill in a JIRA with as much > details as possible. > > > Thanks, > ~t~ > > On Tue, Sep 15, 2009 at 7:13 PM, Roland Asmann <Roland.Asmann@...> wrote: > > Sure, here it is... -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: Roland.Asmann@... Web: www.cfc.at --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |