Hi,
When I’m starting ./seahub.sh start-fastcgi I’m getting this messages in terminal:
LC_ALL is not set in ENV, set to en_US.UTF-8
Everything works and so on, so I guess it’s not a big deal but is this something that can make any trouble later on?
As far as I can tell this is regarding time zone, correct?
When I did install Ubuntu Server I did setup my time zone, keyboard, language etc.
If you have a system with systemd you can start seafile and seahub via unit files. In the unit file for seahub you can set the environment and the message is gone:
[Unit]
Description=Seafile hub
After=network.target seafile.service
[Service]
# change start to start-fastcgi if you want to run fastcgi
Environment="LC_ALL=C"
ExecStart=/home/seafile/seafile-server-latest/seahub.sh start-fastcgi
ExecStop=/home/seafile/seafile-server-latest/seahub.sh stop
User=seafile
Group=seafile
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
with server 6.1.1 on CentOS 7 (but also if I go back to 6.1.0),
message remains with both alternatives in seahub.service:
Environment=“LC_ALL=C”
or
Environment=“LC_ALL=en_US.UTF-8”
seahub.service is the one of the manual page (with paths configured for my setup).
# systemctl status seahub.service:
Jun 27 10:22:29 seafile systemd[1]: Starting Seafile hub…
Jun 27 10:22:29 seafile seahub.sh[1446]: LANG is not set in ENV, set to en_US.UTF-8
Jun 27 10:22:29 seafile seahub.sh[1446]: Starting seahub (fastcgi) at 127.0.0.1:8000 …
Jun 27 10:22:34 seafile seahub.sh[1446]: Seahub is started
Jun 27 10:22:34 seafile seahub.sh[1446]: Done.
Jun 27 10:22:34 seafile systemd[1]: Started Seafile hub.
I’m not sure of the correlation, because I did not tested immediately, but from then on, I’m no more able to have image previews in web interface, or I get “file does not exist” for example with pdf, when there are space in folder names. If instead I move single files to folders with no spaced names, the preview is available, I can view pdf, or download other kind of files.
The workaround of moving every single file (it doesn’t resolve the problem when moving entire folders) seems not so efficient.
I installed httpd24 from testing repositories:
Install httpd24-httpd-2.4.25-9.el7.x86_64 @centos-sclo-rh-testing
Dep-Install httpd24-httpd-tools-2.4.25-9.el7.x86_64 @centos-sclo-rh-testing
Dep-Install httpd24-libnghttp2-1.7.1-1.el7.x86_64 @centos-sclo-rh-testing
Dep-Install httpd24-runtime-1.1-14.el7.x86_64 @centos-sclo-rh-testing
and enabled in place of the default httpd.
The problem of spaces in folder and file names is still there, even if the manual ask for a version at least 2.4.12.
Before definitely switch to nginx… any suggestion?
Thanks all
l
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target
[Service]
Type=oneshot
ExecStart=/home/seafile/seafile-server-latest/seafile.sh start
ExecStop=/home/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target