Project

General

Profile

Bug #1797

Input fails when it attempts to access a directory without proper permissions

Added by Luke Murphey over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/23/2017
Due date:
% Done:

100%


Associated revisions

Revision 54 (diff)
Added by lukemurphey over 7 years ago

Fixing error caused when the input cannot access a directory

Reference #1797

History

#1 Updated by Luke Murphey over 7 years ago

2017-03-22 18:19:02,856 INFO Time is later than filter, st_mtime=1490213086.0038838, must_be_later_than=None, path='/lawprd/scripts'
2017-03-22 18:19:02,856 INFO Completed retrieval of file data, count=202, path=/lawprd/scripts
2017-03-22 18:19:02,861 ERROR Execution failed
Traceback (most recent call last):
File "/lawprd/splunk/etc/apps/finapps_lawson_filemon/bin/file_info_app/modular_input.py", line 1320, in execute
self.do_run(in_stream, log_exception_and_continue=True)
File "/lawprd/splunk/etc/apps/finapps_lawson_filemon/bin/file_info_app/modular_input.py", line 1220, in do_run
input_config)
File "/lawprd/splunk/etc/apps/finapps_lawson_filemon/bin/file_meta_data.py", line 508, in run
result['time'] = time.strftime("%a %b %d %H:%M:%S %Y")
TypeError: list indices must be integers, not str

#2 Updated by Luke Murphey over 7 years ago

Observations:
  • The input is using recursive mode so it should be calling get_files_data()
Questions:
  • Could get_file_data() return an array?
    • I don't see how it could
  • What version of the app is this?
  • Does this fail on the same file?

#3 Updated by Luke Murphey over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#4 Updated by Luke Murphey over 7 years ago

  • Subject changed from Input fails to Input fails when it attempts to access a directory without proper permissions

Also available in: Atom PDF