Chatwoot template is not working
tempario
PROOP

4 months ago

Hello everyone,

So, I'm trying to use the chatwoot template but seems there is something wrong with that. During the [start.sh](start.sh) script there is bundle exec rails db:chatwoot_prepare that just doesn't finish. It is stuck there from the last 6 hours.

The database is running and accecpting connections but the bundle exec doesn't finish.

/app # while ! pg_isready -h ${PGHOST} -p ${PGPORT}; do sleep 0.25; done;
postgres.railway.internal:5432 - accepting connections

Tried already to:

  • Restart the chatwook container

  • Restart the PostgreSQL container

  • Run the bundle exec manually

and anything worked.

Solved

36 Replies

uxuz
MODERATOR

4 months ago

Hey, I just tried to deploy the Chatwoot template (https://railway.com/deploy/chatwoot) and it seems to deploy fine on my end. Have you tried to redeploy the entire template again?
-# I am going to bed now, so responses will be delayed.


uxuz
MODERATOR

4 months ago

Hey @Neilor Mendes, do you still have any issues with deploying Chatwoot on Railway?


tempario
PROOP

4 months ago

Hello @uxuz sorry pal, didn't have time to get to it today. Will try tomorrow morning and let you know.


tempario
PROOP

4 months ago

@uxuz I've tested it but seems the issue is still there, if you want to check the project is 50eb82ca-085b-4066-b8a1-fb7d5d5e7af4 environment 50eb82ca-085b-4066-b8a1-fb7d5d5e7af4


uxuz
MODERATOR

4 months ago

Hey, I do not have access to your project. Feel free to attach screenshots / logs instead.


tempario
PROOP

4 months ago

1421114807372878000
1421114807737647000
1421114808107008000


tempario
PROOP

4 months ago

this is the docker image I'm using ghcr.io/railwayapp-templates/chatwoot:Community


uxuz
MODERATOR

4 months ago

Interesting, I have found two Chatwoot templates and both seem to deploy fine on my end as I have just tested (although, one of them doesn't use any volumes for some reason, so I decided to unpublish it as it doesn't persist any data). Do you mind deploying the Chatwoot template by "Brody's projects" (it should be the second option when you search for templates via Create > Template)?

1421116913060282400


tempario
PROOP

4 months ago

This is the last one that I deployed, but sure, I can try again, give me a minute


tempario
PROOP

4 months ago

Same errors @uxuz …


tempario
PROOP

4 months ago

1421124855637475300
1421124856191254500
1421124856606359600


uxuz
MODERATOR

4 months ago

I am going to try and deploy the template again, the error message you have shown in the deploy logs shouldn't affect the deployment at all.

1421126880186208300
1421126880555438000


uxuz
MODERATOR

4 months ago

Do you also mind increasing the healthcheck timeout?

1421126992971169800


tempario
PROOP

4 months ago

let me try


tempario
PROOP

4 months ago

increased it to 600


tempario
PROOP

4 months ago

I'm checking your deploy logs mine even reachs the message you received at 14:46:56…. Tha last the line I have is the one asking to contact the autor of reline…


tempario
PROOP

4 months ago

1421128087009235000


uxuz
MODERATOR

4 months ago

This is indeed the case and I still don't know why I can't reproduce this behavior with the application completely freezing once it logs out the warning. Technically speaking, the warning is just saying that "fiddle" will no longer be shipped with Ruby 3.5 (the application is using Ruby 3.4) and it is advised to include it in the gemspec (I assume that this for dependencies, similar to package.json in node applications), followed by the message to contact the library author that uses "fiddle" to do so.


tempario
PROOP

4 months ago

What I can tell you if it help is if I remove the healthcheck path, the app kind of can be deployed, but when I ssh to it, it is still running the bundle exec and it doesn't finish ever


tempario
PROOP

4 months ago

This step just doesn't finish

1421132171401363700
1421132171732586800


uxuz
MODERATOR

4 months ago

After deploying multiple Chatwoot templates, I have managed to get one that also fails to deploy. This non deterministic behavior is definitely not intended.

I know this doesn't sound like the best solution, but could you perhaps delete your old Chatwoot instances, their respective databases and then deploy the template again?

1421134162030497800


tempario
PROOP

4 months ago

sure… I can do it


tempario
PROOP

4 months ago

I'm kind of trying to help you to search for the root cause and look below, it is hangging here:

1421135247193411600


brody
EMPLOYEE

4 months ago

I have an idea


brody
EMPLOYEE

4 months ago

Do you perhaps have IPv4 private networking enabled?


brody
EMPLOYEE

4 months ago

Yes you do.

There is a known issue with IPv4 private networking where some packets get dropped, and this causes the connection to hang indefinitely.

This would explain that command getting stuck.


tempario
PROOP

4 months ago

so you saying just to disable the ipv4 private and try again?


tempario
PROOP

4 months ago

where exactly I can disable it?


tempario
PROOP

4 months ago

found it, never mind


tempario
PROOP

4 months ago

worked like a charm @Brody and @uxuz thanks a lot


tempario
PROOP

4 months ago

Now it worked properly… Thanks @Brody and @uxuz


uxuz
MODERATOR

4 months ago

!s


Status changed to Solved uxuz 4 months ago


brody
EMPLOYEE

3 months ago

/thread link


Railway
BOT

3 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


Railway
BOT

3 months ago

✅ The ticket Packet loss in Private Networking has been marked as completed.


brody
EMPLOYEE

3 months ago

Hello,

Update here: The previously mentioned issues with IPv4 private networking have been fixed. However, you will need to redeploy the affected services.


Status changed to Awaiting User Response Railway 3 months ago


Railway
BOT

3 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 3 months ago


Loading...