Hi everyone,
I’ve manually installed Seafile Pro 12.0.13 on a fresh Ubuntu 22.04 VPS. Everything runs fine at first glance – but full-text search doesn’t return any results, even after reindexing.
Here’s a summary of my setup and what I’ve tried:
⸻
Environment
• Seafile Pro 12.0.13 (manually extracted from .tar.gz)
• MySQL backend – working fine
• Elasticsearch 7.10 installed via APT (reachable at 127.0.0.1:9200)
• Web UI available at http://217.154.208.207:8000
• File server runs and listens on 0.0.0.0:8082 (netstat confirmed)
• Uploads work
• BUT: Search returns no results, even for recently added, simple terms
⸻
seafevents.conf
[DATABASE]
type = mysql
host = 127.0.0.1
port = 3306
username = seafile
password = ********
name = seahub_db
[INDEX FILES]
index_file_name = true
index_office_pdf = true
external_es_server = true
es_host = 127.0.0.1
es_port = 9200
[STATISTICS]
enabled = true
[AUDIT]
enabled = true
[FILE HISTORY]
enabled = true
suffix = md,txt,doc,docx,xls,xlsx,ppt,pptx,sdoc
⸻
What I did:
Elasticsearch
• Service is running and reachable via curl localhost:9200
• I removed /var/lib/elasticsearch/nodes/ and restarted ES to reset indexes
Seafile
• Web UI and file server start cleanly (seahub.sh start 8000, seafile.sh start)
• SERVICE_URL and FILE_SERVER_ROOT correctly set in seahub_settings.py
Indexing
1. I copied and made the index script executable:
cp run.sh.template run.sh
chmod +x run.sh
2. Installed all dependencies listed in requirements.txt via pip
3. Explicitly upgraded to SQLAlchemy==2.0.41
4. Installed pylibmc, flask, gevent, pyjwt, etc.
5. Set PYTHONPATH:
export PYTHONPATH=“/usr/local/lib/python3.10/dist-packages:$(pwd)/pro/python:$(pwd)/seafile/lib/python3/site-packages”
6. Ran:
./run.sh initdb
nohup ./run.sh run-index-worker > /opt/seafile/logs/seafevents-index.log 2>&1 &
⸻
Result
• No errors appear, but:
• /opt/seafile/logs/seafevents-index.log remains empty
• seahub.log and seafile.log show no errors
• Search via web UI returns nothing (not even file names)
• I confirmed that uploads do succeed and files are present
⸻
Diagnostics
curl tests
curl -I http://127.0.0.1:8082/hello/ # 404
curl -I http://127.0.0.1:8082/seafhttp/ # 404
curl -I http://127.0.0.1:8082/seafhttp/hello/ # 404
(Shouldn’t this return 200 OK at least on /hello/?)
Logs
• /opt/seafile/logs/seahub.log: no index-related entries
• /opt/seafile/logs/seafevents-index.log: empty
• /opt/seafile/logs/error.log: does not exist
⸻
My Questions
1. How can I verify that the index worker is running properly?
2. Is there any way to trigger an immediate index run manually (apart from run.sh)?
3. Could this be related to Elasticsearch version or Python package conflicts?
4. Is there a known compatibility issue with SQLAlchemy or other packages?
⸻
Thanks in advance for your support.
Let me know if you need logs, configs or output from specific files.
Best regards,
Michael