asciimoo / morty

Privacy aware web content sanitizer proxy as a service
GNU Affero General Public License v3.0
485 stars 58 forks source link

Getting "fatal error: runtime: out of memory" when running "go get" #98

Closed ghost closed 3 years ago

ghost commented 3 years ago

Apologies for this possibly nooby question. I am not very experienced in programming or go or anything like that but I am trying my best to figure out this problem but I don't think there is anything I can do at the moment.

Im installing a searx instance on a debian VPS. I have installed searx and filtron and they work fine, but I wanted to install morty. However, when I run this command: (morty)$ go get github.com/asciimoo/morty it returns with fatal error: runtime: out of memory I suspect this is because I am using the cheapest server which only has 512MB memory unfortunately.

So is there any possible way I could install morty without running out of memory? Or is it just a matter of either modifying the source code or upgrading my VPS plan?

Also sorry, I wasn't sure if this was appropriate for the issues section or not but I figured it was worth a try. I just barely signed up for github so I am not totally sure what I am doing. Thanks!

ghost commented 3 years ago

I guess I forgot to try the most logical solution: make a temporary swap file. I did 2GB but I'm sure less would have worked fine. After I ran go get github.com/asciimoo/morty I deleted the swap file and everything is working perfectly.