收藏
回答

小白学习云服务部署服务一直启动中?

Checking for script in /app/prestart.sh

Running script /app/prestart.sh

Running inside /app/prestart.sh, you could add migrations to this file, e.g.:


#! /usr/bin/env sh


# Let the DB start

sleep 10;

# Run migrations

alembic upgrade head


/usr/lib/python2.7/dist-packages/supervisor/options.py:461: 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-07-23 02:00:09,225 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.

2022-07-23 02:00:09,225 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing

2022-07-23 02:00:09,232 INFO RPC interface 'supervisor' initialized

2022-07-23 02:00:09,232 CRIT Server 'unix_http_server' running without any HTTP authentication checking

2022-07-23 02:00:09,232 INFO supervisord started with pid 1

2022-07-23 02:00:10,234 INFO spawned: 'quit_on_failure' with pid 1011

2022-07-23 02:00:10,236 INFO spawned: 'nginx' with pid 1012

2022-07-23 02:00:10,236 INFO spawned: 'uwsgi' with pid 1013

2022-07-23 02:00:10,238 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2022-07-23 02:00:10,238 INFO success: uwsgi entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

[uWSGI] getting INI configuration from /app/uwsgi.ini

[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini


;uWSGI instance configuration

[uwsgi]

cheaper = 2

processes = 16

ini = /app/uwsgi.ini

module = main

callable = app

ini = /etc/uwsgi/uwsgi.ini

socket = /tmp/uwsgi.sock

chown-socket = nginx:nginx

chmod-socket = 664

hook-master-start = unix_signal:15 gracefully_kill_them_all

need-app = true

die-on-term = true

show-config = true

;end of configuration


*** Starting uWSGI 2.0.20 (64bit) on [Sat Jul 23 02:00:10 2022] ***

compiled with version: 8.3.0 on 21 April 2022 12:42:55

os: Linux-5.4.119-1-tlinux4-0009-public-ek #1 SMP Thu Jun 9 14:44:01 CST 2022

nodename: meishibanktest-005-6584d94f6b-4hnxb

machine: x86_64

clock source: unix

pcre jit disabled

detected number of CPU cores: 2

current working directory: /app

detected binary path: /usr/local/bin/uwsgi

your memory page size is 4096 bytes

detected max file descriptor number: 1048576

lock engine: pthread robust mutexes

thunder lock: disabled (you can enable it with --thunder-lock)

uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3

uWSGI running as root, you can use --uid/--gid/--chroot options

*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***

Python version: 3.8.13 (default, Apr 20 2022, 18:59:55) [GCC 8.3.0]

*** Python threads support is disabled. You can enable it with --enable-threads ***

Python main interpreter initialized at 0x55fa422c5f30

uWSGI running as root, you can use --uid/--gid/--chroot options

*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***

your server socket listen backlog is limited to 100 connections

your mercy for graceful operations on workers is 60 seconds

mapped 1239640 bytes (1210 KB) for 16 cores

*** Operational MODE: preforking ***

File "/app/./main.py", line 9

SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte

unable to load app 0 (mountpoint='') (callable not found or import error)

*** no app loaded. GAME OVER ***

2022-07-23 02:00:10,258 INFO exited: uwsgi (exit status 22; not expected)2022-07-23 02:00:10,234 INFO spawned: 'quit_on_failure' with pid 1011

2022-07-23 02:00:10,236 INFO spawned: 'nginx' with pid 1012

2022-07-23 02:00:10,236 INFO spawned: 'uwsgi' with pid 1013

2022-07-23 02:00:10,238 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2022-07-23 02:00:10,238 INFO success: uwsgi entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

[uWSGI] getting INI configuration from /app/uwsgi.ini

[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini


;uWSGI instance configuration

[uwsgi]

cheaper = 2

processes = 16

ini = /app/uwsgi.ini

module = main

callable = app

ini = /etc/uwsgi/uwsgi.ini

socket = /tmp/uwsgi.sock

chown-socket = nginx:nginx

chmod-socket = 664

hook-master-start = unix_signal:15 gracefully_kill_them_all

need-app = true

die-on-term = true

show-config = true

;end of configuration


*** Starting uWSGI 2.0.20 (64bit) on [Sat Jul 23 02:00:10 2022] ***

compiled with version: 8.3.0 on 21 April 2022 12:42:55

os: Linux-5.4.119-1-tlinux4-0009-public-ek #1 SMP Thu Jun 9 14:44:01 CST 2022

nodename: meishibanktest-005-6584d94f6b-4hnxb

machine: x86_64

clock source: unix

pcre jit disabled

detected number of CPU cores: 2

current working directory: /app

detected binary path: /usr/local/bin/uwsgi

your memory page size is 4096 bytes

detected max file descriptor number: 1048576

lock engine: pthread robust mutexes

thunder lock: disabled (you can enable it with --thunder-lock)

uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3

uWSGI running as root, you can use --uid/--gid/--chroot options

*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***

Python version: 3.8.13 (default, Apr 20 2022, 18:59:55) [GCC 8.3.0]

*** Python threads support is disabled. You can enable it with --enable-threads ***

Python main interpreter initialized at 0x55fa422c5f30

uWSGI running as root, you can use --uid/--gid/--chroot options

*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***

your server socket listen backlog is limited to 100 connections

your mercy for graceful operations on workers is 60 seconds

mapped 1239640 bytes (1210 KB) for 16 cores

*** Operational MODE: preforking ***

File "/app/./main.py", line 9

SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte

unable to load app 0 (mountpoint='') (callable not found or import error)

*** no app loaded. GAME OVER ***

2022-07-23 02:00:10,258 INFO exited: uwsgi (exit status 22; not expected)

2022-07-23 02:00:11,259 INFO success: quit_on_failure entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2022-07-23 02:00:11,259 WARN received SIGTERM indicating exit request

2022-07-23 02:00:11,260 INFO waiting for nginx, quit_on_failure to die2022-07-23 02:00:11,259 INFO success: quit_on_failure entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2022-07-23 02:00:11,259 WARN received SIGTERM indicating exit request

2022-07-23 02:00:11,260 INFO waiting for nginx, quit_on_failure to die

2022-07-23 02:00:12,276 INFO stopped: nginx (exit status 0)

2022-07-23 02:00:12,276 INFO stopped: quit_on_failure (terminated by SIGTERM)

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签