GetPsyched
GetPsyched
Explore posts from servers
DTDrizzle Team
Created by GetPsyched on 4/3/2024 in #help
Getting data loss warning even though the change shouldn't be destructive
I am removing a default value from a column in 2 different tables both of which have all rows filled with values in that column.
Warning Found data-loss statements:
· You're about to remove default value from employee_id not-null column with 7 items
· You're about to remove default value from employee_id not-null column with 6 items

THIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTED

Do you still want to push changes?
❯ No, abort
Yes, I want to truncate 2 tables
Warning Found data-loss statements:
· You're about to remove default value from employee_id not-null column with 7 items
· You're about to remove default value from employee_id not-null column with 6 items

THIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTED

Do you still want to push changes?
❯ No, abort
Yes, I want to truncate 2 tables
1 replies
RRailway
Created by GetPsyched on 11/16/2023 in #✋|help
Overwriting files in volumes
What happens if I run railway up with files in a folder /foo on which a volume is mounted already? Does it add/overwrite the files to/in the volume?
27 replies
RRailway
Created by GetPsyched on 10/8/2023 in #✋|help
sveltekit service crashing :(
I just deployed my brand new project on Railway and it tried running the bun run start command repeatedly which kept failing with the following error:
TERM environment variable not set.
error: script "start" exited with code 1 (SIGHUP)
TERM environment variable not set.
error: script "start" exited with code 1 (SIGHUP)
The service inevitably crashed.
216 replies
RRailway
Created by GetPsyched on 9/30/2023 in #✋|help
Service did not sleep after 7 minutes of no outbound network
No description
47 replies
RRailway
Created by GetPsyched on 9/23/2023 in #✋|help
Custom domain not redirecting
No description
26 replies
RRailway
Created by GetPsyched on 9/21/2023 in #✋|help
Trying to generate files before runtime
I recently pushed a commit in my project that adds some auto generated files to .gitignore. But this broke Railway trying to deploy my app because I don't have those files anymore. The files in question can be generated by a simple command: sqlc generate. Though I tried putting this as the build command and start commands but nothing seems to work. Note: I don't want to use a Dockerfile for something as trivial as this.
68 replies
RRailway
Created by GetPsyched on 6/19/2023 in #✋|help
Is it possible to get a service's deployment domain in another service in the same project?
Maybe through some env variable? Similar to how you get the PORT from the env.
18 replies
RRailway
Created by GetPsyched on 6/11/2023 in #✋|help
Railway template deployment crashing
I created a deployment from my template and it crashes giving the following error[1]. I use the exact same code in one of my projects hosted on Railway and do not get this error. [1]
Traceback (most recent call last):
TypeError: unsupported operand type(s) for |: 'type' and 'type'
origin: discord.Message | discord.Interaction,
File "main.py", line 78, in AdvancedBot
class AdvancedBot(commands.Bot):
File "main.py", line 19, in <module>
Traceback (most recent call last):
TypeError: unsupported operand type(s) for |: 'type' and 'type'
origin: discord.Message | discord.Interaction,
File "main.py", line 78, in AdvancedBot
class AdvancedBot(commands.Bot):
File "main.py", line 19, in <module>
69 replies
RRailway
Created by GetPsyched on 6/5/2023 in #✋|help
Deployment crashes with confusing TypeError
So, I have a piece of code that works flawlessly in my project. But the same piece of code in my newly made template throws a type error.
Traceback (most recent call last):
File "main.py", line 19, in <module>
class AdvancedBot(commands.Bot):
File "main.py", line 78, in AdvancedBot
origin: discord.Message | discord.Interaction,
TypeError: unsupported operand type(s) for |: 'type' and 'type'
Traceback (most recent call last):
File "main.py", line 19, in <module>
class AdvancedBot(commands.Bot):
File "main.py", line 78, in AdvancedBot
origin: discord.Message | discord.Interaction,
TypeError: unsupported operand type(s) for |: 'type' and 'type'
The code:
async def get_context(
self,
origin: discord.Message | discord.Interaction,
/,
*,
cls: Type = None,
) -> Any:
return await super().get_context(origin, cls=cls or CustomContext)
async def get_context(
self,
origin: discord.Message | discord.Interaction,
/,
*,
cls: Type = None,
) -> Any:
return await super().get_context(origin, cls=cls or CustomContext)
2 replies
RRailway
Created by GetPsyched on 6/1/2023 in #✋|help
How does Railway use THE button create a repo from a modified root of the template?
30 replies
RRailway
Created by GetPsyched on 3/30/2023 in #✋|help
Not expose API publicly
Can I have a localhost API on one of my services that another service in the same project can access but no service outside of the project can access, i.e., no forwarding to a public URL (xxx.up.railway.app)
41 replies
RRailway
Created by GetPsyched on 10/13/2022 in #✋|help
DATABASE_URL env
Is this env var necessary even when my database service, in this case: PostgreSQL, is in the same project as the code service routine?
3 replies
RRailway
Created by GetPsyched on 10/13/2022 in #✋|help
Generating a CSR code for my Railway project
Hey! I've added a custom domain to my Railway project which is requiring a SSL Domain Setup. name.com requires me to get a CSR code from my hosting platform, which is you guys, Railway. Please assist me regarding this.
99 replies
RRailway
Created by GetPsyched on 10/2/2022 in #✋|help
Container Start Failure
I pushed my Go code to my repo and the auto-build failed with this error:
rpc error: code = Unknown desc = Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "chmod +x ./cmd/out && ./cmd/out": stat chmod +x ./cmd/out && ./cmd/out: no such file or directory: unknown
rpc error: code = Unknown desc = Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "chmod +x ./cmd/out && ./cmd/out": stat chmod +x ./cmd/out && ./cmd/out: no such file or directory: unknown
Project code: 69531a0b-78b7-4a71-9df4-3a8db9703b69
31 replies