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

Error when installing #8

Open
chocology opened this issue Oct 12, 2024 · 7 comments
Open

Error when installing #8

chocology opened this issue Oct 12, 2024 · 7 comments

Comments

@chocology
Copy link

Hi, Iove the concept of the software and I am keen to try it out. However I keep getting an error and cannto figure out what I am doing wrong. I would appreciate some support please.

root@docker:/opt# git clone https://github.com/Gsync/jobsync.git
Cloning into 'jobsync'...
remote: Enumerating objects: 1970, done.
remote: Counting objects: 100% (341/341), done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 1970 (delta 254), reused 234 (delta 180), pack-reused 1629 (from 1)
Receiving objects: 100% (1970/1970), 6.37 MiB | 21.90 MiB/s, done.
Resolving deltas: 100% (1320/1320), done.
root@docker:/opt# docker compose up
no configuration file provided: not found
root@docker:/opt# ls
containerd jobsync
root@docker:/opt# cd jobsync/
root@docker:/opt/jobsync# docker compose up
[+] Running 1/1
! app Warning pull access denied for jobsync_app_image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied 1.4s
[+] Building 146.8s (25/25) FINISHED docker:default
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.02kB 0.0s
=> [app internal] load metadata for docker.io/library/node:18.20-alpine 1.3s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 85B 0.0s
=> [app internal] load build context 0.1s
=> => transferring context: 7.47MB 0.0s
=> [app base 1/1] FROM docker.io/library/node:18.20-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2 1.6s
=> => resolve docker.io/library/node:18.20-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2 0.0s
=> => sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2 7.67kB / 7.67kB 0.0s
=> => sha256:ea8e360a721d870337fe899c70ea7def62f2a72cf1b6f7beb8a3ccaac8b6049c 1.72kB / 1.72kB 0.0s
=> => sha256:f48cc58268524517dc484f884b142fad1411e8b9ed35341342d877d5ae9396e2 6.36kB / 6.36kB 0.0s
=> => sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 3.62MB / 3.62MB 0.2s
=> => sha256:3696426c5aa28a9e9d46b6194f46c030c7dce77770db1f30e95e2317a1f97c0a 39.84MB / 39.84MB 0.8s
=> => sha256:cdccf44a82db2a9559b2c200f8cdbdb0df43925679f8ddc7c7e925d469b56d1d 1.38MB / 1.38MB 0.4s
=> => extracting sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 0.1s
=> => sha256:21f39b9ddd19acb73b7cbee0e5755029042719f744f2ce91a26f7e9425a79d6c 447B / 447B 0.4s
=> => extracting sha256:3696426c5aa28a9e9d46b6194f46c030c7dce77770db1f30e95e2317a1f97c0a 0.7s
=> => extracting sha256:cdccf44a82db2a9559b2c200f8cdbdb0df43925679f8ddc7c7e925d469b56d1d 0.0s
=> => extracting sha256:21f39b9ddd19acb73b7cbee0e5755029042719f744f2ce91a26f7e9425a79d6c 0.0s
=> [app builder 1/5] WORKDIR /app 0.2s
=> [app deps 1/4] RUN apk add --no-cache libc6-compat 0.6s
=> [app runner 2/10] RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs 0.5s
=> [app runner 3/10] RUN mkdir .next 0.1s
=> [app deps 2/4] WORKDIR /app 0.0s
=> [app deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ 0.1s
=> [app runner 4/10] RUN chown nextjs:nodejs .next 4.7s
=> [app deps 4/4] RUN if [ -f yarn.lock ]; then yarn --frozen-lockfile; elif [ -f package-lock.json ]; then npm ci; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; else echo "Lockfile not found." && exit 1; fi 15.0s
=> [app builder 2/5] COPY --from=deps /app/node_modules ./node_modules 10.2s
=> [app builder 3/5] COPY . . 0.0s
=> [app builder 4/5] RUN npx prisma generate 2.1s
=> [app builder 5/5] RUN if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo "Lockfile not found." && exit 1; fi 54.1s
=> [app runner 5/10] COPY --from=builder /app/public ./public 10.2s
=> [app runner 6/10] COPY --from=builder /app/prisma ./prisma 5.1s
=> [app runner 7/10] COPY --from=builder /app/src/lib/data ./src/lib/data 5.1s
=> [app runner 8/10] COPY --from=builder /app/node_modules/bcryptjs ./node_modules/bcryptjs 10.2s
=> [app runner 9/10] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ 10.2s
=> [app runner 10/10] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static 5.1s
=> [app] exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:951815c3b52f85f372f9b62ec33d8988f102d652a44f925281ab1cf096c6d28d 0.0s
=> => naming to docker.io/library/jobsync_app_image 0.0s
=> [app] resolving provenance for metadata file 0.0s
[+] Running 2/1
✔ Network jobsync_default Created 0.1s
✔ Container jobsync_app Created 0.0s
Attaching to jobsync_app
jobsync_app | npm warn exec The following package was not found and will be installed: [email protected]
jobsync_app | Prisma schema loaded from prisma/schema.prisma
jobsync_app | Datasource "db": SQLite database "dev.db" at "file:/data/dev.db"
jobsync_app |
jobsync_app | Error: Schema engine error:
jobsync_app | SQLite database error
jobsync_app | unable to open database file: /data/dev.db
jobsync_app |
jobsync_app | npm notice
jobsync_app | npm notice New minor version of npm available! 10.7.0 -> 10.9.0
jobsync_app | npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
jobsync_app | npm notice To update run: npm install -g [email protected]
jobsync_app | npm notice
jobsync_app exited with code 1

@Gsync
Copy link
Owner

Gsync commented Oct 13, 2024

Hi there, I am sorry that you having this issue, this app has not yet been tested on a remote server whether in a local network or cloud, so please make sure you are running it on a local system. I would suggest remove the cloned directory and try again, If the issue persist please do let me know what environment/OS are you running on and I will try to reproduce the issue. Thanks.

@chocology
Copy link
Author

chocology commented Oct 13, 2024

dockerfile-jobsync.txt
docker-compose-jobsync.txt

Thank you for the response. I am running it on an Ubuntu server with docker and docker compose. What ever I did to
fix it it only ever resolves to localhost rather than the external IP. I was able to make some improvements to the docker files but it did not help. Let me know if you need any specific details and I would be happy to help. Thanks in advance.

@Gsync
Copy link
Owner

Gsync commented Oct 13, 2024

It is not yet tested on a server, even if you are able to run it on a server you might have more issues while using Ollama for AI assistance. It is only recommended for use in local environment for now. I have plans to test it out on a server but not in near future. Improvements from anyone are welcome, just fork the repo, create a PR after testing.

@chocology
Copy link
Author

Its a shame but I dont get why anyone would like to run such an app on a local machine. These days most folks have nas's and other devices dedicated to running docker apps. Thanks all the same.

@Gsync
Copy link
Owner

Gsync commented Oct 14, 2024

Yeah you are right, but its a new open source project created by a single individual, initially I created it for my own use and later made it open to anyone, I will update it whenever I get time, meanwhile, its open for anyone who would like to contribute. Thanks for highlighting this and being the first to highlight an issue and It might not be a big issue to run the app in a local home lab environment, the problem is running Ollama require memory resources and most of home lab users don't have high resources on server that are needed to run AI models, keeping in mind this app is created for job seekers.

@chocology
Copy link
Author

Understood. Sadly I do not have much experience and did my best with ChatGPT. 🤪 I appreciate your efforts regardless, its a really cool tool.

@LayersOfAbstraction
Copy link

Its a shame but I dont get why anyone would like to run such an app on a local machine. These days most folks have nas's and other devices dedicated to running docker apps. Thanks all the same.

Yes, not to be rude but I feel this project is about empowering people to do their job hunt who cannot afford a nas.
I answered your question in #10 I hope it helps!

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

3 participants