[RTFACT-18524] When loginBlockDelay is set to 0, upgrades since version 6.7 will fail Created: 15/Feb/19 Updated: 18/Feb/19 Resolved: 17/Feb/19
|Project:||Artifactory Binary Repository|
|Affects Version/s:||6.7.0, 6.7.3|
|Reporter:||Angello Maggio||Assignee:||Nadav Yogev|
Both test Postgres DB 9.6.2
One one RPM installation and one Zip installation.
RPM was ugpraded 6.4.0 to 6.7.3, Zip was upgraded 6.6 to 6.7.3.
The bug doesn’t affect new installations, only those that have changed the system properties to have artifactory.security.loginBlockDelay=0
Previously to workaround a different JIRA (
After boot the upgrade will output the following:
2019-02-14 20:09:17,444 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: / by zero
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userLockInMemoryServiceImpl' defined in URL [jar:file:/opt/jfrog/artifactory/tomcat/webapps/artifactory/WEB-INF/lib/artifactory-storage-db-6.7.3.jar!/org/artifactory/storage/db/security/service/UserLockInMemoryServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.artifactory.storage.db.security.service.UserLockInMemoryServiceImpl]: Constructor threw exception; nested exception is java.lang.ArithmeticException: / by zero
After setting artifactory.security.loginBlockDelay=2, we were able to restart and fix the issue.