Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Updated and now crashing immediatly #1076

Closed
2 tasks
ThomasBaruzier opened this issue Feb 20, 2025 · 1 comment
Closed
2 tasks

bug: Updated and now crashing immediatly #1076

ThomasBaruzier opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ThomasBaruzier
Copy link

What happened?

Hello,
I updated the client using the following setup:

update.sh:

#!/bin/bash

set -e

echo "Pulling changes..."
git -C repo pull
git -C repo submodule update --init --recursive

echo "Building Docker image..."
docker build -t revolt-revite-builder .

echo "Running Docker container..."
docker run --name revolt-build revolt-revite-builder

echo "Copying built files to local machine..."
rm -rf ./dist
docker cp revolt-build:/usr/src/app/dist ./dist

echo "Cleaning up Docker container..."
docker stop revolt-build
docker rm revolt-build
docker rmi revolt-revite-builder

echo "Build process completed successfully."

Dockerfile:

FROM node:16-buster AS builder

WORKDIR /usr/src/app
COPY repo/ .
COPY repo/.env.build .env

RUN yarn install --frozen-lockfile
RUN yarn build:deps
RUN yarn build:highmem
RUN yarn workspaces focus --production --all

Now, clearing the cookies and site data and accessing the client through nginx static serving, I get the following crash before being able to load anything else:

Client Crash Report

Revolt has crashed. Here's the error:

w<@https://revolt.mydomain.com/assets/Login.03a8f435.js:1:12487
observer/ar/<@https://revolt.mydomain.com/assets/main.613eabec.js:134:51427
useObserver/<@https://revolt.mydomain.com/assets/main.613eabec.js:134:50450
trackDerivedFunction$1@https://revolt.mydomain.com/assets/main.613eabec.js:114:20016
er.track@https://revolt.mydomain.com/assets/main.613eabec.js:114:26644
useObserver@https://revolt.mydomain.com/assets/main.613eabec.js:134:50426
ar@https://revolt.mydomain.com/assets/main.613eabec.js:134:51397
O$4@https://revolt.mydomain.com/assets/main.613eabec.js:1:10247
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7692
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
L$5@https://revolt.mydomain.com/assets/main.613eabec.js:1:9345
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:8166
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
L$5@https://revolt.mydomain.com/assets/main.613eabec.js:1:9345
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:8166
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
L$5@https://revolt.mydomain.com/assets/main.613eabec.js:1:9345
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:8166
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
w$8@https://revolt.mydomain.com/assets/main.613eabec.js:1:3465
j$6@https://revolt.mydomain.com/assets/main.613eabec.js:1:7952
g$7/<@https://revolt.mydomain.com/assets/main.613eabec.js:1:2714
g$7@https://revolt.mydomain.com/assets/main.613eabec.js:1:2592

This error has been automatically reported.

Branch

Nightly (nightly.revolt.chat)

Commit hash

f9c2fce

What browsers are you seeing the problem on?

Firefox

Relevant log output

No other logs, even in browser console, apart from CORS fail to reporting.revolt.app

Desktop

  • Yes, this bug is specific to Revolt Desktop and is not an issue with Revolt Desktop itself.

PWA

  • Yes, this bug is specific to the PWA.
@ThomasBaruzier ThomasBaruzier added the bug Something isn't working label Feb 20, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Untriaged in Revolt Project Feb 20, 2025
@ThomasBaruzier
Copy link
Author

Ok so I have no idea if the issue is fixed though some recent commits, or that I changed something that fixed it, but it works now, with the following setup:

update.sh

#!/bin/bash

set -e

echo "Pulling changes..."
if [ ! -d ./repo ]; then
  git clone 'https://github.com/revoltchat/revite' repo
else
  git -C repo pull
fi
cd repo
git submodule update --init --recursive
cp ../Dockerfile .

echo "Building Docker image..."
docker build -t revolt-revite-builder .

echo "Running Docker container..."
docker run --name revolt-build revolt-revite-builder

echo "Copying built files to local machine..."
rm -rf ../dist
docker cp revolt-build:/usr/src/app/dist ../dist

echo "Cleaning up Docker container..."
docker stop revolt-build
docker rm revolt-build
docker rmi revolt-revite-builder

echo "Build process completed successfully."

Dockerfile

FROM node:16-buster AS builder

WORKDIR /usr/src/app
COPY . .

ENV VITE_API_URL=https://revolt.domain.com/api

RUN yarn install --frozen-lockfile
RUN yarn build:deps
RUN yarn build:highmem
RUN yarn workspaces focus --production --all

@github-project-automation github-project-automation bot moved this from 🆕 Untriaged to ✅ Done in Revolt Project Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant