R
Railway

✋|help

Getting deployment error:

Sscunl_537278/28/2023
11.24 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile.

Tried different things but to no avail, can someone please help? I believe I'm on the paid support plan. Thank you!

Service ID: e45e9d19-d214-4617-b7e2-8bf24ab595f9
Solution:
i cant see anywhere youd change the yarn version, try generating the lock file with yarn 1x locally
Jump to solution
Bbrody1928/28/2023
try deleting your yarn.lock file and run yarn install then push your changes
Sscunl_537278/28/2023
@Brody we tried it and it didn't work 😦
Bbrody1928/28/2023
did git tell you that there was changes made to the lock file?
Sscunl_537278/28/2023
I believe so but I'll try it one more time
Bbrody1928/28/2023
what yarn version are you using locally, and what yarn version is railway using? (it should tell you in the build table at the top of the build logs)
Sscunl_537278/28/2023
I see Nixpacks v1.13.0
I don't see yarn specific version
Bbrody1928/28/2023
screenshot please
Sscunl_537278/28/2023
my local yarn version is 3.2.0

and just tried again , failed with same error msg
Bbrody1928/28/2023
you see there, railway is using yarn 1x
Sscunl_537278/28/2023
Sscunl_537278/28/2023
ohh .. I wonder why it was building fine all this while haha
this thing started recently
Bbrody1928/28/2023
try adding this to your package.json
 "packageManager": "yarn@3.2.0"
Sscunl_537278/28/2023
within the dependencies object right?
Bbrody1928/28/2023
no
root object
Sscunl_537278/28/2023
should I delete yarn lock again and rebuild?
Bbrody1928/28/2023
couldn't hurt, make sure you run yarn install though, and also make sure the file as been uploaded to the repo
Sscunl_537278/28/2023
didn't work 😦 same error but looked slightly different
Solution
Bbrody1928/28/2023
i cant see anywhere youd change the yarn version, try generating the lock file with yarn 1x locally
Sscunl_537278/28/2023
the first screenshot has the package.json file wehre it says packageManager 3.2.0
Bbrody1928/28/2023
try generating the lock file with yarn 1x locally
Sscunl_537278/28/2023
okay that worked for now, I'll let ya know if it happens again. Thanks @Brody ❤️
Sscunl_537278/29/2023
@Brody sorry to bother you again .. we are not having the same issue but sometimes when we push to a branch it doesn't trigger a build. I noticed that previously too and didn't know if the issues were related. We are currently using this in package.json

"scripts": {
"start": "serve -s build",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"preview": "react-scripts start"
},

"devDependencies": {
"@types/lodash": "^4.14.197",
"@types/react-datepicker": "^4.15.0",
"@types/react-lottie": "^1.2.6",
"serve": "^14.2.1",
"tailwindcss": "^3.3.3"
}

is there a limit on the number of builds per hr or something?
oh it just triggered but a few mins late and not instantaneously as it was doing it before .. is it a lag in the system?
Bbrody1928/29/2023
github is having issues
https://www.githubstatus.com/
Sscunl_537278/29/2023
ahh cool cool thanks @Brody 🙂
Bbrody1928/29/2023
no problem

Looking for more? Join the community!

Recommended Posts
Estimated usage very similar to current cost?Is the estimate usage working properly, or does it take a while to provide accurate estimates? I aCloudflare for Saas domains compatible with Railway?Hi! We'd love to use Railway but custom domains are holding us back so far. We use Cloudflare for cuCustom domain with A record (not CNAME record)Hi, I want to add a custom domain in one of my projects. Docs says I need to add a CNAME record in Very slow connectionHey, I've built an app that uses Remix, Prisma and Postgres and is hosted in vercel and railway. LoPostgres sql update query inserting "$1" instead of "?"I have a Postgres server and I runned the query: update "Table_name" set("column_name") = ("Column_nInquiry about Next.js SSR and ISR Support on RailwayHello Railway Community 👋, I'm currently exploring the possibility of migrating my Next.js projectPerformance questionsHi all! Does performance between Hobby and Pro plan differs? I'm mostly curious about initial connHow to specify deployment strategy?Hey, previously i'm a fly io user and I want to migrate to Railway. Is it possible to define the deI do not scroll rightWhen I access log and view it but I do not scroll right to sell full logs. Is it a bug of you?Build failed directus api templateI tried to deploy directus app using railway template (Directus api) and it failed every time. Does Network Error While sending a file.I have uploaded my telegram bot on a Railway Pro plan. The bot sends file back to users through Telego-cron jobs not running in railwayHello, so I'm using the go-cron(https://github.com/go-co-op/gocron) library for managing my cron jobpnpm not foundHi! I'm having trouble building my app, and haven't had success with any of the suggestions with othDo you guys have prepaid options?Say I pay 5$ once and I get to use those 5$ worth of resources all year round. I'd rather do that thChange Heroku to RailwayI need more info because I have a problem with Heroku with my hosted proyect there WebSocket doesnt I am getting this error on my deployment```console GET failed with status code 403 (a proxy could be disallowing the use of 'Upgrade: derp')Flask app wont work with port 0.0.0.0application not respondingmemory usage doesn't decreasememory usage of one of my python processes was instantly increased to ~2700 mb, it was my mistake, bAutomated Postgres backup onto a volume ?Since now the project I was developing for a while is almost ready for production, we need to make show can i deploy my vue projecti get this error