All Apps and Add-ons

Why the error "The lookup could not be loaded from the server" in lookup editor app?

yuanliu
SplunkTrust
SplunkTrust

Just installed Splunk App for Lookup File Editing 4.0.1 in Splunk Enterprise 9.0.5. The app loads after restart.  But it gives “The lookup could not be loaded from the server” when I try to open an existing lookup; it gives the same error after I click “Save” when I create a new lookup.  The file is created; but a corresponding lookup definition is not.  How do I make the app work?

Following a suggestion in https://community.splunk.com/t5/All-Apps-and-Add-ons/Upgraded-Lookup-Editor-3-0-5-Errors-String-valu..., I performed a search

 

 

 

index=_internal (sourcetype="lookup_editor_controller" OR sourcetype=lookup_editor_rest_handler OR sourcetype=lookup_backups_rest_handler) testedit

 

 

 

The only error entry reads

 

 

 

ERROR force lookup replication failed: user=admin, namespace=search, lookup_file=testedit, details=a bytes-like object is required, not 'str'
Traceback (most recent call last):
  File "/opt/splunk/etc/apps/lookup_editor/bin/lookup_editor/__init__.py", line 419, in update
    self.force_lookup_replication(namespace, lookup_file, session_key)
  File "/opt/splunk/etc/apps/lookup_editor/bin/lookup_editor/__init__.py", line 295, in force_lookup_replication
    if 'No local ConfRepo registered' in content:
TypeError: a bytes-like object is required, not 'str'

 

 

 

Before this error, there were two DEBUG entries and one INFO.  In chronological order:

 

 

 

 DEBUG destination_lookup_full_path=/opt/splunk/etc/apps/search/lookups/testedit
 DEBUG Creating a new lookup file, user=nobody, namespace=search, lookup_file=testedit, path="/opt/splunk/var/run/splunk/lookup_tmp/lookup_gen_20230818_181212_7r7p4o8s.txt"
 INFO Lookup created successfully, user=admin, namespace=search, lookup_file=testedit, path="/opt/splunk/etc/apps/search/lookups/testedit"

 

 

 

After I manually define a lookup with this file, I am able to use it.  But the editor still cannot open it.

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...