UnicodeEncodeError at/bill/
1135727654 opened this issue · 18 comments
I can't reproduce this error, if you already follow through README, you might want to check your database or elasticsearch encoding settings.
What's your ubuntu version?
我还是不知道怎么改
I still don't know your ubuntu version, have you see any error while run this command
怎么改怎么改怎么改
have you see any error while run this command
I'll suggest you use docker to setup if you still couldn't figure out.
I use docker, I don't know why this mistake
As error message shows, your elasticsearch service didn't start, run sudo service elasticsearch start
to start the service.
Are you using docker? if docker is used, you should run docker-compose run django python manage.py rebuild_index
instead of python manage.py rebuild_index
, it seems you didn't start docker, your django error message of python version it's not the docker settings.
There will still be errors
What's the error message when you run sudo service elasticsearch start
?
What message when you run curl localhost:9200
?
我很确信我当时安装了elasticsearch,但是为什么其他都没有问题 就只有bill这个页面出错
Only some pages need to access elasticsearch, bill is one of them.
If elasticsearch started, curl localhost:9200
shows something like this:
{
"status" : 200,
"name" : "Storm",
"version" : {
"number" : "1.3.1",
"build_hash" : "2de6dc5268c32fb49b205233c138d93aaf772015",
"build_timestamp" : "2014-07-28T14:45:15Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}
So please make sure elasticsearch setup didn't appear any error message, or use docker as above.
ok,I will try again
as error message, port 5432 already used in your local machine, you need to stop your service or change to a port you didn't used.
我改好了 只要把编码方式改成UTF8就不会出错了