haiwen / seafile-rpi

Seafile server package for Raspberry Pi.
Other
558 stars 89 forks source link

setlocale #9

Closed git0rhero closed 8 years ago

git0rhero commented 8 years ago

With the precompiled 4.4.0 i get an error on starting seahub:

 ~/seafile/seafile-server-latest/seahub.sh start-fastcgi

LC_ALL is not set in ENV, set to en_US.UTF-8
/home/seafile/seafile/seafile-server-latest/seahub.sh: Zeile 160: Warnung: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): Datei oder Verzeichnis nicht gefunden

(The german part says "file or directory not found") Never showed up before on <= 4.3.2. Seahub starts nonetheless.

abysso2 commented 8 years ago

Hi, run sudo dpkg-reconfigure locales, choose additional en_US.utf8, thats it ...

Regards, A.

langhaarschneider commented 8 years ago

I get the same error. Thank you abysso2 for your help. My question to this solution is now: I come from germany - should I choose de_DE.utf8 instead or en_US.utf8?

jobenvil commented 8 years ago

thanks abysso2!, there are more related infos here:

https://forum.seafile-server.org/t/zeile-160-warnung-setlocale-lc-all/3084

By the way, its look like is not a dedicated raspi problem, moreover general, which could depend on the environment test scenario and sources. I didn't change anything as well in my build environment and I don't get the warning.

If you agree, may I close this issue? BTW, 4.4.2 is already compilated, tested and I see I that Daniel Pan announced the 4.4.3 right now...

abysso2 commented 8 years ago

IMHO, the issue could be closed ...

abysso2 commented 8 years ago

BTW: Would love to support you in building the newest releases, do you have some personal documentation / cookbook beside public info?

Regards, A.

Offtopic: Youre living in D.?? I am living in K. :-)

der-domi commented 8 years ago

Hey all!

I'm sorry. I have to say good bye from the seafile-rpi project. I have successfully running seafile on a Debian-x64-machine and using the native packages since a few month. I don't have time for the Raspberry PI.

@abysso2 see the attached document: seafile-rpi.pdf. I started to write down what I have to do when I started with compiling on rasbian. But be carefull! It is out-of-date! Check if you have to coyp libzdb.so.10. If you updated the document you should check in it to the seafile-rpi main page. Contact lins05 if you want to check in releases.

Cheers, Dominik,

lins05 commented 8 years ago

@der-domi Thanks for your contribution along the way.

@abysso2 the document on how to build on rpi is here: http://manual.seafile.com/build_seafile/rpi.html .

jobenvil commented 8 years ago

@abysso2 yes, I'm living in "D"+"ü"+"ss" ;-) but I'm .es native

I had compiled last versions (v4.2.2, v4.2.3, v4.3.0, v4.3.1, v4.3.2, v4.4.0 (beta), v4.4.2, v4.4.3). I followed official documentation but keeping in contact at the beginning with @lins05

My directory structure for build on rpi-seafile looks like:

