2025-02-06

Synology Active Backup for Business for Hyper-V VM Failed to Backup #02

繼前一篇  Synology Active Backup for Business for Hyper-V VM Failed to Backup #01
取得 Patch 跳過了 5 個 Snapshots 的問題後

還是備份失敗

於是再用 Support Center App 產生 Active Backup for Business 的 Debug Log 後
在 ActiveBackup\volume1\@ActiveBackup\log\vm.log 中看到

synoabk_vm_backup[6175]: synoabk_vm::[WARNING] hyperv_agent.cpp:1381(6175,139923524343360) [6175]hypervisor_agent/hyperv_agent.cpp:145 {"error_class":"PowerShellException","error_message":"Missing an argument for parameter 'Id'. Specify a parameter of type 'System.Int32[]' and try again.","error_params":{"Activity":"Stop-Process","Category":5,"Reason":"ParameterBindingException","TargetName":"","TargetType":"","error_id":"MissingArgument,Microsoft.PowerShell.Commands.StopProcessCommand"},"success":false}

難道是 Powershell 語法錯誤少帶一個參數?

Synology Active Backup for Business for Hyper-V VM Failed to Backup #01

備份失敗了,說我的 Snapshot 數量超過 5 個所以不給備

Virtual machine VMName's snapshots have reached the maximum number (5).
You need to delete some snapshots on the device

但實際上根本就一個 Snapshot 也沒有

Synology 用 Support Center App 產生 Debug Log

在使用 Synology NAS 在發生問題時為了查原因
除了系統預設相當簡略的錯誤訊息以外,可以匯出詳細 Log 來 Debug

執行 Support Center App

切換到 Support Services 頁籤

Synology Active Backup for Business for Hyper-V VM List Blank

初次使用 Synology Active Backup for Business 的時候
Hyper-V Server 連線成功,但 VM 列表一片空白

用 Support Center App 產生 Active Backup for Business 的 Debug Log
在 dsm\var\log\synoscgi.log 找到以下錯誤訊息

Athena synoscgi_SYNO.ActiveBackup.Inventory_1_list_node[24340]:
[ERROR] main.cpp:212(24340,139646703461952)
Code: [0]
What: [[24340]hypervisor_agent/hyperv_agent.cpp:145
{"error_class":"PowerShellException","error_message":"std_out: b'[ //VM Information JSON// ]',
std_err:
Get-VM : Hyper-V encountered an error trying to access an object on computer 'HYPER-V-xxxxxx' because the object was 
not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the 
Virtual Machine Management service on the computer is running. If the service is running, try to perform the task 
again by using Run as Administrator.
At line:3 char:1
+ Get-VM| Select Id,Name,MemoryStartup,ProcessorCount,State,Status,Prim ...
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VM], VirtualizationException
    + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVM
 
Get-VM : Hyper-V encountered an error trying to access an object on computer 'HYPER-V-xxxxxx' because the object was 
not found. The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator. At line:3 char:1 + Get-VM| Select Id,Name,MemoryStartup,ProcessorCount,State,Status,Prim ... + ~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-VM], VirtualizationException + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVM, status_code: 1", "error_params":{"error_id":""},"success":false}]

2025-02-03

防止網頁在 Chrome 中被翻譯 Disable Google translate from HTML in Chrome

<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
    <head>
        <meta name="google" content="notranslate" />
    </head>
        <body>
        ...
        </body>
</html>

出處: https://stackoverflow.com/questions/12238396/how-to-disable-google-translate-from-html-in-chrome