Skip to content

dokcer运行成功后访问页面报错502(前面的issues无法解决) #128

@SecLoop

Description

@SecLoop

docker version

Client:
 Cloud integration: v1.0.28
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:04:45 2022
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.11.1 (84025)
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:23 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker Compose 版本

Docker Compose version v2.7.0

启动命令

cp -p .env.docker .env
docker-compose up -d

错误

image

docker log 日志

wait-for-it.sh: waiting for mysql:3306 without a timeout
wait-for-it.sh: mysql:3306 is available after 1 seconds
Operations to perform:
  Apply all migrations: admin, auth, authtoken, contenttypes, monitor, sessions
Running migrations:
  No migrations to apply.
Create administrator for admin
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2022-08-25 16:28:37,571 CRIT Supervisor running as root (no user in config file)
2022-08-25 16:28:37,571 INFO Included extra file "/home/docker/Github-Monitor/docker/supervisor-app.conf" during parsing
2022-08-25 16:28:37,580 INFO RPC interface 'supervisor' initialized
2022-08-25 16:28:37,580 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-08-25 16:28:37,580 INFO supervisord started with pid 20
2022-08-25 16:28:38,582 INFO spawned: 'app-uwsgi' with pid 23
2022-08-25 16:28:38,583 INFO spawned: 'github-task' with pid 24
2022-08-25 16:28:38,585 INFO spawned: 'nginx-app' with pid 25
2022-08-25 16:28:38,586 INFO spawned: 'redis-server' with pid 26
2022-08-25 16:28:38,590 INFO exited: app-uwsgi (exit status 1; not expected)
2022-08-25 16:28:39,599 INFO spawned: 'app-uwsgi' with pid 40
2022-08-25 16:28:39,600 INFO success: github-task entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-08-25 16:28:39,600 INFO success: nginx-app entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-08-25 16:28:39,600 INFO success: redis-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-08-25 16:28:39,606 INFO exited: app-uwsgi (exit status 1; not expected)
2022-08-25 16:28:41,610 INFO spawned: 'app-uwsgi' with pid 41
2022-08-25 16:28:41,619 INFO exited: app-uwsgi (exit status 1; not expected)
2022-08-25 16:28:44,623 INFO spawned: 'app-uwsgi' with pid 42
2022-08-25 16:28:44,630 INFO exited: app-uwsgi (exit status 1; not expected)
2022-08-25 16:28:45,631 INFO gave up: app-uwsgi entered FATAL state, too many start retries too quickly

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions