Dylan-The-Villian
Dylan-The-Villian
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
Thanks for the help. I was able to figured out that railway is looking for MONGO_URL and my application was using MONGOURL locally.
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
So i have this log in my main.ts file
await app.listen(port, "0.0.0.0", function () {
console.log("mongo url", process.env.MONGO_URL)
});;
await app.listen(port, "0.0.0.0", function () {
console.log("mongo url", process.env.MONGO_URL)
});;
And here is the full deploy log. I'm not seeing my log anywhere.
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
The mongo_url I am seeing in the docs that I can use a console.log, but I am not seeing the results of it. Should I be looking in the build logs?
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
How can I print what the variables are on railway's end? I am able to print them locally but I need to see what railway is using for the connection string
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
Nevermind they are service variables. I have deleted all of my shared variables just in case and restarted the deploy but it is the same issue,
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
No description
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
It's printing fine in my routes, however I have noticed that my homepage of / is returning { "message": "Cannot GET /", "error": "Not Found", "statusCode": 404 } Could this be related?
27 replies
RRailway
Created by Dylan-The-Villian on 10/8/2023 in #✋|help
Railway unable to connect to linked database
8e9ef9bf-0cad-446a-a5fe-350cc41f3c87
27 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
The solution by the way was to add --authenticationDatabase=admin to the command. After that it worked
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
Using MongoDB: 4.4.24 Using Mongosh: 2.0.1 It looks like
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
So after running that I get this error connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed. I'm guessing I need to put my password in there, right? Or is there a setting in railway I need to tweak?
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
I also found this from the official docs
mongoimport --uri
mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NAME>/<DATABASE> --collection <COLLECTION> --type json --file <FILENAME>
mongoimport --uri
mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NAME>/<DATABASE> --collection <COLLECTION> --type json --file <FILENAME>
But it is throwing an error with the --uri Should I be using the railway cli for this? Is there a railyway specific command?
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
I got it from a stackoverflow answer. But now I see the answer is 9 years old. That's probably the issue.
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
Here it is, it is valid json but the part I clipped was not
20 replies
RRailway
Created by Dylan-The-Villian on 9/19/2023 in #✋|help
How can I add a json file to my mongoDB with railway?
No, it's just a very long file. It's 3 objects that are full of objects,here's the format.
"systems": [
{
"systemStar": "Brown-Dwarf",
"systemName": "Theaie",
"systemPlanets": [
{
"name": "Theaie-1",
"class": "Frozen5",
"naturalResources": [
"water",
"ore"
],
"buildings": [],
"resourceStorage": [],
"production": [],
"orbit": [],
"hangar": [],
"ownership": "unowned"
}
],
"cords": "R-7830"
},
}
"systems": [
{
"systemStar": "Brown-Dwarf",
"systemName": "Theaie",
"systemPlanets": [
{
"name": "Theaie-1",
"class": "Frozen5",
"naturalResources": [
"water",
"ore"
],
"buildings": [],
"resourceStorage": [],
"production": [],
"orbit": [],
"hangar": [],
"ownership": "unowned"
}
],
"cords": "R-7830"
},
}
20 replies
RRailway
Created by Dylan-The-Villian on 9/10/2023 in #✋|help
Bun 1.0 on railway
Thank you all for your help.
74 replies
RRailway
Created by Dylan-The-Villian on 9/10/2023 in #✋|help
Bun 1.0 on railway
Wow, I tried everything but that because I'm so used to seeing that in a project
74 replies
RRailway
Created by Dylan-The-Villian on 9/10/2023 in #✋|help
Bun 1.0 on railway
Wow, it looks like it worked. So was the package-lock left over from the node project?
74 replies
RRailway
Created by Dylan-The-Villian on 9/10/2023 in #✋|help
Bun 1.0 on railway
There's no railway.json in my project, here is the repo https://github.com/DylanBozarth/Andromeda-Backend
74 replies
RRailway
Created by Dylan-The-Villian on 9/10/2023 in #✋|help
Bun 1.0 on railway
Only added the .toml file luna suggested, [phases.setup] nixpkgsArchive = 'c054b2a07bce2be3b85fed85f45aea6a4b97f5cc'
74 replies