Next Build times out AWS EC2 Ubuntu server
Unanswered
Thrianta posted this in #help-forum
ThriantaOP
Trying to build a project in amazon AWS ubuntu server. I have tried through putty, regular ssh thru terminal and using vs code to remote in, all methods disconnect after a few min of running the build, this ends up locking the server to the point I have to stop start
12 Replies
Toyger
when you try to recconect to server after it drop you out what error it shows? is server still pingable?
ThriantaOP
it times on on reconnect attempts
ssh: connect to host 18.222.210.20 port 22: Connection timed out
ThriantaOP
So ive got one running in just a regular terminal ssh connection ( in vs code )
its been going since i wrote this post and is slowly progressing and has not timed out yet
Fire ant
You can use docker container, its more easy, checkout on the next docs https://nextjs.org/docs/app/building-your-application/deploying , or hard way, you can build files on your local machines, and upload all required build files and config to your server, then try start.
ThriantaOP
Im gonna try that , this is a learning project and d9ckerizing everything was intended to be part of it just later on. Was suppose to be a learn nginx project that turned into learn aws instead.
Asian black bear
Hi @Thrianta, I'm experiencing similar problems when deploying my app on an EC2 server. What's your CPU usage like when the stuck happens? Because when I try to run build on the server, the CPU usage goes up to 100% and it's just stuck there.
New Guinea Singing Dog
Yeah I have had problems with compiling/building due to low resources
What I end up doing is just removing the .next folder from gitignore and cloning the repo
Then you can just run next start