Wtf am I doing wrong
drippyeric247
HOBBYOP

a year 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

Closed$30 Bounty

82 Replies

a year ago

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


a year ago

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


a year ago

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


drippyeric247
HOBBYOP

a year ago

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


drippyeric247
HOBBYOP

a year ago

This is what happened

1428181774831456266


a year ago

Change it to

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


a year ago

@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
HOBBYOP

a year ago

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


drippyeric247
HOBBYOP

a year ago

I try the better solution


drippyeric247
HOBBYOP

a year ago

1428188150446161993

1428188151100477550


a year ago

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


drippyeric247
HOBBYOP

a year ago

it did take it out


a year ago

Can you share the entirety of the Dockerfile now?


drippyeric247
HOBBYOP

a year ago

1428192593635704864


a year ago

It very much did add it back.

1428192669737287818


a year ago

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


drippyeric247
HOBBYOP

a year ago

Like this

1428193005898301511


a year ago

Perfect


drippyeric247
HOBBYOP

a year ago

Commit and redeploy?


a year ago

Commit and it should automatically redeploy, yes


drippyeric247
HOBBYOP

a year ago

1428194610441621556


a year ago

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


drippyeric247
HOBBYOP

a year ago

agent


drippyeric247
HOBBYOP

a year ago

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


a year ago

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

rm package-lock.json

npm i


drippyeric247
HOBBYOP

a year ago

1428197844484886610


a year ago

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


a year ago

Then run those two commands again.


a year ago

Yellowbook

1428198292424233020


drippyeric247
HOBBYOP

a year ago

1428199636731957288


a year ago

Awesomesauce


drippyeric247
HOBBYOP

a year ago

what now


a year ago

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


a year ago

git push


drippyeric247
HOBBYOP

a year ago

1428205560087445565


a year ago

Okay. Is this repository public?


a year ago

Found it myself. Going to take a crack at it.

https://github.com/DrippyEric247/final10-backend


drippyeric247
HOBBYOP

a year ago

bet lmk thx for ur time and help


a year ago

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


drippyeric247
HOBBYOP

a year ago

master


a year ago

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


a year ago

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
HOBBYOP

a year ago

ok


drippyeric247
HOBBYOP

a year ago

commit now

1428221775308656651


a year ago

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.

1428222527603474433


drippyeric247
HOBBYOP

a year ago

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


a year ago

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
HOBBYOP

a year ago

ok


drippyeric247
HOBBYOP

a year ago

1428225223794229358


a year ago

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

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


drippyeric247
HOBBYOP

a year ago

ok


a year ago

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


a year ago

del package-lock.json

npm i


drippyeric247
HOBBYOP

a year ago

1428226288920956979


a year ago

<:frogsigh:1424892413314469988> Yeah try it.


a year ago

After this I'm going to sleep


drippyeric247
HOBBYOP

a year ago

ok so commit


a year ago

@Eric2Legit247 Did that end up working?


drippyeric247
HOBBYOP

a year ago

No it didn’t


drippyeric247
HOBBYOP

a year ago

1428563532278009866


a year ago

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


drippyeric247
HOBBYOP

a year ago

yes


drippyeric247
HOBBYOP

a year ago

1431751014926651512

1431751015379501178

1431751015836942346

1431751016348516393



drippyeric247
HOBBYOP

a year ago

yes


a year ago

accept the following PR and wait for Railway to deploy your code

https://github.com/DrippyEric247/final10-backend/pull/1


a year ago

if you run into any issues, let me know


drippyeric247
HOBBYOP

a year ago

so i think i did this right do i deploy now

1431757984605929553


a year ago

Railway should already be deploying your code


drippyeric247
HOBBYOP

a year ago

didnt deploy automatically


a year ago

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


a year 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
HOBBYOP

a year ago

it auto deployed i let u know what happens


drippyeric247
HOBBYOP

a year ago

1431765075672305686


a year ago

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


a year ago

and then remove it


drippyeric247
HOBBYOP

a year ago

thx i try it now


drippyeric247
HOBBYOP

a year ago

1431845330529288242

1431845331057901709

1431845331502629015

1431845331884314726


a year ago

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


a year ago

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



a year ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...