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

Failed to build from source following Quickstart #167

Open
danbugs opened this issue Sep 23, 2024 · 3 comments
Open

Failed to build from source following Quickstart #167

danbugs opened this issue Sep 23, 2024 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@danbugs
Copy link

danbugs commented Sep 23, 2024

What happened?

Following the quickstart, I did:

git clone https://github.com/kuasar-io/kuasar.git
cd kuasar
sudo make all

Instead of a success, I got:

    Finished release [optimized] target(s) in 4m 22s
image_parts 2
build in registry.fedoraproject.org/fedora:40
/mnt/c/Users/danil/source/repos/kuasar /mnt/c/Users/danil/source/repos/kuasar
/mnt/c/Users/danil/source/repos/kuasar
registry.fedoraproject.org/fedora:40:                                             resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:35761be3181b3f129fdab754f7aa8d2b502bc320a95be5ebaf9cfb75e801a91c:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:e6d8619f1f8be9ee5ab99d07877bd23753b8a49b7ecdd89cba56f8994571b821: done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:b6e058d357bc387604cb77bc4e8ad5afb66d0614d106f340591daeaa3df0e1dd:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:bcc33eb59a042bde78d8f9d4830e7cbb2d12aa71dbc03df2f3bf806c6b6016c3:    done           |++++++++++++++++++++++++++++++++++++++|
elapsed: 7.8 s                                                                    total:  80.6 M (10.3 MiB/s)

unpacking linux/amd64 sha256:35761be3181b3f129fdab754f7aa8d2b502bc320a95be5ebaf9cfb75e801a91c...
done: 2.881622117s
ctr: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
FAILED: return 1 not as expected! (ctr run rootfs_builder-1727125837 return error!)
make: *** [Makefile:32: bin/kuasar.img] Error 1

What did you expect to happen?

I expected to be able to run sudo make all to then run sudo make install.

How can we reproduce it (as minimally and precisely as possible)?

I am running on Ubuntu 22.04 w/ WSL 2:

Linux danbugs 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Anything else we need to know?

No response

Dev environment

rustc -V
rustc 1.74.1 (a28077b28 2023-12-04)
@danbugs danbugs added the kind/bug Categorizes issue or PR as related to a bug. label Sep 23, 2024
@lzaeh
Copy link

lzaeh commented Oct 18, 2024

I still haven't figured out why this issue is occurring, but when I modified the Makefile to compile only the wasm-sandboxer and runc-sandboxer (which are all I need), the compilation was successful. Hope the community help us to fix the issue unsolved.

@nypdmax
Copy link

nypdmax commented Dec 12, 2024

Having same issue here. Seems to be a rogue script calling bash instead of /bin/bash?
Tested with the image executing 'bash' and '/bin/bash'

image

nypdmax added a commit to nypdmax/kuasar that referenced this issue Dec 12, 2024
Fixing kuasar-io#167, Using /bin/bash instead of bash to avoid build errors. 

Signed-off-by: Max <[email protected]>
@nypdmax
Copy link

nypdmax commented Dec 12, 2024

I still haven't figured out why this issue is occurring, but when I modified the Makefile to compile only the wasm-sandboxer and runc-sandboxer (which are all I need), the compilation was successful. Hope the community help us to fix the issue unsolved.

see #173 for my solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants