在阿里云上Create Discourse forum 论坛 2 -- 不能访问Git导致失败

在阿里云服务器上创建Discourse论坛时遇到问题,安装过程中因无法访问Git仓库导致安装失败。尝试通过设置代理、检查服务器端口和配置等解决方法未成功,错误提示为'gnutls_handshake() failed: The TLS connection was non-properly terminated.',重建应用时仍然出现相同问题,可能需要进一步排查网络连接或Git配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Blow error when install the Discourse: 

root@iZ2ze472xetukni84zf7l3Z:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Sat 22 Jan 2022 08:37:26 AM CST
OS: Linux iZ2ze472xetukni84zf7l3Z 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=bbs.bigdatasmallteam.com
SMTP_ADDRESS=smtp.mailgun.org
DEVELOPER_EMAILS=zhao.liang.meng@hotmail.com
SMTP_PASSWORD=f8a7492a482a728d6b3aee46eee73fe1-ef80054a-52b70214
SMTP_PORT=587
SMTP_USER_NAME=postmaster@ms.ruhetouzi.com
LETSENCRYPT_ACCOUNT_EMAIL=zhao.liang.meng@hotmail.com

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 20.10.12, build e91ed57

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

==================== SERIOUS PROBLEM!!!! ====================
app not running!
Attempting to rebuild
==================== REBUILD LOG ====================
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
1b162a4758f6cf89e7a3934f2fcf15c278b264774a8e82a8e03ccdcd1b480091
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
Failed to rebuild app.

Try to use Agent:

Adding the Server port 8080 in Aliyun Server, '添加安全组规则'

Check Linux all port command:# netstat -tunlp

root@iZ2ze472xetukni84zf7l3Z:~# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      444/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      579/sshd: /usr/sbin
udp        0      0 127.0.0.53:53           0.0.0.0:*                           444/systemd-resolve
udp        0      0 172.21.180.6:68         0.0.0.0:*                           423/systemd-network
udp        0      0 127.0.0.1:323           0.0.0.0:*                           525/chronyd
udp6       0      0 ::1:323                 :::*                                525/chronyd
root@iZ2ze472xetukni84zf7l3Z:~#
 

root@iZ2ze472xetukni84zf7l3Z:~# git config --global http.proxy
root@iZ2ze472xetukni84zf7l3Z:~# env|grep -I proxy
root@iZ2ze472xetukni84zf7l3Z:~# git config --global http.https://github.com.proxy http://127.0.0.1:8080
root@iZ2ze472xetukni84zf7l3Z:~# cd /var/discourse/
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Sat 22 Jan 2022 09:24:50 AM CST
OS: Linux iZ2ze472xetukni84zf7l3Z 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=bbs.bigdatasmallteam.com
SMTP_ADDRESS=smtp.mailgun.org
DEVELOPER_EMAILS=zhao.liang.meng@hotmail.com
SMTP_PASSWORD=f8a7492a482a728d6b3aee46eee73fe1-ef80054a-52b70214
SMTP_PORT=587
SMTP_USER_NAME=postmaster@ms.ruhetouzi.com
LETSENCRYPT_ACCOUNT_EMAIL=zhao.liang.meng@hotmail.com

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 20.10.12, build e91ed57

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

