sqlserver on railway?

ethanlajHOBBY

a year ago

Any way to create a SQL server DB on railway?

0 Replies

ethanlajHOBBY

a year ago

N/A


a year ago

I mean postgres is SQL, could you be more specific?


ethanlajHOBBY

a year ago

Specifically SQL Server from Microsoft


a year ago

I think so, they have public images for their database right?


ethanlajHOBBY

a year ago

Yeah, I think so. But when I create a new service, I can specifically provision a PostgresSQL or MySQL. Wasn’t sure if there was a reason why SQL Server was missing


a year ago

Railway only maintains those select few database templates, anything else would need to made by a community member, and with that said I will look into making a Microsoft SQL server template for you later today


ethanlajHOBBY

a year ago

Oh sweet thanks, I found the image but it’s on the Microsoft Artifact Registry which also isn’t supported


ethanlajHOBBY

a year ago

I was attempting to create a new service from a docker image



a year ago

Yep indeed, that registry is not supported natively but there are work arounds, so sit tight and hopefully I'll have a template for you later in the day!


a year ago

hey @ethan - let me know if this template meets your needs


ethanlajHOBBY

a year ago

@Brody Thank you! I got it to deploy


ethanlajHOBBY

a year ago

Much appreciated


a year ago

just keep it mind it doesn't come with a database like postgres does, so you will have to create one yourself.


ethanlajHOBBY

a year ago

Like a volume?


ethanlajHOBBY

a year ago

I was just gonna ask that lol


a year ago

lmao it doesn't come with a volume, I forgot that


ethanlajHOBBY

a year ago

Haha okay


a year ago

but that's not what I meant


ethanlajHOBBY

a year ago

Well whatchya mean by the database part


ethanlajHOBBY

a year ago

Just like CREATE DATABASE _?


a year ago

yeah it doesn't create a default database for you, you have to do that yourself


ethanlajHOBBY

a year ago

Oh okay that’s fine


ethanlajHOBBY

a year ago

I’ll look into the volume stuff tomorrow


ethanlajHOBBY

a year ago

I was able to connect to the DB and it had some DBs already probably created my microsoft


a year ago

yeah those are system databases


a year ago

you would want to mount a volume to /var/opt/mssql
I had simply forgotten to do it in the template and will do that shortly


ethanlajHOBBY

a year ago

Oh okay, I’ll wait till you update the template then 😂 I didn’t get very far with any configuration


a year ago

I have already updated the template, but that doesn't do anything for you, you need to mount the volume to your already deployed mssql server


ethanlajHOBBY

a year ago

Sorry I meant delete and re-create the service


a year ago

ah okay then you are good to go


ethanlajHOBBY

a year ago

Appreciate it!


a year ago

happy to help


a year ago

thanks for the train, much appreciated!!


ethanlajHOBBY

a year ago

<:salute:1137099685417451530>


jwaltzPRO

10 months ago

@Brody thanks for making the SQL Server template! I just deployed it and wanted to report an issue:

The logs seem to come out with an early newline like so:

2024-07-18 21:47:09.35 s

pid53      U

sing 'dbgh

elp.dll' versio

n '4.0.5'



2024-07-18 21:55:21.

71 spid53      

XE session 'tel

emetry_xev

ents' stoppin

g.


2024-07-18 21

:55:21.72 

spid53     

 XE sessio

n 'telemet

ry_xevents' s

tarted.

Is this an error on my part? The logging seems to persist in this fashion even after restart.

1263616662561751300


10 months ago

that looks like garbage, does it improve if you switch back to the legacy runtime?


jwaltzPRO

10 months ago

It does improve when switched to Legacy runtime, interesting. Any ideas why and if I can fix the template to work with runtime v2?


10 months ago

just like to clarify that this is not an issue with the template.

please show me what the logs look like on the legacy runtime.


jwaltzPRO

10 months ago

2024-07-23 17:25:54.24 spid45s     Recovery is complete. This is an informational message only. No user action is required.


2024-07-23 17:30:44.53 spid53      XE session 'telemetry_xevents' stopping.


2024-07-23 17:30:44.55 spid53      XE session 'telemetry_xevents' started.

10 months ago

screenshot please


jwaltzPRO

10 months ago

1265361949181350100


10 months ago

can you switch back to the v2 runtime and then download your logs with this -

are they still garbage when downloaded?


jwaltzPRO

10 months ago

They still seem to be improperly formatted

1265364830777245768


10 months ago

very interesting


10 months ago

okay, I'll see if I can come up with a minimal reproducible example


10 months ago

@volcanicislander - i cant reporduce this, without a reproduction the team wont be able to fix this, and fwiw no one else has reported anything similar


jwaltzPRO

10 months ago

Thats interesting. I wonder what the issue is. I don't think I did anything out of the ordinary. I cloned the template and thats about it. In any case, thanks for looking into it. It isn't really a big deal right now. I do appreciate you creating the template very much!


10 months ago

cloned the template?


jwaltzPRO

10 months ago

selected the template when deploying a new service. sorry, might not be using the right terminology