Перейти к основному содержанию

Seafile — LC_ALL is not set in ENV, set to en_US.UTF-8

Seafile

Столкнулся с ошибкой в Ubuntu 18 и Ubintu 20 при запуске службы seahub для seafile.

LC_ALL is not set in ENV, set to en_US.UTF-8

Запуск производится через systemd.

Seafile — автозапуск

Ошибка не критичная, но светится при запуске службы:

service seahub status
● seahub.service - Seafile hub
     Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-11-07 23:58:05 MSK; 15min ago
   Main PID: 29229 (seahub.sh)
      Tasks: 3 (limit: 4594)
     Memory: 101.3M
     CGroup: /system.slice/seahub.service
             ├─29229 /bin/bash /opt/seafile-server-latest/seahub.sh start
             ├─29254 python3 /opt/seafile-server-10.0.1/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/conf/gunicorn.conf.py --preload
             └─29256 python3 /opt/seafile-server-10.0.1/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/conf/gunicorn.conf.py --preload

ноя 07 23:58:05 mpcloud systemd[1]: Started Seafile hub.
ноя 07 23:58:05 mpcloud seahub.sh[29229]: LC_ALL is not set in ENV, set to en_US.UTF-8
ноя 07 23:58:05 mpcloud seahub.sh[29229]: Starting seahub at port 8000 ...
ноя 07 23:58:07 mpcloud python3[29254]: 2023-11-07 23:58:07,330 [DEBUG] root:102 is_cluster_mode cluster mode is disabled
ноя 07 23:58:08 mpcloud seahub.sh[29254]: [2023-11-07 23:58:08 +0300] [29254] [INFO] Starting gunicorn 20.1.0
ноя 07 23:58:08 mpcloud seahub.sh[29254]: [2023-11-07 23:58:08 +0300] [29254] [INFO] Listening at: http://127.0.0.1:8000 (29254)
ноя 07 23:58:08 mpcloud seahub.sh[29254]: [2023-11-07 23:58:08 +0300] [29254] [INFO] Using worker: sync
ноя 07 23:58:08 mpcloud seahub.sh[29256]: [2023-11-07 23:58:08 +0300] [29256] [INFO] Booting worker with pid: 29256

seafile

Модифицируем seahub.service

sudo vim /etc/systemd/system/seahub.service

Добавляем в раздел [Service] строку:

Environment="LC_ALL=ru_RU.UTF-8"

Получится нечто вроде:

[Unit]
Description=Seafile hub
After=network.target seafile.service

[Service]
Environment="LC_ALL=ru_RU.UTF-8"
Type=simple
# change start to start-fastcgi if you want to run fastcgi
ExecStart=${seafile_dir}/seafile-server-latest/seahub.sh start
ExecStop=${seafile_dir}/seafile-server-latest/seahub.sh stop
User=seafile
Group=seafile

[Install]
WantedBy=multi-user.target

seafile

 В файл /etc/default/locale добавляем строку:

LC_ALL="ru_RU.UTF-8"

lc_all

dpkg-reconfigure locales

Добавить локаль ru_RU.UTF-8.

Перезагрузка.

Ссылки

Ubuntu — LC_ALL is not set in ENV, set to ru_RU.UTF-8

https://forum.seafile.com/t/starting-seahub-sh-lc-all-is-not-set-in-env-set-to-en-us-utf-8/3252

Теги

 

Похожие материалы