CARVIEW |
Select Language
HTTP/2 302
date: Wed, 23 Jul 2025 00:59:22 GMT
content-length: 0
location: https://github.com/ArchiveBox/ArchiveBox/issues/1320
server-timing: nginx;desc="NGINX";dur=0.889215,glb;desc="GLB";dur=101.931121
x-voltron-version: fd8fbbc
vary: Accept-Encoding, Accept, X-Requested-With
server: github.com
x-frame-options: DENY
strict-transport-security: max-age=31536000; includeSubDomains; preload
set-cookie: _gh_sess=m07XHpiZ%2Bf41GZkEVkDKqYGMGgZBKRVu02ULzYzcVGr1y%2FK4yocEn4FmtiQJsnuKKbiJOvwfdnrxZBg1mJOSBsvMH9qF0hhJTv8mx02nGVXEwYOqfNdTYBIl9P3dhzLSyYgQHRzWnwR5k3RT%2FsS0jVSSVxHz8%2BgrYvwxLICTYdK%2Bh2Brl3cgbLloNRmEkUyqPNFvPJg36%2FVPyjlCjkOrDYTpDtDIDF5YzAwk0UPHHm77XefCc5fu976D0tz329ecboGooHx6mWLuq7p0DM6BDA%3D%3D--LcEse7CLA%2FFZsuAm--UVW78OCuR%2Bz9pK7BWVQFlQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1073684423.1753232362; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:59:22 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:59:22 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B086:167F3A:210C67:2E7219:688033EA
HTTP/2 200
date: Wed, 23 Jul 2025 00:59:23 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
link: ; rel=preload; as=fetch; crossorigin=use-credentials
etag: W/"ef418224f8ef117a25fc1d4968f0b09b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
x-github-request-id: B086:167F3A:210C72:2E7233:688033EA
GitHub · Where software is built
No one assignedNo labelsNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
I enabled the sonic search backend in my docker-compose.yml file, but I get Error from the search backend, only showing results from default admin search fields - Error: ENDED authentication_failed doesn't contain protocol(NUMBER)
when I search.
Per related troubleshooting here I did the following:
docker-compose run archivebox /usr/local/bin/python3
Creating archivebox_archivebox_run ... done
Python 3.11.7 (main, Dec 5 2023, 19:05:17) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> HOST = 'sonic'
>>> PORT = 1491
>>> with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
... s.connect((HOST, PORT))
... s.sendall(b'Hello, world')
... data = s.recv(1024)
...
>>> print('Received', repr(data))
Received b'CONNECTED <sonic-server v1.4.8>'
>>> from sonic import SearchClient
>>> from archivebox.config import SEARCH_BACKEND_HOST_NAME, SEARCH_BACKEND_PORT, SEARCH_BACKEND_PASSWORD, SONIC_BUCKET, SONIC_COLLECTION
>>> with SearchClient(SEARCH_BACKEND_HOST_NAME, SEARCH_BACKEND_PORT, SEARCH_BACKEND_PASSWORD) as querycl:
... print(querycl.query(SONIC_COLLECTION, SONIC_BUCKET, 'test'))
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 661, in query
return self._execute_command_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 483, in _execute_command_async
active = self.get_active_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 453, in get_active_connection
active = self.pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 376, in get_connection
conn = self._make_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 398, in _make_connection
con.connect()
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 219, in connect
self.protocol = _parse_protocol_version(resp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 117, in _parse_protocol_version
raise ValueError("{} doesn't contain protocol(NUMBER)".format(text))
ValueError: ENDED authentication_failed doesn't contain protocol(NUMBER)
>>> with SearchClient(SEARCH_BACKEND_HOST_NAME, SEARCH_BACKEND_PORT, SEARCH_BACKEND_PASSWORD) as querycl:
... print(querycl.query(SONIC_COLLECTION, SONIC_BUCKET, 'test'))
File "<stdin>", line 2
print(querycl.query(SONIC_COLLECTION, SONIC_BUCKET, 'test'))
^
IndentationError: expected an indented block after 'with' statement on line 1
>>> with SearchClient(SEARCH_BACKEND_HOST_NAME, SEARCH_BACKEND_PORT, SEARCH_BACKEND_PASSWORD) as querycl:
... print(querycl.query(SONIC_COLLECTION, SONIC_BUCKET, 'test'))
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 661, in query
return self._execute_command_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 483, in _execute_command_async
active = self.get_active_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 453, in get_active_connection
active = self.pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 376, in get_connection
conn = self._make_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 398, in _make_connection
con.connect()
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 219, in connect
self.protocol = _parse_protocol_version(resp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sonic/client.py", line 117, in _parse_protocol_version
raise ValueError("{} doesn't contain protocol(NUMBER)".format(text))
ValueError: ENDED authentication_failed doesn't contain protocol(NUMBER)
>>> exit()
This is my docker-compose.yml in pertinent part:
version: '3.9'
services:
archivebox:
# image: ${DOCKER_IMAGE:-archivebox/archivebox:dev}
image: archivebox/archivebox:dev
restart: always
command: server --quick-init 0.0.0.0:8000
ports:
- 8000:8000
volumes:
- ./data:/data
# - ./etc/crontabs:/var/spool/cron/crontabs # uncomment this and archivebox_scheduler below to set up automatic recurring archive jobs
# - ./archivebox:/app/archivebox # uncomment this to mount the ArchiveBox source code at runtime (for developers working on archivebox)
# build: . # uncomment this to build the image from source code at buildtime (for developers working on archivebox)
environment:
- ALLOWED_HOSTS=* # restrict this to only accept incoming traffic via specific domain name
- PUBLIC_INDEX=False # set to False to prevent anonymous users from viewing snapshot list
- PUBLIC_SNAPSHOTS=False # set to False to prevent anonymous users from viewing snapshot content
- PUBLIC_ADD_VIEW=False # set to True to allow anonymous users to submit new URLs to archive
- ADMIN_USERNAME=sij # create an admin user on first run with the given user/pass combo
- ADMIN_PASSWORD=REDACTED
- PUID=1000 # set to your host user's UID & GID if you encounter permissions issues
- PGID=1000
- SEARCH_BACKEND_ENGINE=sonic # uncomment these and sonic container below for better full-text search
- SEARCH_BACKEND_HOST_NAME=sonic
- SEARCH_BACKEND_PASSWORD=REDACTED
- MEDIA_MAX_SIZE=4000m # increase this filesize limit to allow archiving larger audio/video files
# - TIMEOUT=120 # increase this number to 120+ seconds if you see many slow downloads timing out
# - CHECK_SSL_VALIDITY=True # set to False to disable strict SSL checking (allows saving URLs w/ broken certs)
- SAVE_ARCHIVE_DOT_ORG=False # set to False to disable submitting all URLs to Archive.org when archiving
# ...
# add further configuration options from archivebox/config.py as needed (to apply them only to this container)
# or set using `docker compose run archivebox config --set SOME_KEY=someval` (to persist config across all containers)
# For ad-blocking during archiving, uncomment this section and pihole service section below
# networks:
# - dns
# dns:
# - 172.35.0.53
sonic:
image: valeriansaliou/sonic:latest
restart: always
expose:
- 1491
environment:
- SEARCH_BACKEND_PASSWORD=REDACTED
volumes:
- ./sonic.cfg:/etc/sonic.cfg:ro
- ./data/sonic:/var/lib/sonic/store
#networks:
# network needed for pihole container to offer :53 dns resolving on fixed ip for archivebox container
# dns:
# ipam:
# driver: default
# config:
# - subnet: 172.35.0.0/24
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.