Avamar:建立或編輯備份群組時,Avamar 使用者介面 (AUI) 和 Avamar Administrator 主控台回應不良
Summary: 本文解決 Avamar 管理主控台資料庫 (MCDB) 有關 retention_policies 表格中欄位值的問題。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
嘗試建立或編輯備份群組時沒有回應。
管理主控台服務 (MCS) 記錄中不會提及任何內容,但在其餘應用程式發展介面記錄中會提及。
以下顯示 Avamar REST API 記錄。
注意錯誤:
管理主控台服務 (MCS) 記錄中不會提及任何內容,但在其餘應用程式發展介面記錄中會提及。
以下顯示 Avamar REST API 記錄。
/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)
注意錯誤:
java.lang.IllegalArgumentException: No enum constant com.avamar.mc.api.replication.dto.DurationUnits.HOURS
Cause
MCDB 在retention_policies表的單位列中記錄了值 0。
此列中的值 0 表示保留期以小時為單位。但是,保留期單位由四個值定義:天 [1]、周 [2]、月 [3] 和年 [4]。
Java 沒有為小時單位設置常量值,因此在運行 enum.valueOf() 方法時,它不是一個有效的常量值。
您可以看到 DurationUnits.HOURS,其中會拋出一個錯誤,指出不存在小時枚舉常量。
範例:
具有錯誤項目的 MCDB
此列中的值 0 表示保留期以小時為單位。但是,保留期單位由四個值定義:天 [1]、周 [2]、月 [3] 和年 [4]。
Java 沒有為小時單位設置常量值,因此在運行 enum.valueOf() 方法時,它不是一個有效的常量值。
您可以看到 DurationUnits.HOURS,其中會拋出一個錯誤,指出不存在小時枚舉常量。
範例:
具有錯誤項目的 MCDB
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)
Resolution
第 1 步:
備份 MCS。
第 2 步:
停止 MCS。
第 3 步:
手動啟動 MCDB。
第 4 步:
將保留原則單位的值從 0 更新為 1。
步驟5:
啟動 MCS。
第 6 步:
確定您現在可以在 AUI 或 Avamar 系統管理員中新增或編輯備份原則,並啟動備份排程器。
備份 MCS。
mcserver.sh --flush
第 2 步:
停止 MCS。
mcserver.sh --stop --force
第 3 步:
手動啟動 MCDB。
dbmaint.sh --db=on --dbname=mcdb
第 4 步:
將保留原則單位的值從 0 更新為 1。
psql -d mcdb -p 5555 -c "update retention_policies set unit=1 where unit=0"
步驟5:
啟動 MCS。
mcserver.sh --start
第 6 步:
確定您現在可以在 AUI 或 Avamar 系統管理員中新增或編輯備份原則,並啟動備份排程器。
Additional Information
Affected Products
AvamarArticle Properties
Article Number: 000200096
Article Type: Solution
Last Modified: 03 Feb 2025
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.