Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
VAB
Enthusiast
Posts: 44
Liked: 5 times
Joined: Jan 09, 2024 10:07 am
Full Name: VAB
Contact:

[SOLARIS] "veeamconfig grablogs" does not work with an NFS home directory

Post by VAB » 1 person likes this post

Hello all!

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.
Of course, the workaround is to run the command on a user with a local home directory.


Hope this helps,
VAB
rovshan.pashayev
Veeam Software
Posts: 569
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: [SOLARIS] "veeamconfig grablogs" does not work with an NFS home directory

Post by rovshan.pashayev »

Hello,

Thank you for sharing; we will review it and assess improvements.

But keep in mind that Veeam Agent will collect logs, export them to an archive file with the name veeam_logs_<date>_<time>.tar.gz, and save the archive to the current working directory.

So, you can run command anywhere you like, not necessary in the user's home directory (local or not).
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
VAB
Enthusiast
Posts: 44
Liked: 5 times
Joined: Jan 09, 2024 10:07 am
Full Name: VAB
Contact:

Re: [SOLARIS] "veeamconfig grablogs" does not work with an NFS home directory

Post by VAB » 1 person likes this post

Just checked again; I stand corrected. You are right!

Don't know what the problem was, maybe a mismatch between shell prompt and cwd. Sorry for the noise.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests