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

Patch 1 #26

Closed
wants to merge 2 commits into from
Closed

Patch 1 #26

wants to merge 2 commits into from

Conversation

Avonae
Copy link

@Avonae Avonae commented Oct 10, 2024

Thank you for contributing to subs ! So that your Pull Request can be handled effectively, please populate the following fields (delete sections that are not applicable)

Category

Documentation

Overview

Add docker installation

This works but I got some errors
Copy link

vercel bot commented Oct 10, 2024

@Avonae is attempting to deploy a commit to the ajnart's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ajnart
Copy link
Owner

ajnart commented Oct 10, 2024

Thank you for this @Avonae ! Actually I have pushed a docker image at ghcr.io/ajnart/subs
It will update automatically to latest so no need to build it yourself.

Can you try using my docker image and tell me if you still encounter issues ?

@Avonae
Copy link
Author

Avonae commented Oct 10, 2024

sure

@Avonae
Copy link
Author

Avonae commented Oct 10, 2024

it works but i got this errors:

Error: Cannot find module '@libsql/linux-x64-musl'
Require stack:
- /app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at /app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:55:36
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at mod.require (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:65:28)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js:22:10)
    at Object.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js:45:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js'
  ]
}
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production

@Avonae
Copy link
Author

Avonae commented Oct 10, 2024

I also found out that my changes doesn't save actually:
image
I've deleted couple services and here they are again after F5

I wrote about this at #25

@ajnart
Copy link
Owner

ajnart commented Oct 11, 2024

it works but i got this errors:

Error: Cannot find module '@libsql/linux-x64-musl'
Require stack:
- /app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at /app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:55:36
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at mod.require (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:65:28)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js:22:10)
    at Object.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js:45:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js'
  ]
}
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production

Interesting, I think it means you don't have the correct binary to use the database, so it cannot write to it. I will look into it

@ajnart
Copy link
Owner

ajnart commented Oct 11, 2024

Closing this PR as no longer relevant. Feel free to do another one to include instructions about how you started the docker container

@ajnart ajnart closed this Oct 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants