david-allison / manx-corpus-search

MIT License
3 stars 1 forks source link

CI Publish: Hangs on downloading npm dependencies #8

Closed david-allison closed 1 year ago

david-allison commented 3 years ago

https://github.com/david-allison-1/manx-corpus-search/runs/2550569740?check_suite_focus=true

2021-05-10T23:29:10.8274884Z Determining projects to restore... 2021-05-10T23:29:11.7157857Z Restored /var/www/manx-corpus/CorpusSearch/CorpusSearch.csproj (in 472 ms). 2021-05-10T23:29:12.5325316Z Restored /var/www/manx-corpus/CorpusSearch.Test/CorpusSearch.Test.csproj (in 800 ms). 2021-05-10T23:29:24.2855022Z CorpusSearch -> /var/www/manx-corpus/CorpusSearch/bin/Debug/net5.0/CorpusSearch.dll 2021-05-10T23:29:24.2866213Z CorpusSearch -> /var/www/manx-corpus/CorpusSearch/bin/Debug/net5.0/CorpusSearch.Views.dll 2021-05-10T23:29:24.4409503Z v15.7.0 2021-05-10T23:29:24.4426333Z Restoring dependencies using 'npm'. This may take several minutes... 2021-05-10T23:53:16.3627646Z ##[error]The operation was canceled.

Unsure what's happening here. Works when I ssh into the machine

david-allison commented 3 years ago

While on the server node was using a large amount (57%) of RAM and caused ssh-keyscan to fail (not that we should be using that long-term)

 617343 david2    20   0 1380952 573708      0 R  13.7  57.1   4:41.58 node
david-allison commented 3 years ago

Attempting to reduce RAM from node:

nano ~/.profile

export NODE_OPTIONS=--max-old-space-size=512

david-allison commented 3 years ago

Still happening (it does work some time, so flaky), can see the machine running out of swap via SSH.

Likely want to add more

david-allison commented 3 years ago

I'll add swap on the 17th or 18th in the evening so I have time to recover from a total failure

My first time doing it. It appears to be easy, but could be catastrophic, so important to get right.