Deployment fails

mago
PRO

a year ago

  • Have tried to change a few env but it turns to deployment error

  • Though I restored the previous env configs, it still fails to deploy

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

25 Replies

a year ago

Full build and deploy logs please - https://bookmarklets.up.railway.app/log-downloader/


mago
PRO

a year ago

Hi Brody, here let me share the logs

Attachments


a year ago

These are just the deploy logs.


mago
PRO

a year ago

Here are both build and deploy logs.


a year ago

What is the source of your service?


mago
PRO

a year ago

This docker image
https://hub.docker.com/r/ubuntu/squid


a year ago

Please send the exact image and tag you are using.


mago
PRO

a year ago

I didn't specified any tag. Just typed "ubuntu/squid" on Railway.
You can see the attached screenshot.

Attachments


a year ago

This likely means something on the service is misconfigured, try deploying into a new service.


Are you sure you have the right start command specified? It looks like it's erroring out when attempting to run your start command


Status changed to Awaiting User Response railway 12 months ago


mago
PRO

a year ago

I've set the command based on the document by Dify and it has no problem with deployment.


Status changed to Awaiting Railway Response railway 12 months ago


a year ago

What is the start command you are using?


mago
PRO

a year ago

"sh", "-c", "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh"


a year ago

Is removing the carriage return really necessary?


mago
PRO

a year ago

Unfortunately I don't know the detail because it's written on Dify's document. But I'm guessing this is only required on the initial service creation. I've deleted this custom start command and tried deploy then it doesn't crash so far.


a year ago

What is this proxy needed for exactly?

The template doesn't use it? - https://railway.app/template/V1xiql


mago
PRO

a year ago

It's required to setup on latest Dify version. The template you refer has made based on old Dify version.


a year ago

I will talk to the template creator about that.


mago
PRO

a year ago

Thanks! @jack would be the best person to optimize and update the template to fit to the latest version.


a year ago

FWIW @'ing someone doesn't do anything.


mago
PRO

a year ago

I know


a year ago

Hey, Jack said his template does not deploy an older version, perhaps you are wanting some different configurations?

Could you link me to some docs on the subject please?


mago
PRO

a year ago

Brody, thanks for checking with Jack.

The template made by Jack has set Dify-related docker image source to Dify's official one and those are keep updating by Dify team. But after v0.6.12, Dify added new docker image called "Sandbox" which is not included in Jack's template.

The reason why I made the another template is to fix the issue discussed on the thread below. It's not solved by anyone yet.
https://help.railway.app/templates/dify-a02ad146

Here is the list of issue I'm gonna solve for making Dify on Railway works properly.

  • Uploaded files in Knowledge are queuing with 0%

  • "Failed to execute code, which is likely a network issue, please check if the sandbox service is running. ( Error: [Errno 111] Connection refused )" on template block (Dify's feature, not Railway's one)


a year ago

Gotcha, thank you for this information, I will speak to Jack again and hopefully, I can get him to attempt fixing his template again, as the team is also interested in getting this template working.

I would ask that you not attempt to make and publish a pre-existing template until you have confirmation that the template has been abandoned.


mago
PRO

a year ago

Happy to hear that your team is interested in Dify template.

> I would ask that you not attempt to make and publish a pre-existing template until you have confirmation that the template has been abandoned.
Yes, I did't publish my Dify template publicly because the original one has made by Jack.

Have a great weekend!