Open gfournel opened 6 months ago
Describe the bug Hi guys, I encouter a problem building AppFlowy using docker compose up command. Each time I try I have the following error message :
Step 17/24 : RUN cargo build --profile=release --features "${FEATURES}" --bin appflowy_cloud ---> Running in 0cc5afdc63b9 Compiling app-error v0.1.0 (/app/libs/app-error) Compiling tonic-proto v0.1.0 (/app/libs/tonic-proto) Compiling database-entity v0.1.0 (/app/libs/database-entity) Compiling database v0.1.0 (/app/libs/database) Compiling collab-rt-entity v0.1.0 (/app/libs/collab-rt-entity) Compiling client-websocket v0.1.0 (/app/libs/client-websocket) Compiling access-control v0.1.0 (/app/libs/access-control) Compiling gotrue-entity v0.1.0 (/app/libs/gotrue-entity) Compiling collab-rt-protocol v0.1.0 (/app/libs/collab-rt-protocol) Compiling workspace-access v0.1.0 (/app/libs/workspace-access) Compiling appflowy-ai-client v0.1.0 (/app/libs/appflowy-ai-client) Compiling collab-stream v0.1.0 (/app/libs/collab-stream) Compiling infra v0.1.0 (/app/libs/infra) Compiling gotrue v0.1.0 (/app/libs/gotrue) Compiling appflowy-collaborate v0.1.0 (/app/services/appflowy-collaborate) warning: unused import: `remove_all_pending_meta` --> services/appflowy-collaborate/src/collab/queue.rs:20:21 | 20 | get_pending_meta, remove_all_pending_meta, remove_pending_meta, storage_cache_key, PendingWrite, | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: function `remove_all_pending_meta` is never used --> services/appflowy-collaborate/src/collab/queue_redis_ops.rs:11:21 | 11 | pub(crate) async fn remove_all_pending_meta( | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: `appflowy-collaborate` (lib) generated 2 warnings (run `cargo fix --lib -p appflowy-collaborate` to apply 1 suggestion) Compiling shared-entity v0.1.0 (/app/libs/shared-entity) Compiling workspace-template v0.1.0 (/app/libs/workspace-template) Compiling snowflake v0.1.0 (/app/libs/snowflake) Compiling appflowy-cloud v0.1.0 (/app) error: could not compile `appflowy-cloud` (bin "appflowy_cloud") Caused by: process didn't exit successfully: `/usr/local/rustup/toolchains/1.77.2-x86_64-unknown-linux-gnu/bin/rustc --crate-name appflowy_cloud --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C codegen-units=1 -C metadata=2785dcf59e39084c -C extra-filename=-2785dcf59e39084c --out-dir /app/target/release/deps -C strip=debuginfo -L dependency=/app/target/release/deps --extern access_control=/app/target/release/deps/libaccess_control-904660ebcb001792.rlib --extern actix=/app/target/release/deps/libactix-4daf7716d354095b.rlib --extern actix_http=/app/target/release/deps/libactix_http-56524b02e0337ec5.rlib --extern actix_identity=/app/target/release/deps/libactix_identity-4b4225ad4df4878e.rlib --extern actix_router=/app/target/release/deps/libactix_router-c9b8823f1efd16ca.rlib --extern actix_rt=/app/target/release/deps/libactix_rt-fac27624e41ee13b.rlib --extern actix_service=/app/target/release/deps/libactix_service-d0d7efe96e1ba7cf.rlib --extern actix_session=/app/target/release/deps/libactix_session-57562780643b882b.rlib --extern actix_web=/app/target/release/deps/libactix_web-8686a48a14e9a637.rlib --extern actix_web_actors=/app/target/release/deps/libactix_web_actors-683eac11b8354072.rlib --extern anyhow=/app/target/release/deps/libanyhow-cf8fbd29df3cfe28.rlib --extern app_error=/app/target/release/deps/libapp_error.rlib --extern appflowy_ai_client=/app/target/release/deps/libappflowy_ai_client-5dfadd8d45121319.rlib --extern appflowy_cloud=/app/target/release/deps/libappflowy_cloud-b2a88ed0d788464b.rlib --extern appflowy_collaborate=/app/target/release/deps/libappflowy_collaborate-16dc4cefb5e01bd8.rlib --extern argon2=/app/target/release/deps/libargon2-b84a6fd69f43b91b.rlib --extern async_stream=/app/target/release/deps/libasync_stream-312f4ff67ebc157f.rlib --extern async_trait=/app/target/release/deps/libasync_trait-f885277b73d101dd.so --extern brotli=/app/target/release/deps/libbrotli-e379971b9c246779.rlib --extern bytes=/app/target/release/deps/libbytes-e20aec990b553c4b.rlib --extern chrono=/app/target/release/deps/libchrono-c1ccf0cde0ef203a.rlib --extern collab=/app/target/release/deps/libcollab-a791c26131e87c5a.rlib --extern collab_document=/app/target/release/deps/libcollab_document-e7c5b90b64118b7b.rlib --extern collab_entity=/app/target/release/deps/libcollab_entity-16e4123114b12457.rlib --extern collab_folder=/app/target/release/deps/libcollab_folder-bc5eaed973cf9d20.rlib --extern collab_rt_entity=/app/target/release/deps/libcollab_rt_entity.rlib --extern collab_rt_protocol=/app/target/release/deps/libcollab_rt_protocol.rlib --extern collab_stream=/app/target/release/deps/libcollab_stream-8eab2d5deb7995ef.rlib --extern dashmap=/app/target/release/deps/libdashmap-aa43f3dc7fce1608.rlib --extern database=/app/target/release/deps/libdatabase-42f52a7edc8e4e9b.rlib --extern database_entity=/app/target/release/deps/libdatabase_entity.rlib --extern derive_more=/app/target/release/deps/libderive_more-6aa880410c3fea56.so --extern dotenvy=/app/target/release/deps/libdotenvy-f6e8253c99b3b8c8.rlib --extern fancy_regex=/app/target/release/deps/libfancy_regex-f6edaf38df0a113e.rlib --extern futures=/app/target/release/deps/libfutures-2a894aa80149287c.rlib --extern futures_util=/app/target/release/deps/libfutures_util-28318fe92e703cb8.rlib --extern gotrue=/app/target/release/deps/libgotrue.rlib --extern gotrue_entity=/app/target/release/deps/libgotrue_entity-2c59bdc1f5e8bf56.rlib --extern governor=/app/target/release/deps/libgovernor-71c9a7c87bae835b.rlib --extern handlebars=/app/target/release/deps/libhandlebars-89f538d4412ab9e4.rlib --extern infra=/app/target/release/deps/libinfra-abc3f94fd4edf0f6.rlib --extern itertools=/app/target/release/deps/libitertools-07660181750a2667.rlib --extern lazy_static=/app/target/release/deps/liblazy_static-166e20c388158f14.rlib --extern lettre=/app/target/release/deps/liblettre-2eca8333f22a438e.rlib --extern log=/app/target/release/deps/liblog-1428c9e9d2061456.rlib --extern mime=/app/target/release/deps/libmime-498698252a95eeae.rlib --extern once_cell=/app/target/release/deps/libonce_cell-bce90c59342eefc3.rlib --extern openssl=/app/target/release/deps/libopenssl-ad88ce871355c0d6.rlib --extern prometheus_client=/app/target/release/deps/libprometheus_client-9b8091b2bdf05b46.rlib --extern prost=/app/target/release/deps/libprost-e90053fe2ca072bc.rlib --extern rand=/app/target/release/deps/librand-3f04539166e03613.rlib --extern rcgen=/app/target/release/deps/librcgen-38dd17aa03a986bb.rlib --extern redis=/app/target/release/deps/libredis-9c2e35b678985f11.rlib --extern reqwest=/app/target/release/deps/libreqwest-b308fff31015066d.rlib --extern s3=/app/target/release/deps/libs3-6f5012122ee7c308.rlib --extern secrecy=/app/target/release/deps/libsecrecy-1266dc55bfbd3033.rlib --extern semver=/app/target/release/deps/libsemver-dde2d5bb5d65d7b4.rlib --extern serde=/app/target/release/deps/libserde-b1815a3ece35504a.rlib --extern serde_json=/app/target/release/deps/libserde_json-8b661dfedc4df6da.rlib --extern serde_repr=/app/target/release/deps/libserde_repr-8f54890cc8d4f738.so --extern shared_entity=/app/target/release/deps/libshared_entity.rlib --extern snowflake=/app/target/release/deps/libsnowflake-0f58f5dbbc5ecab0.rlib --extern sqlx=/app/target/release/deps/libsqlx-0932cf1bcf5a10a5.rlib --extern thiserror=/app/target/release/deps/libthiserror-9e8fce9d8dcb9bff.rlib --extern tokio=/app/target/release/deps/libtokio-49fbf86751cdd5fe.rlib --extern tokio_stream=/app/target/release/deps/libtokio_stream-e8fecf8a1a65a32a.rlib --extern tokio_tungstenite=/app/target/release/deps/libtokio_tungstenite-8f12c06d072b957e.rlib --extern tokio_util=/app/target/release/deps/libtokio_util-6885157d717d39d1.rlib --extern tonic=/app/target/release/deps/libtonic-ba94b2a6b02416cc.rlib --extern tonic_build=/app/target/release/deps/libtonic_build-d53e46317abe8794.rlib --extern tonic_proto=/app/target/release/deps/libtonic_proto-99c62222249365f4.rlib --extern tracing=/app/target/release/deps/libtracing-20cd036029bc1d9a.rlib --extern tracing_bunyan_formatter=/app/target/release/deps/libtracing_bunyan_formatter-a49e9ce9dfa22f58.rlib --extern tracing_log=/app/target/release/deps/libtracing_log-76ddc18053e251b3.rlib --extern tracing_subscriber=/app/target/release/deps/libtracing_subscriber-3b41c4b5ef96f82e.rlib --extern unicode_segmentation=/app/target/release/deps/libunicode_segmentation-001cc448a3da2281.rlib --extern url=/app/target/release/deps/liburl-fe1d65a44022701e.rlib --extern uuid=/app/target/release/deps/libuuid-aced10fab4e53e1a.rlib --extern validator=/app/target/release/deps/libvalidator-5f91e84fc7407518.rlib --extern workspace_access=/app/target/release/deps/libworkspace_access-51a4f25d49afba1d.rlib --extern workspace_template=/app/target/release/deps/libworkspace_template.rlib -L native=/app/target/release/build/openssl-sys-ee9442ec71d70eb8/out/openssl-build/install/lib -L native=/app/target/release/build/zstd-sys-f278aee662e2e5a3/out -L native=/app/target/release/build/ring-c3669a9c81db9039/out -L native=/app/target/release/build/ring-457ce8ab45ae94b4/out -L native=/app/target/release/build/psm-52bf2e56d2dfb023/out` (signal: 9, SIGKILL: kill) The command '/bin/sh -c cargo build --profile=release --features "${FEATURES}" --bin appflowy_cloud' returned a non-zero code: 101 ERROR: Service 'appflowy_cloud' failed to build : Build failed
Desktop (please complete the following information):
Additional context sudo docker version
Client: Version: 24.0.5 API version: 1.43 Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.3 Git commit: 24.0.5-0ubuntu1~22.04.1 Built: Mon Aug 21 19:50:14 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.2 GitCommit: runc: Version: 1.1.7-0ubuntu1~22.04.2 GitCommit: docker-init: Version: 0.19.0 GitCommit:
If you don't need to build it yourself, you can also remove the build: section altogether. The container is published on Docker Hub:
build:
appflowyinc/appflowy_cloud
You might have not enough memory to build, see e.g. #358
Describe the bug Hi guys, I encouter a problem building AppFlowy using docker compose up command. Each time I try I have the following error message :
Desktop (please complete the following information):
Additional context sudo docker version