Wtf am I doing wrong

drippyeric247
HOBBY

22 days ago

Hello fellow entrepreneurs I’m 90% of the way this app I have no coding skills whatsoever but I managed to make it this far anyone who can please help thx All I can say is it goes back and forth between two errors

$30 Bounty

0 Replies

Have you tried removing that RUN command entirely? Railway will cache layers on it's own.


* Removing just the cache part, let me rewrite it for you


RUN npm ci --omit=dev --no-audit --no-fund


drippyeric247
HOBBY

22 days ago

Thx yo I will try let u know I get what ur sayn by the way


drippyeric247
HOBBY

22 days ago

This is what happened

1428181774831456300


Change it to

RUN npm i --omit=dev --no-audit --no-fund


@Eric2Legit247 Better solution:

Delete package-lock.json on your local machine. Run npm i there. Then push the new file. Change the command back to the ci one.


drippyeric247
HOBBY

22 days ago

Yes I will I think the building the image gonna time out cause it 7 mins in


drippyeric247
HOBBY

22 days ago

I try the better solution


drippyeric247
HOBBY

22 days ago

1428188150446162000
1428188151100477400


Plesae check to see if your agent re-added the cache mount RUN command in the Dockerfile.


drippyeric247
HOBBY

22 days ago

it did take it out


Can you share the entirety of the Dockerfile now?


drippyeric247
HOBBY

22 days ago

1428192593635704800


It very much did add it back.

1428192669737288000


Delete that line yourself. Without the AI. Replace it with RUN прi ci --omit-dev --no-audit --no-fund


drippyeric247
HOBBY

22 days ago

Like this

1428193005898301400


Perfect


drippyeric247
HOBBY

22 days ago

Commit and redeploy?


Commit and it should automatically redeploy, yes


drippyeric247
HOBBY

22 days ago

1428194610441621500


Did you yourself do the action of deleting package lock and reinstalling or did your agent?


drippyeric247
HOBBY

22 days ago

agent


drippyeric247
HOBBY

22 days ago

u want to mannually do it i can i just thought it could handle tht


Yes. Please. Open your terminal and run the following.

rm package-lock.json
npm i


drippyeric247
HOBBY

22 days ago

1428197844484886500


You're in the wrong directory, run cd .. first.


Then run those two commands again.


Yellowbook

1428198292424233000


drippyeric247
HOBBY

22 days ago

1428199636731957200


Awesomesauce


drippyeric247
HOBBY

22 days ago

what now


git commit -m "fix: update package-lock.json"


git push


drippyeric247
HOBBY

22 days ago

1428205560087445500


Okay. Is this repository public?


Found it myself. Going to take a crack at it.
https://github.com/DrippyEric247/final10-backend


drippyeric247
HOBBY

22 days ago

bet lmk thx for ur time and help


@Eric2Legit247 I notice you have two branches. Is Railway set to be using master rather than main?


drippyeric247
HOBBY

22 days ago

master


@Eric2Legit247 I can build the image just fine. Can you delete the service, recreate it, and set the branch to master again?


I apologize, I missed the double directory. You do not need to delete the service.

Run these commands. By hand. Without AI.

cd server
rm package-lock.json
npm i


drippyeric247
HOBBY

22 days ago

ok


drippyeric247
HOBBY

22 days ago

commit now

1428221775308656600


Yes. Not to be rude, but you need to stop using your agent for this. It has clearly proven to not understand the issue, and might go out and change other things.

1428222527603474400


drippyeric247
HOBBY

22 days ago

ok i understand i tired i dont know how to properly forgive me


All you need to do is open a terminal and copy paste the command I'm sending in. You do not need an AI for that.


drippyeric247
HOBBY

22 days ago

ok


drippyeric247
HOBBY

22 days ago

1428225223794229200


Oh my. Somehow I missed that rm didn't work above.

It's del package-lock.json instead of the rm command


drippyeric247
HOBBY

22 days ago

ok


Can't believe I missed that even with Brody reacting…


del package-lock.json
npm i


drippyeric247
HOBBY

22 days ago

1428226288920957000


<:frogsigh:1424892413314469988> Yeah try it.


After this I'm going to sleep


drippyeric247
HOBBY

22 days ago

ok so commit


@Eric2Legit247 Did that end up working?


drippyeric247
HOBBY

21 days ago

No it didn’t


drippyeric247
HOBBY

21 days ago

1428563532278009900


13 days ago

Hey, can you click on the view logs button and sends us the full logs?


drippyeric247
HOBBY

13 days ago

yes


drippyeric247
HOBBY

13 days ago

1431751014926651400
1431751015379501000
1431751015836942300
1431751016348516400



drippyeric247
HOBBY

13 days ago

yes


13 days ago

accept the following PR and wait for Railway to deploy your code
https://github.com/DrippyEric247/final10-backend/pull/1


13 days ago

if you run into any issues, let me know


drippyeric247
HOBBY

13 days ago

so i think i did this right do i deploy now

1431757984605929500


13 days ago

Railway should already be deploying your code


drippyeric247
HOBBY

13 days ago

didnt deploy automatically


They have a whole bunch of branches with multiple implying main, as well as a whole bunch of different package locks in different directories


13 days ago

I've done another PR
https://github.com/DrippyEric247/final10-backend/pull/2
There I remove any node_modules folder which shouldn't be pushed and also fix the package locks

If after merging this PR nothing happens on Railway, please confirm that your services are using the master branch as the default.


drippyeric247
HOBBY

12 days ago

it auto deployed i let u know what happens


drippyeric247
HOBBY

12 days ago

1431765075672305700


12 days ago

Go to your service settings and look for "watch patterns"


12 days ago

and then remove it


drippyeric247
HOBBY

12 days ago

thx i try it now


drippyeric247
HOBBY

12 days ago

1431845330529288200
1431845331057901800
1431845331502629000
1431845331884314600


11 days ago

Are you sure you're using the master branch on your service? I had no problems installing dependencies the last time


11 days ago

I see that it's a problem with the Dockerfile, give me a minute to debug it further.



11 days ago

explanation: you were using a .npmrc file which wasn't included in the Dockerfile, thus causing package-lock.json differences.


Loading...