/root/.wasmedge/bin/wasmedgec: not found
120L020430 opened this issue · 5 comments
Hi @120L020430
Could you please try again with the latest master branch?
Hi @120L020430
Could you please provide the version of the docker desktop, OS, and hardware architecture? I cannot reproduce this error on Linux and macOS.
My hardware architecture is X86_64. I have Windows 11 and Ubuntu 22.04 on the computer. Both of them install the latest version of docker desktop, which is 4.22.1. When on Linux, the earlier error occurs again. On Windows, I can build the service successfully. However, the microservice, microservice-rust-mysql-client-1, will exit with the code '0' or '255' immediately after starting. Restarting several times gains the same result. Logs are as follows.
PS D:\Project\Severless\WebAssembly\microservice-rust-mysql> set BUILDX_NO_DEFAULT_ATTESTATIONS=1
PS D:\Project\Severless\WebAssembly\microservice-rust-mysql> docker compose up
[+] Running 3/0
✔ Container microservice-rust-mysql-db-1 Created 0.0s
✔ Container microservice-rust-mysql-client-1 Created 0.0s
✔ Container microservice-rust-mysql-server-1 Created 0.0s
Attaching to microservice-rust-mysql-client-1, microservice-rust-mysql-db-1, microservice-rust-mysql-server-1
microservice-rust-mysql-db-1 | 2023-08-28 13:45:42+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server `1:11.0.3+maria~ubu2204` started.
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
microservice-rust-mysql-client-1 | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
microservice-rust-mysql-client-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.3+maria~ubu2204 started.
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: using the "epoll" event method
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: nginx/1.25.2
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: OS: Linux 5.10.16.3-microsoft-standard-WSL2
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker processes
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 22
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 23
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 24
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 25
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 26
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 27
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 28
microservice-rust-mysql-client-1 | 2023/08/28 13:45:43 [notice] 1#1: start worker process 29
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43+00:00 [Note] [Entrypoint]: MariaDB upgrade information missing, assuming required
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43+00:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] Starting MariaDB 11.0.3-MariaDB-1:11.0.3+maria~ubu2204 source revision 70905bcb9059dcc40db3b73bc46a36c7d40f1e10 as process 1
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Number of transaction pools: 1
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Completed initialization of buffer pool
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Resetting space id's in the doublewrite buffer
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: End of log at LSN=67512
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Opened 3 undo tablespaces
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: log sequence number 67512; transaction id 16
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] Plugin 'FEEDBACK' is disabled.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] Plugin 'wsrep-provider' is disabled.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] Server socket created on IP: '0.0.0.0'.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] Server socket created on IP: '::'.
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] InnoDB: Buffer pool(s) load completed at 230828 13:45:43
microservice-rust-mysql-db-1 | 2023-08-28 13:45:43 0 [Note] mariadbd: ready for connections.
microservice-rust-mysql-db-1 | Version: '11.0.3-MariaDB-1:11.0.3+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
microservice-rust-mysql-server-1 exited with code 0
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 255
microservice-rust-mysql-server-1 exited with code 0
I tried on Windows, Linux, and macOS. I still cannot reproduce this. Tried to update to the latest release of Docker Desktop (v4.23.0) and had no luck.
If you still have this issue, maybe try to change this line:
https://github.com/second-state/microservice-rust-mysql/blob/main/Dockerfile#L22
to
RUN cp target/wasm32-wasi/release/order_demo_service.wasm order_demo_service.wasm

