Failed to update to the 2.6 beta 1

Doing full rebuild to the latest 2.6 beta goes all well together with Postgres 12 migration, but eventually we get 502 nginx proxy error.

Previous version was Discourse 2.5 beta 7

Here is the log from the Discourse doctor:

DISCOURSE DOCTOR Tue Jun 30 16:51:43 CEST 2020
OS: Linux wappler 4.10.0-35-generic #39-Ubuntu SMP Wed Sep 13 07:46:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Found containers/app.yml

==================== YML SETTINGS ====================

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 17.07.0-ce, build 8784753

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
96be502e083e        local_discourse/app   "/sbin/boot"        8 minutes ago       Up 8 minutes>80/tcp,>443/tcp   app

Discourse container app is running

==================== PLUGINS ====================
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone

You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See for the official list.

Discourse version at : NOT FOUND
Discourse version at localhost: NOT FOUND

==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 4044

              total        used        free      shared  buff/cache   available
Mem:           3949        1347         319         465        2282        1853
Swap:          2047          56        1991

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       147G  103G   37G  74% /
/dev/vda1       147G  103G   37G  74% /var/lib/docker/aufs
/dev/vda1       147G  103G   37G  74% /
/dev/vda1       147G  103G   37G  74% /var/lib/docker/plugins
/dev/vda1       147G  103G   37G  74% /

==================== DISK INFORMATION ====================
Disk /dev/vda: 150 GiB, 161061273600 bytes, 314572800 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: 0x4fd73ef0

Device     Boot Start       End   Sectors  Size Id Type
/dev/vda1  *     2048 314570751 314568704  150G 83 Linux

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

==================== MAIL TEST ====================
For a robust test, get an address from
Mail test skipped.

==================== DONE! ====================
Publicly available log not generated.

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

When you do a rebuild it errors out or succeeds ?


Is succeeds but 502 gateway errors occur in the browser

1 Like

Check logs under /var/discourse/shared/standalone/log/rails/


We went back to 2.5 beta7 with system restore.

Postponing the major Postgres update for now till it is all more solid as it seems to have large impact.

Sorry couldn’t get to the rails log any longer as we did a system restore, but we just couldn’t afford any down time.