fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Failed to run fleet with an os error: no such file or directory

Open JmPotato opened this issue 2 years ago • 20 comments

Describe the bug

image

I try to run fleet build --release with my repo and it just prints out this error without any further information.

To Reproduce

Steps to reproduce the behavior:

  1. Install fleet with curl -L get.fleet.rs | sh on macOS.
  2. Clone https://github.com/tikv/tikv
  3. fleet build --release

Expected behavior

The building should start normally.

Screenshots

As above.

Desktop (please complete the following information):

  • OS: macOS 12.3.1 (21E258)

JmPotato avatar Apr 23 '22 10:04 JmPotato

@VarunPotti and I are currently implementing a fix for a similar issue faced by another user, will keep you posted 😄

suptejas avatar Apr 23 '22 10:04 suptejas

Hey @JmPotato the bug has been fixed! Please run cargo install fleet-rs --force 😀.

VarunPotti avatar Apr 23 '22 10:04 VarunPotti

@JmPotato Let me know if this solved it for you, we'll close the issue then!

suptejas avatar Apr 23 '22 16:04 suptejas

Hello, i have the same issue, and with installing via cargo install fleet-rs --force i still have the same issue

I'm on macOS 12.3.1, fleet version says 0.0.7, i was on nightly toolchain but i tried switch to stable, uninstall and reinstall fleet, but still

IAMISSAM avatar Apr 24 '22 11:04 IAMISSAM

Hey @IAMISSAM, can you share the fleet.toml file? And if rd_enabled is set to true please change that to false, the issue should be fixed.

VarunPotti avatar Apr 24 '22 12:04 VarunPotti

Hello, here is my fleet.toml :

rd_enabled = true
fleet_id = "83504b5d-adbb-41a7-9a50-4815c347aaea"

[build]
sccache = "/Users/issam/.cargo/bin/sccache"

When i disable rd_enabled, i have the same issue

image

IAMISSAM avatar Apr 24 '22 12:04 IAMISSAM

I see, is the target directory created?

VarunPotti avatar Apr 24 '22 12:04 VarunPotti

No, i don't see any target directory inside my project

IAMISSAM avatar Apr 24 '22 12:04 IAMISSAM

What is the output cargo run gives? Does it throw a similar error?

VarunPotti avatar Apr 24 '22 12:04 VarunPotti

cargo run works fine, and the program is running

IAMISSAM avatar Apr 24 '22 12:04 IAMISSAM

I see, will look into it, the ${PWD}/.cargo/config.toml file is created right?

VarunPotti avatar Apr 24 '22 12:04 VarunPotti

Inside the project directory, there is no .cargo directory

IAMISSAM avatar Apr 24 '22 12:04 IAMISSAM

That must be the issue will look into this.

VarunPotti avatar Apr 24 '22 12:04 VarunPotti

Hey @IAMISSAM, I tried building on MacOS 11 https://github.com/VarunPotti/fleet-actions/runs/6146796095?check_suite_focus=true, and it works! I seem to have fixed the error I will merge it into the master branch and publish this version into cargo, will notify you when done 😁

VarunPotti avatar Apr 24 '22 13:04 VarunPotti

Yep published now along with a github workflow to check if everything works! So you can run cargo install fleet-rs --force and you will be good to go!

VarunPotti avatar Apr 24 '22 14:04 VarunPotti

Let us know if this issue is resolved!

suptejas avatar Apr 24 '22 15:04 suptejas

Yeah, can confirm this is working now, thanks

IAMISSAM avatar Apr 24 '22 20:04 IAMISSAM

@VarunPotti @suptejas Hi, after upgrading the fleet-rs, there is something wrong with the split-debuginfo config field.

image

JmPotato avatar Apr 25 '22 03:04 JmPotato

Hey @JmPotato, what version of cargo, rustc are you running? split-debuginfo='...' is specified in the documentation so it must work fine

VarunPotti avatar Apr 25 '22 03:04 VarunPotti

Hey @JmPotato, what version of cargo, rustc are you running? split-debuginfo='...' is specified in the documentation so it must work fine

I think you may have misunderstood that split-debuginfo = '...' # Platform-specific. in the docs is a valid option. To me it looks like the author simply don't want to write out platform specific value for split-debuginfo in the docs not that ... is a valid option.

See also https://doc.rust-lang.org/rustc/codegen-options/index.html#split-debuginfo

cc https://github.com/napi-rs/napi-rs/discussions/1246

messense avatar Jul 19 '22 07:07 messense