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

Having issue with eft-utils after v2.x. release #212

Open
codematic-eas opened this issue May 2, 2024 · 4 comments
Open

Having issue with eft-utils after v2.x. release #212

codematic-eas opened this issue May 2, 2024 · 4 comments

Comments

@codematic-eas
Copy link

Hi Guys,

Having issue with eft-utils after v2.x. When our auto-scaling relaunch the instance recently, which failed to run certain command, but they were working before.

From the cloud-init log, I can see following error:
_Building efs-proxy

  • cd src/proxy
  • cargo build --release --manifest-path /tmp/efs-utils/src/proxy/Cargo.toml
    ./build-deb.sh: 33: cargo: not found_

And, I could not find the cargo from my Linux and I manually installed. When I run the script manually again, I have following error.

Error from "build-deb.sh"
+ cargo build --release --manifest-path /tmp/efs-utils/src/proxy/Cargo.toml
Compiling efs-proxy v2.0.1 (/tmp/efs-utils/src/proxy)
Building [=======================> ] 202/203: efs-proxy(bin)
error: linking with cc failed: exit status: 1

Any help is appreciated. I suspect, we need to update our script to accommodate efs-utils v2.x. But I could not find any information yet.

Thanks.
Guru

@RyanStan
Copy link
Member

RyanStan commented May 3, 2024

Hi Guru, can you provide the AMI or base distribution you're using? I'll attempt to re-create it.

@mskanth972
Copy link
Contributor

Did you follow these Steps for building a debian pkg?
https://github.com/aws/efs-utils?tab=readme-ov-file#on-other-linux-distributions

@codematic-eas
Copy link
Author

codematic-eas commented May 15, 2024 via email

@stanislavzaletskyi
Copy link

stanislavzaletskyi commented May 28, 2024

Got the same error like above. i use debian-12 (amazon owner) AMI and I applied workaround in aws ec2 userdata script:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
    cp -r /root/.cargo /home/admin/
    . "$HOME/.cargo/env"
    apt-get update
    apt install build-essential -y
    apt install pkg-config -y
    apt-get -y install gcc
    apt-get -y install libssl-dev
    apt-get -y install git binutils
    git clone https://github.com/aws/efs-utils
    cd $WORKING_FOLDER/efs-utils
    ./build-deb.sh
    apt-get -y install ./build/amazon-efs-utils*deb

In my case it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants