Out of Memory error and process killed while Installing esp32 core in EC2 Instance (Free Tier Ubuntu) #2175
Closed
3 tasks done
Labels
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
type: imperfection
Perceived defect in any part of project
Describe the problem
I was trying to install esp32 core arduino-cli in EC2 Free (t1.micro Instance). By using this https://lindevs.com/install-arduino-cli-on-ubuntu I have installed Arduino-cli. After that I issued the below commands.
arduino-cli config init
sudo nano /home/ubuntu/.arduino15/arduino-cli.yaml (updated additional-urls ["https://espressif.github.io/arduino-esp32/package_esp32_index.json"])
arduino-cli core update-index --config-file .arduino15/arduino-cli.yaml
arduino-cli config dump =[shows additional-urls esp32 link]
arduino-cli core install esp32:esp32
At the last command, starting seems to be running smooth and at the final esp32 installation it hangs for few minutes and got a message killed and the installation stops. I tried many times and same result. I Checked the /var/log/kern.log and I found this
/var/log/kern.log
May 9 10:06:53 ip-172-31-5-99 kernel: [7260893.611782] Out of memory: Killed process 402210 (arduino-cli) total-vm:1399256kB, anon-rss:682408kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1448kB oom_score_adj:0
To reproduce
arduino-cli config init
sudo nano /home/ubuntu/.arduino15/arduino-cli.yaml (updated additional-urls ["https://espressif.github.io/arduino-esp32/package_esp32_index.json"])
arduino-cli core update-index --config-file .arduino15/arduino-cli.yaml
arduino-cli config dump =[shows additional-urls esp32 link]
arduino-cli core install esp32:esp32
Expected behavior
esp32 core must be installed after the command.
Arduino CLI version
0.32.2
Operating system
Linux
Operating system version
22.04.01
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: