Comments (4)
Are there any other configs or logs you will need to help triage the problem?
from affine.
Issue Status: *Waiting for Info
*Waiting for Info
We’ve requested additional information from the person who created the issue and are waiting for them to get back to us.
This is an automatic reply by the bot.
from affine.
Please provide the config output when the selfhost server starts, let us check whether your config is correct。
from affine.
I will attach the startup logs from docker-compose, and my configs:
Docker Compose logs
affine_selfhosted | running predeploy script.
affine_selfhosted | yarn run v1.22.19
affine_selfhosted | $ yarn prisma migrate deploy && node --import ./scripts/register.js ./dist/data/index.js run
affine_selfhosted | $ /app/node_modules/.bin/prisma migrate deploy
affine_selfhosted | Prisma schema loaded from schema.prisma
affine_selfhosted | Datasource "db": PostgreSQL database "affine", schema "public" at "postgres:5432"
affine_selfhosted |
affine_selfhosted | 30 migrations found in prisma/migrations
affine_selfhosted |
affine_selfhosted |
affine_selfhosted | No pending migrations to apply.
affine_selfhosted | (node:150) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
affine_selfhosted | (Use `node --trace-warnings ...` to show where the warning was created)
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [NestFactory] Starting Nest application...
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] CommandRootModule dependencies initialized +23ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] PrismaModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] WebSocketModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] SyncModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] ServerConfigModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] GqlModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] CacheModule dependencies initialized +6ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] EventModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] MutexModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] MetricsModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] MailerModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] StorageProviderModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] HelpersModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] ServeStaticModule dependencies initialized +1ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] EventEmitterModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] CommandRunnerModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] FeatureModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] StorageModule dependencies initialized +1ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] MailModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] CliAppModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] RateLimiterModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] QuotaModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] DocModule dependencies initialized +1ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] OAuthModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] EventsModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] UserModule dependencies initialized +1ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] AuthModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [OAuthProvider:google] OAuth provider registered.
affine_selfhosted | [Nest] 150 - 05/12/2024, 10:16:52 AM LOG [RunCommand] Done 0 migrations
affine_selfhosted | Done in 4.18s.
affine_selfhosted | (node:229) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
affine_selfhosted | (Use `node --trace-warnings ...` to show where the warning was created)
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [NestFactory] Starting Nest application...
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] AppModule dependencies initialized +26ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] PrismaModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] WebSocketModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] SyncModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] ServerConfigModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] GqlModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] CacheModule dependencies initialized +5ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] MetricsModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] MailerModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] StorageProviderModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] HelpersModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] EventModule dependencies initialized +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] MutexModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] ServeStaticModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] EventEmitterModule dependencies initialized +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] MailModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] FeatureModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] StorageModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] RateLimiterModule dependencies initialized +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] QuotaModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] DocModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] OAuthModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] EventsModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] UserModule dependencies initialized +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] AuthModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-handshake-sync" message +8ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-handshake-awareness" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-leave-sync" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-leave-awareness" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-pre-sync" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "client-update-v2" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "doc-load-v2" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "awareness-init" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [WebSocketsController] EventsGateway subscribed to the "awareness-update" message +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RoutesResolver] AuthController {/api/auth}: +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/sign-in, POST} route +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/sign-out, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/magic-link, POST} route +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/session, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/sessions, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/auth/challenge, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RoutesResolver] UserAvatarController {/api/avatars}: +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/avatars/:id, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RoutesResolver] WorkspacesController {/api/workspaces}: +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/workspaces/:id/blobs/:name, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/workspaces/:id/docs/:guid, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/api/workspaces/:id/docs/:guid/histories/:timestamp, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RoutesResolver] OAuthController {/oauth}: +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/oauth/login, GET} route +1ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [RouterExplorer] Mapped {/oauth/callback, GET} route +0ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [DocManager] Use Database
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [DocManager] Automation started
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [GraphQLModule] Mapped {/graphql, POST} route +83ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [OAuthProvider:google] OAuth provider registered.
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [NestApplication] Nest application successfully started +15ms
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [App] AFFiNE Server is running in [selfhosted] mode
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [App] Listening on http://0.0.0.0:3010
affine_selfhosted | [Nest] 229 - 05/12/2024, 10:16:54 AM LOG [App] And the public server should be recognized as https://my.custom.domain
affine.js config
//
// ###############################################################
// ## AFFiNE Configuration System ##
// ###############################################################
// > Configurations merge order
// 1. load environment variables (`.env` if provided, and from system)
// 2. load `src/fundamentals/config/default.ts` for all default settings
// 3. apply `./affine.ts` patches (this file)
// 4. apply `./affine.env.ts` patches
AFFiNE.serverName = 'Shokis notes';
//
// /* Whether the server is deployed behind a HTTPS proxied environment */
AFFiNE.https = true;
// /* Domain of your server that your server will be available at */
AFFiNE.host = 'my.custom.domain';
// /* The local port of your server that will listen on */
AFFiNE.port = 3010;
AFFiNE.metrics.enabled = true;
AFFiNE.auth.allowSignup = true;
AFFiNE.plugins.use('oauth', {
providers: {
google: {
clientId: '[redacted].apps.googleusercontent.com',
clientSecret: 'G**SPX-***[redacted]***',
args: {
// See https://developers.google.com/identity/protocols/oauth2
scope: 'openid email profile',
promot: 'select_account',
access_type: 'offline',
},
},
},
});
my .env
AFFINE_ADMIN_EMAIL=[redacted]
AFFINE_ADMIN_PASSWORD=[redacted]
#email
MAILER_HOST=smtp.gmail.com
MAILER_PASSWORD=[redacted]
MAILER_PORT=465
MAILER_SECURE=true
MAILER_SENDER=AFFiNE <[redacted]>
MAILER_USER=[redacted]
from affine.
Related Issues (20)
- "Note block" in Page Mode = Note in Edge Mode HOT 4
- Segmentation Fault When Maximizing UI Window on AlmaLinux 9 (Seafoam Ocelot) HOT 5
- self-host: GraphQLError: Cannot query field "signUp" on type "Mutation". after update docker images HOT 6
- Drag and drop the import document HOT 2
- Error: Mailer service is not configured - Email is not working even after adding the details HOT 4
- revoke session correctly HOT 1
- Sudden gray to white change in ui is harmful to the eyes under bright themes HOT 2
- Disable AI and Telemetry HOT 6
- Better object note-taking support HOT 3
- 代码块中&符号展示有问题 HOT 2
- URI malformed reported by WsExceptionHandler HOT 1
- 块直接的链接、新增可以改进;聚焦可以改进 HOT 1
- Text wipe on iOS Safari browser HOT 3
- Clicking on embedded pdf link doesn't redirect to default pdf app HOT 2
- Can't log in on Windows 10, desktop app HOT 1
- [Usability enhancement request] Explicit selection for indentation target HOT 2
- [New Feature Request] Nested Tag HOT 1
- New Feature Request: Note Focus View HOT 3
- Block reference in same page or other page HOT 7
- Quick search for files using keyboard shortcuts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affine.