Container keeps crashing

bitlockerTRIAL

10 months ago

The logs say:
Error failed to get cargo metadata: No such file or directory (os error 2)
container event container died

View Deploy details

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

Closed

31 Replies

10 months ago

Going to need more information here, are these from the deploy or build logs?


bitlockerTRIAL

10 months ago

Deploy


10 months ago

Is this a Rust app?


bitlockerTRIAL

10 months ago

It's partly Rust. Yes.


bitlockerTRIAL

10 months ago

It still keeps crashing.


10 months ago

This error wouldn't be related to the platform, please do some research on this error from sites like stack overflow.


bitlockerTRIAL

10 months ago

Is there a list of components that are in your environment? This code works fine on multiple platforms for me.


10 months ago

> is there a list of components that are in your environment?
Sorry I don't know what you mean by that.
Unfortunately working on other platforms doesn't mean you don't have something misconfigured on this platform.


bitlockerTRIAL

10 months ago

Still crashing, but somewhat differently now:

2 warnings found (use --debug to expand):

- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

Dockerfile:24

-------------------

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/3c845e81-f7b4-41e1-874b-7e11d6c064e2-node_modules/cache,target=/app/node_modules/.cache npm run tauri build

25 |

26 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run tauri build" did not complete successfully: exit code: 1

Error: Docker build failed


10 months ago

Please provide the full build logs as an attached file - https://bookmarklets.up.railway.app/log-downloader/


bitlockerTRIAL

10 months ago

is there a way to grab the build log without installing a bookmarklet?


bitlockerTRIAL

10 months ago

When I attached the build log and hit (reply), nothing appears in this message thread.


bitlockerTRIAL

10 months ago

So, I assume your backend thinks that the attachment is spam(?). Might be a bug report there.


10 months ago

I'm sorry but I would need the logs to be of any help, you can try another web browser.


bitlockerTRIAL

10 months ago

Ok. Here's the build log as request.

Attachments


10 months ago

Try adding rust to the providers in the service settings.


bitlockerTRIAL

10 months ago

I put "service settings" into the search bar of your docs, and the results are inconclusive on how to add Rust as a provider.
After putting "providers" into the search bar of your docs, it does land on something but it's "only available to Priority Boarding members."
Searching for "Rust" yields the info that it is "Currently...support[ed]...out of the box:"


bitlockerTRIAL

10 months ago

I you can clarify what actions I need to do in order to get this simple project running, please let me know.


10 months ago

Click on the the service, and then click on settings.


bitlockerTRIAL

10 months ago

Ok. I added Rust. It failed almost immediately with:

2 warnings found (use --debug to expand):

- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 26)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 26)

Dockerfile:32

-------------------

30 | # build phase

31 | COPY . /app/.

32 | >>> RUN --mount=type=cache,id=s/3c845e81-f7b4-41e1-874b-7e11d6c064e2-node_modules/cache,target=/app/node_modules/.cache npm run tauri build

33 |

34 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run tauri build" did not complete successfully: exit code: 1

Error: Docker build failed


10 months ago

This is not an error message, the actual error would be further up in the logs, please scroll up to find the actual error so that you can fix what has been missconfigured.


bitlockerTRIAL

10 months ago

Ok. It's looking for "yarn" and can't find it. How can I add "yarn"?


10 months ago

Try adding a nixpacks.toml file -

[phases.setup]
    nixPkgs = ["...", "yarn"]

bitlockerTRIAL

10 months ago

Do I add this file to my git repo? Where do I create it?


10 months ago

You add it to your project.


bitlockerTRIAL

10 months ago

I add it to my Railway project?


10 months ago

You add it to your project files.


bitlockerTRIAL

10 months ago

Where in your UI do I add "project files"?


10 months ago

Local project files, not sure where the confusion comes from?


bitlockerTRIAL

10 months ago

Do you mean my github repo?


10 months ago

At this point i'm just repeating myself, so I'm sorry but I have other threads I need to attend to, I wish you all the best in solving this!


Status changed to Closed brody 10 months ago


Container keeps crashing - Railway Help Station