Coder Social home page Coder Social logo

Comments (18)

thewayiam avatar thewayiam commented on May 28, 2024

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?

from twly-voter-guide.

1135727654 avatar 1135727654 commented on May 28, 2024

我还是不知道怎么改

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

I still don't know your ubuntu version, have you see any error while run this command

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

怎么改怎么改怎么改

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

have you see any error while run this command
I'll suggest you use docker to setup if you still couldn't figure out.

from twly-voter-guide.

1135727654 avatar 1135727654 commented on May 28, 2024

I use docker, I don't know why this mistake

from twly-voter-guide.

1135727654 avatar 1135727654 commented on May 28, 2024

while I run 'python manage.py rebuild_index' this command
v r8u5qixbbdk 1n2dnz8 4

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

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.

from twly-voter-guide.

1135727654 avatar 1135727654 commented on May 28, 2024

There will still be errors

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

What's the error message when you run sudo service elasticsearch start ?
What message when you run curl localhost:9200 ?

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

11

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

It seems you didn't install elasticsearch, please follow through README or using docker, if your didn't follow README environment, I can't help setup of everyone with their different environment, don't waste both our time.

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

我很确信我当时安装了elasticsearch,但是为什么其他都没有问题 就只有bill这个页面出错

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

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.

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

ok,I will try again

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

qq 20170517154920
5geugpm4jvlrw xg9f 8 c9

from twly-voter-guide.

thewayiam avatar thewayiam commented on May 28, 2024

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.

from twly-voter-guide.

maxinezxy avatar maxinezxy commented on May 28, 2024

我改好了 只要把编码方式改成UTF8就不会出错了

from twly-voter-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.