User Tools

Site Tools


public:5273_issue:new_file_file_filename01_error_ioexception_nixutil.c_read_invalid_argument_when_backing_up_files_on_linux_machine

ISSUE:"[New File] File="/filename01" Error="[IOException] [NixUtil.c][read] Invalid argument" when backing up files on Linux machine

Article ID: 5273
Reviewed: 21/08/2017

Product Version:
AhsayOBM : 7.5.0.0 or above
OS: Linux

Problem Description

When performing a file backup job with AhsayOBM on a Linux machine the following error is shown in the backup log Error="[IOException] [NixUtil.c][read] Invalid argument" :

No. Type Timestamp Log
* info ... ...
* erro YYYY/MM/DD hh:mm:ss [New File] File="/filename01" Error="[IOException] [NixUtil.c][read] Invalid argument"
* erro YYYY/MM/DD hh:mm:ss [New File] File="/filename02" Error="[IOException] [NixUtil.c][read] Invalid argument"
* ... ... ...

Cause

The "Invalid argument" error message is returned by the Linux operating system. It is related to the permission setting of the file or folder selected for backup.

Example:
The following files in the /selinux folder on CentOS 6 where the root account only has write access permission; commit_pending_bools, disable, and load , an "Invalid argument" error will be triggered even when root tries to read the contents of the file at the operating system level.

 <code>
  --w-------. 1 root root 0 Aug 17 15:54 /selinux/commit_pending_bools
  <br/>
  --w-------. 1 root root 0 Aug 16 15:47 /selinux/disable
  <br/>
  --w-------. 1 root root 0 Aug 16 15:47 /selinux/load
  <br/>
  #
  <br/>
  # cat /selinux/load
  <br/>
  cat: /selinux/load: Invalid argument#
 </code>



Resolution

To resolve this issue:

  • Exclude the affected files/folders from the backup source.

Keywords

Linux, permission, selinux, file, folder, read permission

public/5273_issue/new_file_file_filename01_error_ioexception_nixutil.c_read_invalid_argument_when_backing_up_files_on_linux_machine.txt · Last modified: 2018/06/28 17:02 by mike.gong