2 years ago
I have new Windows 10 machine that seems to be blocking me from using the Railway CLI.
This works on my older machine.
I am using a DOS window that was opened with "Run As Administrator".
Please help:
C:\Users\MDM0819\git>railway login
Open the browser? Yes
Logged in as me2Tech (matt@me2tech.us)
C:\Users\MDM0819\git>railway up
Indexed Compressed [====================] 100% Access is denied. (os error 5)
C:\Users\MDM0819\git>
8 Replies
2 years ago
Yes.
2 years ago
I just moved my project to a subfolder of the git folder (for better organization) but the same error still happens.
I will say that if I try to do railway up while my IDE (Intelli-J) is open, I get this slightly different error (in case it gives a clue):
C:\Users\MDM0819\git[dbME.app](dbME.app)>railway login
Open the browser? Yes
Logged in as me2Tech (matt@me2tech.us)
C:\Users\MDM0819\git[dbME.app](dbME.app)>railway up
Indexed Compressed [====================] 100% The process cannot access the file because another process has locked a portion of the file. (os error 33)
When I close my IDE and do it again I get the orginal error that I reported.
2 years ago
I downloaded and ran the pre-built binary named:
railway-v3.5.2-x86_64-pc-windows-msvc.zip
2 years ago
I also added the folder it sits in, to my PATH env variable so I can invoke it from anywhere on the system.
2 years ago
C:\Users\MDM0819\railway>dir
Volume in drive C is OS
Volume Serial Number is D064-3727
Directory of C:\Users\MDM0819\railway
12/13/2023 11:28 PM . 12/13/2023 11:28 PM .. 12/13/2023 11:22 PM 11,264,512 railway.exe
2 years ago
So I got it working.. I tried several things all at once so I'm not sure which one fixed it but I:
re-downloaded the binary and replaced the file I had with the freshly downloaded one (exact same size so maybe was not the solution)
deleted the hidden .railway folder to wipe any settings
started over from the "top" with using the CLI
Then it worked fine.
Thanks to all who lended a hand.
Matt M.