Asseater Peter
Asseater Peter
Explore posts from servers
RRailway
Created by Asseater Peter on 8/22/2023 in #✋|help
Hosting a modded Minecraft server
Hi guys! I'm trying to host a modded minecraft server through Railway using the Minecraft Server template and I am running into a couple roadblocks: - First off, after reading the documentation for itzg/minecraft-server I've set up forge to auto-download, and it downloads most mods but some need to be added manually, which leads me to my first problem: How do I edit files on a volume? - My second issue is that the process crashes, but it could be caused by the first issue so I'm gonna assume I need to resolve the first problem first.
91 replies
DTDrizzle Team
Created by Asseater Peter on 8/10/2023 in #help
Multiple relations
Let's say I have this relationship from message to users:
export const MessageRelations = relations(MessageTable, ({ one }) => ({
sender: one(UserTable, {
fields: [MessageTable.sender_id],
references: [UserTable.id],
}),

recipient: one(UserTable, {
fields: [MessageTable.recipient_id],
references: [UserTable.id],
}),
}))
export const MessageRelations = relations(MessageTable, ({ one }) => ({
sender: one(UserTable, {
fields: [MessageTable.sender_id],
references: [UserTable.id],
}),

recipient: one(UserTable, {
fields: [MessageTable.recipient_id],
references: [UserTable.id],
}),
}))
And I'd like to add a relation from user to messages, by the sender. I thought of doing this:
export const UserRelations = relations(UserTable, ({ many }) => ({
messages: many(MessageTable),
}))
export const UserRelations = relations(UserTable, ({ many }) => ({
messages: many(MessageTable),
}))
But it errors out, Error: There is not enough information to infer relation "UserTable.messages" I assume I need to tell it what relation messages is linked with, but how do I go about doing that? The docs provide no information about this.
13 replies
RRailway
Created by Asseater Peter on 7/19/2023 in #✋|help
build fails with "ERR_PNPM_LOCKFILE_CONFIG_MISMATCH"
Pretty much what the title says. Following the Nixpacks command order works both on my computer and a friend's (pnpm i --frozen-lockfile -> pnpm build -> pnpm start) Full error:
#10 [stage-0 6/10] RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile

#10 1.213  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.213
#10 1.213 Update your lockfile using "pnpm install --no-frozen-lockfile"

#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
-----
> [stage-0 6/10] RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
#10 1.213  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.213

#10 1.213 Update your lockfile using "pnpm install --no-frozen-lockfile"
-----
Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
21 |
22 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
#10 [stage-0 6/10] RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile

#10 1.213  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.213
#10 1.213 Update your lockfile using "pnpm install --no-frozen-lockfile"

#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
-----
> [stage-0 6/10] RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
#10 1.213  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.213

#10 1.213 Update your lockfile using "pnpm install --no-frozen-lockfile"
-----
Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/e15ed82c-c15e-4b05-b9dc-06a185373d18-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
21 |
22 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
48 replies
RRailway
Created by Asseater Peter on 6/18/2023 in #✋|help
Resource not supported on express NodeJS app
Pretty much what the title says. When I deploy my project it deploys fine, and one of the API routes even works. However, if I try and send a request to most routes they fail with a 404 : Resource not supported. All my code is available on https://github.com/yuval59/react-vacations, but when I run this locally it works fine.
9 replies