desigual@thor ~/env_seafile $ pwd
/home/desigual/env_seafile
desigual@thor ~/env_seafile $ ll
total 16
drwxr-xr-x  4 desigual desigual 4096 Jul 29 19:42 library_dev
drwxr-xr-x  9 desigual desigual 4096 Oct 17 13:27 dev
drwxr-xr-x 10 desigual desigual 4096 Oct 17 15:37 seafile-sources
drwxr-xr-x 10 desigual desigual 4096 Oct 17 15:41 seafile-server-pkgs
desigual@thor ~/env_seafile $ tree -L 3
.
├── dev
│   ├── ccnet
│   │   ├── aclocal.m4
│   │   ├── autogen.sh
│   │   ├── autom4te.cache
│   │   ├── ccnet-1.4.2.tar.gz
│   │   ├── ci
│   │   ├── cli
│   │   ├── config.guess -> /usr/share/automake-1.11/config.guess
│   │   ├── config.h
│   │   ├── config.h.in
│   │   ├── config.log
│   │   ├── config.status
│   │   ├── config.sub -> /usr/share/automake-1.11/config.sub
│   │   ├── configure
│   │   ├── configure.ac
│   │   ├── COPYRIGHT
│   │   ├── demo
│   │   ├── depcomp -> /usr/share/automake-1.11/depcomp
│   │   ├── HACKING
│   │   ├── include
│   │   ├── install-sh -> /usr/share/automake-1.11/install-sh
│   │   ├── lib
│   │   ├── libccnet.pc
│   │   ├── libccnet.pc.in
│   │   ├── libtool
│   │   ├── LICENCE.txt
│   │   ├── ltmain.sh
│   │   ├── m4
│   │   ├── Makefile
│   │   ├── Makefile.am
│   │   ├── Makefile.in
│   │   ├── missing -> /usr/share/automake-1.11/missing
│   │   ├── net
│   │   ├── py-compile -> /usr/share/automake-1.11/py-compile
│   │   ├── python
│   │   ├── README.markdown
│   │   ├── stamp-h1
│   │   ├── tests
│   │   └── tools
│   ├── libsearpc
│   │   ├── aclocal.m4
│   │   ├── AUTHORS
│   │   ├── autogen.sh
│   │   ├── autom4te.cache
│   │   ├── ChangeLog
│   │   ├── config.guess
│   │   ├── config.h
│   │   ├── config.h.in
│   │   ├── config.log
│   │   ├── config.status
│   │   ├── config.sub
│   │   ├── configure
│   │   ├── configure.ac
│   │   ├── COPYING
│   │   ├── demo
│   │   ├── depcomp
│   │   ├── INSTALL
│   │   ├── install-sh
│   │   ├── lib
│   │   ├── libsearpc-1.2.2.tar.gz
│   │   ├── libsearpc.pc
│   │   ├── libsearpc.pc.in
│   │   ├── libtool
│   │   ├── ltmain.sh
│   │   ├── m4
│   │   ├── Makefile
│   │   ├── Makefile.am
│   │   ├── Makefile.in
│   │   ├── missing
│   │   ├── NEWS
│   │   ├── py-compile
│   │   ├── pysearpc
│   │   ├── README.markdown
│   │   ├── stamp-h1
│   │   └── tests
│   ├── seafdav
│   │   ├── functests.sh
│   │   ├── Makefile
│   │   ├── README.md
│   │   ├── requirements.txt
│   │   ├── run.sh.template
│   │   ├── seafdav.conf.sample
│   │   ├── seafdav.tar.gz
│   │   ├── test-requirements.txt
│   │   ├── tests
│   │   └── wsgidav
│   ├── seafile
│   │   ├── aclocal.m4
│   │   ├── app
│   │   ├── autogen.sh
│   │   ├── autom4te.cache
│   │   ├── common
│   │   ├── config.guess -> /usr/share/automake-1.11/config.guess
│   │   ├── config.h
│   │   ├── config.h.in
│   │   ├── config.log
│   │   ├── config.status
│   │   ├── config.sub -> /usr/share/automake-1.11/config.sub
│   │   ├── configure
│   │   ├── configure.ac
│   │   ├── controller
│   │   ├── daemon
│   │   ├── debian
│   │   ├── depcomp -> /usr/share/automake-1.11/depcomp
│   │   ├── doc
│   │   ├── fuse
│   │   ├── include
│   │   ├── install-sh -> /usr/share/automake-1.11/install-sh
│   │   ├── intltool-extract.in
│   │   ├── intltool-merge.in
│   │   ├── intltool-update.in
│   │   ├── lib
│   │   ├── libtool
│   │   ├── LICENSE.txt
│   │   ├── ltmain.sh
│   │   ├── m4
│   │   ├── Makefile
│   │   ├── Makefile.am
│   │   ├── Makefile.in
│   │   ├── missing -> /usr/share/automake-1.11/missing
│   │   ├── msi
│   │   ├── po
│   │   ├── py-compile -> /usr/share/automake-1.11/py-compile
│   │   ├── python
│   │   ├── README.markdown
│   │   ├── scripts
│   │   ├── seafile-4.4.1.tar.gz
│   │   ├── server
│   │   ├── setupwin.py
│   │   ├── stamp-h1
│   │   ├── tests
│   │   ├── tools
│   │   └── updateversion.sh
│   ├── seafobj
│   │   ├── copy_data.py
│   │   ├── do-pycscope.sh
│   │   ├── Makefile
│   │   ├── pylintrc
│   │   ├── README.md
│   │   ├── requirements.txt
│   │   ├── seafobj
│   │   ├── seafobj.tar.gz
│   │   ├── test
│   │   └── test-requirements.txt
│   ├── seahub
│   │   ├── code-check.sh
│   │   ├── CONTRIBUTORS
│   │   ├── fabfile
│   │   ├── HACKING
│   │   ├── i18n.sh
│   │   ├── LICENSE.txt
│   │   ├── locale
│   │   ├── Makefile
│   │   ├── manage.py
│   │   ├── media
│   │   ├── pylintrc
│   │   ├── pylintrc.template
│   │   ├── pytest.ini
│   │   ├── README.markdown
│   │   ├── requirements.txt
│   │   ├── run-seahub.sh.template
│   │   ├── seahub
│   │   ├── seahub-4.4.1.tar.gz
│   │   ├── send_user_notifications.sh.template
│   │   ├── setenv.sh.template
│   │   ├── sql
│   │   ├── static
│   │   ├── test-requirements.txt
│   │   ├── tests
│   │   ├── thirdpart
│   │   └── tools
│   └── seahub_thirdpart
│       ├── chardet-2.3.0-py2.7.egg
│       ├── chardetect
│       ├── Django-1.5.12-py2.7.egg
│       ├── django-admin.py
│       ├── django_appconf-1.0.1-py2.7.egg
│       ├── django_compressor-1.4-py2.7.egg
│       ├── django_statici18n-1.1.3-py2.7.egg
│       ├── Djblets-0.6.14.dev-py2.7.egg
│       ├── easy-install.pth
│       ├── flup-1.0-py2.7.egg
│       ├── gunicorn
│       ├── gunicorn-0.16.1-py2.7.egg
│       ├── gunicorn_django
│       ├── gunicorn_paster
│       ├── python_dateutil-1.5-py2.7.egg
│       ├── site.py
│       ├── site.pyc
│       └── six-1.9.0-py2.7.egg
├── library_dev
│   ├── libevhtp
│   │   ├── build
│   │   ├── ChangeLog
│   │   ├── CMakeCache.txt
│   │   ├── CMakeFiles
│   │   ├── cmake_install.cmake
│   │   ├── CMakeLists.txt
│   │   ├── CMakeModules
│   │   ├── compat
│   │   ├── Doxyfile
│   │   ├── evhtp.c
│   │   ├── evhtp.h
│   │   ├── evthr
│   │   ├── examples
│   │   ├── htparse
│   │   ├── install_manifest.txt
│   │   ├── libevhtp.so
│   │   ├── LICENSE
│   │   ├── Makefile
│   │   ├── oniguruma
│   │   ├── README.markdown
│   │   ├── test
│   │   ├── test_basic
│   │   ├── test_basic.c
│   │   ├── test.c
│   │   ├── test_client
│   │   ├── test_client.c
│   │   ├── test_proxy
│   │   ├── test_proxy.c
│   │   ├── test_vhost
│   │   └── test_vhost.c
│   └── libzdb
│       └── libzdb
├── seafile-server-pkgs
│   ├── R4.2.2
│   │   └── seafile-server_4.2.2_pi.tar.gz
│   ├── R4.2.3
│   │   └── seafile-server_4.2.3_pi.tar.gz
│   ├── R4.3.0
│   │   ├── seafile-server-4.3.0
│   │   └── seafile-server_4.3.0_pi.tar.gz
│   ├── R4.3.1
│   │   └── seafile-server_4.3.1_pi.tar.gz
│   ├── R4.3.2
│   │   └── seafile-server_4.3.2_pi.tar.gz
│   ├── R4.4.0
│   │   └── seafile-server_4.4.0_pi.tar.gz
│   ├── R4.4.2
│   │   └── seafile-server_4.4.2_pi.tar.gz
│   └── R4.4.3
│       └── seafile-server_4.4.3_pi.tar.gz
└── seafile-sources
    ├── R4.2.2
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.2.3.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.2.3.tar.gz
    ├── R4.2.3
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.2.4.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.2.4.tar.gz
    ├── R4.3.0
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.2.7.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.2.7.tar.gz
    ├── R4.3.1
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.3.0.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.3.0.tar.gz
    ├── R4.3.2
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.3.2.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.3.2.tar.gz
    ├── R4.4.0
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.3.4.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.3.4.tar.gz
    ├── R4.4.2
    │   ├── ccnet-1.4.2.tar.gz
    │   ├── libsearpc-1.2.2.tar.gz
    │   ├── seafdav.tar.gz
    │   ├── seafile-4.4.1.tar.gz
    │   ├── seafobj.tar.gz
    │   └── seahub-4.4.1.tar.gz
    └── R4.4.3
        ├── ccnet-1.4.2.tar.gz
        ├── libsearpc-1.2.2.tar.gz
        ├── seafdav.tar.gz
        ├── seafile-4.4.1.tar.gz
        ├── seafobj.tar.gz
        └── seahub-4.4.1.tar.gz

