aws / efs-utils

Utilities for Amazon Elastic File System (EFS)
MIT License
300 stars 191 forks source link

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

Open codematic-eas opened 6 months ago

codematic-eas commented 6 months ago

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

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 commented 6 months ago

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

mskanth972 commented 6 months ago

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 commented 6 months ago

Hi,

We set to use previous commit use the previous version for now. We yet to plan to change to v2.0 later.

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Shashi Kanth M @.> Sent: Tuesday, May 14, 2024 9:30:41 PM To: aws/efs-utils @.> Cc: codematic-eas @.>; Author @.> Subject: Re: [aws/efs-utils] Having issue with eft-utils after v2.x. release (Issue #212)

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

— Reply to this email directly, view it on GitHubhttps://github.com/aws/efs-utils/issues/212#issuecomment-2110253798, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBCUVOJ4OCSC4D26UQ6ZPJTZCIGYDAVCNFSM6AAAAABHC3SFX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGI2TGNZZHA. You are receiving this because you authored the thread.Message ID: @.***>

stanislavzaletskyi commented 6 months ago

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.

scottstensland commented 3 months ago

here is one of the BAD ubuntu 24.04 aws ami

ami-0e86e20dae9224db8

git clone git@github.com:aws/efs-utils 
Cloning into 'efs-utils'...
ls -la /home/infinitenow/src/github.com/aws/efs-utils
total 120
drwxrwxr-x 9 infinitenow infinitenow  4096 Aug 27 14:32 .
drwxrwxr-x 3 infinitenow infinitenow  4096 Aug 27 14:32 ..
drwxrwxr-x 2 infinitenow infinitenow  4096 Aug 27 14:32 .circleci
drwxrwxr-x 8 infinitenow infinitenow  4096 Aug 27 14:32 .git
drwxrwxr-x 2 infinitenow infinitenow  4096 Aug 27 14:32 .github
-rw-rw-r-- 1 infinitenow infinitenow   106 Aug 27 14:32 .gitignore
-rw-rw-r-- 1 infinitenow infinitenow  3263 Aug 27 14:32 CONTRIBUTING.md
-rw-rw-r-- 1 infinitenow infinitenow  1088 Aug 27 14:32 LICENSE
-rw-rw-r-- 1 infinitenow infinitenow  1643 Aug 27 14:32 Makefile
-rw-rw-r-- 1 infinitenow infinitenow    89 Aug 27 14:32 NOTICE
-rw-rw-r-- 1 infinitenow infinitenow 29142 Aug 27 14:32 README.md
-rw-rw-r-- 1 infinitenow infinitenow 11968 Aug 27 14:32 amazon-efs-utils.spec
-rwxrwxr-x 1 infinitenow infinitenow  2659 Aug 27 14:32 build-deb.sh
-rw-rw-r-- 1 infinitenow infinitenow   280 Aug 27 14:32 config.ini
-rw-rw-r-- 1 infinitenow infinitenow   414 Aug 27 14:32 config.toml
drwxrwxr-x 3 infinitenow infinitenow  4096 Aug 27 14:32 dist
drwxrwxr-x 2 infinitenow infinitenow  4096 Aug 27 14:32 man
-rw-rw-r-- 1 infinitenow infinitenow   317 Aug 27 14:32 requirements.txt
-rw-rw-r-- 1 infinitenow infinitenow   247 Aug 27 14:32 setup.cfg
drwxrwxr-x 5 infinitenow infinitenow  4096 Aug 27 14:32 src
drwxrwxr-x 5 infinitenow infinitenow  4096 Aug 27 14:32 test

cd /home/infinitenow/src/github.com/aws/efs-utils

+ pwd
+ BASE_DIR=/home/infinitenow/src/github.com/aws/efs-utils
+ BUILD_ROOT=/home/infinitenow/src/github.com/aws/efs-utils/build/debbuild
+ VERSION=2.0.4
+ RELEASE=2
+ DEB_SYSTEM_RELEASE_PATH=/etc/os-release
+ echo Cleaning deb build workspace
Cleaning deb build workspace
+ rm -rf /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild
Creating application directories
+ echo Creating application directories
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/etc/amazon/efs
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/etc/init/
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/etc/systemd/system
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/sbin
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/usr/bin
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/var/log/amazon/efs
+ mkdir -p /home/infinitenow/src/github.com/aws/efs-utils/build/debbuild/usr/share/man/man8
Building efs-proxy
+ echo Building efs-proxy
+ cd src/proxy
+ cargo build --release --manifest-path /home/infinitenow/src/github.com/aws/efs-utils/src/proxy/Cargo.toml
./build-deb.sh: 33: cargo: not found

please fix as this is a real show stopper issue ... this repo fails to work