App Typebot Deploy Error (Github)

eltonciattoFREE

10 months ago

When trying to deploy Typebot after having configured everything, as in Vercel, the deployment returns the following error in Railway;

(The most interesting thing is that Vercel is working perfectly, and before asking me to use a model, I can't because my typebot is modified for my project.)

No files changed in this command, skipping snapshotting.

Jul 15 01:01:13

COPY . /app/.

Jul 15 01:01:13

Taking snapshot of files...

Jul 15 01:01:14

RUN --mount=type=cache,id=-/root/npm,target=/root/.npm npm i

Jul 15 01:01:14

Cmd: /bin/bash

Jul 15 01:01:14

Args: [-ol pipefail -c npm i]

Jul 15 01:01:14

Running: [/bin/bash -ol pipefail -c npm i]

Jul 15 01:01:14

npm WARN config production Use --omit=dev instead.

Jul 15 01:01:14

npm ERR! code EUNSUPPORTEDPROTOCOL

Jul 15 01:01:14

npm ERR! Unsupported URL Type "workspace:": workspace:*

Jul 15 01:01:14

Jul 15 01:01:14

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-15T04_01_14_264Z-debug-0.log

Jul 15 01:01:14

error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

Jul 15 01:01:14

exit status 1

Jul 15 01:01:25

container event container died

Jul 15 01:01:28

Stopping Container

I hope it can help!

Solved

23 Replies

10 months ago

I'm not too sure what vercel has to do with this? additionally, the TypeBot template deploys from an image, not a GitHub repo - https://railway.app/template/typebot


eltonciattoFREE

10 months ago

I have my Typebot project modified in a Github repository and I can install it normally on Vercel, however, I want to migrate from Vercel to Railway as it seems to be much better, however, when trying to deploy, I receive the errors mentioned later. Could you help me with this, please?


10 months ago

I wouldn't be of much help unless I had access to the repo you are trying to deploy.


eltonciattoFREE

10 months ago

Send me your email and I will give you access to my repository, okay?


10 months ago

brody192


eltonciattoFREE

10 months ago

gmail?


10 months ago

That is my GitHub username.


eltonciattoFREE

10 months ago

I sent you the invitation, friend!


eltonciattoFREE

10 months ago

As you can see, I tried updating my dockerfile to resolve it, but without success...


10 months ago

Please replace your current Dockerfile with the original.


eltonciattoFREE

10 months ago

I will do it now!


10 months ago

Please also replace your turbo.json with the original file.


eltonciattoFREE

10 months ago

I went back to the original version of the Dockerfile and it still didn't work... I keep getting the error: No files changed in this command, skipping snapshotting.

Jul 15 22:07:37

ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH

Jul 15 22:07:37

No files changed in this command, skipping snapshotting.

Jul 15 22:07:37

COPY . /app/.

Jul 15 22:07:37

Taking snapshot of files...

Jul 15 22:07:38

RUN --mount=type=cache,id=-/root/npm,target=/root/.npm npm i

Jul 15 22:07:38

Cmd: /bin/bash

Jul 15 22:07:38

Args: [-ol pipefail -c npm i]

Jul 15 22:07:38

Running: [/bin/bash -ol pipefail -c npm i]

Jul 15 22:07:39

npm WARN config production Use --omit=dev instead.

Jul 15 22:07:39

npm ERR! code EUNSUPPORTEDPROTOCOL

Jul 15 22:07:39

npm ERR! Unsupported URL Type "workspace:": workspace:*

Jul 15 22:07:39

Jul 15 22:07:39

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-16T01_07_39_223Z-debug-0.log

Jul 15 22:07:39

error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

Jul 15 22:07:39

exit status 1

Jul 15 22:07:40

container event container died

Jul 15 22:07:42

Stopping Container


10 months ago

Please see my last message.


eltonciattoFREE

10 months ago

I updated turbo.json to the latest version of the original typebot.


eltonciattoFREE

10 months ago

After updating to the latest from the original typebot, it returned the error:

[Region: us-west1]

Dockerfile builder.Dockerfile does not exist

Remembering that my files were originally from the original typebot 2.25.2...


10 months ago

Why have you put the broken turbo.json back?


eltonciattoFREE

10 months ago

The turbo.json that is now is the original from version 2.25.2, when I switch to the latest version of typebot, the deployment on Vercel gives an error and on Railway also gives an error. In the current version, it cannot be deployed successfully on Vercel and Railway. What's different about deploying the two platforms?


10 months ago

Use the Dockerfile from here please - https://github.com/baptisteArno/typebot.io/blob/v2.25.2


10 months ago

Okay, looks like we got your repo into a deployable state.

Next steps -

  • Deploy my TypeBot template as i've linked above.

  • Open the Builder service and disconnect the source image.

  • Connect your github repo.

  • Open the Viewer service and disconnect the source image.

  • Connect your github repo.

I've followed these steps myself and currently have TypeBot installed and working with your repo.


eltonciattoFREE

10 months ago

Okay, doing it right now!


eltonciattoFREE

10 months ago

It worked out!

Thank you very much for your help, friend! Without you, I wouldn't have made it!

I really appreciate your help!


10 months ago

Happy to help!


Status changed to Solved brody 10 months ago


App Typebot Deploy Error (Github) - Railway Help Station