# Falha na atualização de 2.9.0beta1 para beta4

**URL:** <https://meta.discourse.org/t/update-from-2-9-0beta1-to-beta4-failed/224766>\
**Category:** Self-hosting\
**Created:** [Abril 19, 2022, 5:11pm UTC](https://meta.discourse.org/t/update-from-2-9-0beta1-to-beta4-failed/224766 "2022-04-19T17:11:46Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)\
**Post date:** [Abril 19, 2022, 11:07pm UTC](https://meta.discourse.org/t/update-from-2-9-0beta1-to-beta4-failed/224766/17 "2022-04-19T23:07:34Z")

</div>

Sinceramente, não estou tentando ser grosso. Temos usado o seu software há muito tempo e fizemos tudo ao nosso alcance para retribuir à comunidade enquanto continuamos atualizando e fazendo upgrades. Esse 9.6 é o nome de um container Docker, em oposição à nossa versão real do PostgreSQL. E, muito obrigado por este excelente projeto.

> **Estamos na PG 13.6 e aqui estão os resultados de \`launcher rebuild data\`**
>
> $ sudo ./launcher rebuild data  
> x86\_64 arch detected.  
> Ensuring launcher is up to date  
> Fetching origin  
> Launcher is up-to-date  
> Stopping old container
> 
> - /usr/bin/docker stop -t 60 data  
> data  
> /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups.rb  
> /usr/local/bin/pups --stdin  
> I, [2022-04-19T23:05:49.939135 #1] INFO – : Reading from stdin  
> I, [2022-04-19T23:05:49.948158 #1] INFO – : Skipped missing before\_code hook  
> I, [2022-04-19T23:05:49.948280 #1] INFO – : Skipped missing after\_code hook  
> I, [2022-04-19T23:05:49.948425 #1] INFO – : \> locale-gen $LANG && update-locale  
> I, [2022-04-19T23:05:50.011782 #1] INFO – : Generating locales (this might take a while)…  
> Generation complete.
> 
> I, [2022-04-19T23:05:50.012198 #1] INFO – : \> mkdir -p /shared/postgres\_run  
> I, [2022-04-19T23:05:50.018535 #1] INFO – :  
> I, [2022-04-19T23:05:50.018853 #1] INFO – : \> chown postgres:postgres /shared/postgres\_run  
> I, [2022-04-19T23:05:50.023347 #1] INFO – :  
> I, [2022-04-19T23:05:50.024050 #1] INFO – : \> chmod 775 /shared/postgres\_run  
> I, [2022-04-19T23:05:50.027462 #1] INFO – :  
> I, [2022-04-19T23:05:50.027728 #1] INFO – : \> rm -fr /var/run/postgresql  
> I, [2022-04-19T23:05:50.032251 #1] INFO – :  
> I, [2022-04-19T23:05:50.032742 #1] INFO – : \> ln -s /shared/postgres\_run /var/run/postgresql  
> I, [2022-04-19T23:05:50.038854 #1] INFO – :  
> I, [2022-04-19T23:05:50.039431 #1] INFO – : \> socat /dev/null UNIX-CONNECT:/shared/postgres\_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1  
> 2022/04/19 23:05:50 socat[18] E connect(6, AF=1 “/shared/postgres\_run/.s.PGSQL.5432”, 36): No such file or directory  
> I, [2022-04-19T23:05:50.052053 #1] INFO – :  
> I, [2022-04-19T23:05:50.052416 #1] INFO – : \> rm -fr /shared/postgres\_run/.s\*  
> I, [2022-04-19T23:05:50.058351 #1] INFO – :  
> I, [2022-04-19T23:05:50.058586 #1] INFO – : \> rm -fr /shared/postgres\_run/_.pid  
> I, [2022-04-19T23:05:50.063687 #1] INFO – :  
> I, [2022-04-19T23:05:50.064096 #1] INFO – : \> mkdir -p /shared/postgres\_run/13-main.pg\_stat\_tmp  
> I, [2022-04-19T23:05:50.069438 #1] INFO – :  
> I, [2022-04-19T23:05:50.069870 #1] INFO – : \> chown postgres:postgres /shared/postgres\_run/13-main.pg\_stat\_tmp  
> I, [2022-04-19T23:05:50.074492 #1] INFO – :  
> I, [2022-04-19T23:05:50.083895 #1] INFO – : File \> /etc/service/postgres/run chmod: +x chown:  
> I, [2022-04-19T23:05:50.092669 #1] INFO – : File \> /etc/service/postgres/log/run chmod: +x chown:  
> I, [2022-04-19T23:05:50.099785 #1] INFO – : File \> /etc/runit/3.d/99-postgres chmod: +x chown:  
> I, [2022-04-19T23:05:50.107866 #1] INFO – : File \> /root/upgrade\_postgres chmod: +x chown:  
> I, [2022-04-19T23:05:50.108104 #1] INFO – : \> chown -R root /var/lib/postgresql/13/main  
> I, [2022-04-19T23:05:51.927082 #1] INFO – :  
> I, [2022-04-19T23:05:51.927295 #1] INFO – : \> [! -e /shared/postgres\_data] && install -d -m 0755 -o postgres -g postgres /shared/postgres\_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres\_data || exit 0  
> I, [2022-04-19T23:05:51.935650 #1] INFO – :  
> I, [2022-04-19T23:05:51.935955 #1] INFO – : \> chown -R postgres:postgres /shared/postgres\_data  
> I, [2022-04-19T23:05:51.978547 #1] INFO – :  
> I, [2022-04-19T23:05:51.979163 #1] INFO – : \> chown -R postgres:postgres /var/run/postgresql  
> I, [2022-04-19T23:05:51.983406 #1] INFO – :  
> I, [2022-04-19T23:05:51.983834 #1] INFO – : \> /root/upgrade\_postgres  
> I, [2022-04-19T23:05:51.990945 #1] INFO – :  
> I, [2022-04-19T23:05:51.991186 #1] INFO – : \> rm /root/upgrade\_postgres  
> I, [2022-04-19T23:05:51.995130 #1] INFO – :  
> I, [2022-04-19T23:05:51.995659 #1] INFO – : Replacing data\_directory = ‘/var/lib/postgresql/13/main’ with data\_directory = ‘/shared/postgres\_data’ in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:51.996467 #1] INFO – : Replacing (?-mix:#?listen\_addresses =.) with listen\_addresses = '_’ in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:51.997768 #1] INFO – : Replacing (?-mix:#?synchronous\_commit _=._) with synchronous\_commit = $db\_synchronous\_commit in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:51.998608 #1] INFO – : Replacing (?-mix:#?shared\_buffers _=._) with shared\_buffers = $db\_shared\_buffers in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:51.999592 #1] INFO – : Replacing (?-mix:#?work\_mem _=._) with work\_mem = $db\_work\_mem in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:52.007053 #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-04-19T23:05:52.008272 #1] INFO – : \> install -d -m 0755 -o postgres -g postgres /shared/postgres\_backup  
> I, [2022-04-19T23:05:52.013712 #1] INFO – :  
> I, [2022-04-19T23:05:52.014540 #1] INFO – : Replacing (?-mix:#?checkpoint\_segments _=._) with checkpoint\_segments = $db\_checkpoint\_segments in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:52.015029 #1] INFO – : Replacing (?-mix:#?logging\_collector _=._) with logging\_collector = $db\_logging\_collector in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:52.018628 #1] INFO – : Replacing (?-mix:#?log\_min\_duration\_statement _=._) with log\_min\_duration\_statement = $db\_log\_min\_duration\_statement in /etc/postgresql/13/main/postgresql.conf  
> I, [2022-04-19T23:05:52.019785 #1] INFO – : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg\_hba.conf  
> I, [2022-04-19T23:05:52.020520 #1] INFO – : Replacing (?-mix:^host.\*all.\*all._127._$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg\_hba.conf  
> I, [2022-04-19T23:05:52.022308 #1] INFO – : Replacing (?-mix:^host._all.all.::1/128._$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg\_hba.conf  
> I, [2022-04-19T23:05:52.024429 #1] INFO – : \> HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main  
> I, [2022-04-19T23:05:52.034450 #1] INFO – : \> sleep 5  
> 2022-04-19 23:05:52.106 UTC [41] LOG: starting PostgreSQL 13.6 (Debian 13.6-1.pgdg110+1) on x86\_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit  
> 2022-04-19 23:05:52.107 UTC [41] LOG: listening on IPv4 address “0.0.0.0”, port 5432  
> 2022-04-19 23:05:52.107 UTC [41] LOG: listening on IPv6 address “::”, port 5432  
> 2022-04-19 23:05:52.109 UTC [41] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”  
> 2022-04-19 23:05:52.122 UTC [44] LOG: database system was shut down at 2022-04-19 23:05:31 UTC  
> 2022-04-19 23:05:52.170 UTC [41] LOG: database system is ready to accept connections  
> I, [2022-04-19T23:05:57.075413 #1] INFO – :  
> I, [2022-04-19T23:05:57.080612 #1] INFO – : \> su postgres -c ‘createdb discourse’ || true  
> 2022-04-19 23:05:57.180 UTC [54] postgres@postgres ERROR: database “discourse” already exists  
> 2022-04-19 23:05:57.180 UTC [54] postgres@postgres STATEMENT: CREATE DATABASE discourse;  
> createdb: error: database creation failed: ERROR: database “discourse” already exists  
> I, [2022-04-19T23:05:57.190929 #1] INFO – :  
> I, [2022-04-19T23:05:57.192044 #1] INFO – : \> su postgres -c ‘psql discourse -c “create user discourse;”’ || true  
> 2022-04-19 23:05:57.284 UTC [58] postgres@discourse ERROR: role “discourse” already exists  
> 2022-04-19 23:05:57.284 UTC [58] postgres@discourse STATEMENT: create user discourse;  
> ERROR: role “discourse” already exists  
> I, [2022-04-19T23:05:57.287964 #1] INFO – :  
> I, [2022-04-19T23:05:57.288587 #1] INFO – : \> su postgres -c ‘psql discourse -c “grant all privileges on database discourse to discourse;”’ || true  
> I, [2022-04-19T23:05:57.371963 #1] INFO – : GRANT
> 
> I, [2022-04-19T23:05:57.372379 #1] INFO – : \> su postgres -c ‘psql discourse -c “alter schema public owner to discourse;”’  
> I, [2022-04-19T23:05:57.451876 #1] INFO – : ALTER SCHEMA
> 
> I, [2022-04-19T23:05:57.452862 #1] INFO – : \> su postgres -c ‘psql template1 -c “create extension if not exists hstore;”’  
> NOTICE: extension “hstore” already exists, skipping  
> I, [2022-04-19T23:05:57.551888 #1] INFO – : CREATE EXTENSION
> 
> I, [2022-04-19T23:05:57.552265 #1] INFO – : \> su postgres -c ‘psql template1 -c “create extension if not exists pg\_trgm;”’  
> NOTICE: extension “pg\_trgm” already exists, skipping  
> I, [2022-04-19T23:05:57.700188 #1] INFO – : CREATE EXTENSION
> 
> I, [2022-04-19T23:05:57.700635 #1] INFO – : \> su postgres -c ‘psql discourse -c “create extension if not exists hstore;”’  
> NOTICE: extension “hstore” already exists, skipping  
> I, [2022-04-19T23:05:57.793811 #1] INFO – : CREATE EXTENSION
> 
> I, [2022-04-19T23:05:57.794182 #1] INFO – : \> su postgres -c ‘psql discourse -c “create extension if not exists pg\_trgm;”’  
> NOTICE: extension “pg\_trgm” already exists, skipping  
> I, [2022-04-19T23:05:57.873928 #1] INFO – : CREATE EXTENSION
> 
> I, [2022-04-19T23:05:57.874368 #1] INFO – : \> sudo -u postgres psql discourse  
> I, [2022-04-19T23:05:57.876873 #1] INFO – : update pg\_database set encoding = pg\_char\_to\_encoding(‘UTF8’) where datname = ‘discourse’ AND encoding = pg\_char\_to\_encoding(‘SQL\_ASCII’);
> 
> I, [2022-04-19T23:05:57.980229 #1] INFO – : File \> /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres  
> I, [2022-04-19T23:05:57.984526 #1] INFO – : File \> /var/spool/cron/crontabs/postgres chmod: chown:  
> I, [2022-04-19T23:05:57.984735 #1] INFO – : \> echo postgres installed!  
> I, [2022-04-19T23:05:57.987905 #1] INFO – : postgres installed!
> 
> I, [2022-04-19T23:05:57.988304 #1] INFO – : \> su - postgres -c ‘psql discourse’  
> I, [2022-04-19T23:05:57.990101 #1] INFO – : alter user discourse with password ‘discourse’;
> 
> Broken pipe  
> I, [2022-04-19T23:05:58.080139 #1] INFO – : File \> /etc/service/redis/run chmod: +x chown:  
> I, [2022-04-19T23:05:58.087463 #1] INFO – : File \> /etc/service/redis/log/run chmod: +x chown:  
> I, [2022-04-19T23:05:58.093976 #1] INFO – : File \> /etc/runit/3.d/10-redis chmod: +x chown:  
> I, [2022-04-19T23:05:58.094802 #1] INFO – : Replacing daemonize yes with in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.096334 #1] INFO – : Replacing (?-mix:^pidfile._$) with in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.099100 #1] INFO – : \> install -d -m 0755 -o redis -g redis /shared/redis\_data  
> I, [2022-04-19T23:05:58.104098 #1] INFO – :  
> I, [2022-04-19T23:05:58.104954 #1] INFO – : Replacing (?-mix:^logfile._$) with logfile “” in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.105904 #1] INFO – : Replacing (?-mix:^bind ._$) with in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.107749 #1] INFO – : Replacing (?-mix:^dir ._$) with dir /shared/redis\_data in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.109695 #1] INFO – : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.111059 #1] INFO – : Replacing # io-threads 4 with io-threads $redis\_io\_threads in /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.116609 #1] INFO – : \> echo redis installed  
> I, [2022-04-19T23:05:58.121378 #1] INFO – : redis installed
> 
> I, [2022-04-19T23:05:58.121692 #1] INFO – : \> cat /etc/redis/redis.conf | grep logfile  
> I, [2022-04-19T23:05:58.127344 #1] INFO – : logfile “”
> 
> I, [2022-04-19T23:05:58.127729 #1] INFO – : \> exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf  
> I, [2022-04-19T23:05:58.130617 #1] INFO – : \> sleep 10  
> 107:C 19 Apr 2022 23:05:58.140 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo  
> 107:C 19 Apr 2022 23:05:58.140 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=107, just started  
> 107:C 19 Apr 2022 23:05:58.140 # Configuration loaded  
> 107:M 19 Apr 2022 23:05:58.141 \* monotonic clock: POSIX clock\_gettime  
> 107:M 19 Apr 2022 23:05:58.142 \* Running mode=standalone, port=6379.  
> 107:M 19 Apr 2022 23:05:58.142 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.  
> 107:M 19 Apr 2022 23:05:58.142 # Server initialized  
> 107:M 19 Apr 2022 23:05:58.143 \* Loading RDB produced by version 6.2.6  
> 107:M 19 Apr 2022 23:05:58.143 \* RDB age 27 seconds  
> 107:M 19 Apr 2022 23:05:58.143 \* RDB memory usage when created 0.77 Mb  
> 107:M 19 Apr 2022 23:05:58.143 # Done loading RDB, keys loaded: 0, keys expired: 0.  
> 107:M 19 Apr 2022 23:05:58.143 \* DB loaded from disk: 0.000 seconds  
> 107:M 19 Apr 2022 23:05:58.143 \* Ready to accept connections  
> I, [2022-04-19T23:06:08.135058 #1] INFO – :  
> I, [2022-04-19T23:06:08.142271 #1] INFO – : Terminating async processes  
> I, [2022-04-19T23:06:08.142417 #1] INFO – : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 41  
> I, [2022-04-19T23:06:08.142709 #1] INFO – : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 107  
> 107:signal-handler (1650409568) Received SIGTERM scheduling shutdown…  
> 2022-04-19 23:06:08.149 UTC [41] LOG: received fast shutdown request  
> 2022-04-19 23:06:08.173 UTC [41] LOG: aborting any active transactions  
> 2022-04-19 23:06:08.184 UTC [41] LOG: background worker “logical replication launcher” (PID 50) exited with exit code 1  
> 2022-04-19 23:06:08.185 UTC [45] LOG: shutting down  
> 107:M 19 Apr 2022 23:06:08.201 # User requested shutdown…  
> 107:M 19 Apr 2022 23:06:08.201 \* Saving the final RDB snapshot before exiting.  
> 107:M 19 Apr 2022 23:06:08.206 \* DB saved on disk  
> 107:M 19 Apr 2022 23:06:08.206 # Redis is now ready to exit, bye bye…  
> 2022-04-19 23:06:08.361 UTC [41] LOG: database system is shut down  
> sha256:894cee1a046c4d3e12247afd21cb66c4c943bd727d762bd3f76b609c19b57176  
> 506aaa81e7dd352de8ccbd281cc64f53a6bcde6bcbbc943f85aa4b6ae40c9c65  
> Removing old container
> 
> - /usr/bin/docker rm data  
> data
> 
> - /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en\_US.UTF-8 -h ssdnodes-05208-data -e DOCKER\_HOST\_IP=172.17.0.1 --name data -t -v /var/discourse/shared/data:/shared -v /var/discourse/shared/data/log/var-log:/var/log --mac-address 02:f4:d7:c6:0e:eb local\_discourse/data /sbin/boot  
> 0a20f14678531374d667418f626a370ff5d658a68ec9ba33d6a1fc4f7f488920

[details=“./launcher rebuild app”]  
$ sudo ./launcher rebuild app  
Arquitetura x86\_64 detectada.  
Garantindo que o launcher esteja atualizado  
Buscando origem  
Launcher está atualizado  
Parando o container antigo

- /usr/bin/docker stop -t 60 app  
app  
/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups.rb  
/usr/local/bin/pups --stdin  
I, [2022-04-19T23:09:14.748407 #1] INFO – : Lendo de stdin  
I, [2022-04-19T23:09:14.762156 #1] INFO – : \> locale-gen $LANG && update-locale  
I, [2022-04-19T23:09:14.833118 #1] INFO – : Gerando locales (isto pode demorar um pouco)…  
Geração concluída.

I, [2022-04-19T23:09:14.834029 #1] INFO – : \> mkdir -p /shared/postgres\_run  
I, [2022-04-19T23:09:14.858534 #1] INFO – :  
I, [2022-04-19T23:09:14.859286 #1] INFO – : \> chown postgres:postgres /shared/postgres\_run  
I, [2022-04-19T23:09:14.872026 #1] INFO – :  
I, [2022-04-19T23:09:14.872361 #1] INFO – : \> chmod 775 /shared/postgres\_run  
I, [2022-04-19T23:09:14.878948 #1] INFO – :  
I, [2022-04-19T23:09:14.879314 #1] INFO – : \> rm -fr /var/run/postgresql  
I, [2022-04-19T23:09:14.890627 #1] INFO – :  
I, [2022-04-19T23:09:14.890913 #1] INFO – : \> ln -s /shared/postgres\_run /var/run/postgresql  
I, [2022-04-19T23:09:14.899597 #1] INFO – :  
I, [2022-04-19T23:09:14.899834 #1] INFO – : \> socat /dev/null UNIX-CONNECT:/shared/postgres\_run/.s.PGSQL.5432 || exit 0 && echo postgres já está em execução, pare o container ; exit 1  
2022/04/19 23:09:14 socat[18] E connect(6, AF=1 “/shared/postgres\_run/.s.PGSQL.5432”, 36): Arquivo ou diretório não encontrado  
I, [2022-04-19T23:09:14.909393 #1] INFO – :  
I, [2022-04-19T23:09:14.909767 #1] INFO – : \> rm -fr /shared/postgres\_run/.s\*  
I, [2022-04-19T23:09:14.916015 #1] INFO – :  
I, [2022-04-19T23:09:14.916502 #1] INFO – : \> rm -fr /shared/postgres\_run/_.pid  
I, [2022-04-19T23:09:14.922573 #1] INFO – :  
I, [2022-04-19T23:09:14.923062 #1] INFO – : \> mkdir -p /shared/postgres\_run/13-main.pg\_stat\_tmp  
I, [2022-04-19T23:09:14.929065 #1] INFO – :  
I, [2022-04-19T23:09:14.931643 #1] INFO – : \> chown postgres:postgres /shared/postgres\_run/13-main.pg\_stat\_tmp  
I, [2022-04-19T23:09:14.939550 #1] INFO – :  
I, [2022-04-19T23:09:14.952747 #1] INFO – : Arquivo \> /etc/service/postgres/run chmod: +x chown:  
I, [2022-04-19T23:09:14.966423 #1] INFO – : Arquivo \> /etc/service/postgres/log/run chmod: +x chown:  
I, [2022-04-19T23:09:14.981160 #1] INFO – : Arquivo \> /etc/runit/3.d/99-postgres chmod: +x chown:  
I, [2022-04-19T23:09:14.998133 #1] INFO – : Arquivo \> /root/upgrade\_postgres chmod: +x chown:  
I, [2022-04-19T23:09:14.999420 #1] INFO – : \> chown -R root /var/lib/postgresql/13/main  
I, [2022-04-19T23:09:17.118500 #1] INFO – :  
I, [2022-04-19T23:09:17.118636 #1] INFO – : \> [! -e /shared/postgres\_data] && install -d -m 0755 -o postgres -g postgres /shared/postgres\_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres\_data || exit 0  
I, [2022-04-19T23:09:17.124662 #1] INFO – :  
I, [2022-04-19T23:09:17.124803 #1] INFO – : \> chown -R postgres:postgres /shared/postgres\_data  
I, [2022-04-19T23:09:17.152295 #1] INFO – :  
I, [2022-04-19T23:09:17.152979 #1] INFO – : \> chown -R postgres:postgres /var/run/postgresql  
I, [2022-04-19T23:09:17.159662 #1] INFO – :  
I, [2022-04-19T23:09:17.160031 #1] INFO – : \> /root/upgrade\_postgres  
I, [2022-04-19T23:09:17.176523 #1] INFO – :  
I, [2022-04-19T23:09:17.176860 #1] INFO – : \> rm /root/upgrade\_postgres  
I, [2022-04-19T23:09:17.183846 #1] INFO – :  
I, [2022-04-19T23:09:17.184821 #1] INFO – : Substituindo data\_directory = ‘/var/lib/postgresql/13/main’ por data\_directory = ‘/shared/postgres\_data’ em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.186490 #1] INFO – : Substituindo (?-mix:#?listen\_addresses =.) por listen\_addresses = '_’ em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.189161 #1] INFO – : Substituindo (?-mix:#?synchronous\_commit _=._) por synchronous\_commit = $db\_synchronous\_commit em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.190509 #1] INFO – : Substituindo (?-mix:#?shared\_buffers _=._) por shared\_buffers = $db\_shared\_buffers em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.200340 #1] INFO – : Substituindo (?-mix:#?work\_mem _=._) por work\_mem = $db\_work\_mem em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.203104 #1] INFO – : Substituindo (?-mix:#?default\_text\_search\_config _=._) por default\_text\_search\_config = ‘$db\_default\_text\_search\_config’ em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.204168 #1] INFO – : \> install -d -m 0755 -o postgres -g postgres /shared/postgres\_backup  
I, [2022-04-19T23:09:17.211155 #1] INFO – :  
I, [2022-04-19T23:09:17.211780 #1] INFO – : Substituindo (?-mix:#?checkpoint\_segments _=._) por checkpoint\_segments = $db\_checkpoint\_segments em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.212437 #1] INFO – : Substituindo (?-mix:#?logging\_collector _=._) por logging\_collector = $db\_logging\_collector em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.213045 #1] INFO – : Substituindo (?-mix:#?log\_min\_duration\_statement _=._) por log\_min\_duration\_statement = $db\_log\_min\_duration\_statement em /etc/postgresql/13/main/postgresql.conf  
I, [2022-04-19T23:09:17.214926 #1] INFO – : Substituindo (?-mix:^#local +replication +postgres +peer$) por local replication postgres peer em /etc/postgresql/13/main/pg\_hba.conf  
I, [2022-04-19T23:09:17.219445 #1] INFO – : Substituindo (?-mix:^host.\*all.\*all._127._$) por host all all 0.0.0.0/0 md5 em /etc/postgresql/13/main/pg\_hba.conf  
I, [2022-04-19T23:09:17.221806 #1] INFO – : Substituindo (?-mix:^host._all.all.::1/128._$) por host all all ::/0 md5 em /etc/postgresql/13/main/pg\_hba.conf  
I, [2022-04-19T23:09:17.222831 #1] INFO – : \> HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main  
I, [2022-04-19T23:09:17.228626 #1] INFO – : \> sleep 5  
2022-04-19 23:09:17.443 UTC [41] LOG: iniciando PostgreSQL 13.6 (Debian 13.6-1.pgdg110+1) em x86\_64-pc-linux-gnu, compilado por gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit  
2022-04-19 23:09:17.444 UTC [41] LOG: escutando no endereço IPv4 “0.0.0.0”, porta 5432  
2022-04-19 23:09:17.444 UTC [41] LOG: escutando no endereço IPv6 “::”, porta 5432  
2022-04-19 23:09:17.447 UTC [41] LOG: escutando no soquete Unix “/var/run/postgresql/.s.PGSQL.5432”  
2022-04-19 23:09:17.461 UTC [44] LOG: sistema de banco de dados foi desligado em 2022-04-19 23:00:55 UTC  
2022-04-19 23:09:17.475 UTC [41] LOG: sistema de banco de dados está pronto para aceitar conexões  
I, [2022-04-19T23:09:22.245676 #1] INFO – :  
I, [2022-04-19T23:09:22.246608 #1] INFO – : \> su postgres -c ‘createdb discourse’ || true  
2022-04-19 23:09:22.339 UTC [54] postgres@postgres ERROR: banco de dados “discourse” já existe  
2022-04-19 23:09:22.339 UTC [54] postgres@postgres STATEMENT: CREATE DATABASE discourse;  
createdb: erro: criação do banco de dados falhou: ERROR: banco de dados “discourse” já existe  
I, [2022-04-19T23:09:22.343640 #1] INFO – :  
I, [2022-04-19T23:09:22.344029 #1] INFO – : \> su postgres -c ‘psql discourse -c “create user discourse;”’ || true  
2022-04-19 23:09:22.433 UTC [58] postgres@discourse ERROR: papel “discourse” já existe  
2022-04-19 23:09:22.433 UTC [58] postgres@discourse STATEMENT: create user discourse;  
ERROR: papel “discourse” já existe  
I, [2022-04-19T23:09:22.445197 #1] INFO – :  
I, [2022-04-19T23:09:22.445730 #1] INFO – : \> su postgres -c ‘psql discourse -c “grant all privileges on database discourse to discourse;”’ || true  
I, [2022-04-19T23:09:22.561941 #1] INFO – : GRANT

I, [2022-04-19T23:09:22.562419 #1] INFO – : \> su postgres -c ‘psql discourse -c “alter schema public owner to discourse;”’  
I, [2022-04-19T23:09:22.650463 #1] INFO – : ALTER SCHEMA

I, [2022-04-19T23:09:22.650721 #1] INFO – : \> su postgres -c ‘psql template1 -c “create extension if not exists hstore;”’  
NOTICE: extensão “hstore” já existe, ignorando  
I, [2022-04-19T23:09:22.743327 #1] INFO – : CREATE EXTENSION

I, [2022-04-19T23:09:22.743912 #1] INFO – : \> su postgres -c ‘psql template1 -c “create extension if not exists pg\_trgm;”’  
NOTICE: extensão “pg\_trgm” já existe, ignorando  
I, [2022-04-19T23:09:22.846861 #1] INFO – : CREATE EXTENSION

I, [2022-04-19T23:09:22.847512 #1] INFO – : \> su postgres -c ‘psql discourse -c “create extension if not exists hstore;”’  
NOTICE: extensão “hstore” já existe, ignorando  
I, [2022-04-19T23:09:22.926852 #1] INFO – : CREATE EXTENSION

I, [2022-04-19T23:09:22.927590 #1] INFO – : \> su postgres -c ‘psql discourse -c “create extension if not exists pg\_trgm;”’  
NOTICE: extensão “pg\_trgm” já existe, ignorando  
I, [2022-04-19T23:09:23.023790 #1] INFO – : CREATE EXTENSION

I, [2022-04-19T23:09:23.024554 #1] INFO – : \> sudo -u postgres psql discourse  
I, [2022-04-19T23:09:23.030892 #1] INFO – : update pg\_database set encoding = pg\_char\_to\_encoding(‘UTF8’) where datname = ‘discourse’ AND encoding = pg\_char\_to\_encoding(‘SQL\_ASCII’);

I, [2022-04-19T23:09:23.139105 #1] INFO – : Arquivo \> /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres  
I, [2022-04-19T23:09:23.147551 #1] INFO – : Arquivo \> /var/spool/cron/crontabs/postgres chmod: chown:  
I, [2022-04-19T23:09:23.148233 #1] INFO – : \> echo postgres instalado!  
I, [2022-04-19T23:09:23.155768 #1] INFO – : postgres instalado!

I, [2022-04-19T23:09:23.176509 #1] INFO – : Arquivo \> /etc/service/redis/run chmod: +x chown:  
I, [2022-04-19T23:09:23.190399 #1] INFO – : Arquivo \> /etc/service/redis/log/run chmod: +x chown:  
I, [2022-04-19T23:09:23.204437 #1] INFO – : Arquivo \> /etc/runit/3.d/10-redis chmod: +x chown:  
I, [2022-04-19T23:09:23.205205 #1] INFO – : Substituindo daemonize yes por em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.206423 #1] INFO – : Substituindo (?-mix:^pidfile._$) por em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.207996 #1] INFO – : \> install -d -m 0755 -o redis -g redis /shared/redis\_data  
I, [2022-04-19T23:09:23.215513 #1] INFO – :  
I, [2022-04-19T23:09:23.216652 #1] INFO – : Substituindo (?-mix:^logfile._$) por logfile “” em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.217825 #1] INFO – : Substituindo (?-mix:^bind ._$) por em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.219452 #1] INFO – : Substituindo (?-mix:^dir ._$) por dir /shared/redis\_data em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.220594 #1] INFO – : Substituindo (?-mix:^protected-mode yes) por protected-mode no em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.221542 #1] INFO – : Substituindo # io-threads 4 por io-threads $redis\_io\_threads em /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.222547 #1] INFO – : \> echo redis instalado  
I, [2022-04-19T23:09:23.230041 #1] INFO – : redis instalado

I, [2022-04-19T23:09:23.234467 #1] INFO – : \> cat /etc/redis/redis.conf | grep logfile  
I, [2022-04-19T23:09:23.256662 #1] INFO – : logfile “”

I, [2022-04-19T23:09:23.257770 #1] INFO – : \> exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf  
I, [2022-04-19T23:09:23.265439 #1] INFO – : \> sleep 10  
102:C 19 Abr 2022 23:09:23.279 # oO0OoO0OoO0Oo Redis está iniciando oO0OoO0OoO0Oo  
102:C 19 Abr 2022 23:09:23.279 # Versão do Redis=6.2.6, bits=64, commit=00000000, modificado=0, pid=102, acabou de iniciar  
102:C 19 Abr 2022 23:09:23.279 # Configuração carregada  
102:M 19 Abr 2022 23:09:23.280 \* relógio monótono: POSIX clock\_gettime  
102:M 19 Abr 2022 23:09:23.280 \* Modo de execução=standalone, porta=6379.  
102:M 19 Abr 2022 23:09:23.281 # AVISO: A configuração de backlog TCP de 511 não pode ser aplicada porque /proc/sys/net/core/somaxconn está definido para o valor menor de 128.  
102:M 19 Abr 2022 23:09:23.281 # Servidor inicializado  
102:M 19 Abr 2022 23:09:23.281 \* Carregando RDB produzido pela versão 6.2.6  
102:M 19 Abr 2022 23:09:23.281 \* Idade do RDB 508 segundos  
102:M 19 Abr 2022 23:09:23.281 \* Uso de memória do RDB quando criado 0.91 Mb  
102:M 19 Abr 2022 23:09:23.286 # Concluído carregamento do RDB, chaves carregadas: 93, chaves expiradas: 0.  
102:M 19 Abr 2022 23:09:23.286 \* Banco de dados carregado do disco: 0.005 segundos  
102:M 19 Abr 2022 23:09:23.286 \* Pronto para aceitar conexões  
I, [2022-04-19T23:09:33.274738 #1] INFO – :  
I, [2022-04-19T23:09:33.275851 #1] INFO – : \> thpoff echo “thpoff está instalado!”  
I, [2022-04-19T23:09:33.296308 #1] INFO – : thpoff está instalado!

I, [2022-04-19T23:09:33.297412 #1] INFO – : \> /usr/local/bin/ruby -e ‘if ENV[“DISCOURSE\_SMTP\_ADDRESS”] == “[smtp.example.com](http://smtp.example.com)”; puts “Abortando! E-mail não está configurado!”; exit 1; end’  
I, [2022-04-19T23:09:33.468720 #1] INFO – :  
I, [2022-04-19T23:09:33.469606 #1] INFO – : \> /usr/local/bin/ruby -e ‘if ENV[“DISCOURSE\_HOSTNAME”] == “[discourse.example.com](http://discourse.example.com)”; puts “Abortando! Domínio não está configurado!”; exit 1; end’  
I, [2022-04-19T23:09:33.608169 #1] INFO – :  
I, [2022-04-19T23:09:33.608831 #1] INFO – : \> /usr/local/bin/ruby -e ‘if (ENV[“DISCOURSE\_CDN\_URL”] || “”)[0..1] == “//”; puts “Abortando! CDN deve ter um protocolo especificado. Uma vez corrigido, você deve rebake seus posts agora para corrigir todos os posts.”; exit 1; end’  
I, [2022-04-19T23:09:33.710987 #1] INFO – :  
I, [2022-04-19T23:09:33.711537 #1] INFO – : \> rm -f /etc/cron.d/anacron  
I, [2022-04-19T23:09:33.716967 #1] INFO – :  
I, [2022-04-19T23:09:33.724680 #1] INFO – : Arquivo \> /etc/cron.d/anacron chmod: chown:  
I, [2022-04-19T23:09:33.758483 #1] INFO – : Arquivo \> /etc/runit/1.d/copy-env chmod: +x chown:  
I, [2022-04-19T23:09:33.791004 #1] INFO – : Arquivo \> /etc/service/unicorn/run chmod: +x chown:  
I, [2022-04-19T23:09:33.806004 #1] INFO – : Arquivo \> /etc/service/nginx/run chmod: +x chown:  
I, [2022-04-19T23:09:33.825208 #1] INFO – : Arquivo \> /etc/runit/3.d/01-nginx chmod: +x chown:  
I, [2022-04-19T23:09:33.861523 #1] INFO – : Arquivo \> /etc/runit/3.d/02-unicorn chmod: +x chown:  
I, [2022-04-19T23:09:33.871454 #1] INFO – : Substituindo # postgres por sv start postgres || exit 1 em /etc/service/unicorn/run  
I, [2022-04-19T23:09:33.872104 #1] INFO – : \> exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf  
I, [2022-04-19T23:09:33.882458 #1] INFO – : \> apt-get update  
132:C 19 Abr 2022 23:09:33.892 # oO0OoO0OoO0Oo Redis está iniciando oO0OoO0OoO0Oo  
132:C 19 Abr 2022 23:09:33.892 # Versão do Redis=6.2.6, bits=64, commit=00000000, modificado=0, pid=132, acabou de iniciar  
132:C 19 Abr 2022 23:09:33.892 # Configuração carregada  
132:M 19 Abr 2022 23:09:33.892 \* relógio monótono: POSIX clock\_gettime  
132:M 19 Abr 2022 23:09:33.893 # Aviso: Não foi possível criar soquete de escuta TCP do servidor \*:6379: bind: Endereço já em uso  
132:M 19 Abr 2022 23:09:33.893 # Falha ao escutar na porta 6379 (TCP), abortando.  
I, [2022-04-19T23:09:38.585297 #1] INFO – : Get:1 [Index of /debian-security](http://security.debian.org/debian-security) bullseye-security InRelease [44.1 kB]  
Get:2 [Index of /debian](http://deb.debian.org/debian) bullseye InRelease [116 kB]  
Get:3 [Index of /debian](http://deb.debian.org/debian) bullseye-updates InRelease [39.4 kB]  
Get:4 [https://deb.nodesource.com/node\_16.x](https://deb.nodesource.com/node_16.x) bullseye InRelease [4,586 B]  
Get:5 [https://dl.yarnpkg.com/debian](https://dl.yarnpkg.com/debian) stable InRelease [17.1 kB]  
Get:6 [Index of /debian](http://deb.debian.org/debian) bullseye-backports InRelease [44.2 kB]  
Get:7 [Index of /pub/repos/apt/](http://apt.postgresql.org/pub/repos/apt) bullseye-pgdg InRelease [86.7 kB]  
Get:8 [Index of /debian-security](http://security.debian.org/debian-security) bullseye-security/main amd64 Packages [126 kB]  
Get:9 [Index of /debian](http://deb.debian.org/debian) bullseye/main amd64 Packages [8,182 kB]  
Get:10 [Index of /debian](http://deb.debian.org/debian) bullseye-updates/main amd64 Packages [2,596 B]  
Get:11 [https://deb.nodesource.com/node\_16.x](https://deb.nodesource.com/node_16.x) bullseye/main amd64 Packages [770 B]  
Get:12 [https://dl.yarnpkg.com/debian](https://dl.yarnpkg.com/debian) stable/main all Packages [10.6 kB]  
Get:13 [https://dl.yarnpkg.com/debian](https://dl.yarnpkg.com/debian) stable/main amd64 Packages [10.6 kB]  
Get:14 [Index of /debian](http://deb.debian.org/debian) bullseye-backports/main amd64 Packages [236 kB]  
Get:15 [Index of /pub/repos/apt/](http://apt.postgresql.org/pub/repos/apt) bullseye-pgdg/main amd64 Packages [240 kB]  
Fetched 9,160 kB in 3s (2,706 kB/s)  
Reading package lists…

I, [2022-04-19T23:09:38.585572 #1] INFO – : \> apt-get install -y libsodium-dev  
debconf: adiando configuração de pacotes, pois apt-utils não está instalado  
I, [2022-04-19T23:09:43.938282 #1] INFO – : Reading package lists…  
Building dependency tree…  
Reading state information…  
The following additional packages will be installed:  
libsodium23  
The following NEW packages will be installed:  
libsodium-dev libsodium23  
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.  
Need to get 341 kB of archives.  
After this operation, 1,251 kB of additional disk space will be used.  
Get:1 [Index of /debian](http://deb.debian.org/debian) bullseye/main amd64 libsodium23 amd64 1.0.18-1 [161 kB]  
Get:2 [Index of /debian](http://deb.debian.org/debian) bullseye/main amd64 libsodium-dev amd64 1.0.18-1 [180 kB]  
Fetched 341 kB in 0s (5,815 kB/s)  
Selecting previously unselected package libsodium23:amd64.  
(Reading database … 38888 files and directories currently installed.)  
Preparing to unpack …/libsodium23\_1.0.18-1\_amd64.deb …  
Unpacking libsodium23:amd64 (1.0.18-1) …  
Selecting previously unselected package libsodium-dev:amd64.  
Preparing to unpack …/libsodium-dev\_1.0.18-1\_amd64.deb …  
Unpacking libsodium-dev:amd64 (1.0.18-1) …  
Setting up libsodium23:amd64 (1.0.18-1) …  
Setting up libsodium-dev:amd64 (1.0.18-1) …  
Processing triggers for libc-bin (2.31-13+deb11u3) …

I, [2022-04-19T23:09:43.951785 #1] INFO – : \> cd /var/www/discourse && git reset --hard  
Updating files: 100% (31051/31051), done.  
I, [2022-04-19T23:09:49.696390 #1] INFO – : HEAD is now at 6fc52d95 DEV: Remove scoped order warning in PostDestroyer.

I, [2022-04-19T23:09:49.696554 #1] INFO – : \> cd /var/www/discourse && git clean -f  
I, [2022-04-19T23:09:49.949792 #1] INFO – :  
I, [2022-04-19T23:09:49.949997 #1] INFO – : \> cd /var/www/discourse && git remote set-branches --add origin main  
I, [2022-04-19T23:09:49.966373 #1] INFO – :  
I, [2022-04-19T23:09:49.966535 #1] INFO – : \> cd /var/www/discourse && git remote set-branches origin tests-passed  
I, [2022-04-19T23:09:49.998061 #1] INFO – :  
I, [2022-04-19T23:09:49.998437 #1] INFO – : \> cd /var/www/discourse && git fetch --depth 1 origin tests-passed  
From [GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. · GitHub](https://github.com/discourse/discourse)

- branch tests-passed → FETCH\_HEAD
- [new branch] tests-passed → origin/tests-passed  
I, [2022-04-19T23:09:52.213928 #1] INFO – :  
I, [2022-04-19T23:09:52.214109 #1] INFO – : \> cd /var/www/discourse && git checkout tests-passed  
Switched to a new branch ‘tests-passed’  
I, [2022-04-19T23:09:53.283527 #1] INFO – : Branch ‘tests-passed’ set up to track remote branch ‘tests-passed’ from ‘origin’.

I, [2022-04-19T23:09:53.283816 #1] INFO – : \> cd /var/www/discourse && mkdir -p tmp  
I, [2022-04-19T23:09:53.313196 #1] INFO – :  
I, [2022-04-19T23:09:53.313429 #1] INFO – : \> cd /var/www/discourse && chown discourse:www-data tmp  
I, [2022-04-19T23:09:53.331201 #1] INFO – :  
I, [2022-04-19T23:09:53.331422 #1] INFO – : \> cd /var/www/discourse && mkdir -p tmp/pids  
I, [2022-04-19T23:09:53.369708 #1] INFO – :  
I, [2022-04-19T23:09:53.370010 #1] INFO – : \> cd /var/www/discourse && mkdir -p tmp/sockets  
I, [2022-04-19T23:09:53.417540 #1] INFO – :  
I, [2022-04-19T23:09:53.417779 #1] INFO – : \> cd /var/www/discourse && touch tmp/.gitkeep  
I, [2022-04-19T23:09:53.446494 #1] INFO – :  
I, [2022-04-19T23:09:53.446728 #1] INFO – : \> cd /var/www/discourse && mkdir -p /shared/log/rails  
I, [2022-04-19T23:09:53.456060 #1] INFO – :  
I, [2022-04-19T23:09:53.456451 #1] INFO – : \> cd /var/www/discourse && bash -c “touch -a /shared/log/rails/{production,production\_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log”  
I, [2022-04-19T23:09:53.469509 #1] INFO – :  
I, [2022-04-19T23:09:53.469744 #1] INFO – : \> cd /var/www/discourse && bash -c “ln -s /shared/log/rails/{production,production\_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log”  
I, [2022-04-19T23:09:53.488351 #1] INFO – :  
I, [2022-04-19T23:09:53.488605 #1] INFO – : \> cd /var/www/discourse && bash -c “mkdir -p /shared/{uploads,backups}”  
I, [2022-04-19T23:09:53.521729 #1] INFO – :  
I, [2022-04-19T23:09:53.521909 #1] INFO – : \> cd /var/www/discourse && bash -c “ln -s /shared/{uploads,backups} /var/www/discourse/public”  
I, [2022-04-19T23:09:53.540557 #1] INFO – :  
I, [2022-04-19T23:09:53.540802 #1] INFO – : \> cd /var/www/discourse && bash -c “mkdir -p /shared/tmp/{backups,restores}”  
I, [2022-04-19T23:09:53.554704 #1] INFO – :  
I, [2022-04-19T23:09:53.555027 #1] INFO – : \> cd /var/www/discourse && bash -c “ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp”  
I, [2022-04-19T23:09:53.566666 #1] INFO – :  
I, [2022-04-19T23:09:53.566827 #1] INFO – : \> cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp  
I, [2022-04-19T23:09:53.683888 #1] INFO – :  
I, [2022-04-19T23:09:53.684214 #1] INFO – : \> cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete  
I, [2022-04-19T23:09:53.696166 #1] INFO – :  
I, [2022-04-19T23:09:53.696669 #1] INFO – : Substituindo # redis por sv start redis || exit 1 em /etc/service/unicorn/run  
I, [2022-04-19T23:09:53.697990 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - discourse/docker\_manager: Plugin for use with discourse docker image · GitHub](https://github.com/discourse/docker_manager.git)  
Cloning into ‘docker\_manager’…  
I, [2022-04-19T23:09:55.263862 #1] INFO – :  
I, [2022-04-19T23:09:55.264619 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - discourse/discourse-chat-integration · GitHub](https://github.com/discourse/discourse-chat-integration.git)  
Cloning into ‘discourse-chat-integration’…  
I, [2022-04-19T23:09:56.213927 #1] INFO – :  
I, [2022-04-19T23:09:56.214117 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - discourse/discourse-whos-online: A plugin for Discourse which uses the messagebus to display a live list of active users · GitHub](https://github.com/davidtaylorhq/discourse-whos-online.git)  
Cloning into ‘discourse-whos-online’…  
I, [2022-04-19T23:09:56.982420 #1] INFO – :  
I, [2022-04-19T23:09:56.982668 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - gdpelican/retort: A reactions plugin for Discourse · GitHub](https://github.com/gdpelican/retort.git)  
Cloning into ‘retort’…  
I, [2022-04-19T23:09:57.638463 #1] INFO – :  
I, [2022-04-19T23:09:57.638646 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - discourse/discourse-solved: Allow accepted answers on topics · GitHub](https://github.com/discourse/discourse-solved.git)  
Cloning into ‘discourse-solved’…  
I, [2022-04-19T23:09:58.576646 #1] INFO – :  
I, [2022-04-19T23:09:58.576861 #1] INFO – : \> cd /var/www/discourse/plugins && git clone [GitHub - discourse/discourse-patreon: Enable syncronization between Discourse Groups and Patreon rewards · GitHub](https://github.com/discourse/discourse-patreon.git)  
Cloning into ‘discourse-patreon’…  
I, [2022-04-19T23:09:59.276014 #1] INFO – :  
I, [2022-04-19T23:09:59.276931 #1] INFO – : \> cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf  
I, [2022-04-19T23:09:59.284192 #1] INFO – :  
I, [2022-04-19T23:09:59.284934 #1] INFO – : \> rm /etc/nginx/sites-enabled/default  
I, [2022-04-19T23:09:59.290704 #1] INFO – :  
I, [2022-04-19T23:09:59.290902 #1] INFO – : \> mkdir -p /var/nginx/cache  
I, [2022-04-19T23:09:59.297697 #1] INFO – :  
I, [2022-04-19T23:09:59.298563 #1] INFO – : Substituindo pid /run/nginx.pid; por daemon off; em /etc/nginx/nginx.conf  
I, [2022-04-19T23:09:59.299309 #1] INFO – : Substituindo (?m-ix:upstream[^}]+}) por upstream discourse { server 127.0.0.1:3000; } em /etc/nginx/conf.d/discourse.conf  
I, [2022-04-19T23:09:59.299973 #1] INFO – : Substituindo (?-mix:server\_name.+$) por server\_name \_ ; em /etc/nginx/conf.d/discourse.conf  
I, [2022-04-19T23:09:59.300501 #1] INFO – : Substituindo (?-mix:client\_max\_body\_size.+$) por client\_max\_body\_size $upload\_size ; em /etc/nginx/conf.d/discourse.conf  
I, [2022-04-19T23:09:59.300945 #1] INFO – : Substituindo (?-mix:worker\_connections.+$) por worker\_connections $nginx\_worker\_connections ; em /etc/nginx/nginx.conf  
I, [2022-04-19T23:09:59.301405 #1] INFO – : \> echo “concluída configuração da web”  
I, [2022-04-19T23:09:59.307512 #1] INFO – : concluída configuração da web

I, [2022-04-19T23:09:59.308351 #1] INFO – : \> cd /var/www/discourse && gem install bundler --conservative -v $(awk ‘/BUNDLED WITH/ { getline; gsub(/ /,“”); print $0 }’ Gemfile.lock)  
I, [2022-04-19T23:10:00.205048 #1] INFO – : Successfully installed bundler-2.3.5  
1 gem installed

I, [2022-04-19T23:10:00.205276 #1] INFO – : \> cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} +  
I, [2022-04-19T23:10:13.626217 #1] INFO – :  
I, [2022-04-19T23:10:13.626756 #1] INFO – : \> cd /var/www/discourse && su discourse -c ‘bundle install --deployment --retry 3 --jobs 4 --verbose --without test development’  
[OBSOLETO] A flag `--deployment` está obsoleta porque depende de ser lembrada entre invocações do bundler, o que o bundler não fará mais em versões futuras. Em vez disso, use `bundle config set --local deployment 'true'` e pare de usar esta flag  
[OBSOLETO] A flag `--without` está obsoleta porque depende de ser lembrada entre invocações do bundler, o que o bundler não fará mais em versões futuras

---

_[View the full topic](https://meta.discourse.org/t/update-from-2-9-0beta1-to-beta4-failed/224766)._
