Help running ssh console command

I am trying to run a console command using flyctl ssh console -C "npm run setup-db" but its just hanging with the message “Updating your Volta directory. This may take a few moments…” – any idea how to fix this? It was working fine a couple weeks ago.

tried to restart the instance and do it again?

flyctl apps restart [APPNAME]

Thanks - I’ve restarted, redeployed and tried completely deleting the app and trying again - still hanging on “Updating your Volta directory :confused:” – I’ve also updated to the newest version of the CLI tool.

same here…

Trying to ssh and running any node command fails trying to update volta.

 2022-12-10T08:44:28.037 app[0ee865ab] lax [info] [ 30.554474] Out of memory: Killed process 526 (node) total-vm:599084kB, anon-rss:25644kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1068kB oom_score_adj:0 

Having the same issue. Console is hanging on

Updating your Volta directory. This may take a few moments...

I’ve also scaled up to 2GB RAM. No luck.

I solved this problem by adding a volta key in my package.json and specifying the node version (making sure it’s the same version specified in the generated Dockerfile):

 {
    ...
    "volta": {
      "node": "12.16.1"
    }
 }

no idea why this works though! if anyone has an explanation, I’d love to know :slight_smile:

1 Like