#Is the a hosting or db issue?

211 messages · Page 1 of 1 (latest)

hardy matrix
#

Are you using a file based database?

#

example: sqlite

#

Railway's filesystem isn't persistent. If you create a new deployment, all changes made by your code will get deleted.

#

You'll have to use a remote database. (redis, mongo, postgres, mysql)

floral otter
floral otter
hardy matrix
#

but everytime you make a new deployment

#

filesystem is deleted

floral otter
#

also if the bot some how stops or goes down and comes back up, is that also seen as a deployment?

hardy matrix
#
  • railway up
  • git commit
  • changing environment variables
  • changing builder
  • rollback
#

all of these trigger a new deployment ^

hardy matrix
#

but if you are rolling it back yes

floral otter
# hardy matrix but if you are rolling it back yes

but whats weird is, it didnt restart or like, rollback or nth, it just some way some how went on reset mode. The bot is running, i make changes and then leave it. I use buttons that have no timeout so they dont stop unless the bot does. But i come back, see the buttons have stopped, and when i run the cmd again, the db some how reverts back to the first stage

#

I think i gotta use or learn how to use sql for now

#

sql browser can work on this right?

hardy matrix
#

btw railway has their own database viewer

#

but any other database browser should work too

#

if they support postgres/mysql

floral otter
#

thats kl

#

imma check it out rn

floral otter
hardy matrix
#

yeah, automod blocks it

floral otter
#

anyway, could you help me with this pls

#

i verified with my acc yesterday

#

why is it saying this now

hardy matrix
#

bug mildpanic

floral otter
#

lmao

hardy matrix
#

what's your github username?

floral otter
hardy matrix
floral otter
#

yep

hardy matrix
#

Your github needs to have some activity in order to qualify for free plan

hardy matrix
#

You can link your card to verify using that

floral otter
floral otter
hardy matrix
#

you can even use your debit card

floral otter
#

no like, i have no cards...like none

#

i dont even have my id as yet

#

im trying to get them now as a matter of fact

hardy matrix
#

you won't be able to use railway without a card or a github account with some activity

#

😦

floral otter
#

what can i do to make it active

hardy matrix
#

create repos, make commits, fork repos, create issues etc

floral otter
#

I dont really know how to use github that much so

floral otter
#

what are repos?

#

ig i have to yt and google it all

#

ok, after i do those, can it then work?

hardy matrix
#

yeah

#

example of an active github account ^

floral otter
#

oh

#

do i have to wait like, do i have to do this over time

hardy matrix
#

over time

floral otter
#

cant you just bypass me, cause its not like im doing anything malicious 😭😭

hardy matrix
floral otter
#

you have my token

#

wdym

#

and you have access to my files and data

hardy matrix
#

multiple people in the past have deployed crypto miners after angelo verified them manually

floral otter
#

so you can see exactly what i coded

hardy matrix
#

Yeah, but railway doesn't scan them yk

hardy matrix
#

yeah

#

people who mine crypto on railway

floral otter
#

thats possible?

#

what the hell

hardy matrix
#

it's against railway's fair-use policy

floral otter
#

sigh

hardy matrix
#

what's possible?

floral otter
#

the good must suffer for the bad ig

hardy matrix
#

yeah

floral otter
hardy matrix
#

sadly 😦

floral otter
#

idk how it works but yh

#

ill learn how to use git

#

make a couple things and try again

hardy matrix
#

you can try asking your friends/parents for a card

#

