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

​Cannot deploy via docker compose #5929

Closed
1 task
oliverwu-cn opened this issue Feb 27, 2024 · 9 comments
Closed
1 task

​Cannot deploy via docker compose #5929

oliverwu-cn opened this issue Feb 27, 2024 · 9 comments

Comments

@oliverwu-cn
Copy link

What happened?

I tried to deploy it via docker compose via the official guidance doc, however it failed to start Affine

Distribution version

macOS x64 (Intel)

What browsers are you seeing the problem on if you're using web version?

No response

Relevant log output

stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1
stderr: node:internal/errors:496
stderr:     ErrorCaptureStackTrace(err);
stderr:     ^
stderr: 
stderr: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/scripts/register.js' imported from /app/
stderr:     at new NodeError (node:internal/errors:405:5)
stderr:     at finalizeResolution (node:internal/modules/esm/resolve:327:11)
stderr:     at moduleResolve (node:internal/modules/esm/resolve:980:10)
stderr:     at defaultResolve (node:internal/modules/esm/resolve:1193:11)
stderr:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
stderr:     at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
stderr:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
stderr:     at ModuleLoader.import (node:internal/modules/esm/loader:335:34)
stderr:     at node:internal/process/esm_loader:26:84
stderr:     at node:internal/per_context/primordials:544:39 {
stderr:   url: 'file:///app/scripts/register.js',
stderr:   code: 'ERR_MODULE_NOT_FOUND'
stderr: }
stderr: 
stderr: Node.js v18.19.1

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@oliverwu-cn
Copy link
Author

I am using x86 machine with docker compose installed

@Alintya
Copy link

Alintya commented Feb 27, 2024

stable and beta versions are not updated yet
you can try canary until then

@oliverwu-cn
Copy link
Author

stable and beta versions are not updated yet you can try canary until then

OK, thanks. By the way, may I know

  • AFFINE_ADMIN_EMAIL=xxx@xxxcom
  • AFFINE_ADMIN_PASSWORD="xxxxx."

I tried to set up an email address in the yaml file, however after deploying, I still cannot use this account to login, if anything I'm missing?

@DEAD1SIDE
Copy link

#5069 (comment)
Try this.

@fish-uncle
Copy link

stable and beta versions are not updated yet you can try canary until then

OK, thanks. By the way, may I know

  • AFFINE_ADMIN_EMAIL=xxx@xxxcom
  • AFFINE_ADMIN_PASSWORD="xxxxx."

I tried to set up an email address in the yaml file, however after deploying, I still cannot use this account to login, if anything I'm missing?

稳定版和测试版还没有更新,你可以在那之前尝试金丝雀。

好的,谢谢。 顺便问一下,我能知道

  • AFFINE_ADMIN_EMAIL=xxx@xxxcom
  • AFFINE_ADMIN_PASSWORD=“xxxxx.“

我试图在yaml文件中设置一个电子邮件地址,但是在部署之后,我仍然无法使用这个帐户登录,如果我缺少什么的话?

👋I encountered the same problem, how did you handle it?

@forehalo
Copy link
Member

OK, thanks. By the way, may I know

  • AFFINE_ADMIN_EMAIL=xxx@xxxcom
  • AFFINE_ADMIN_PASSWORD="xxxxx."

I tried to set up an email address in the yaml file, however after deploying, I still cannot use this account to login, if anything I'm missing?

hi @oliverwu-cn, @fish-uncle have you ever started the selfhost server with another credential? That admin account will only be registered once even if you give it a new credential each time you start the server

@yguo
Copy link

yguo commented Feb 28, 2024

stable and beta versions are not updated yet you can try canary until then

I switched to the canary branch but got the same failure log. I use the macOS x64 (Intel)

@forehalo
Copy link
Member

@yguo I mentioned the fixed in #5069 (comment)

@EYHN
Copy link
Member

EYHN commented Feb 28, 2024

Please go to #5069 to discuss

@EYHN EYHN closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

7 participants