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
1 Solution

yuanliu
SplunkTrust
SplunkTrust

Encouraged by a new install on my laptop with app version 4.0.4, I upgraded app on my server to 4.0.5.  I can now confirm that although the error still shows in app version 4.0.1 on Splunk 9.4.0 but no longer shows in app version 4.0.5.  Consider fixed. (Fixed bugs in documentation has no mentioning of this error.)

View solution in original post

Tags (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

Encouraged by a new install on my laptop with app version 4.0.4, I upgraded app on my server to 4.0.5.  I can now confirm that although the error still shows in app version 4.0.1 on Splunk 9.4.0 but no longer shows in app version 4.0.5.  Consider fixed. (Fixed bugs in documentation has no mentioning of this error.)

Tags (1)
0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...