(if that's possible)

floral otter
#

and i have nth to give back

#

and i cant replace it either

floral otter
#

it said you guys will ask for 1 dollar to make sure the acc is real or active

#

right?

hardy matrix
#

yup & then railway refunds it immediately

hardy matrix
#

railway won't auto-charge them that way

floral otter
#

buy specific credit?

#

wdym

hardy matrix
#

Railway has two types of payment plans -
one is postpaid where railway auto-charges & another one is prepaid you can pay railway $5 & use RAM/CPU worth $5 without the fear of getting auto-charged

floral otter
#

how much is $5 in JM currency

#

wait let me check

hardy matrix
#

756

floral otter
#

this has to be wrong

#

it is?

hardy matrix
#

yup

floral otter
#

thats crazy

#

that like, less than 1000

hardy matrix
#

yh

floral otter
#

why is it so cheap?

hardy matrix
#

what's so cheap?

#

You'll be able to use only resource worth 755JM not more than that

floral otter
#

755 is a little bit of money, not bragging, just saying, its cheaper than i thought

floral otter
#

ok, resources, thats the CPU and what not?

#

what can i do with those pertaining the website?

#

is that like storage or speed?

floral otter
prime ravine
#

no

#

not at all

floral otter
#

?

#

it isnt?

prime ravine
#

do you know what task manager is

#

like on your computer

floral otter
#

yh

#

well

#

ik where it is

#

not what it is

prime ravine
#

if you open it

#

it will show how much cpu and ram things are using on your computer

floral otter
#

oh yh, ik that

#

but the question i was asking was like

prime ravine
#

cpu usage is like how much computing a program is doing

floral otter
#

how does that work on railway website or server

prime ravine
#

yea so on your server say you have a program that adds some numbers

#

when its adding numbers it has to keep them in ram for the cpu to be able to add them

#

so it uses ram and cpu

#

storage is for files

#

ram is for things that are about to be computed

#

and cpu usage is how much computation you are doing

floral otter
#

so, how much RAM do i have as a regular user?

prime ravine
#

512mb on free plan

floral otter
#

how much can that run?

prime ravine
#

depends on what you want to run

#

what are you thinking of deploying

floral otter
#

wait, but thats a decent amount of mb is it not

floral otter
prime ravine
#

its 0.5gb

#

if that helps

floral otter
#

discord bot

prime ravine
#

should be fine

#

but you cant run it all month

#

it will run out of hours

floral otter
#

hours?

prime ravine
#

you get 500 hours of runtime

#

per month

floral otter
#

oh

prime ravine
#

unless you link a card

floral otter
#

how much to do i get then?

prime ravine
#

the hours limit goes away

#

and you pay for how much cpu and ram you use

#

but railway will subtract $5 from the bill

#

so if you dont use much its free

floral otter
#

i dont think i use that much

#

my bot is small at the moment

prime ravine
floral otter
#

mhh, so when i link my card, no hours and i dont have to worry about fees cause my bot doesnt need that much ram

#

oh, so i also have to pay $5 to remove the 500 hours?

#

or just link it?

prime ravine
#

just link it

floral otter
#

is it ok if i use a friends card?

prime ravine
#

yeah thats alright

floral otter
#

sigh, alr

#

when i contact them i will do it

#

but for now imma just host my bot on my laptop and learn how to use git to keep active in the future

prime ravine
#

instead of the free plan

floral otter
prime ravine
#

you just hit upgrade on the billing page

#

its free to upgrade

#

it just means that you will be charged after you use up the free amount

#

on free plan we just take your bot offline

#

paid plan that wont happen

floral otter
prime ravine
#

depends on the amount of cpu or ram you use

prime ravine
#

your bot will likely be free to run

floral otter
#

i will see though

#

thank you very much

#

both of you

hardy matrix
#

neb W

#

you're welcome 🙂

keen sky
#

Huh

floral otter
#

@prime ravinei tried with my friends own but it was insufficient 😭

floral otter
#

can yall help

#

idk how to keep my git active enough to verify

#

also, once a i verify, do i have to keep my git active still?

hardy matrix
floral otter
#

i mainly use vscode and discord

#

do you think if i show yu my code that would work

#

or i could show you my server with the bot as proof of it being legit?

keen sky
#

That's all you have to do

#

Nothing else

#

And I thinks asking for manual verification will NOT work here, They have never entertained such cases in past nor are they gonna do it specifically for you