Wtf am I doing wrong
drippyeric247
HOBBYOP

5 months 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

82 Replies

5 months ago

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


5 months ago

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


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

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


drippyeric247
HOBBYOP

5 months ago

This is what happened

1428181774831456300


5 months ago

Change it to

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


5 months 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

5 months ago

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


drippyeric247
HOBBYOP

5 months ago

I try the better solution


drippyeric247
HOBBYOP

5 months ago

1428188150446162000
1428188151100477400


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

it did take it out


5 months ago

Can you share the entirety of the Dockerfile now?


drippyeric247
HOBBYOP

5 months ago

1428192593635704800


5 months ago

It very much did add it back.

1428192669737288000


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

Like this

1428193005898301400


5 months ago

Perfect


drippyeric247
HOBBYOP

5 months ago

Commit and redeploy?


5 months ago

Commit and it should automatically redeploy, yes


drippyeric247
HOBBYOP

5 months ago

1428194610441621500


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

agent


drippyeric247
HOBBYOP

5 months ago

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


5 months ago

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

rm package-lock.json
npm i


drippyeric247
HOBBYOP

5 months ago

1428197844484886500


5 months ago

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


5 months ago

Then run those two commands again.


5 months ago

Yellowbook

1428198292424233000


drippyeric247
HOBBYOP

5 months ago

1428199636731957200


5 months ago

Awesomesauce


drippyeric247
HOBBYOP

5 months ago

what now


5 months ago

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


5 months ago

git push


drippyeric247
HOBBYOP

5 months ago

1428205560087445500


5 months ago

Okay. Is this repository public?


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

bet lmk thx for ur time and help


5 months ago

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


drippyeric247
HOBBYOP

5 months ago

master


5 months ago

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


5 months 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

5 months ago

ok


drippyeric247
HOBBYOP

5 months ago

commit now

1428221775308656600


5 months 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.

1428222527603474400


drippyeric247
HOBBYOP

5 months ago

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


5 months 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

5 months ago

ok


drippyeric247
HOBBYOP

5 months ago

1428225223794229200


5 months 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

5 months ago

ok


5 months ago

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


5 months ago

del package-lock.json
npm i


drippyeric247
HOBBYOP

5 months ago

1428226288920957000


5 months ago

<:frogsigh:1424892413314469988> Yeah try it.


5 months ago

After this I'm going to sleep


drippyeric247
HOBBYOP

5 months ago

ok so commit


5 months ago

@Eric2Legit247 Did that end up working?


drippyeric247
HOBBYOP

5 months ago

No it didn’t


drippyeric247
HOBBYOP

5 months ago

1428563532278009900


4 months ago

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


drippyeric247
HOBBYOP

4 months ago

yes


drippyeric247
HOBBYOP

4 months ago

1431751014926651400
1431751015379501000
1431751015836942300
1431751016348516400



drippyeric247
HOBBYOP

4 months ago

yes


4 months ago

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


4 months ago

if you run into any issues, let me know


drippyeric247
HOBBYOP

4 months ago

so i think i did this right do i deploy now

1431757984605929500


4 months ago

Railway should already be deploying your code


drippyeric247
HOBBYOP

4 months ago

didnt deploy automatically


4 months 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


4 months 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

4 months ago

it auto deployed i let u know what happens


drippyeric247
HOBBYOP

4 months ago

1431765075672305700


4 months ago

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


4 months ago

and then remove it


drippyeric247
HOBBYOP

4 months ago

thx i try it now


drippyeric247
HOBBYOP

4 months ago

1431845330529288200
1431845331057901800
1431845331502629000
1431845331884314600


4 months ago

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


4 months ago

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



4 months ago

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


Loading...