Unable to upgrade retool beyond 3.52.28

  1. My goal: To upgrade from 3.52.28-stable to the latest stable build

  2. Issue: API fails to start up.

  3. Retool version & hosting setup (Docker, K8s, cloud provider, etc.):
    Current version: 3.52.28
    Above error shows when upgrading to 3.75.25 or newer.

  4. Error message(s) or screenshots:

wait-for-it.sh: waiting 15 seconds for postgres:5432
wait-for-it.sh: timeout occurred after waiting 15 seconds for postgres:5432
sed: can't read ./dist*/**/*.html: No such file or directory node[51]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xb9c1f0 node::Abort() [node]
2: 0xb9c26e [node]
3: 0xc0a17e [node]
4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
6: 0xb5886b node::Start(int, char**) [node]
7: 0x7ff176e1e24a [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7ff176e1e305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: 0xad789e _start [node] ./docker_scripts/start_api.sh: line 87: 51 Aborted (core dumped) node --openssl-legacy-provider --no-experimental-fetch bundle/main.js
  1. What I’ve tried so far:
    CPU is barely doing anything, several GB of memory is free (no limits on docker) and over 10GB disk free.
    My Postgres is hosted in AWS RDS. Retool is able to connect just fine when using 3.52.28 so it doesn't seem to be a DB configuration problem.

I was able to resolve the problems through upgrading the infrastructure:

  • EC2 instance upgraded to t3a.xlarge
  • Disk expanded to 60GB
  • ubuntu updated from 20.04 to 22.04.5
  • RDS Postgres upgraded to 16.9

I believe the above error was because ubuntu 20.04 had an older version of docker installed. The OS upgrade came with a newer version of docker. I had to also bump up docker-compose manually. This got me further, but the machine started freezing, which was resolved by the EC2 instance upgrade.

Retool 3.196.14 is now running without problems.

1 Like