#Help needed deploying Appsmith: Error: listen EADDRINUSE: address already in use

63 messages · Page 1 of 1 (latest)

weary wren
#

Hey there!
We've recently started using Railway to deploy some internal tools for the team. I've been trying to deploy Appsmith for quite some time now since there is no template (yet?) from a github repo where I basically just copied the dockerfile that Appsmith provides for Heroku. The building worked, but the deployment always fails with "Error: listen EADDRINUSE: address already in use" followed by the Port. It then tries again with a new port no +1. I even tried setting the port to a set number through the variables. Also, Railway returns "Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead.". The app itself is accessible through the domain assigned automatically, but returns a 503 error. The MongoDB database I created and connected with the service is empty as well, but maybe it only gets populated later on?

I'd really appreciate any help! 🙂

wheat drumBOT
#

Project ID: de8fd40f-5c56-4b76-9a51-565aeaa22151

stable loom
#

Hey there @weary wren, can you give me your Project Id and I can look right into that for you.

weary wren
#

de8fd40f-5c56-4b76-9a51-565aeaa22151

stable loom
#

Sweet!

weary wren
#

Hey Angelo, that would be awesome! 🙂

stable loom
#

Can you give me the link to the Appsmith dockerfile?

weary wren
#

The one I created in our repo or where it fetches the env from?

stable loom
#

My gut feeling is that the Appsmith dockerfile is trying to use more than one port. This can be solved by spinning up additonal services in the way the service expects.

#

The one that Appsmith provides.

weary wren
stable loom
#

Perfect, breaking this down.

weary wren
#

Thanks a lot for your swift help! :9

stable loom
#

The big thing here that I see from your repo is that I see the docker-compose, I just wanna make sure we arent missing anything there

#

Np!

#

This is the highlight of my day

weary wren
#

Ya, just deleted it from our repo since I was fiddeling around with Github deploys, never done that before 😄

weary wren
stable loom
#

Okay one sec, digging into the logs and going to run it in my env. One sec

#

Unrelated: Its a little funny, I just saw one of the PMs from Appsmith sign up for Railway

#

We might be on their radar for support.

weary wren
#

as template?

stable loom
#

Anyway, I am adding some vars that they suggest.

#

That would be good for us to have.

#

I haven't emailed them but I will use this as a forcing function to email them.

weary wren
#

definitely, I was researching some of the options for low-code app-building UIs and this is by far the best one I found for our team.

stable loom
#

okay, a newer and more fun error

#
*************************************************************************************************************
*      MongoDB Replica Set is not enabled                                                                   *
/opt/appsmith/entrypoint.sh: line 177: readWrite: command not found
/opt/appsmith/entrypoint.sh: line 177: clusterMonitor: command not found
*      Please ensure the credentials provided for MongoDB, has  and  roles.      *
*************************************************************************************************************
#

Looking into this

weary wren
stable loom
#

Well, I am wondering if its an issue with our Mongo or an issue with the vars I have yet to add

#

Okay, lemme see if we expose that knob to enable replication.

#

It seems like its us with our Mongo.

weary wren
#

sounds great, let me know if you need anything from my side 🙂

stable loom
#

We have hands on the keyboard as we speak.

weary wren
#

I see, thanks for looking into that! Will I get notified if I upvode once the feature has an ETA?

stable loom
#

Yep!

#

Well I need to update that 😐

#

Its in progress

#

Out engineer: Greg is working on it

#

personal two cents: one service that isn't cheap but I think worth for no code tooling is also Retool if you haven't tried it out

#

in the meantime, I will try to engage with the Appsmith people

weary wren
#

Hey Angelo, thanks a lot, really! Extraordinary technical support, I'm super happy. I think we'll just keep using the cloud version of Appsmith until there's an update. Have a gret weekend! 🙂

unique nexus
#

Do you guys have a template to get Appsmith on Railway?

analog thorn
analog thorn
unique nexus
#

yes works 👌

analog thorn
#

awesome, let me know if you have any issues with it in the future!

compact thistle
#

Hello @analog thorn I'm having an issue. After deploying Appsmith and open URL a keep getting error like on the image. Is there anything else need to be done beside deploying Appsmith? Thanks

analog thorn
#

is there any logs in the deployment?

compact thistle
#

On Deployment log the last two items

2023-08-25 15:21:16,171 INFO exited: backend (terminated by SIGKILL; not expected)
2023-08-25 15:21:16,173 INFO gave up: backend entered FATAL state, too many start retries too quickly

analog thorn
#

can you show me a screenshot of the service metrics?

compact thistle
#

Just upgrade to Hoby plan to try with it

analog thorn
#

yep this doesn't look like an issue with the template, it looks like you are running into the memory limitations of the trial plan (512mb) and the app crashed

#

once you upgrade to the hobby plan, be sure to redoploy the app

compact thistle
#

just deleted everything and started from the scratch

analog thorn
#

damn okay

compact thistle
#

and it's up! thanks

analog thorn
#

no problem!!