==================== SERIOUS PROBLEM!!!! ====================
app not running!
Attempting to rebuild
==================== REBUILD LOG ====================
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
fatal: unable to access 'https://github.com/discourse/discourse_docker.git/': Failed to connect to 127.0.0.1 port 8080: Connection refused
error: Could not fetch origin
Launcher is up-to-date
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
Already up to date.
Note: checking out 'v1.0.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at d1db030 cut a new version
I, [2022-01-22T01:24:59.570120 #1]  INFO -- : Loading --stdin
I, [2022-01-22T01:24:59.576715 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2022-01-22T01:24:59.616485 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2022-01-22T01:24:59.616732 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2022-01-22T01:24:59.621550 #1]  INFO -- :
I, [2022-01-22T01:24:59.622037 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2022-01-22T01:24:59.625446 #1]  INFO -- :
I, [2022-01-22T01:24:59.625704 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2022-01-22T01:24:59.629220 #1]  INFO -- :
I, [2022-01-22T01:24:59.629512 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2022-01-22T01:24:59.633054 #1]  INFO -- :
I, [2022-01-22T01:24:59.633294 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2022-01-22T01:24:59.635795 #1]  INFO -- :
I, [2022-01-22T01:24:59.636026 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres alread        y running stop container ; exit 1
2022/01/22 01:24:59 socat[28] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2022-01-22T01:24:59.642753 #1]  INFO -- :
I, [2022-01-22T01:24:59.642946 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2022-01-22T01:24:59.646283 #1]  INFO -- :
I, [2022-01-22T01:24:59.646439 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2022-01-22T01:24:59.649627 #1]  INFO -- :
I, [2022-01-22T01:24:59.649794 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2022-01-22T01:24:59.652512 #1]  INFO -- :
I, [2022-01-22T01:24:59.652891 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2022-01-22T01:24:59.655340 #1]  INFO -- :
I, [2022-01-22T01:24:59.660592 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2022-01-22T01:24:59.666930 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2022-01-22T01:24:59.671735 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2022-01-22T01:24:59.676343 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2022-01-22T01:24:59.676772 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2022-01-22T01:25:03.231085 #1]  INFO -- :
I, [2022-01-22T01:25:03.231483 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_dat        a && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2022-01-22T01:25:03.234786 #1]  INFO -- :
I, [2022-01-22T01:25:03.234919 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2022-01-22T01:25:03.244328 #1]  INFO -- :
I, [2022-01-22T01:25:03.244525 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2022-01-22T01:25:03.248277 #1]  INFO -- :
I, [2022-01-22T01:25:03.248548 #1]  INFO -- : > /root/upgrade_postgres
I, [2022-01-22T01:25:03.257431 #1]  INFO -- :
I, [2022-01-22T01:25:03.257655 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2022-01-22T01:25:03.261245 #1]  INFO -- :
I, [2022-01-22T01:25:03.261835 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_da        ta' in /etc/postgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.262551 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/po        stgresql.conf
I, [2022-01-22T01:25:03.263717 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /et        c/postgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.265496 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql        /13/main/postgresql.conf
I, [2022-01-22T01:25:03.267227 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresq        l.conf
I, [2022-01-22T01:25:03.268740 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_        text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.270371 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2022-01-22T01:25:03.274876 #1]  INFO -- :
I, [2022-01-22T01:25:03.275291 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in         /etc/postgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.275736 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/p        ostgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.276640 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_d        uration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2022-01-22T01:25:03.278357 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /e        tc/postgresql/13/main/pg_hba.conf
I, [2022-01-22T01:25:03.278718 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/mai        n/pg_hba.conf
I, [2022-01-22T01:25:03.280177 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/mai        n/pg_hba.conf
I, [2022-01-22T01:25:03.281584 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postg        res:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2022-01-22T01:25:03.285188 #1]  INFO -- : > sleep 5
2022-01-22 01:25:03.357 UTC [51] LOG:  starting PostgreSQL 13.5 (Debian 13.5-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6        ) 8.3.0, 64-bit
2022-01-22 01:25:03.358 UTC [51] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-01-22 01:25:03.358 UTC [51] LOG:  listening on IPv6 address "::", port 5432
2022-01-22 01:25:03.366 UTC [51] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-01-22 01:25:03.377 UTC [54] LOG:  database system was shut down at 2022-01-22 01:21:26 UTC
2022-01-22 01:25:03.386 UTC [51] LOG:  database system is ready to accept connections
I, [2022-01-22T01:25:08.288970 #1]  INFO -- :
I, [2022-01-22T01:25:08.289283 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2022-01-22 01:25:08.351 UTC [64] postgres@postgres ERROR:  database "discourse" already exists
2022-01-22 01:25:08.351 UTC [64] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2022-01-22T01:25:08.353236 #1]  INFO -- :
I, [2022-01-22T01:25:08.353797 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2022-01-22 01:25:08.409 UTC [68] postgres@discourse ERROR:  role "discourse" already exists
2022-01-22 01:25:08.409 UTC [68] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2022-01-22T01:25:08.412757 #1]  INFO -- :
I, [2022-01-22T01:25:08.413347 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' ||         true
I, [2022-01-22T01:25:08.466605 #1]  INFO -- : GRANT

I, [2022-01-22T01:25:08.467276 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2022-01-22T01:25:08.517215 #1]  INFO -- : ALTER SCHEMA

I, [2022-01-22T01:25:08.517922 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2022-01-22T01:25:08.576316 #1]  INFO -- : CREATE EXTENSION

I, [2022-01-22T01:25:08.576920 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2022-01-22T01:25:08.632366 #1]  INFO -- : CREATE EXTENSION

I, [2022-01-22T01:25:08.632904 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2022-01-22T01:25:08.687821 #1]  INFO -- : CREATE EXTENSION

I, [2022-01-22T01:25:08.688335 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2022-01-22T01:25:08.742010 #1]  INFO -- : CREATE EXTENSION

I, [2022-01-22T01:25:08.742581 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2022-01-22T01:25:08.745547 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encod        ing = pg_char_to_encoding('SQL_ASCII');

I, [2022-01-22T01:25:08.804761 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2022-01-22T01:25:08.809348 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2022-01-22T01:25:08.809470 #1]  INFO -- : > echo postgres installed!
I, [2022-01-22T01:25:08.813409 #1]  INFO -- : postgres installed!

I, [2022-01-22T01:25:08.820486 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2022-01-22T01:25:08.828580 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2022-01-22T01:25:08.834116 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2022-01-22T01:25:08.834367 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.835160 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.836882 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2022-01-22T01:25:08.841464 #1]  INFO -- :
I, [2022-01-22T01:25:08.841931 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.842529 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.843912 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.845427 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.846700 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2022-01-22T01:25:08.847992 #1]  INFO -- : > echo redis installed
I, [2022-01-22T01:25:08.850822 #1]  INFO -- : redis installed

I, [2022-01-22T01:25:08.851228 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2022-01-22T01:25:08.855745 #1]  INFO -- : logfile ""

I, [2022-01-22T01:25:08.856314 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2022-01-22T01:25:08.859227 #1]  INFO -- : > sleep 10
112:C 22 Jan 2022 01:25:08.863 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
112:C 22 Jan 2022 01:25:08.864 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=112, just started
112:C 22 Jan 2022 01:25:08.864 # Configuration loaded
112:M 22 Jan 2022 01:25:08.865 * monotonic clock: POSIX clock_gettime
112:M 22 Jan 2022 01:25:08.865 * Running mode=standalone, port=6379.
112:M 22 Jan 2022 01:25:08.866 # Server initialized
112:M 22 Jan 2022 01:25:08.866 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue ad        d 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
112:M 22 Jan 2022 01:25:08.867 * Loading RDB produced by version 6.2.6
112:M 22 Jan 2022 01:25:08.867 * RDB age 222 seconds
112:M 22 Jan 2022 01:25:08.867 * RDB memory usage when created 0.77 Mb
112:M 22 Jan 2022 01:25:08.867 # Done loading RDB, keys loaded: 0, keys expired: 0.
112:M 22 Jan 2022 01:25:08.867 * DB loaded from disk: 0.001 seconds
112:M 22 Jan 2022 01:25:08.868 * Ready to accept connections
I, [2022-01-22T01:25:18.873234 #1]  INFO -- :
I, [2022-01-22T01:25:18.873563 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2022-01-22T01:25:18.878262 #1]  INFO -- : thpoff is installed!

I, [2022-01-22T01:25:18.878480 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! M        ail is not configured!"; exit 1; end'
I, [2022-01-22T01:25:18.954259 #1]  INFO -- :
I, [2022-01-22T01:25:18.954786 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting!         Domain is not configured!"; exit 1; end'
I, [2022-01-22T01:25:19.029758 #1]  INFO -- :
I, [2022-01-22T01:25:19.030289 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN mu        st have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2022-01-22T01:25:19.111949 #1]  INFO -- :
I, [2022-01-22T01:25:19.112246 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2022-01-22T01:25:19.115542 #1]  INFO -- :
I, [2022-01-22T01:25:19.119317 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2022-01-22T01:25:19.128092 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2022-01-22T01:25:19.137328 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2022-01-22T01:25:19.146536 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2022-01-22T01:25:19.154203 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2022-01-22T01:25:19.160765 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2022-01-22T01:25:19.160996 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2022-01-22T01:25:19.162003 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2022-01-22T01:25:19.165489 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
139:C 22 Jan 2022 01:25:19.169 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
139:C 22 Jan 2022 01:25:19.169 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=139, just started
139:C 22 Jan 2022 01:25:19.169 # Configuration loaded
139:M 22 Jan 2022 01:25:19.170 * monotonic clock: POSIX clock_gettime
139:M 22 Jan 2022 01:25:19.170 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
139:M 22 Jan 2022 01:25:19.170 # Failed listening on port 6379 (TCP), aborting.
Checking out files: 100% (26188/26188), done.
I, [2022-01-22T01:25:21.631893 #1]  INFO -- : HEAD is now at eb82849c FIX: none and all categories filter (#14999)

I, [2022-01-22T01:25:21.632242 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2022-01-22T01:25:21.738748 #1]  INFO -- :
I, [2022-01-22T01:25:21.739302 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2022-01-22T01:25:21.744890 #1]  INFO -- :
I, [2022-01-22T01:25:21.745315 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2022-01-22T01:25:21.750096 #1]  INFO -- :
I, [2022-01-22T01:25:21.750561 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
 * branch              tests-passed -> FETCH_HEAD
 * [new branch]        tests-passed -> origin/tests-passed
I, [2022-01-22T01:25:28.028303 #1]  INFO -- :
I, [2022-01-22T01:25:28.028570 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2022-01-22T01:25:29.959413 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2022-01-22T01:25:29.959693 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2022-01-22T01:25:29.964667 #1]  INFO -- :
I, [2022-01-22T01:25:29.965287 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2022-01-22T01:25:29.971103 #1]  INFO -- :
I, [2022-01-22T01:25:29.971551 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2022-01-22T01:25:29.975989 #1]  INFO -- :
I, [2022-01-22T01:25:29.976368 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2022-01-22T01:25:29.981815 #1]  INFO -- :
I, [2022-01-22T01:25:29.982415 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2022-01-22T01:25:29.989066 #1]  INFO -- :
I, [2022-01-22T01:25:29.989464 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2022-01-22T01:25:29.995502 #1]  INFO -- :
I, [2022-01-22T01:25:29.995939 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_err        ors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2022-01-22T01:25:30.002670 #1]  INFO -- :
I, [2022-01-22T01:25:30.003216 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_err        ors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2022-01-22T01:25:30.009883 #1]  INFO -- :
I, [2022-01-22T01:25:30.010491 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2022-01-22T01:25:30.018175 #1]  INFO -- :
I, [2022-01-22T01:25:30.018814 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse        /public"
I, [2022-01-22T01:25:30.025362 #1]  INFO -- :
I, [2022-01-22T01:25:30.025546 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2022-01-22T01:25:30.032526 #1]  INFO -- :
I, [2022-01-22T01:25:30.033105 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/disc        ourse/tmp"
I, [2022-01-22T01:25:30.039534 #1]  INFO -- :
I, [2022-01-22T01:25:30.039666 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/ba        ckups /shared/tmp
I, [2022-01-22T01:25:30.046829 #1]  INFO -- :
I, [2022-01-22T01:25:30.047378 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2022-01-22T01:25:30.054846 #1]  INFO -- :
I, [2022-01-22T01:25:30.055771 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2022-01-22T01:25:30.056392 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
fatal: unable to access 'https://github.com/discourse/docker_manager.git/': gnutls_handshake() failed: The TLS connection was non-properly termin        ated.
I, [2022-01-22T01:27:30.379678 #1]  INFO -- :
112:signal-handler (1642814850) Received SIGTERM scheduling shutdown...
I, [2022-01-22T01:27:30.380060 #1]  INFO -- : Terminating async processes
I, [2022-01-22T01:27:30.380185 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U p        ostgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 51
I, [2022-01-22T01:27:30.380241 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 112
2022-01-22 01:27:30.380 UTC [51] LOG:  received fast shutdown request
2022-01-22 01:27:30.385 UTC [51] LOG:  aborting any active transactions
2022-01-22 01:27:30.388 UTC [51] LOG:  background worker "logical replication launcher" (PID 60) exited with exit code 1
2022-01-22 01:27:30.392 UTC [55] LOG:  shutting down
2022-01-22 01:27:30.439 UTC [51] LOG:  database system is shut down
112:M 22 Jan 2022 01:27:30.462 # User requested shutdown...
112:M 22 Jan 2022 01:27:30.462 * Saving the final RDB snapshot before exiting.
112:M 22 Jan 2022 01:27:30.467 * DB saved on disk
112:M 22 Jan 2022 01:27:30.467 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git failed with return #<Process::Status:         pid 232 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git"]}
7114db176fc95fe0adf80edbd308178c944ae52535902995b673df1bd1d599a8
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
Failed to rebuild app.

Checking your domain name . . .

Connection to bbs.bigdatasmallteam.com succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . .
x86_64 arch detected.

+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=2 -e UNICORN_SIDEKIQS=1         -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_        FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e LETSENCRYPT_DIR=/shared/letsencrypt -e DISCO        URSE_FORCE_HTTPS=true -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e EMBER_CLI_PROD_ASSETS=1 -e DISCOURSE_HOSTNAME=bbs.bigdatasmallteam.com -e         DISCOURSE_DEVELOPER_EMAILS=zhao.liang.meng@hotmail.com -e DISCOURSE_SMTP_ADDRESS=smtp.mailgun.org -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_US        ER_NAME=postmaster@ms.ruhetouzi.com -e DISCOURSE_SMTP_PASSWORD=f8a7492a482a728d6b3aee46eee73fe1-ef80054a-52b70214 -e DISCOURSE_SMTP_DOMAIN=bbs.bi        gdatasmallteam.com -e DISCOURSE_NOTIFICATION_EMAIL=noreply@bbs.bigdatasmallteam.com -e LETSENCRYPT_ACCOUNT_EMAIL=zhao.liang.meng@hotmail.com -h i        Z2ze472xetukni84zf7l3Z-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 443:443 -v /var/discourse/shared/standalone:/shared -v /var/dis        course/shared/standalone/log/var-log:/var/log --mac-address 02:ef:ac:15:19:bb local_discourse/app /sbin/boot
Unable to find image 'local_discourse/app:latest' locally
docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login': denied:         requested access to the resource is denied.
See 'docker run --help'.
Failed to restart the container.


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git

No non-official plugins detected.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at bbs.bigdatasmallteam.com: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
RAM (MB): 4122

              total        used        free      shared  buff/cache   available
Mem:           3931         202        1302           2        2427        3444
Swap:             0           0           0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        40G  7.4G   31G  20% /

==================== DISK INFORMATION ====================
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2c443519

Device     Boot Start      End  Sectors Size Id Type
/dev/vda1  *     2048 83886046 83883999  40G 83 Linux

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [zhao.liang.meng@hotmail.com]: n
Mail test skipped.
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DONE! ====================

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file
root@iZ2ze472xetukni84zf7l3Z:/var/discourse#
 

Error:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git failed with return #<Process::Status:         pid 232 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git"]}
7114db176fc95fe0adf80edbd308178c944ae52535902995b673df1bd1d599a8
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
 


Cancel http&https proxy:
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# git config --global --unset http.proxy
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# git config --global --unset https.proxy

Cancel the git http&https proxy:
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# git config --global --unset http.https://github.com.proxy
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# git config --global --unset https.https://github.com.proxy

List all the git config:
root@iZ2ze472xetukni84zf7l3Z:/var/discourse# git config --global -l

It failed to get the github because the GWC. Let's try the Aliyun ECS in Hongkong.


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值