Avamar: Avamar User Interface (AUI) and Avamar Administrator Console bad response when creating or editing a backup group
Riepilogo: This article addresses an issue with the Avamar Management Console database (MCDB) regarding a column value in the retention_policies table.
Questo articolo si applica a
Questo articolo non si applica a
Questo articolo non è legato a un prodotto specifico.
Non tutte le versioni del prodotto sono identificate in questo articolo.
Sintomi
An attempt to create or edit a backup group results in no response.
Nothing is referenced in the Management Console Service (MCS) logs, but in the rest api logs.
Below shows the Avamar REST API log.
Attention to the error:
Nothing is referenced in the Management Console Service (MCS) logs, but in the rest api logs.
Below shows the Avamar REST API log.
/usr/local/avamar/var/mc/server_log/mc-rest-api.log java.lang.IllegalArgumentException: No enum constant com.avamar.mc.api.replication.dto.DurationUnits.HOURS at java.lang.Enum.valueOf(Unknown Source) at com.avamar.mc.api.replication.dto.DurationUnits.valueOf(DurationUnits.java:3) at com.avamar.mc.api.retention.service.RetentionServiceImpl.convertRetentionPolicyDescriptor(RetentionServiceImpl.java:194) at com.avamar.mc.api.retention.service.RetentionServiceImpl.getRetentions(RetentionServiceImpl.java:65) at com.avamar.mc.api.retention.web.RetentionController.getRetentions(RetentionController.java:48) at com.avamar.mc.api.retention.web.RetentionController$$FastClassBySpringCGLIB$$5ac7ec93.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.avamar.mc.api.retention.web.RetentionController$$EnhancerBySpringCGLIB$$ebae7189.getRetentions(<generated>) at sun.reflect.GeneratedMethodAccessor4160.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)
Attention to the error:
java.lang.IllegalArgumentException: No enum constant com.avamar.mc.api.replication.dto.DurationUnits.HOURS
Causa
The MCDB recorded a value of 0 in the unit column of the retention_policies table.
A value of 0 in this column suggests that the retention period is measured in hours. However, the retention period unit is defined by four values: days [1], weeks [2], months [3], and years [4].
Java does not have a constant value set for the unit of hours so it is not a valid constant value when running enum.valueOf() method.
You can see DurationUnits.HOURS, where it is throwing an error saying no enumeration constant of hours exists.
Example:
MCDB with the faulty entries
A value of 0 in this column suggests that the retention period is measured in hours. However, the retention period unit is defined by four values: days [1], weeks [2], months [3], and years [4].
Java does not have a constant value set for the unit of hours so it is not a valid constant value when running enum.valueOf() method.
You can see DurationUnits.HOURS, where it is throwing an error saying no enumeration constant of hours exists.
Example:
MCDB with the faulty entries
admin@avamar:~/>: psql -p 5555 mcdb psql (10.6) Type "help" for help. mcdb=# select id,name,duration,unit from retention_policies; id | name | duration | unit ------------------+------------------------------+----------+------ MONTHLY:PolicyID | Monthly Retention | 1 | 3 WEEKLY:PolicyID | Weekly Retention | 1 | 2 Default:POLICYID | Default Retention | 60 | 1 EndUser:PolicyID | End User On Demand Retention | 60 | 1 Minimal:PolicyID | Minimal Retention | 60 | 1 RP1652848159766 | Platinum | 60 | 0 <-- These 0s RP1652848162931 | Gold | 60 | 0 <-- These 0s RP1652848166086 | Silver | 60 | 0 <-- These 0s RP1652848169312 | Bronze | 60 | 0 <-- These 0s (9 rows)
Risoluzione
Step 1:
Take a backup of MCS.
Step 2:
Stop MCS.
Step 3:
Bring up the MCDB manually.
Step 4:
Update the value for the retention policies unit to 1, from 0.
Step 5:
Start MCS.
Step 6:
Ensure that you can now add or edit backup policy in AUI or Avamar Administrator and start the backup scheduler.
Take a backup of MCS.
mcserver.sh --flush
Step 2:
Stop MCS.
mcserver.sh --stop --force
Step 3:
Bring up the MCDB manually.
dbmaint.sh --db=on --dbname=mcdb
Step 4:
Update the value for the retention policies unit to 1, from 0.
psql -d mcdb -p 5555 -c "update retention_policies set unit=1 where unit=0"
Step 5:
Start MCS.
mcserver.sh --start
Step 6:
Ensure that you can now add or edit backup policy in AUI or Avamar Administrator and start the backup scheduler.
Informazioni aggiuntive
Prodotti interessati
AvamarProprietà dell'articolo
Numero articolo: 000200096
Tipo di articolo: Solution
Ultima modifica: 09 lug 2026
Versione: 7
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.