according to this directory tree you should consider export some path variables:

export PKG_CONFIG_PATH=/home/desigual/env_seafile/dev/seafile/lib:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/home/desigual/env_seafile/dev/libsearpc:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/home/desigual/env_seafile/dev/ccnet:$PKG_CONFIG_PATH
export PATH=/home/desigual/env_seafile/dev/seahub_thirdpart:$PATH

I prefer to build and test rpi-seafile and collateral work, like inform at seafile forum, for myself. This is based on experience. It is obvious that coordinate work between many parties is not too efficient. If you are really interested for a long time to follow the project, my propossal could be that we interchange the work for a fix time period of six months. If you agree, you could start at the beginning of 2016 and I will replace you middle of 2016. We will track on Github which release we published in order to don't get crazy seafile community and keep clear the responsabilities.

ghost commented 6 years ago

Hey there. I just upgraded my seafile server (bananaPi) from 4.1.2 to the newest 6.2.2 and im getting the same error on starting the seahub.sh. I'm german, if that has something to do with the locals.

Running sudo dpkg-reconfigure locales and choosing en_US.utf8 doesn't help and the german forum link isn't working anymore. :(

focmb commented 6 years ago

I had the same message. I solved it with my systemd-unit file for seahub. Add thhe following line: Environment="LC_ALL=C" With that the line the message was gone.

ghost commented 6 years ago

Thanks @focmb, but i think my OS doesn't support systemd, is there a .env file where i could add this as well?