[GH-ISSUE #609] Question: getting "Error: ENDED authentication_failed doesn't contain protocol(NUMBER)" when performing backend search #377

Closed
opened 2026-03-01 14:43:03 +03:00 by kerem · 4 comments
Owner

Originally created by @bmscmoreira on GitHub (Jan 8, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/609

After searching for a word in the backend, logged in as admin, I get the error:
"Error: ENDED authentication_failed doesn't contain protocol(NUMBER)"

I am using docker and two containers - one for archivebox, other for sonic backend search. I have used the sample docker-compose file from https://github.com/ArchiveBox/ArchiveBox/blob/master/docker-compose.yml having changed "SEARCH_BACKEND_PASSWORD" to my custom password.
In sonic configuration file I have changed "auth_password" to that same custom password, and inet to "0.0.0.0:1491".

Can someone help me debug this? Thank you.

Originally created by @bmscmoreira on GitHub (Jan 8, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/609 After searching for a word in the backend, logged in as admin, I get the error: `"Error: ENDED authentication_failed doesn't contain protocol(NUMBER)"` I am using docker and two containers - one for archivebox, other for sonic backend search. I have used the sample docker-compose file from https://github.com/ArchiveBox/ArchiveBox/blob/master/docker-compose.yml having changed "SEARCH_BACKEND_PASSWORD" to my custom password. In sonic configuration file I have changed "auth_password" to that same custom password, and inet to "0.0.0.0:1491". Can someone help me debug this? Thank you.
Author
Owner

@pirate commented on GitHub (Jan 8, 2021):

Thanks for reporting @bmscmoreira we'll take a look. @jdcaballerov do you have any ideas?

<!-- gh-comment-id:756845233 --> @pirate commented on GitHub (Jan 8, 2021): Thanks for reporting @bmscmoreira we'll take a look. @jdcaballerov do you have any ideas?
Author
Owner

@jdcaballerov commented on GitHub (Jan 8, 2021):

@bmscmoreira Are you setting the env var SEARCH_BACKEND_PASSWORD to pass the new password to the ArchiveBox container?

It appears to me you are only changing the password in the sonic container but you need to pass the newly set password to the ArchiveBox container using any of the configuration alternatives. One of those being an environment variable.

services:
    archivebox:
        ...
        environment:
            ...
            - SEARCH_BACKEND_PASSWORD=SecretPassword
        ...
    
    sonic:
        ...
        environment:
            - SEARCH_BACKEND_PASSWORD=SecretPassword
<!-- gh-comment-id:756854306 --> @jdcaballerov commented on GitHub (Jan 8, 2021): @bmscmoreira Are you setting the env var `SEARCH_BACKEND_PASSWORD` to pass the new password to the ArchiveBox container? It appears to me you are only changing the password in the sonic container but you need to pass the newly set password to the ArchiveBox container using any of the configuration alternatives. One of those being an environment variable. ```yaml services: archivebox: ... environment: ... - SEARCH_BACKEND_PASSWORD=SecretPassword ... sonic: ... environment: - SEARCH_BACKEND_PASSWORD=SecretPassword ```
Author
Owner

@bmscmoreira commented on GitHub (Jan 8, 2021):

Thank you @pirate and @jdcaballerov for your quick help. I was indeed missing the SEARCH_BACKEND_PASSWORD env variable in the archivebox service in my yml file.
May I suggest you add that line to line 26 here? - https://github.com/ArchiveBox/ArchiveBox/blob/master/docker-compose.yml

Thanks!

<!-- gh-comment-id:756865652 --> @bmscmoreira commented on GitHub (Jan 8, 2021): Thank you @pirate and @jdcaballerov for your quick help. I was indeed missing the SEARCH_BACKEND_PASSWORD env variable in the archivebox service in my yml file. May I suggest you add that line to line 26 here? - https://github.com/ArchiveBox/ArchiveBox/blob/master/docker-compose.yml Thanks!
Author
Owner

@jdcaballerov commented on GitHub (Jan 8, 2021):

@bmscmoreira great!, yes I think it's useful to have it there so it's explicit.

Added: github.com/ArchiveBox/ArchiveBox@f7c76adfd8

<!-- gh-comment-id:756909289 --> @jdcaballerov commented on GitHub (Jan 8, 2021): @bmscmoreira great!, yes I think it's useful to have it there so it's explicit. Added: https://github.com/ArchiveBox/ArchiveBox/commit/f7c76adfd87c093e6c0e4074990bf1617a316851
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#377
No description provided.