Git Product home page Git Product logo

Comments (10)

dd404x avatar dd404x commented on August 15, 2024

image
现在没有502错误了,但是8000端口仍然无法打开,我发现elaticsearch容器一直处于重启状态

from w12scan.

dd404x avatar dd404x commented on August 15, 2024

我查了查,发现应该是内存不足问题,请问楼主用的什么主机,多大内存

from w12scan.

muYoz avatar muYoz commented on August 15, 2024

上周搭建环境,也是出现502错误,可否告知一下环境?
实验机器:
Ubuntu18.04
4核cpu
16G内存
python3.6.7

QQ截图20190311095403

QQ截图20190311095500

from w12scan.

dd404x avatar dd404x commented on August 15, 2024

@muYoz 我通过使用docker exec -it [id] /bin/bash 排查,发现当进入w12scan_web时提示配置文件缩进错误,你可以使用这个命令对各个已启动的容器进行错误排查。

from w12scan.

boy-hack avatar boy-hack commented on August 15, 2024

@dd404x 先单独开启elasticsearch容器,查看日志问题,实在不行就使用elasticsearch云服务吧
@muYoz 16G内存应该是够的,用docker logs查看一下日志问题吧

from w12scan.

dd404x avatar dd404x commented on August 15, 2024

@boy-hack Ok,我使用云服务尝试下

from w12scan.

muYoz avatar muYoz commented on August 15, 2024

@muYoz我通过使用docker exec -it [id] / bin / bash排查,发现当进入w12scan_web时提示配置文件缩进错误,你可以使用这个命令对各个已启动的容器进行错误排查。

感谢!进去容器,python manage.py发现是Django未安装。OK啦!

from w12scan.

dd404x avatar dd404x commented on August 15, 2024

image
image
image

我使用阿里云服务,这样修改配置文件后,仍然无法访问 @boy-hack ,我的修改有问题吗?

from w12scan.

boy-hack avatar boy-hack commented on August 15, 2024

image
image
image

我使用阿里云服务,这样修改配置文件后,仍然无法访问 @boy-hack ,我的修改有问题吗?

  1. config.py中修改 ELASTICSEARCH_AUTH = ('elastic','password')
  2. 修改docker-compose.yml web的elasticsearch host
  3. 删除原来的镜像重新docker-compose up -d

你好像第一步写错了,elasticsearch认证需要用户名和密码,如果还是出错请查看docker-compose logs信息

from w12scan.

dd404x avatar dd404x commented on August 15, 2024

image
已经成功运行,非常感谢

from w12scan.

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.