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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...