Jason Layton
Jason Layton
RRailway
Created by Jason Layton on 10/23/2024 in #✋|help
Error Code: 1524. Plugin 'mysql_native_password' is not loaded
I'm provisioning a new database, but I'm unable to run the following command: ALTER USER 'user'@'%' IDENTIFIED WITH mysql_native_password BY '[password]';
17 replies
RRailway
Created by Jason Layton on 10/18/2024 in #✋|help
Our server can no longer query our database
MYSQL Workbench still allows us to connect and run Queries, but our server is unable to connect. The log is saying: { sqlMessage: "Plugin 'mysql_native_password' is not loaded", sqlState: 'HY000', fatal: true, originalUrl: 'mainCronJob', Error: ER_PLUGIN_IS_NOT_LOADED: Plugin 'mysql_native_password' is not loaded at Handshake.ErrorPacket (/app/node_modules/mysql/lib/protocol/sequences/Handshake.js:123:18) at Parser._parsePacket (/app/node_modules/mysql/lib/protocol/Parser.js:433:10) at Parser.write (/app/node_modules/mysql/lib/protocol/Parser.js:43:10) at Protocol.write (/app/node_modules/mysql/lib/protocol/Protocol.js:38:16) at Socket.emit (node:events:517:28) at Socket.emit (node:domain:489:12) -------------------- at Protocol._enqueue (/app/node_modules/mysql/lib/protocol/Protocol.js:144:48) at PoolConnection.connect (/app/node_modules/mysql/lib/Connection.js:116:18) at new Promise (<anonymous>) at YourCustomTransport.<anonymous> (/app/dist/src/logger.js:102:61) sqlMessage: "Plugin 'mysql_native_password' is not loaded",
26 replies
RRailway
Created by Jason Layton on 10/2/2024 in #✋|help
incremental database backup
Hello, I am looking for a way to incrementally backup my MYSQL database. I checked the marketplace, but everything seems to be for full dumps, as opposed to incrementally dumping only the newest changes. I've looked into building something myself, but I will need to make sure binary logging is enabled, I will also need access to the MYSQL configuration (my.cnf file). Can I do this with Railway? How do I get command line acceess? Thank you.
4 replies
RRailway
Created by Jason Layton on 8/21/2024 in #✋|help
I've invited someone to be a member of my project, when they click the link to accept...
It says they are already a member. On my side, it says their invite is still pending. The same thing happened the last time I invited them to a project, and I needed direct assistance from Railway support to fix it. Please help, thank you.
20 replies
RRailway
Created by Jason Layton on 7/7/2024 in #✋|help
Looking for database backup information
Hello, I would like to figure out a better solution for backing up our database (we're currently pulling it down to a local computer every night at 4am, this is not ideal). Does railway have any suggestions on how to use their platform to enable incremental database backup? Thank you.
8 replies
RRailway
Created by Jason Layton on 1/17/2024 in #✋|help
After migrating to railway's new database, we are having an issue
Hello, we migrated to the new MYSQL database from the old MYSQL database. I was told we had until the end of the month to do so. Everything seemed to work, but one of our Queries went from taking .08 seconds to taking 43 seconds. Can you please help me understand what could cause this?
select
b.id as boutId,
b.event_id,
b.created_at,
b.match_is_rated,
b.period_1_length_in_minutes,
b.period_2_length_in_minutes,
b.period_3_length_in_minutes,
r1.id as topLineRegistrationId,
w1.id as topLineWrestlerId,
w1.first_name as topLineWrestlerFirstName,
w1.last_name as topLineWrestlerLastName,
w1.birthday as topLineBirthday,
t1.id as topLineTeamId,
t1.team_name as topLineTeamName,
wi1.weight_in_pounds as topLineWeight,
r2.id as bottomLineRegistrationId,
w2.id as bottomLineWrestlerId,
w2.first_name as bottomLineWrestlerFirstName,
w2.last_name as bottomLineWrestlerLastName,
w2.birthday as bottomLineBirthday,
t2.id as bottomLineTeamId,
t2.team_name as bottomLineTeamName,
wi2.weight_in_pounds as bottomLineWeight,
ws.id as wrestlingStylesId,
ws.name_of_style
from bouts b
join registrations r1 on b.top_line_wrestler_registration_id=r1.id
join registrations r2 on b.bottom_line_wrestler_registration_id=r2.id
join wrestlers w1 on w1.id=r1.wrestler_id
join wrestlers w2 on w2.id=r2.wrestler_id
left join teams t1 on t1.id=r1.team_id
left join teams t2 on t2.id=r2.team_id
join weigh_ins wi1 on w1.id=wi1.wrestler_id and wi1.event_id=b.event_id
join weigh_ins wi2 on w2.id=wi2.wrestler_id and wi2.event_id=b.event_id
join wrestling_styles ws on ws.id=b.wrestling_styles_id
where b.dispatch_time_in_utc is null
and b.event_id=?
-- and b.dual_meets_id is null
order by b.created_at asc;
select
b.id as boutId,
b.event_id,
b.created_at,
b.match_is_rated,
b.period_1_length_in_minutes,
b.period_2_length_in_minutes,
b.period_3_length_in_minutes,
r1.id as topLineRegistrationId,
w1.id as topLineWrestlerId,
w1.first_name as topLineWrestlerFirstName,
w1.last_name as topLineWrestlerLastName,
w1.birthday as topLineBirthday,
t1.id as topLineTeamId,
t1.team_name as topLineTeamName,
wi1.weight_in_pounds as topLineWeight,
r2.id as bottomLineRegistrationId,
w2.id as bottomLineWrestlerId,
w2.first_name as bottomLineWrestlerFirstName,
w2.last_name as bottomLineWrestlerLastName,
w2.birthday as bottomLineBirthday,
t2.id as bottomLineTeamId,
t2.team_name as bottomLineTeamName,
wi2.weight_in_pounds as bottomLineWeight,
ws.id as wrestlingStylesId,
ws.name_of_style
from bouts b
join registrations r1 on b.top_line_wrestler_registration_id=r1.id
join registrations r2 on b.bottom_line_wrestler_registration_id=r2.id
join wrestlers w1 on w1.id=r1.wrestler_id
join wrestlers w2 on w2.id=r2.wrestler_id
left join teams t1 on t1.id=r1.team_id
left join teams t2 on t2.id=r2.team_id
join weigh_ins wi1 on w1.id=wi1.wrestler_id and wi1.event_id=b.event_id
join weigh_ins wi2 on w2.id=wi2.wrestler_id and wi2.event_id=b.event_id
join wrestling_styles ws on ws.id=b.wrestling_styles_id
where b.dispatch_time_in_utc is null
and b.event_id=?
-- and b.dual_meets_id is null
order by b.created_at asc;
37 replies
RRailway
Created by Jason Layton on 12/17/2023 in #✋|help
We are having an issue connecting to our backend, please help!
We are down during a live event, I have no idea what is wrong
30 replies
RRailway
Created by Jason Layton on 12/14/2023 in #✋|help
I'm trying to add a seat, can someone help me?
I'm putting in the person's email, they get the link, but once they sign in, they are not on my team.
24 replies
RRailway
Created by Jason Layton on 12/12/2023 in #✋|help
Unable to login
Hello, I am trying to log in via github, and am getting "no healthy upstream". I was logged in, and it all of a sudden kicked me out. Thank you
9 replies
RRailway
Created by Jason Layton on 12/10/2023 in #✋|help
Is there a way to see Railway's outage history?
My server had a blip yesterday, and we went down for 4 minutes. Only our backend went down, not the front end, so it is likely something related to our server-side code. I've been trying to figure it out for hours, I just want to make sure it's on our end, and that you guys didn't have a temporary outage. Thank you.
12 replies
RRailway
Created by Jason Layton on 12/7/2023 in #✋|help
Is railway limiting my console.logs?
I've noticed that if I have too many console.logs, railway just seems to drop them. Can anyone explain what is going on here? I had a forloop performing a few hundred operations, and I was just completely losing the logs letting me know when the entire loop had completed. Thank you.
8 replies
RRailway
Created by Jason Layton on 11/30/2023 in #✋|help
auto scaling
Hello Railway team. In 2 weekends I expect there to be significantly more traffic on my application than normal, I'm trying to do everything I can in advance to make sure our servers can handle the demand. The weekend I'm concerned about will experience about 4x the demand that we've serviced until now. Our software manages competitive wrestling tournaments (youth, high school, and college), and there are typically a few hundred competitors and their families present at each event. We cannot afford to hit scaling issues that would lock us up, as users don't have the luxury of coming back later (a laggy site would be ok, but if it didn't work at all we would be screwed). My mentor told me to look into autoscaling, to make sure that my provider doesn't limit our service. Can you give me any advice or suggestions on how to make sure we are ready? Thank you.
14 replies
RRailway
Created by Jason Layton on 11/15/2023 in #✋|help
Our development deployments are not building
Hello, we usually have no problem once we push to github, but today it's taking a really long time (I don't think it's working). I've tried redploying. Is everything ok on your end? Thank you.
7 replies
RRailway
Created by Jason Layton on 9/23/2023 in #✋|help
Best way to turn off a project?
We have a side project that we do not wish to use right now, but we plan on coming back to it. What is the best way to minimize my monthly bill? I could delete the project entirely, but it's a ton of setup work to get it up and running again. I thought taking down the deployment would do the trick, but it doesn't. Thank you.
13 replies
RRailway
Created by Jason Layton on 9/19/2023 in #✋|help
Server becomes unresponsive
Can someone please help me figure out what occurred Saturday? Our production site was not accessible during a live event. We were able to reach the front end, but the data wasn’t loading. We are using express JS with node and a MYSQL database. Both the back-end and front-end servers are hosted on Railway.app The problem was fixed by redeploying the backend server. The problem has occurred again several times over the past few days, every time it is fixed by redeploying the backend server. Clues: During each outage, we have been able to run queries directly on the production database with MySQL workbench. It works like normal. The SQL command: SHOW VARIABLES LIKE "max_connections"; returned 151. The SQL command: SHOW VARIABLES LIKE "max_used_connections"; returned nothing. I do not think it is related to the database. We have a cron job (Node Cron) that runs every minute, it stops running during the outages. We have console.logs in the cron job allowing us to know when it begins and ends. The cron jobs always finish. I do not think it is related the the cron job. We use the Morgan logger, which displays the routes we hit in the logs. When going through the logs, we can see when the outage begins because we stop getting status and response time. Morgan is logging: :method :url :status :response-time ms - :res[content-length]
11 replies
RRailway
Created by Jason Layton on 9/16/2023 in #✋|help
Please help, we are down during a live event
I am not sure what is wrong, everything was working fine but now we cannot access the site. I looked in the MYSQL metrics tab on our production server and the network outbound has gone through the roof. Please help us!
12 replies
RRailway
Created by Jason Layton on 9/1/2023 in #✋|help
Is there an easy way to pause a project?
Hello, we have a secondary development environment that we need for testing every once in a while. Is there a way to stop/start it, so that we only pay for it when we are using it? I don't want to delete it, as setup takes a fair amount of work. Thank you.
9 replies
RRailway
Created by Jason Layton on 8/7/2023 in #✋|help
My deployment is taking substantially longer than normal
It typically takes 1.5 minutes to deploy my front end and my back end (separately). It's currently up to 9 minutes on both, what is happening here?
8 replies
RRailway
Created by Jason Layton on 7/24/2023 in #✋|help
How to upgrade to pro
How do I upgrade my account to pro? It is not giving me the option.
15 replies
RRailway
Created by Jason Layton on 7/23/2023 in #✋|help
Is there a way that I can monitor my usage in the moment?
Hello, we are currently running our first production event (we are an event management company), and I wanted to know if there is a way to observe our usage on a smaller timeline. I see the project usage page, but it's showing larger chunks of time (like 3 hours). Also, is there a way I can predict bottlenecks due to our required usage in advance? I'd rather pay in advance than find myself in trouble needing to ask for an upgrade during a live event. Thank you.
13 replies