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

Self hosting not working on aws EC2 #393

Open
pkiriaki opened this issue Jul 28, 2024 · 3 comments
Open

Self hosting not working on aws EC2 #393

pkiriaki opened this issue Jul 28, 2024 · 3 comments

Comments

@pkiriaki
Copy link

Hi there,

I'm trying to deploy classquiz on aws ec2 but i haven't succeeded so far. I'm following the directions on the self-hosting page but after some time has passed the process seems to get stuck on building the frontend. Any ideas what's going wrong?

Thank you in advance!
Cheers

@mawoka-myblock
Copy link
Owner

Could you please provide the logs?

@pkiriaki
Copy link
Author

pkiriaki commented Aug 2, 2024

Sure! Also, I'm trying on a ubuntu machine

Here are the logs

~/ClassQuiz$ docker compose build && docker compose up -d
WARN[0000] /home/ubuntu/ClassQuiz/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Building 404.1s (36/53)                                                                                     docker:default
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 7)                                            0.0s
 => => extracting sha256:f2e4b4cbd0b8a554057e4c702cf430b30539db4912a84068ecc6317d91f6923f                                 0.0s
 => => extracting sha256:aa0a28bddc0842061ba84e8eeafaabead1ad7615813d3e84cee0f61eadd555f8                                 2.9s
 => => extracting sha256:a43acb05766e1c29ee0cd1427591aa34650adbc5c89b3ea83b38ecc9e19b9f95                                 0.1s
 => => extracting sha256:777f451f077ecd951e97fe25d9ae5de13478a9ef189beaa76a8c318a74925776                                 0.0s
 => [frontend internal] load build context                                                                                0.6s
 => => transferring context: 3.12MB                                                                                       0.5s
 => [frontend stage-1 1/7] FROM docker.io/library/node:19-bullseye-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124  18.8s
 => => resolve docker.io/library/node:19-bullseye-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f3b97aa05450  0.0s
 => => sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f3b97aa054500b0534 1.21kB / 1.21kB                            0.0s
 => => sha256:63b5ca0f90dbaf64465a83d46276e133eab30410f642808d158bf98928811999 1.37kB / 1.37kB                            0.0s
 => => sha256:adbc02574b521bb652d771c8ac0282c724b9fe90c001f3bab0825c32092c9036 6.84kB / 6.84kB                            0.0s
 => => sha256:f03b40093957615593f2ed142961afb6b540507e0b47e3f7626ba5e02efbbbf1 31.40MB / 31.40MB                          6.9s
 => => sha256:56db04c463e993ac037103947cd590d52fcddcb17ad04285a0ca4c3510c0738c 46.62MB / 46.62MB                          8.1s
 => => extracting sha256:f03b40093957615593f2ed142961afb6b540507e0b47e3f7626ba5e02efbbbf1                                 4.5s
 => => sha256:0bfad7312c25e414fc3d0e3640a77bd4b5c74d2118595670999afef9758cb49b 4.19kB / 4.19kB                            8.3s
 => => sha256:8bb4aa3e51be63d4a2e5bd30ab9cd478a916ed3c5c0212a44b96fd743e0e0f2f 450B / 450B                                8.4s
 => => sha256:477c7ebfb8500396b86c69952acb17b909a0a63da41e03dd4046e2c809722c6e 2.76MB / 2.76MB                            8.7s
 => => extracting sha256:0bfad7312c25e414fc3d0e3640a77bd4b5c74d2118595670999afef9758cb49b                                 0.0s
 => => extracting sha256:56db04c463e993ac037103947cd590d52fcddcb17ad04285a0ca4c3510c0738c                                 6.0s
 => => extracting sha256:477c7ebfb8500396b86c69952acb17b909a0a63da41e03dd4046e2c809722c6e                                 0.3s
 => => extracting sha256:8bb4aa3e51be63d4a2e5bd30ab9cd478a916ed3c5c0212a44b96fd743e0e0f2f                                 0.0s
 => [frontend stage-1 2/7] WORKDIR /app                                                                                   0.4s
 => [frontend builder 2/7] WORKDIR /usr/src/app                                                                           0.2s
 => [frontend builder 3/7] COPY package*.json ./                                                                          0.1s
 => [frontend builder 4/7] COPY pnpm-lock.yaml ./                                                                         0.1s
 => [frontend builder 5/7] RUN corepack enable && corepack prepare [email protected] --activate && pnpm i                      39.8s
 => [frontend builder 6/7] COPY . .                                                                                       0.7s
 => [frontend builder 7/7] RUN pnpm run build                                                                           246.3s
 => => # elector "underline"
 => => # 35: </div>
 => => # 36:
 => => # 37: <style>underline{text-decoration:underline}</style>
 => => #            ^
 => => # 38:

The process is stuck there and after a while i can't even exit without quitting the terminal.

@mawoka-myblock
Copy link
Owner

That's sth docker related. I've had the same problem with other docker projects as well: They sometimes just get stuck building.

You'd have to build the docker image on a separate PC and then import it. Or, I'll see if I can get the CI to build the image again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants