could not receive data from client: Connection reset by peer
Aborted (core dumped)
I, [2022-07-04T09:24:39.336838 #1] INFO -- :
I, [2022-07-04T09:24:39.337289 #1] INFO -- : Terminating async processes
I, [2022-07-04T09:24:39.337528 #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: 42
2022-07-04 09:24:39.337 UTC [42] LOG: received fast shutdown request
I, [2022-07-04T09:24:39.337594 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103
103:signal-handler (1656926679) Received SIGTERM scheduling shutdown...
103:M 04 Jul 2022 09:24:39.373 # User requested shutdown...
103:M 04 Jul 2022 09:24:39.373 * Saving the final RDB snapshot before exiting.
2022-07-04 09:24:39.441 UTC [42] LOG: aborting any active transactions
2022-07-04 09:24:39.447 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2022-07-04 09:24:39.448 UTC [46] LOG: shutting down
2022-07-04 09:24:39.925 UTC [42] LOG: database system is shut down
Initially, I tried to update the forum through the docker manager today’s update (there were eleven updates) I already updated to version 2.9.0 beta6 last Friday and the forum has been already up and running for three years now without an issue on the same server:
It is running on a dedicated server with these specs:
AMD Opteron 4180
6 x 2,6 GHz
16 GB RAM
2 x 1 TB SSD
(Ubuntu 20.04 LTS)
EDIT: There’s more than enough space on the server.
I really hope someone can help me. I’ve tried to clean the cache, remove container images and rebuilding with an older image and all result to the same error.
It would be much more useful for to paste the entire log rather than snippets from it.
For example, it’s unclear exactly what is abending; it might be the database or a rake task.
If it’s too long, feel free to post it gzipped. If you’re not sure how to scrub secrets from it (if any), you can PM it to me and I’ll see what I can find.
The key part of the output appears to be this “Illegal instruction”:
I, [2022-07-04T21:01:40.452409 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2022-07-04 21:01:46.756 UTC [932] discourse@discourse LOG: duration: 120.094 ms bind <unnamed>: SELECT t.oid, t.typname
FROM pg_type as t
WHERE t.typname IN ('int2', 'int4', 'int8', 'oid', 'float4', 'float8', 'numeric', 'bool', 'timestamp', 'timestamptz')
2022-07-04 21:01:47.069 UTC [932] discourse@discourse LOG: duration: 100.781 ms statement: SELECT name, data_type, value FROM site_settings
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/message_bus-4.2.0/lib/message_bus/codec/json.rb:11: [BUG] Illegal instruction at 0x00007f90039e1339
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
The same “illegal instruction” is also present at the end of the Unicorn log (just before things broke).
(Hopefully Bryan can provide the full output as necessary).
Edit: Full log incoming, Discourse is not letting me upload it.