'Selenium webdriver node.js (gecko driver) won't work with Ubuntu server 20.04.4 LTS on a cloud server

I have a pretty simple node.js app that I can run perfectly fine on my Mac and My other ubuntu server server on 22.04 LTS, but it won't run on this oracle cloud server that I have. I've tried different installations of Firefox, gecko driver, selenium, node.js. Everything. (aarch64 btw). But it keeps throwing this error:

Error: Server terminated early with status 2
    at /home/ubuntu/xxxxx/node_modules/selenium-webdriver/remote/index.js:248:24
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Any help would be very appreciated thanks guys love you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source