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 execmanually
and anything worked.
36 Replies
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.
4 months ago
Hey @Neilor Mendes, do you still have any issues with deploying Chatwoot on Railway?
Hello @uxuz sorry pal, didn't have time to get to it today. Will try tomorrow morning and let you know.
@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
4 months ago
Hey, I do not have access to your project. Feel free to attach screenshots / logs instead.
this is the docker image I'm using ghcr.io/railwayapp-templates/chatwoot:Community
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)?

This is the last one that I deployed, but sure, I can try again, give me a minute
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.


4 months ago
Do you also mind increasing the healthcheck timeout?

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…
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.
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
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?

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

4 months ago
I have an idea
4 months ago
Do you perhaps have IPv4 private networking enabled?
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.
4 months ago
!s
Status changed to Solved uxuz • 4 months ago
3 months ago
/thread link
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!
3 months ago
✅ The ticket Packet loss in Private Networking has been marked as completed.
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
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








