Container keeps crashing
bitlocker
TRIALOP

2 years 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

2 years ago

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


bitlocker
TRIALOP

2 years ago

Deploy


2 years ago

Is this a Rust app?


bitlocker
TRIALOP

2 years ago

It's partly Rust. Yes.


bitlocker
TRIALOP

2 years ago

It still keeps crashing.


2 years ago

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


bitlocker
TRIALOP

2 years ago

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


2 years 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.


bitlocker
TRIALOP

2 years 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


2 years ago

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


bitlocker
TRIALOP

2 years ago

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


bitlocker
TRIALOP

2 years ago

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


bitlocker
TRIALOP

2 years ago

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


2 years ago

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


bitlocker
TRIALOP

2 years ago

Ok. Here's the build log as request.

Attachments


2 years ago

Try adding rust to the providers in the service settings.


bitlocker
TRIALOP

2 years 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:"


bitlocker
TRIALOP

2 years ago

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


2 years ago

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


bitlocker
TRIALOP

2 years 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


2 years 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.


bitlocker
TRIALOP

2 years ago

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


2 years ago

Try adding a nixpacks.toml file -

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

bitlocker
TRIALOP

2 years ago

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


2 years ago

You add it to your project.


bitlocker
TRIALOP

2 years ago

I add it to my Railway project?


2 years ago

You add it to your project files.


bitlocker
TRIALOP

2 years ago

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


2 years ago

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


bitlocker
TRIALOP

2 years ago

Do you mean my github repo?


2 years 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 over 1 year ago


Loading...