15 days ago
My project on github relies on a database-1.0.0.tgz file, whose size appears to be 15.6m on windows. However, when I deployed it, I reported the following error and couldn't find this file, but this file does exist, and I also allow tgz files in.gitignore. What should I do? The screenshot is my github project information. The log:
[5/7] RUN sed -i '/shared-types/d' package.json && pnpm install
process "/bin/sh -c sed -i '/shared-types/d' package.json && pnpm install" did not complete successfully: exit code: 254
View in context
ENOENT ENOENT: no such file or directory, open '/app/vendor/database-1.0.0.tgz'
This error happened while installing a direct dependency of /app
10 Replies
15 days ago
Hey there! We've found the following might help you get unblocked faster:
🧵
crontab
does not exist on the service
If you find the answer from one of these, please let us know by solving the thread!
15 days ago
Hey! Adding a file to .gitignore
will prevent it from being tracked in version control. Removing line 2 from the .gitignore
file you shared should solve your issue.
I'm marking this as solved, but feel free to re-open the thread if you have more questions or run into issues
Status changed to Awaiting User Response Railway • 15 days ago
Status changed to Solved mahmoud-railway • 15 days ago
15 days ago
After I delete the second line of.gitignore, it is still the same. I think this problem should not be caused by.gitignore blocking. Before this problem occurred, there was no.gitignore file. After this problem occurred, I tried to add.gitignore. The following is the configuration I rely on. The main problem lies in the configuration of database dependent files. Please help me analyze it again
Attachments
Status changed to Awaiting Railway Response Railway • 15 days ago
15 days ago
Well based on the error you shared and the screenshot of the file system, the path you're specifying is incorrect
> '/app/vendor/database-1.0.0.tgz'
it likely should be /vendor/database-1.0.0.tgz
Status changed to Awaiting User Response Railway • 15 days ago
Status changed to Awaiting Railway Response Railway • 14 days ago
14 days ago
This error is different than if the file is being included, now it's not referencing the path to the zip file.
Status changed to Awaiting User Response Railway • 14 days ago
angelo-railway
This error is different than if the file is being included, now it's not referencing the path to the zip file.
14 days ago
Excuse me, how should I modify that?
Status changed to Awaiting Railway Response Railway • 14 days ago
13 days ago
Unsure, this is an issue that you need to debug since it's related to your project.
Status changed to Awaiting User Response Railway • 13 days ago
13 days ago
There is no such problem in my project, I am running it on windows
Status changed to Awaiting Railway Response Railway • 13 days ago
13 days ago
Apologies but this looks like an issue with your project itself, not Railway. Due to volume, we can only answer platform level issues.
Status changed to Awaiting User Response Railway • 13 days ago