Closed alexandreteles closed 3 months ago
Not an arm64 only, x86 here and faced with this problem too.
Hello, I've stumbled upon the same error. Seems like the database is out of sync with the model, which throws the table main.Stay does not exist in the current database
error.
As a temporary fix, you can execute the following command to sync the DB with the prisma model :
npx prisma db push
This would not happen if we had migrations to apply, but they are not present in the prisma folder. My guess is that Lavamusic has multiple db providers and you have to choose what fits you best.
Although, it should probably appear in the README file.
EDIT: You actually have a step by step guide for prisma in the README, if you actually do the initial migration you will also get in sync with your model.
In the Dockerfile openssl is being installed into the build image and not the production image. To fix this add
RUN apt-get update -qq && \
apt-get install -y openssl
after Stage 2 not before. You can insert it just after
# Stage 2: Create production image
FROM node:20-slim
ENV NODE_ENV production
WORKDIR /opt/lavamusic/
INSERT HERE
Fixed in the latest version, I think
When running the arm64 image, on a clean volume, the logs will read:
As an obvious next step I've added OpenSSL to the Docker image in my fork and hit a new error:
I followed the recommendation and added the target, just to hit another issue:
When trying to evoke a slash command, it will throw the same error but for the
main.Setup
table. This seems to be a migration issue, but my Prisma knowledge isn't deep enough to understand what went wrong here. You can check the image build log here: https://github.com/alexandreteles/lavamusic/actions/runs/8952292488/job/24589527694 and you'll see that all the Prisma steps seem to work properly. I wanted to make a PR for this, but now I am unsure of what would be my next step. Is there more information I can provide to help with debug and/or finish a fix and PR?