paapereira.xyz

Fixing Seafile

Yesterday I woke up without access to my Seafile instance.

Here’s my notes/steps/fixes for the issue.

Restart Seafile and check for errors:

1sudo systemctl restart seafile
2sudo systemctl status seafile
3sudo systemctl restart seahub
4sudo systemctl status seahub

No errors here.

Check Seafile logs:

1sudo -u seafile -s /bin/sh
2cd /srv/seafile/logs

I found the following in elasticsearch.log:

1max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Maybe this is the problem? Some searching in seafile forum, and I found this.

I then tried to updating outdated python packages, rebuild elasticsearch index and changed the max_map_count value:

 1sudo systemctl stop seahub
 2sudo systemctl stop seafile
 3
 4sudo pip list --outdated
 5sudo pip3 install -U --timeout=3600 chardet Django feedparser idna jaraco.classes josepy mock Pillow pip urllib3
 6
 7cd /srv/seafile/seafile-server-latest
 8pro/pro.py search --clear
 9pro/pro.py search --update
10
11sudo sysctl -w vm.max_map_count=262144

Rebooted, but still no Seafile. The elasticsearch “too low” warning disappeared though.

Then I thought. What about apache?

1sudo systemctl status httpd

Yep. This is the problem. I had updated php to version 8, and had models loaded for php7 in httpd.conf. Just replaced php7 to php, restarted apache and Seafile is back.

1sudo vi /etc/httpd/conf/httpd.conf
2sudo systemctl restart httpd
3sudo systemctl status httpd

#Linux #Arch Linux #Seafile