Just a quick heads-up to let you know about a problem that just bit me: It seems that "veeamconfig grablogs" wants to write the log bundle to the home directory of the user invoking the command, but as the user running the service (normally root). Not sure if this was always the case; ISTR that the log bundle used to be written to /tmp.
Anyway, this fails when root does not have write permission for the home directory of the invoking user. For example, my user is in group "veeam" has an NFS home directory. The "veeamconfig grablogs" silently fails with a return code of -1. It took mie a little while to realize what the issue is. To shed light on the problem, I have to look in the corresponding session log in the /var/log/veeam/_system directory:
Code: Select all
more /var/log/veeam/_system/Session_20250121_153726_{66179850-2503-4ae6-a405-bd08f73084aa}
[...]
[21.01.2025 15:38:00.038] < 6> cli | Next client command: [put].
[21.01.2025 15:38:00.038] < 6> cli | :> /tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz
[21.01.2025 15:38:00.038] < 6> cli | :> /home/vbrandt/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz
[21.01.2025 15:38:00.038] < 6> cli | bool:> true
[21.01.2025 15:38:00.039] < 6> cli | Client: processing [put_file] command. Source: [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Target: [/home/vab/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz].
[21.01.2025 15:38:00.041] < 6> fs | Opening file [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz] for reading.
[21.01.2025 15:38:00.041] < 6> fs | File [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz] was opened.
[21.01.2025 15:38:00.042] < 6> fs | Uploading item. Datasource: [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Target item type: [file]. Target file path: [/home/vab/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz].
[21.01.2025 15:38:00.132] < 6> fs | Uploading item. Datasource: [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Target item type: [file]. Target file path: [/home/vab/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Failed.
[21.01.2025 15:38:00.133] < 6> cli | Client: processing [put_file] command. Source: [/tmp/veeam/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Target: [/home/vab/veeam-logs_Solaris_Sparc_20250121_153735.tar.gz]. Failed.
Hope this helps,
VAB